Debian Codegraph @

compat/libtiff/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for LibTIFF Software 4.7.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
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 [email protected] and
278 $0: [email protected] about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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.7.1'
594 PACKAGE_STRING='LibTIFF Software 4.7.1'
595 PACKAGE_BUGREPORT='[email protected]'
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 TIFF_MAN3_PREBUILT
639 TIFF_MAN1_PREBUILT
640 TIFF_MAN_RULES
641 TIFF_MAN3_GEN
642 TIFF_MAN1_GEN
643 SPHINX_FALSE
644 SPHINX_TRUE
645 SPHINX_BUILD
646 PYTHON_BIN
647 WIN32_IO_FALSE
648 WIN32_IO_TRUE
649 HAVE_OPENGL_FALSE
650 HAVE_OPENGL_TRUE
651 GLUT_LIBS
652 GLUT_CFLAGS
653 GLU_LIBS
654 GLU_CFLAGS
655 GL_LIBS
656 GL_CFLAGS
657 PTHREAD_CFLAGS
658 PTHREAD_LIBS
659 PTHREAD_CC
660 ax_pthread_config
661 X_EXTRA_LIBS
662 X_LIBS
663 X_PRE_LIBS
664 X_CFLAGS
665 XMKMF
666 HAVE_CXX_FALSE
667 HAVE_CXX_TRUE
668 HAVE_WEBP_FALSE
669 HAVE_WEBP_TRUE
670 HAVE_ZSTD_FALSE
671 HAVE_ZSTD_TRUE
672 HAVE_LZMA_FALSE
673 HAVE_LZMA_TRUE
674 HAVE_LERC_FALSE
675 HAVE_LERC_TRUE
676 HAVE_JBIG_FALSE
677 HAVE_JBIG_TRUE
678 HAVE_JPEGTURBO_DUAL_MODE_8_12_FALSE
679 HAVE_JPEGTURBO_DUAL_MODE_8_12_TRUE
680 HAVE_JPEG_FALSE
681 HAVE_JPEG_TRUE
682 TIFF_DOCS_FALSE
683 TIFF_DOCS_TRUE
684 TIFF_CONTRIB_FALSE
685 TIFF_CONTRIB_TRUE
686 TIFF_TESTS_FALSE
687 TIFF_TESTS_TRUE
688 TIFF_TOOLS_FALSE
689 TIFF_TOOLS_TRUE
690 LIBTIFF_DOCDIR
691 HAVE_RPATH_FALSE
692 HAVE_RPATH_TRUE
693 LIBOBJS
694 BUILD_STATIC_FALSE
695 BUILD_STATIC_TRUE
696 tiff_requires_private
697 tiff_libs_private
698 CXXCPP
699 am__fastdepCXX_FALSE
700 am__fastdepCXX_TRUE
701 CXXDEPMODE
702 ac_ct_CXX
703 CXXFLAGS
704 CXX
705 CPP
706 LT_SYS_LIBRARY_PATH
707 OTOOL64
708 OTOOL
709 LIPO
710 NMEDIT
711 DSYMUTIL
712 MANIFEST_TOOL
713 RANLIB
714 ac_ct_AR
715 AR
716 NM
717 ac_ct_DUMPBIN
718 DUMPBIN
719 LD
720 FGREP
721 EGREP
722 GREP
723 SED
724 LIBTOOL
725 OBJDUMP
726 DLLTOOL
727 AS
728 HAVE_LD_VERSION_SCRIPT_FALSE
729 HAVE_LD_VERSION_SCRIPT_TRUE
730 CMAKE
731 LN_S
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 LIBTIFF_RELEASE_DATE
749 LIBTIFF_VERSION_INFO
750 LIBTIFF_VERSION
751 LIBTIFF_ALPHA_VERSION
752 LIBTIFF_MICRO_VERSION
753 LIBTIFF_MINOR_VERSION
754 LIBTIFF_MAJOR_VERSION
755 MAINT
756 MAINTAINER_MODE_FALSE
757 MAINTAINER_MODE_TRUE
758 AM_BACKSLASH
759 AM_DEFAULT_VERBOSITY
760 AM_DEFAULT_V
761 AM_V
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 runstatedir
813 localstatedir
814 sharedstatedir
815 sysconfdir
816 datadir
817 datarootdir
818 libexecdir
819 sbindir
820 bindir
821 program_transform_name
822 prefix
823 exec_prefix
824 PACKAGE_URL
825 PACKAGE_BUGREPORT
826 PACKAGE_STRING
827 PACKAGE_VERSION
828 PACKAGE_TARNAME
829 PACKAGE_NAME
830 PATH_SEPARATOR
831 SHELL
832 am__quote'
833 ac_subst_files=''
834 ac_user_opts='
835 enable_option_checking
836 enable_silent_rules
837 enable_maintainer_mode
838 enable_dependency_tracking
839 enable_ld_version_script
840 enable_shared
841 enable_static
842 with_pic
843 enable_fast_install
844 with_aix_soname
845 with_gnu_ld
846 with_sysroot
847 enable_libtool_lock
848 enable_deprecated
849 enable_rpath
850 enable_largefile
851 with_docdir
852 enable_tools
853 enable_tests
854 enable_contrib
855 enable_docs
856 enable_ccitt
857 enable_packbits
858 enable_lzw
859 enable_thunder
860 enable_next
861 enable_logluv
862 enable_mdi
863 enable_zlib
864 with_zlib_include_dir
865 with_zlib_lib_dir
866 enable_libdeflate
867 with_libdeflate_include_dir
868 with_libdeflate_lib_dir
869 enable_pixarlog
870 enable_jpeg
871 with_jpeg_include_dir
872 with_jpeg_lib_dir
873 enable_old_jpeg
874 enable_jbig
875 with_jbig_include_dir
876 with_jbig_lib_dir
877 enable_lerc
878 with_lerc_include_dir
879 with_lerc_lib_dir
880 enable_lzma
881 with_lzma_include_dir
882 with_lzma_lib_dir
883 enable_zstd
884 with_zstd_include_dir
885 with_zstd_lib_dir
886 enable_webp
887 with_webp_include_dir
888 with_webp_lib_dir
889 enable_jpeg12
890 with_jpeg12_include_dir
891 with_jpeg12_lib
892 enable_cxx
893 enable_opengl
894 with_x
895 enable_win32_io
896 enable_strip_chopping
897 with_default_strip_size
898 with_max_dir_count
899 enable_defer_strile_load
900 enable_chunky_strip_read
901 enable_extrasample_as_alpha
902 enable_check_ycbcr_subsampling
903 enable_sphinx
904 '
905 ac_precious_vars='build_alias
906 host_alias
907 target_alias
908 CC
909 CFLAGS
910 LDFLAGS
911 LIBS
912 CPPFLAGS
913 LT_SYS_LIBRARY_PATH
914 CPP
915 CXX
916 CXXFLAGS
917 CCC
918 CXXCPP
919 XMKMF'
920
921
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
943
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 runstatedir='${localstatedir}/run'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
970
971 ac_prev=
972 ac_dashdash=
973 for ac_option
974 do
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
978 ac_prev=
979 continue
980 fi
981
982 case $ac_option in
983 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *=) ac_optarg= ;;
985 *) ac_optarg=yes ;;
986 esac
987
988 # Accept the important Cygnus configure options, so we can diagnose typos.
989
990 case $ac_dashdash$ac_option in
991 --)
992 ac_dashdash=yes ;;
993
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 bindir=$ac_optarg ;;
998
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1003
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1010
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1013
1014 -datadir | --datadir | --datadi | --datad)
1015 ac_prev=datadir ;;
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1018
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1025
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
1041
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1046
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1051
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=\$ac_optarg ;;
1067
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
1075 exec_prefix=$ac_optarg ;;
1076
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1079 with_gas=yes ;;
1080
1081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
1087
1088 -host | --host | --hos | --ho)
1089 ac_prev=host_alias ;;
1090 -host=* | --host=* | --hos=* | --ho=*)
1091 host_alias=$ac_optarg ;;
1092
1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 ac_prev=htmldir ;;
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 | --ht=*)
1097 htmldir=$ac_optarg ;;
1098
1099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
1104 includedir=$ac_optarg ;;
1105
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 ac_prev=infodir ;;
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109 infodir=$ac_optarg ;;
1110
1111 -libdir | --libdir | --libdi | --libd)
1112 ac_prev=libdir ;;
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114 libdir=$ac_optarg ;;
1115
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
1121 libexecdir=$ac_optarg ;;
1122
1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1127
1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
1129 | --localstate | --localstat | --localsta | --localst | --locals)
1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133 localstatedir=$ac_optarg ;;
1134
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 ac_prev=mandir ;;
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138 mandir=$ac_optarg ;;
1139
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1142 with_fp=no ;;
1143
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145 | --no-cr | --no-c | -n)
1146 no_create=yes ;;
1147
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150 no_recursion=yes ;;
1151
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159 oldincludedir=$ac_optarg ;;
1160
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 ac_prev=prefix ;;
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164 prefix=$ac_optarg ;;
1165
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171 program_prefix=$ac_optarg ;;
1172
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178 program_suffix=$ac_optarg ;;
1179
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
1195 program_transform_name=$ac_optarg ;;
1196
1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 ac_prev=pdfdir ;;
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1201
1202 -psdir | --psdir | --psdi | --psd | --ps)
1203 ac_prev=psdir ;;
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205 psdir=$ac_optarg ;;
1206
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1209 silent=yes ;;
1210
1211 -runstatedir | --runstatedir | --runstatedi | --runstated \
1212 | --runstate | --runstat | --runsta | --runst | --runs \
1213 | --run | --ru | --r)
1214 ac_prev=runstatedir ;;
1215 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1216 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1217 | --run=* | --ru=* | --r=*)
1218 runstatedir=$ac_optarg ;;
1219
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
1224 sbindir=$ac_optarg ;;
1225
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
1235 sharedstatedir=$ac_optarg ;;
1236
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
1240 site=$ac_optarg ;;
1241
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245 srcdir=$ac_optarg ;;
1246
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252 sysconfdir=$ac_optarg ;;
1253
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
1255 ac_prev=target_alias ;;
1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257 target_alias=$ac_optarg ;;
1258
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1261
1262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
1264
1265 -with-* | --with-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=\$ac_optarg ;;
1280
1281 -without-* | --without-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=no ;;
1296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1316 Try \`$0 --help' for more information"
1317 ;;
1318
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 case $ac_envvar in #(
1323 '' | [0-9]* | *[!_$as_cr_alnum]* )
1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1325 esac
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1335 ;;
1336
1337 esac
1338 done
1339
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 as_fn_error $? "missing argument to $ac_option"
1343 fi
1344
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
1348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 esac
1351 fi
1352
1353 # Check all directory arguments for consistency.
1354 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir runstatedir
1358 do
1359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
1361 case $ac_val in
1362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
1365 esac
1366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
1371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1372 done
1373
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1380
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1387 fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error $? "working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error $? "pwd does not report name of working directory"
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 $as_echo X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1434 fi
1435 else
1436 ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1445 pwd)`
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 srcdir=.
1449 fi
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1453 case $srcdir in
1454 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 esac
1456 for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 done
1462
1463 #
1464 # Report the --help message.
1465 #
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1469 cat <<_ACEOF
1470 \`configure' configures LibTIFF Software 4.7.1 to adapt to many kinds of systems.
1471
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1476
1477 Defaults for the options are specified in brackets.
1478
1479 Configuration:
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking ...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 [PREFIX]
1495
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1500
1501 For better control, use the options below.
1502
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1524 _ACEOF
1525
1526 cat <<\_ACEOF
1527
1528 Program names:
1529 --program-prefix=PREFIX prepend PREFIX to installed program names
1530 --program-suffix=SUFFIX append SUFFIX to installed program names
1531 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1532
1533 X features:
1534 --x-includes=DIR X include files are in DIR
1535 --x-libraries=DIR X library files are in DIR
1536
1537 System types:
1538 --build=BUILD configure for building on BUILD [guessed]
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540 _ACEOF
1541 fi
1542
1543 if test -n "$ac_init_help"; then
1544 case $ac_init_help in
1545 short | recursive ) echo "Configuration of LibTIFF Software 4.7.1:";;
1546 esac
1547 cat <<\_ACEOF
1548
1549 Optional Features:
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-silent-rules less verbose build output (undo: "make V=1")
1554 --disable-silent-rules verbose build output (undo: "make V=0")
1555 --enable-maintainer-mode
1556 enable make rules and dependencies not useful (and
1557 sometimes confusing) to the casual installer
1558 --enable-dependency-tracking
1559 do not reject slow dependency extractors
1560 --disable-dependency-tracking
1561 speeds up one-time build
1562 --disable-ld-version-script
1563 disable linker version script (default is enabled if
1564 supported)
1565 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 --enable-static[=PKGS] build static libraries [default=yes]
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --enable-deprecated enable deprecated features (default is disabled)
1571 --enable-rpath Enable runtime linker paths (-R libtool option)
1572 --disable-largefile omit support for large files
1573 --disable-tools Disable building of tools
1574 --disable-tests Disable building of tests
1575 --disable-contrib Disable building of contrib
1576 --disable-docs Disable building of docs
1577 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms
1578 --disable-packbits disable support for Macintosh PackBits algorithm
1579 --disable-lzw disable support for LZW algorithm
1580 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm
1581 --disable-next disable support for NeXT 2-bit RLE algorithm
1582 --disable-logluv disable support for LogLuv high dynamic range
1583 encoding
1584 --disable-mdi disable support for Microsoft Document Imaging
1585 --disable-zlib disable Zlib usage (required for Deflate
1586 compression, enabled by default)
1587 --disable-libdeflate disable libdeflate usage (optional for faster
1588 Deflate support (still requires zlib), enabled by
1589 default)
1590 --disable-pixarlog disable support for Pixar log-format algorithm
1591 (requires Zlib)
1592 --disable-jpeg disable IJG JPEG library usage (required for JPEG
1593 compression, enabled by default)
1594 --disable-old-jpeg disable support for Old JPEG compression (read-only,
1595 enabled by default)
1596 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG
1597 compression, enabled by default)
1598 --disable-lerc disable liblerc usage (required for lerc
1599 compression, enabled by default)
1600 --disable-lzma disable liblzma usage (required for LZMA2
1601 compression, enabled by default)
1602 --disable-zstd disable libzstd usage (required for zstd
1603 compression, enabled by default)
1604 --disable-webp disable libwebp usage (required for webp
1605 compression, enabled by default)
1606 --enable-jpeg12 enable libjpeg 8/12bit dual mode (not to be used
1607 with libjpeg-turbo >= 3.0)
1608 --enable-cxx enable C++ stream API building (requires C++
1609 compiler)
1610 --disable-opengl disable OpenGL usage (required by tiffgt, enabled by
1611 default)
1612 --disable-win32-io disable Win32 I/O (Windows only, enabled by default
1613 except for Cygwin)
1614 --disable-strip-chopping
1615 disable support for strip chopping (whether or not
1616 to convert single-strip uncompressed images to
1617 multiple strips of specified size to reduce memory
1618 usage)
1619 --enable-defer-strile-load
1620 enable deferred strip/tile offset/size loading (also
1621 available at runtime with the 'D' flag of TIFFOpen()
1622 --enable-chunky-strip-read
1623 enable reading large strips in chunks for
1624 TIFFReadScanline() (experimental)
1625 --disable-extrasample-as-alpha
1626 the RGBA interface will treat a fourth sample with
1627 no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1628 packages produce RGBA files but don't mark the alpha
1629 properly
1630 --disable-check-ycbcr-subsampling
1631 disable picking up YCbCr subsampling info from the
1632 JPEG data stream to support files lacking the tag
1633 --disable-sphinx disable building of the sphinx documentation
1634
1635 Optional Packages:
1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1638 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1639 both]
1640 --with-aix-soname=aix|svr4|both
1641 shared library versioning (aka "SONAME") variant to
1642 provide on AIX, [default=aix].
1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1644 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1645 compiler's sysroot if not specified).
1646 --with-docdir=DIR directory where documentation should be installed
1647 --with-zlib-include-dir=DIR
1648 location of Zlib headers
1649 --with-zlib-lib-dir=DIR location of Zlib library binary
1650 --with-libdeflate-include-dir=DIR
1651 location of libdeflate headers
1652 --with-libdeflate-lib-dir=DIR
1653 location of libdeflate library binary
1654 --with-jpeg-include-dir=DIR
1655 location of IJG JPEG library headers
1656 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1657 --with-jbig-include-dir=DIR
1658 location of JBIG-KIT headers
1659 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1660 --with-lerc-include-dir=DIR
1661 location of liblerc headers
1662 --with-lerc-lib-dir=DIR location of liblerc library binary
1663 --with-lzma-include-dir=DIR
1664 location of liblzma headers
1665 --with-lzma-lib-dir=DIR location of liblzma library binary
1666 --with-zstd-include-dir=DIR
1667 location of libzstd headers
1668 --with-zstd-lib-dir=DIR location of libzstd library binary
1669 --with-webp-include-dir=DIR
1670 location of libwebp headers
1671 --with-webp-lib-dir=DIR location of libwebp library binary
1672 --with-jpeg12-include-dir=DIR
1673 location of libjpeg 12bit headers
1674 --with-jpeg12-lib=LIBRARY
1675 path to libjpeg 12bit library
1676 --with-x use the X Window System
1677 --with-default-strip-size=SIZE
1678 default size of the strip in bytes (when strip
1679 chopping enabled) [[default=8192]]
1680 --with-max-dir-count=SIZE
1681 Maximum number of TIFF directories that libtiff can
1682 browse through [[default=1048576]]
1683
1684 Some influential environment variables:
1685 CC C compiler command
1686 CFLAGS C compiler flags
1687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1688 nonstandard directory <lib dir>
1689 LIBS libraries to pass to the linker, e.g. -l<library>
1690 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1691 you have headers in a nonstandard directory <include dir>
1692 LT_SYS_LIBRARY_PATH
1693 User-defined run-time library search path.
1694 CPP C preprocessor
1695 CXX C++ compiler command
1696 CXXFLAGS C++ compiler flags
1697 CXXCPP C++ preprocessor
1698 XMKMF Path to xmkmf, Makefile generator for X Window System
1699
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1702
1703 Report bugs to <[email protected]>.
1704 _ACEOF
1705 ac_status=$?
1706 fi
1707
1708 if test "$ac_init_help" = "recursive"; then
1709 # If there are subdirs, report their specific --help.
1710 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711 test -d "$ac_dir" ||
1712 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713 continue
1714 ac_builddir=.
1715
1716 case "$ac_dir" in
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *)
1719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720 # A ".." for each directory in $ac_dir_suffix.
1721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722 case $ac_top_builddir_sub in
1723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725 esac ;;
1726 esac
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1731
1732 case $srcdir in
1733 .) # We are building in place.
1734 ac_srcdir=.
1735 ac_top_srcdir=$ac_top_builddir_sub
1736 ac_abs_top_srcdir=$ac_pwd ;;
1737 [\\/]* | ?:[\\/]* ) # Absolute name.
1738 ac_srcdir=$srcdir$ac_dir_suffix;
1739 ac_top_srcdir=$srcdir
1740 ac_abs_top_srcdir=$srcdir ;;
1741 *) # Relative name.
1742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743 ac_top_srcdir=$ac_top_build_prefix$srcdir
1744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 esac
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747
1748 cd "$ac_dir" || { ac_status=$?; continue; }
1749 # Check for guested configure.
1750 if test -f "$ac_srcdir/configure.gnu"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753 elif test -f "$ac_srcdir/configure"; then
1754 echo &&
1755 $SHELL "$ac_srcdir/configure" --help=recursive
1756 else
1757 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758 fi || ac_status=$?
1759 cd "$ac_pwd" || { ac_status=$?; break; }
1760 done
1761 fi
1762
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1765 cat <<\_ACEOF
1766 LibTIFF Software configure 4.7.1
1767 generated by GNU Autoconf 2.69
1768
1769 Copyright (C) 2012 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1772 _ACEOF
1773 exit
1774 fi
1775
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1779
1780 # ac_fn_c_try_compile LINENO
1781 # --------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_compile ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext
1787 if { { ac_try="$ac_compile"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_compile") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest.$ac_objext; then :
1806 ac_retval=0
1807 else
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=1
1812 fi
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_compile
1817
1818 # ac_fn_c_try_link LINENO
1819 # -----------------------
1820 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_link ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext conftest$ac_exeext
1825 if { { ac_try="$ac_link"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1838 fi
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest$ac_exeext && {
1844 test "$cross_compiling" = yes ||
1845 test -x conftest$ac_exeext
1846 }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853 fi
1854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1856 # interfere with the next link command; also delete a directory that is
1857 # left behind by Apple's compiler. We do this before executing the actions.
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_link
1863
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875 else
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 $4
1879 #include <$2>
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 fi
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_header_compile
1894
1895 # ac_fn_c_try_cpp LINENO
1896 # ----------------------
1897 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_c_try_cpp ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if { { ac_try="$ac_cpp conftest.$ac_ext"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1914 fi
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } > conftest.i && {
1917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926 fi
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1929
1930 } # ac_fn_c_try_cpp
1931
1932 # ac_fn_c_try_run LINENO
1933 # ----------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1935 # that executables *can* be run.
1936 ac_fn_c_try_run ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { { ac_try="$ac_link"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>&5
1947 ac_status=$?
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1950 { { case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_try") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; }; }; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: program exited with status $ac_status" >&5
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_retval=$ac_status
1967 fi
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1971
1972 } # ac_fn_c_try_run
1973
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989 #define $2 innocuous_$2
1990
1991 /* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1995
1996 #ifdef __STDC__
1997 # include <limits.h>
1998 #else
1999 # include <assert.h>
2000 #endif
2001
2002 #undef $2
2003
2004 /* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2007 #ifdef __cplusplus
2008 extern "C"
2009 #endif
2010 char $2 ();
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined __stub_$2 || defined __stub___$2
2015 choke me
2016 #endif
2017
2018 int
2019 main ()
2020 {
2021 return $2 ();
2022 ;
2023 return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_link "$LINENO"; then :
2027 eval "$3=yes"
2028 else
2029 eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext \
2032 conftest$ac_exeext conftest.$ac_ext
2033 fi
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039 } # ac_fn_c_check_func
2040
2041 # ac_fn_cxx_try_compile LINENO
2042 # ----------------------------
2043 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_cxx_try_compile ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext
2048 if { { ac_try="$ac_compile"
2049 case "(($ac_try" in
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_compile") 2>conftest.err
2056 ac_status=$?
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2061 fi
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_cxx_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest.$ac_objext; then :
2067 ac_retval=0
2068 else
2069 $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 ac_retval=1
2073 fi
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2076
2077 } # ac_fn_cxx_try_compile
2078
2079 # ac_fn_cxx_try_cpp LINENO
2080 # ------------------------
2081 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2082 ac_fn_cxx_try_cpp ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if { { ac_try="$ac_cpp conftest.$ac_ext"
2086 case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2093 ac_status=$?
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2098 fi
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } > conftest.i && {
2101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2102 test ! -s conftest.err
2103 }; then :
2104 ac_retval=0
2105 else
2106 $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 ac_retval=1
2110 fi
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112 as_fn_set_status $ac_retval
2113
2114 } # ac_fn_cxx_try_cpp
2115
2116 # ac_fn_cxx_try_link LINENO
2117 # -------------------------
2118 # Try to link conftest.$ac_ext, and return whether this succeeded.
2119 ac_fn_cxx_try_link ()
2120 {
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 rm -f conftest.$ac_objext conftest$ac_exeext
2123 if { { ac_try="$ac_link"
2124 case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127 esac
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_link") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && {
2139 test -z "$ac_cxx_werror_flag" ||
2140 test ! -s conftest.err
2141 } && test -s conftest$ac_exeext && {
2142 test "$cross_compiling" = yes ||
2143 test -x conftest$ac_exeext
2144 }; then :
2145 ac_retval=0
2146 else
2147 $as_echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2149
2150 ac_retval=1
2151 fi
2152 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2153 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2154 # interfere with the next link command; also delete a directory that is
2155 # left behind by Apple's compiler. We do this before executing the actions.
2156 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2159
2160 } # ac_fn_cxx_try_link
2161
2162 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2163 # -------------------------------------------------------
2164 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2165 # the include files in INCLUDES and setting the cache variable VAR
2166 # accordingly.
2167 ac_fn_c_check_header_mongrel ()
2168 {
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 if eval \${$3+:} false; then :
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if eval \${$3+:} false; then :
2174 $as_echo_n "(cached) " >&6
2175 fi
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 else
2180 # Is the header compilable?
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2182 $as_echo_n "checking $2 usability... " >&6; }
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2185 $4
2186 #include <$2>
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 ac_header_compiler=yes
2190 else
2191 ac_header_compiler=no
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2195 $as_echo "$ac_header_compiler" >&6; }
2196
2197 # Is the header present?
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2199 $as_echo_n "checking $2 presence... " >&6; }
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 #include <$2>
2203 _ACEOF
2204 if ac_fn_c_try_cpp "$LINENO"; then :
2205 ac_header_preproc=yes
2206 else
2207 ac_header_preproc=no
2208 fi
2209 rm -f conftest.err conftest.i conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2211 $as_echo "$ac_header_preproc" >&6; }
2212
2213 # So? What about this header?
2214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2215 yes:no: )
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2217 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2220 ;;
2221 no:yes:* )
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2223 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2225 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2227 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2229 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2231 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2232 ( $as_echo "## ----------------------------------- ##
2233 ## Report this to [email protected] ##
2234 ## ----------------------------------- ##"
2235 ) | sed "s/^/$as_me: WARNING: /" >&2
2236 ;;
2237 esac
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if eval \${$3+:} false; then :
2241 $as_echo_n "(cached) " >&6
2242 else
2243 eval "$3=\$ac_header_compiler"
2244 fi
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 fi
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251 } # ac_fn_c_check_header_mongrel
2252
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2258 {
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 eval "$3=no"
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof ($2))
2273 return 0;
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2281 $4
2282 int
2283 main ()
2284 {
2285 if (sizeof (($2)))
2286 return 0;
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292
2293 else
2294 eval "$3=yes"
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 eval ac_res=\$$3
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304
2305 } # ac_fn_c_check_type
2306
2307 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2308 # ---------------------------------------------
2309 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2310 # accordingly.
2311 ac_fn_c_check_decl ()
2312 {
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 as_decl_name=`echo $2|sed 's/ *(.*//'`
2315 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2317 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2318 if eval \${$3+:} false; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $4
2324 int
2325 main ()
2326 {
2327 #ifndef $as_decl_name
2328 #ifdef __cplusplus
2329 (void) $as_decl_use;
2330 #else
2331 (void) $as_decl_name;
2332 #endif
2333 #endif
2334
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340 eval "$3=yes"
2341 else
2342 eval "$3=no"
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 fi
2346 eval ac_res=\$$3
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350
2351 } # ac_fn_c_check_decl
2352
2353 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2354 # --------------------------------------------
2355 # Tries to find the compile-time value of EXPR in a program that includes
2356 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2357 # computed
2358 ac_fn_c_compute_int ()
2359 {
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 if test "$cross_compiling" = yes; then
2362 # Depending upon the size, compute the lo and hi bounds.
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2365 $4
2366 int
2367 main ()
2368 {
2369 static int test_array [1 - 2 * !(($2) >= 0)];
2370 test_array [0] = 0;
2371 return test_array [0];
2372
2373 ;
2374 return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378 ac_lo=0 ac_mid=0
2379 while :; do
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2382 $4
2383 int
2384 main ()
2385 {
2386 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2387 test_array [0] = 0;
2388 return test_array [0];
2389
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395 ac_hi=$ac_mid; break
2396 else
2397 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2398 if test $ac_lo -le $ac_mid; then
2399 ac_lo= ac_hi=
2400 break
2401 fi
2402 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 done
2406 else
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $4
2410 int
2411 main ()
2412 {
2413 static int test_array [1 - 2 * !(($2) < 0)];
2414 test_array [0] = 0;
2415 return test_array [0];
2416
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_c_try_compile "$LINENO"; then :
2422 ac_hi=-1 ac_mid=-1
2423 while :; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $4
2427 int
2428 main ()
2429 {
2430 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2431 test_array [0] = 0;
2432 return test_array [0];
2433
2434 ;
2435 return 0;
2436 }
2437 _ACEOF
2438 if ac_fn_c_try_compile "$LINENO"; then :
2439 ac_lo=$ac_mid; break
2440 else
2441 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2442 if test $ac_mid -le $ac_hi; then
2443 ac_lo= ac_hi=
2444 break
2445 fi
2446 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 done
2450 else
2451 ac_lo= ac_hi=
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 # Binary search between lo and hi bounds.
2457 while test "x$ac_lo" != "x$ac_hi"; do
2458 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 $4
2462 int
2463 main ()
2464 {
2465 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2466 test_array [0] = 0;
2467 return test_array [0];
2468
2469 ;
2470 return 0;
2471 }
2472 _ACEOF
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_hi=$ac_mid
2475 else
2476 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2477 fi
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 done
2480 case $ac_lo in #((
2481 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2482 '') ac_retval=1 ;;
2483 esac
2484 else
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487 $4
2488 static long int longval () { return $2; }
2489 static unsigned long int ulongval () { return $2; }
2490 #include <stdio.h>
2491 #include <stdlib.h>
2492 int
2493 main ()
2494 {
2495
2496 FILE *f = fopen ("conftest.val", "w");
2497 if (! f)
2498 return 1;
2499 if (($2) < 0)
2500 {
2501 long int i = longval ();
2502 if (i != ($2))
2503 return 1;
2504 fprintf (f, "%ld", i);
2505 }
2506 else
2507 {
2508 unsigned long int i = ulongval ();
2509 if (i != ($2))
2510 return 1;
2511 fprintf (f, "%lu", i);
2512 }
2513 /* Do not output a trailing newline, as this causes \r\n confusion
2514 on some platforms. */
2515 return ferror (f) || fclose (f) != 0;
2516
2517 ;
2518 return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_c_try_run "$LINENO"; then :
2522 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2523 else
2524 ac_retval=1
2525 fi
2526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2527 conftest.$ac_objext conftest.beam conftest.$ac_ext
2528 rm -f conftest.val
2529
2530 fi
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 as_fn_set_status $ac_retval
2533
2534 } # ac_fn_c_compute_int
2535 cat >config.log <<_ACEOF
2536 This file contains any messages produced by compilers while
2537 running configure, to aid debugging if configure makes a mistake.
2538
2539 It was created by LibTIFF Software $as_me 4.7.1, which was
2540 generated by GNU Autoconf 2.69. Invocation command line was
2541
2542 $ $0 $@
2543
2544 _ACEOF
2545 exec 5>>config.log
2546 {
2547 cat <<_ASUNAME
2548 ## --------- ##
2549 ## Platform. ##
2550 ## --------- ##
2551
2552 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2553 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2554 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2555 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2556 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2557
2558 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2559 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2560
2561 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2562 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2563 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2564 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2565 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2566 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2567 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2568
2569 _ASUNAME
2570
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 $as_echo "PATH: $as_dir"
2577 done
2578 IFS=$as_save_IFS
2579
2580 } >&5
2581
2582 cat >&5 <<_ACEOF
2583
2584
2585 ## ----------- ##
2586 ## Core tests. ##
2587 ## ----------- ##
2588
2589 _ACEOF
2590
2591
2592 # Keep a trace of the command line.
2593 # Strip out --no-create and --no-recursion so they do not pile up.
2594 # Strip out --silent because we don't want to record it for future runs.
2595 # Also quote any args containing shell meta-characters.
2596 # Make two passes to allow for proper duplicate-argument suppression.
2597 ac_configure_args=
2598 ac_configure_args0=
2599 ac_configure_args1=
2600 ac_must_keep_next=false
2601 for ac_pass in 1 2
2602 do
2603 for ac_arg
2604 do
2605 case $ac_arg in
2606 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2608 | -silent | --silent | --silen | --sile | --sil)
2609 continue ;;
2610 *\'*)
2611 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2612 esac
2613 case $ac_pass in
2614 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2615 2)
2616 as_fn_append ac_configure_args1 " '$ac_arg'"
2617 if test $ac_must_keep_next = true; then
2618 ac_must_keep_next=false # Got value, back to normal.
2619 else
2620 case $ac_arg in
2621 *=* | --config-cache | -C | -disable-* | --disable-* \
2622 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2623 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2624 | -with-* | --with-* | -without-* | --without-* | --x)
2625 case "$ac_configure_args0 " in
2626 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2627 esac
2628 ;;
2629 -* ) ac_must_keep_next=true ;;
2630 esac
2631 fi
2632 as_fn_append ac_configure_args " '$ac_arg'"
2633 ;;
2634 esac
2635 done
2636 done
2637 { ac_configure_args0=; unset ac_configure_args0;}
2638 { ac_configure_args1=; unset ac_configure_args1;}
2639
2640 # When interrupted or exit'd, cleanup temporary files, and complete
2641 # config.log. We remove comments because anyway the quotes in there
2642 # would cause problems or look ugly.
2643 # WARNING: Use '\'' to represent an apostrophe within the trap.
2644 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2645 trap 'exit_status=$?
2646 # Save into config.log some information that might help in debugging.
2647 {
2648 echo
2649
2650 $as_echo "## ---------------- ##
2651 ## Cache variables. ##
2652 ## ---------------- ##"
2653 echo
2654 # The following way of writing the cache mishandles newlines in values,
2655 (
2656 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2657 eval ac_val=\$$ac_var
2658 case $ac_val in #(
2659 *${as_nl}*)
2660 case $ac_var in #(
2661 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2662 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2663 esac
2664 case $ac_var in #(
2665 _ | IFS | as_nl) ;; #(
2666 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2667 *) { eval $ac_var=; unset $ac_var;} ;;
2668 esac ;;
2669 esac
2670 done
2671 (set) 2>&1 |
2672 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2673 *${as_nl}ac_space=\ *)
2674 sed -n \
2675 "s/'\''/'\''\\\\'\'''\''/g;
2676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2677 ;; #(
2678 *)
2679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2680 ;;
2681 esac |
2682 sort
2683 )
2684 echo
2685
2686 $as_echo "## ----------------- ##
2687 ## Output variables. ##
2688 ## ----------------- ##"
2689 echo
2690 for ac_var in $ac_subst_vars
2691 do
2692 eval ac_val=\$$ac_var
2693 case $ac_val in
2694 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2695 esac
2696 $as_echo "$ac_var='\''$ac_val'\''"
2697 done | sort
2698 echo
2699
2700 if test -n "$ac_subst_files"; then
2701 $as_echo "## ------------------- ##
2702 ## File substitutions. ##
2703 ## ------------------- ##"
2704 echo
2705 for ac_var in $ac_subst_files
2706 do
2707 eval ac_val=\$$ac_var
2708 case $ac_val in
2709 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2710 esac
2711 $as_echo "$ac_var='\''$ac_val'\''"
2712 done | sort
2713 echo
2714 fi
2715
2716 if test -s confdefs.h; then
2717 $as_echo "## ----------- ##
2718 ## confdefs.h. ##
2719 ## ----------- ##"
2720 echo
2721 cat confdefs.h
2722 echo
2723 fi
2724 test "$ac_signal" != 0 &&
2725 $as_echo "$as_me: caught signal $ac_signal"
2726 $as_echo "$as_me: exit $exit_status"
2727 } >&5
2728 rm -f core *.core core.conftest.* &&
2729 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2730 exit $exit_status
2731 ' 0
2732 for ac_signal in 1 2 13 15; do
2733 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2734 done
2735 ac_signal=0
2736
2737 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2738 rm -f -r conftest* confdefs.h
2739
2740 $as_echo "/* confdefs.h */" > confdefs.h
2741
2742 # Predefined preprocessor variables.
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE_NAME "$PACKAGE_NAME"
2746 _ACEOF
2747
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2750 _ACEOF
2751
2752 cat >>confdefs.h <<_ACEOF
2753 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2754 _ACEOF
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE_STRING "$PACKAGE_STRING"
2758 _ACEOF
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2762 _ACEOF
2763
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE_URL "$PACKAGE_URL"
2766 _ACEOF
2767
2768
2769 # Let the site file select an alternate cache file if it wants to.
2770 # Prefer an explicitly selected file to automatically selected ones.
2771 ac_site_file1=NONE
2772 ac_site_file2=NONE
2773 if test -n "$CONFIG_SITE"; then
2774 # We do not want a PATH search for config.site.
2775 case $CONFIG_SITE in #((
2776 -*) ac_site_file1=./$CONFIG_SITE;;
2777 */*) ac_site_file1=$CONFIG_SITE;;
2778 *) ac_site_file1=./$CONFIG_SITE;;
2779 esac
2780 elif test "x$prefix" != xNONE; then
2781 ac_site_file1=$prefix/share/config.site
2782 ac_site_file2=$prefix/etc/config.site
2783 else
2784 ac_site_file1=$ac_default_prefix/share/config.site
2785 ac_site_file2=$ac_default_prefix/etc/config.site
2786 fi
2787 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2788 do
2789 test "x$ac_site_file" = xNONE && continue
2790 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2792 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2793 sed 's/^/| /' "$ac_site_file" >&5
2794 . "$ac_site_file" \
2795 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 as_fn_error $? "failed to load site script $ac_site_file
2798 See \`config.log' for more details" "$LINENO" 5; }
2799 fi
2800 done
2801
2802 if test -r "$cache_file"; then
2803 # Some versions of bash will fail to source /dev/null (special files
2804 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2805 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2807 $as_echo "$as_me: loading cache $cache_file" >&6;}
2808 case $cache_file in
2809 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2810 *) . "./$cache_file";;
2811 esac
2812 fi
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2815 $as_echo "$as_me: creating cache $cache_file" >&6;}
2816 >$cache_file
2817 fi
2818
2819 # Check that the precious variables saved in the cache have kept the same
2820 # value.
2821 ac_cache_corrupted=false
2822 for ac_var in $ac_precious_vars; do
2823 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2824 eval ac_new_set=\$ac_env_${ac_var}_set
2825 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2826 eval ac_new_val=\$ac_env_${ac_var}_value
2827 case $ac_old_set,$ac_new_set in
2828 set,)
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2830 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2831 ac_cache_corrupted=: ;;
2832 ,set)
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2834 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2835 ac_cache_corrupted=: ;;
2836 ,);;
2837 *)
2838 if test "x$ac_old_val" != "x$ac_new_val"; then
2839 # differences in whitespace do not lead to failure.
2840 ac_old_val_w=`echo x $ac_old_val`
2841 ac_new_val_w=`echo x $ac_new_val`
2842 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2844 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2845 ac_cache_corrupted=:
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2848 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2849 eval $ac_var=\$ac_old_val
2850 fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2852 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2854 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2855 fi;;
2856 esac
2857 # Pass precious variables to config.status.
2858 if test "$ac_new_set" = set; then
2859 case $ac_new_val in
2860 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2861 *) ac_arg=$ac_var=$ac_new_val ;;
2862 esac
2863 case " $ac_configure_args " in
2864 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2865 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2866 esac
2867 fi
2868 done
2869 if $ac_cache_corrupted; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2873 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2874 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2875 fi
2876 ## -------------------- ##
2877 ## Main body of script. ##
2878 ## -------------------- ##
2879
2880 ac_ext=c
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885
2886
2887 ac_aux_dir=
2888 for ac_dir in config "$srcdir"/config; do
2889 if test -f "$ac_dir/install-sh"; then
2890 ac_aux_dir=$ac_dir
2891 ac_install_sh="$ac_aux_dir/install-sh -c"
2892 break
2893 elif test -f "$ac_dir/install.sh"; then
2894 ac_aux_dir=$ac_dir
2895 ac_install_sh="$ac_aux_dir/install.sh -c"
2896 break
2897 elif test -f "$ac_dir/shtool"; then
2898 ac_aux_dir=$ac_dir
2899 ac_install_sh="$ac_aux_dir/shtool install -c"
2900 break
2901 fi
2902 done
2903 if test -z "$ac_aux_dir"; then
2904 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2905 fi
2906
2907 # These three variables are undocumented and unsupported,
2908 # and are intended to be withdrawn in a future Autoconf release.
2909 # They can cause serious problems if a builder's source tree is in a directory
2910 # whose full name contains unusual characters.
2911 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2912 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2913 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2914
2915
2916
2917 ac_ext=c
2918 ac_cpp='$CPP $CPPFLAGS'
2919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922
2923
2924 # Make sure we can run config.sub.
2925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2926 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2927
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2929 $as_echo_n "checking build system type... " >&6; }
2930 if ${ac_cv_build+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 ac_build_alias=$build_alias
2934 test "x$ac_build_alias" = x &&
2935 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2936 test "x$ac_build_alias" = x &&
2937 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2938 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2939 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2940
2941 fi
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2943 $as_echo "$ac_cv_build" >&6; }
2944 case $ac_cv_build in
2945 *-*-*) ;;
2946 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2947 esac
2948 build=$ac_cv_build
2949 ac_save_IFS=$IFS; IFS='-'
2950 set x $ac_cv_build
2951 shift
2952 build_cpu=$1
2953 build_vendor=$2
2954 shift; shift
2955 # Remember, the first character of IFS is used to create $*,
2956 # except with old shells:
2957 build_os=$*
2958 IFS=$ac_save_IFS
2959 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2960
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2963 $as_echo_n "checking host system type... " >&6; }
2964 if ${ac_cv_host+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test "x$host_alias" = x; then
2968 ac_cv_host=$ac_cv_build
2969 else
2970 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2971 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2972 fi
2973
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2976 $as_echo "$ac_cv_host" >&6; }
2977 case $ac_cv_host in
2978 *-*-*) ;;
2979 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2980 esac
2981 host=$ac_cv_host
2982 ac_save_IFS=$IFS; IFS='-'
2983 set x $ac_cv_host
2984 shift
2985 host_cpu=$1
2986 host_vendor=$2
2987 shift; shift
2988 # Remember, the first character of IFS is used to create $*,
2989 # except with old shells:
2990 host_os=$*
2991 IFS=$ac_save_IFS
2992 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2993
2994
2995
2996 am__api_version='1.16'
2997
2998 # Find a good install program. We prefer a C program (faster),
2999 # so one script is as good as another. But avoid the broken or
3000 # incompatible versions:
3001 # SysV /etc/install, /usr/sbin/install
3002 # SunOS /usr/etc/install
3003 # IRIX /sbin/install
3004 # AIX /bin/install
3005 # AmigaOS /C/install, which installs bootblocks on floppy discs
3006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009 # OS/2's system install, which has a completely different semantic
3010 # ./install, which can be erroneously created by make from ./install.sh.
3011 # Reject install programs that cannot install multiple files.
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3013 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3014 if test -z "$INSTALL"; then
3015 if ${ac_cv_path_install+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 # Account for people who put trailing slashes in PATH elements.
3024 case $as_dir/ in #((
3025 ./ | .// | /[cC]/* | \
3026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3027 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3028 /usr/ucb/* ) ;;
3029 *)
3030 # OSF1 and SCO ODT 3.0 have their own names for install.
3031 # Don't use installbsd from OSF since it installs stuff as root
3032 # by default.
3033 for ac_prog in ginstall scoinst install; do
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3036 if test $ac_prog = install &&
3037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3038 # AIX install. It has an incompatible calling convention.
3039 :
3040 elif test $ac_prog = install &&
3041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3042 # program-specific install script used by HP pwplus--don't use.
3043 :
3044 else
3045 rm -rf conftest.one conftest.two conftest.dir
3046 echo one > conftest.one
3047 echo two > conftest.two
3048 mkdir conftest.dir
3049 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3050 test -s conftest.one && test -s conftest.two &&
3051 test -s conftest.dir/conftest.one &&
3052 test -s conftest.dir/conftest.two
3053 then
3054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3055 break 3
3056 fi
3057 fi
3058 fi
3059 done
3060 done
3061 ;;
3062 esac
3063
3064 done
3065 IFS=$as_save_IFS
3066
3067 rm -rf conftest.one conftest.two conftest.dir
3068
3069 fi
3070 if test "${ac_cv_path_install+set}" = set; then
3071 INSTALL=$ac_cv_path_install
3072 else
3073 # As a last resort, use the slow shell script. Don't cache a
3074 # value for INSTALL within a source directory, because that will
3075 # break other packages using the cache if that directory is
3076 # removed, or if the value is a relative name.
3077 INSTALL=$ac_install_sh
3078 fi
3079 fi
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3081 $as_echo "$INSTALL" >&6; }
3082
3083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3084 # It thinks the first close brace ends the variable substitution.
3085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3086
3087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3088
3089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3090
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3092 $as_echo_n "checking whether build environment is sane... " >&6; }
3093 # Reject unsafe characters in $srcdir or the absolute working directory
3094 # name. Accept space and tab only in the latter.
3095 am_lf='
3096 '
3097 case `pwd` in
3098 *[\\\"\#\$\&\'\`$am_lf]*)
3099 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3100 esac
3101 case $srcdir in
3102 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3103 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3104 esac
3105
3106 # Do 'set' in a subshell so we don't clobber the current shell's
3107 # arguments. Must try -L first in case configure is actually a
3108 # symlink; some systems play weird games with the mod time of symlinks
3109 # (eg FreeBSD returns the mod time of the symlink's containing
3110 # directory).
3111 if (
3112 am_has_slept=no
3113 for am_try in 1 2; do
3114 echo "timestamp, slept: $am_has_slept" > conftest.file
3115 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3116 if test "$*" = "X"; then
3117 # -L didn't work.
3118 set X `ls -t "$srcdir/configure" conftest.file`
3119 fi
3120 if test "$*" != "X $srcdir/configure conftest.file" \
3121 && test "$*" != "X conftest.file $srcdir/configure"; then
3122
3123 # If neither matched, then we have a broken ls. This can happen
3124 # if, for instance, CONFIG_SHELL is bash and it inherits a
3125 # broken ls alias from the environment. This has actually
3126 # happened. Such a system could not be considered "sane".
3127 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3128 alias in your environment" "$LINENO" 5
3129 fi
3130 if test "$2" = conftest.file || test $am_try -eq 2; then
3131 break
3132 fi
3133 # Just in case.
3134 sleep 1
3135 am_has_slept=yes
3136 done
3137 test "$2" = conftest.file
3138 )
3139 then
3140 # Ok.
3141 :
3142 else
3143 as_fn_error $? "newly created file is older than distributed files!
3144 Check your system clock" "$LINENO" 5
3145 fi
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3148 # If we didn't sleep, we still need to ensure time stamps of config.status and
3149 # generated files are strictly newer.
3150 am_sleep_pid=
3151 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3152 ( sleep 1 ) &
3153 am_sleep_pid=$!
3154 fi
3155
3156 rm -f conftest.file
3157
3158 test "$program_prefix" != NONE &&
3159 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3160 # Use a double $ so make ignores it.
3161 test "$program_suffix" != NONE &&
3162 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3163 # Double any \ or $.
3164 # By default was `s,x,x', remove it if useless.
3165 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3166 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3167
3168 # Expand $ac_aux_dir to an absolute path.
3169 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3170
3171 if test x"${MISSING+set}" != xset; then
3172 case $am_aux_dir in
3173 *\ * | *\ *)
3174 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3175 *)
3176 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3177 esac
3178 fi
3179 # Use eval to expand $SHELL
3180 if eval "$MISSING --is-lightweight"; then
3181 am_missing_run="$MISSING "
3182 else
3183 am_missing_run=
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3185 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3186 fi
3187
3188 if test x"${install_sh+set}" != xset; then
3189 case $am_aux_dir in
3190 *\ * | *\ *)
3191 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3192 *)
3193 install_sh="\${SHELL} $am_aux_dir/install-sh"
3194 esac
3195 fi
3196
3197 # Installed binaries are usually stripped using 'strip' when the user
3198 # run "make install-strip". However 'strip' might not be the right
3199 # tool to use in cross-compilation environments, therefore Automake
3200 # will honor the 'STRIP' environment variable to overrule this program.
3201 if test "$cross_compiling" != no; then
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}strip; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_STRIP+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$STRIP"; then
3211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 STRIP=$ac_cv_prog_STRIP
3231 if test -n "$STRIP"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3233 $as_echo "$STRIP" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240 fi
3241 if test -z "$ac_cv_prog_STRIP"; then
3242 ac_ct_STRIP=$STRIP
3243 # Extract the first word of "strip", so it can be a program name with args.
3244 set dummy strip; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$ac_ct_STRIP"; then
3251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_STRIP="strip"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3271 if test -n "$ac_ct_STRIP"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3273 $as_echo "$ac_ct_STRIP" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279 if test "x$ac_ct_STRIP" = x; then
3280 STRIP=":"
3281 else
3282 case $cross_compiling:$ac_tool_warned in
3283 yes:)
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned=yes ;;
3287 esac
3288 STRIP=$ac_ct_STRIP
3289 fi
3290 else
3291 STRIP="$ac_cv_prog_STRIP"
3292 fi
3293
3294 fi
3295 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3298 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3299 if test -z "$MKDIR_P"; then
3300 if ${ac_cv_path_mkdir+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3305 do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_prog in mkdir gmkdir; do
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3311 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3312 'mkdir (GNU coreutils) '* | \
3313 'mkdir (coreutils) '* | \
3314 'mkdir (fileutils) '4.1*)
3315 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3316 break 3;;
3317 esac
3318 done
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324
3325 test -d ./--version && rmdir ./--version
3326 if test "${ac_cv_path_mkdir+set}" = set; then
3327 MKDIR_P="$ac_cv_path_mkdir -p"
3328 else
3329 # As a last resort, use the slow shell script. Don't cache a
3330 # value for MKDIR_P within a source directory, because that will
3331 # break other packages using the cache if that directory is
3332 # removed, or if the value is a relative name.
3333 MKDIR_P="$ac_install_sh -d"
3334 fi
3335 fi
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3337 $as_echo "$MKDIR_P" >&6; }
3338
3339 for ac_prog in gawk mawk nawk awk
3340 do
3341 # Extract the first word of "$ac_prog", so it can be a program name with args.
3342 set dummy $ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_AWK+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 if test -n "$AWK"; then
3349 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_AWK="$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 AWK=$ac_cv_prog_AWK
3369 if test -n "$AWK"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3371 $as_echo "$AWK" >&6; }
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378 test -n "$AWK" && break
3379 done
3380
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3382 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3383 set x ${MAKE-make}
3384 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3385 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 cat >conftest.make <<\_ACEOF
3389 SHELL = /bin/sh
3390 all:
3391 @echo '@@@%%%=$(MAKE)=@@@%%%'
3392 _ACEOF
3393 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3394 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3395 *@@@%%%=?*=@@@%%%*)
3396 eval ac_cv_prog_make_${ac_make}_set=yes;;
3397 *)
3398 eval ac_cv_prog_make_${ac_make}_set=no;;
3399 esac
3400 rm -f conftest.make
3401 fi
3402 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3404 $as_echo "yes" >&6; }
3405 SET_MAKE=
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 SET_MAKE="MAKE=${MAKE-make}"
3410 fi
3411
3412 rm -rf .tst 2>/dev/null
3413 mkdir .tst 2>/dev/null
3414 if test -d .tst; then
3415 am__leading_dot=.
3416 else
3417 am__leading_dot=_
3418 fi
3419 rmdir .tst 2>/dev/null
3420
3421 # Check whether --enable-silent-rules was given.
3422 if test "${enable_silent_rules+set}" = set; then :
3423 enableval=$enable_silent_rules;
3424 fi
3425
3426 case $enable_silent_rules in # (((
3427 yes) AM_DEFAULT_VERBOSITY=0;;
3428 no) AM_DEFAULT_VERBOSITY=1;;
3429 *) AM_DEFAULT_VERBOSITY=1;;
3430 esac
3431 am_make=${MAKE-make}
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3433 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3434 if ${am_cv_make_support_nested_variables+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 if $as_echo 'TRUE=$(BAR$(V))
3438 BAR0=false
3439 BAR1=true
3440 V=1
3441 am__doit:
3442 @$(TRUE)
3443 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3444 am_cv_make_support_nested_variables=yes
3445 else
3446 am_cv_make_support_nested_variables=no
3447 fi
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3450 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3451 if test $am_cv_make_support_nested_variables = yes; then
3452 AM_V='$(V)'
3453 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3454 else
3455 AM_V=$AM_DEFAULT_VERBOSITY
3456 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3457 fi
3458 AM_BACKSLASH='\'
3459
3460 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3461 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3462 # is not polluted with repeated "-I."
3463 am__isrc=' -I$(srcdir)'
3464 # test to see if srcdir already configured
3465 if test -f $srcdir/config.status; then
3466 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3467 fi
3468 fi
3469
3470 # test whether we have cygpath
3471 if test -z "$CYGPATH_W"; then
3472 if (cygpath --version) >/dev/null 2>/dev/null; then
3473 CYGPATH_W='cygpath -w'
3474 else
3475 CYGPATH_W=echo
3476 fi
3477 fi
3478
3479
3480 # Define the identity of the package.
3481 PACKAGE='tiff'
3482 VERSION='4.7.1'
3483
3484
3485 cat >>confdefs.h <<_ACEOF
3486 #define PACKAGE "$PACKAGE"
3487 _ACEOF
3488
3489
3490 cat >>confdefs.h <<_ACEOF
3491 #define VERSION "$VERSION"
3492 _ACEOF
3493
3494 # Some tools Automake needs.
3495
3496 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3497
3498
3499 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3500
3501
3502 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3503
3504
3505 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3506
3507
3508 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3509
3510 # For better backward compatibility. To be removed once Automake 1.9.x
3511 # dies out for good. For more background, see:
3512 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3513 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3514 mkdir_p='$(MKDIR_P)'
3515
3516 # We need awk for the "check" target (and possibly the TAP driver). The
3517 # system "awk" is bad on some platforms.
3518 # Always define AMTAR for backward compatibility. Yes, it's still used
3519 # in the wild :-( We should find a proper way to deprecate it ...
3520 AMTAR='$${TAR-tar}'
3521
3522
3523 # We'll loop over all known methods to create a tar archive until one works.
3524 _am_tools='gnutar plaintar pax cpio none'
3525
3526 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3527 # There is notably a 21 bits limit for the UID and the GID. In fact,
3528 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3529 # and bug#13588).
3530 am_max_uid=2097151 # 2^21 - 1
3531 am_max_gid=$am_max_uid
3532 # The $UID and $GID variables are not portable, so we need to resort
3533 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3534 # below are definitely unexpected, so allow the users to see them
3535 # (that is, avoid stderr redirection).
3536 am_uid=`id -u || echo unknown`
3537 am_gid=`id -g || echo unknown`
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3539 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3540 if test $am_uid -le $am_max_uid; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3542 $as_echo "yes" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 _am_tools=none
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3549 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3550 if test $am_gid -le $am_max_gid; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552 $as_echo "yes" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 _am_tools=none
3557 fi
3558
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3560 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3561
3562 # Go ahead even if we have the value already cached. We do so because we
3563 # need to set the values for the 'am__tar' and 'am__untar' variables.
3564 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3565
3566 for _am_tool in $_am_tools; do
3567 case $_am_tool in
3568 gnutar)
3569 for _am_tar in tar gnutar gtar; do
3570 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3571 ($_am_tar --version) >&5 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } && break
3575 done
3576 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3577 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3578 am__untar="$_am_tar -xf -"
3579 ;;
3580 plaintar)
3581 # Must skip GNU tar: if it does not support --format= it doesn't create
3582 # ustar tarball either.
3583 (tar --version) >/dev/null 2>&1 && continue
3584 am__tar='tar chf - "$$tardir"'
3585 am__tar_='tar chf - "$tardir"'
3586 am__untar='tar xf -'
3587 ;;
3588 pax)
3589 am__tar='pax -L -x ustar -w "$$tardir"'
3590 am__tar_='pax -L -x ustar -w "$tardir"'
3591 am__untar='pax -r'
3592 ;;
3593 cpio)
3594 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3595 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3596 am__untar='cpio -i -H ustar -d'
3597 ;;
3598 none)
3599 am__tar=false
3600 am__tar_=false
3601 am__untar=false
3602 ;;
3603 esac
3604
3605 # If the value was cached, stop now. We just wanted to have am__tar
3606 # and am__untar set.
3607 test -n "${am_cv_prog_tar_ustar}" && break
3608
3609 # tar/untar a dummy directory, and stop if the command works.
3610 rm -rf conftest.dir
3611 mkdir conftest.dir
3612 echo GrepMe > conftest.dir/file
3613 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3614 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }
3618 rm -rf conftest.dir
3619 if test -s conftest.tar; then
3620 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3621 ($am__untar <conftest.tar) >&5 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }
3625 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3626 (cat conftest.dir/file) >&5 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }
3630 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3631 fi
3632 done
3633 rm -rf conftest.dir
3634
3635 if ${am_cv_prog_tar_ustar+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 am_cv_prog_tar_ustar=$_am_tool
3639 fi
3640
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3642 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3643
3644
3645
3646
3647
3648
3649 # POSIX will say in a future version that running "rm -f" with no argument
3650 # is OK; and we want to be able to make that assumption in our Makefile
3651 # recipes. So use an aggressive probe to check that the usage we want is
3652 # actually supported "in the wild" to an acceptable degree.
3653 # See automake bug#10828.
3654 # To make any issue more visible, cause the running configure to be aborted
3655 # by default if the 'rm' program in use doesn't match our expectations; the
3656 # user can still override this though.
3657 if rm -f && rm -fr && rm -rf; then : OK; else
3658 cat >&2 <<'END'
3659 Oops!
3660
3661 Your 'rm' program seems unable to run without file operands specified
3662 on the command line, even when the '-f' option is present. This is contrary
3663 to the behaviour of most rm programs out there, and not conforming with
3664 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3665
3666 Please tell [email protected] about your system, including the value
3667 of your $PATH and any error possibly output before this message. This
3668 can help us improve future automake versions.
3669
3670 END
3671 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3672 echo 'Configuration will proceed anyway, since you have set the' >&2
3673 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3674 echo >&2
3675 else
3676 cat >&2 <<'END'
3677 Aborting the configuration process, to ensure you take notice of the issue.
3678
3679 You can download and install GNU coreutils to get an 'rm' implementation
3680 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3681
3682 If you want to complete the configuration process using your problematic
3683 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3684 to "yes", and re-run configure.
3685
3686 END
3687 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3688 fi
3689 fi
3690
3691
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3693 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3694 # Check whether --enable-maintainer-mode was given.
3695 if test "${enable_maintainer_mode+set}" = set; then :
3696 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3697 else
3698 USE_MAINTAINER_MODE=no
3699 fi
3700
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3702 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3703 if test $USE_MAINTAINER_MODE = yes; then
3704 MAINTAINER_MODE_TRUE=
3705 MAINTAINER_MODE_FALSE='#'
3706 else
3707 MAINTAINER_MODE_TRUE='#'
3708 MAINTAINER_MODE_FALSE=
3709 fi
3710
3711 MAINT=$MAINTAINER_MODE_TRUE
3712
3713
3714
3715 LIBTIFF_MAJOR_VERSION=4
3716 LIBTIFF_MINOR_VERSION=7
3717 LIBTIFF_MICRO_VERSION=1
3718 LIBTIFF_ALPHA_VERSION=
3719 LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3720 LIBTIFF_RELEASE_DATE=$(cat ${srcdir}/RELEASE-DATE)
3721
3722
3723 LIBTIFF_CURRENT=8
3724 LIBTIFF_REVISION=0
3725 LIBTIFF_AGE=2
3726 LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3727
3728 # This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3729 # in OpenBSD uses some special semantics for shared libraries. Their soname
3730 # contains only two numbers, major and minor.
3731 # See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3732 #case "$host_os" in
3733 # openbsd* | mirbsd*)
3734 # LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3735 # ;;
3736 # *)
3737 # LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3738 # ;;
3739 #esac
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if ${ac_cv_prog_CC+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789 fi
3790
3791
3792 fi
3793 if test -z "$ac_cv_prog_CC"; then
3794 ac_ct_CC=$CC
3795 # Extract the first word of "gcc", so it can be a program name with args.
3796 set dummy gcc; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_CC="gcc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816 done
3817 done
3818 IFS=$as_save_IFS
3819
3820 fi
3821 fi
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830
3831 if test "x$ac_ct_CC" = x; then
3832 CC=""
3833 else
3834 case $cross_compiling:$ac_tool_warned in
3835 yes:)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838 ac_tool_warned=yes ;;
3839 esac
3840 CC=$ac_ct_CC
3841 fi
3842 else
3843 CC="$ac_cv_prog_CC"
3844 fi
3845
3846 if test -z "$CC"; then
3847 if test -n "$ac_tool_prefix"; then
3848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3849 set dummy ${ac_tool_prefix}cc; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if ${ac_cv_prog_CC+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_CC="${ac_tool_prefix}cc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3868 fi
3869 done
3870 done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884
3885 fi
3886 fi
3887 if test -z "$CC"; then
3888 # Extract the first word of "cc", so it can be a program name with args.
3889 set dummy cc; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if ${ac_cv_prog_CC+:} false; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 else
3898 ac_prog_rejected=no
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3907 ac_prog_rejected=yes
3908 continue
3909 fi
3910 ac_cv_prog_CC="cc"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914 done
3915 done
3916 IFS=$as_save_IFS
3917
3918 if test $ac_prog_rejected = yes; then
3919 # We found a bogon in the path, so make sure we never use it.
3920 set dummy $ac_cv_prog_CC
3921 shift
3922 if test $# != 0; then
3923 # We chose a different compiler from the bogus one.
3924 # However, it has the same basename, so the bogon will be chosen
3925 # first if we set CC to just the basename; use the full file name.
3926 shift
3927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3928 fi
3929 fi
3930 fi
3931 fi
3932 CC=$ac_cv_prog_CC
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941
3942 fi
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 for ac_prog in cl.exe
3946 do
3947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if ${ac_cv_prog_CC+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3967 fi
3968 done
3969 done
3970 IFS=$as_save_IFS
3971
3972 fi
3973 fi
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3981 fi
3982
3983
3984 test -n "$CC" && break
3985 done
3986 fi
3987 if test -z "$CC"; then
3988 ac_ct_CC=$CC
3989 for ac_prog in cl.exe
3990 do
3991 # Extract the first word of "$ac_prog", so it can be a program name with args.
3992 set dummy $ac_prog; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -n "$ac_ct_CC"; then
3999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_prog_ac_ct_CC="$ac_prog"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4011 fi
4012 done
4013 done
4014 IFS=$as_save_IFS
4015
4016 fi
4017 fi
4018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4019 if test -n "$ac_ct_CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4021 $as_echo "$ac_ct_CC" >&6; }
4022 else
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4025 fi
4026
4027
4028 test -n "$ac_ct_CC" && break
4029 done
4030
4031 if test "x$ac_ct_CC" = x; then
4032 CC=""
4033 else
4034 case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040 CC=$ac_ct_CC
4041 fi
4042 fi
4043
4044 fi
4045
4046
4047 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $? "no acceptable C compiler found in \$PATH
4050 See \`config.log' for more details" "$LINENO" 5; }
4051
4052 # Provide some information about the compiler.
4053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4054 set X $ac_compile
4055 ac_compiler=$2
4056 for ac_option in --version -v -V -qversion; do
4057 { { ac_try="$ac_compiler $ac_option >&5"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4065 ac_status=$?
4066 if test -s conftest.err; then
4067 sed '10a\
4068 ... rest of stderr output deleted ...
4069 10q' conftest.err >conftest.er1
4070 cat conftest.er1 >&5
4071 fi
4072 rm -f conftest.er1 conftest.err
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4075 done
4076
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079
4080 int
4081 main ()
4082 {
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 ac_clean_files_save=$ac_clean_files
4089 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4090 # Try to create an executable without -o first, disregard a.out.
4091 # It will help us diagnose broken compilers, and finding out an intuition
4092 # of exeext.
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4094 $as_echo_n "checking whether the C compiler works... " >&6; }
4095 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4096
4097 # The possible output files:
4098 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4099
4100 ac_rmfiles=
4101 for ac_file in $ac_files
4102 do
4103 case $ac_file in
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4106 esac
4107 done
4108 rm -f $ac_rmfiles
4109
4110 if { { ac_try="$ac_link_default"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_link_default") 2>&5
4118 ac_status=$?
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4124 # so that the user can short-circuit this test for compilers unknown to
4125 # Autoconf.
4126 for ac_file in $ac_files ''
4127 do
4128 test -f "$ac_file" || continue
4129 case $ac_file in
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4131 ;;
4132 [ab].out )
4133 # We found the default executable, but exeext='' is most
4134 # certainly right.
4135 break;;
4136 *.* )
4137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4138 then :; else
4139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 fi
4141 # We set ac_cv_exeext here because the later test for it is not
4142 # safe: cross compilers may not add the suffix if given an `-o'
4143 # argument, so we may need to know it at that point already.
4144 # Even if this section looks crufty: it has the advantage of
4145 # actually working.
4146 break;;
4147 * )
4148 break;;
4149 esac
4150 done
4151 test "$ac_cv_exeext" = no && ac_cv_exeext=
4152
4153 else
4154 ac_file=''
4155 fi
4156 if test -z "$ac_file"; then :
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error 77 "C compiler cannot create executables
4165 See \`config.log' for more details" "$LINENO" 5; }
4166 else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168 $as_echo "yes" >&6; }
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4171 $as_echo_n "checking for C compiler default output file name... " >&6; }
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4173 $as_echo "$ac_file" >&6; }
4174 ac_exeext=$ac_cv_exeext
4175
4176 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4177 ac_clean_files=$ac_clean_files_save
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4179 $as_echo_n "checking for suffix of executables... " >&6; }
4180 if { { ac_try="$ac_link"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187 (eval "$ac_link") 2>&5
4188 ac_status=$?
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }; then :
4191 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4192 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4193 # work properly (i.e., refer to `conftest.exe'), while it won't with
4194 # `rm'.
4195 for ac_file in conftest.exe conftest conftest.*; do
4196 test -f "$ac_file" || continue
4197 case $ac_file in
4198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4200 break;;
4201 * ) break;;
4202 esac
4203 done
4204 else
4205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4208 See \`config.log' for more details" "$LINENO" 5; }
4209 fi
4210 rm -f conftest conftest$ac_cv_exeext
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4212 $as_echo "$ac_cv_exeext" >&6; }
4213
4214 rm -f conftest.$ac_ext
4215 EXEEXT=$ac_cv_exeext
4216 ac_exeext=$EXEEXT
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <stdio.h>
4220 int
4221 main ()
4222 {
4223 FILE *f = fopen ("conftest.out", "w");
4224 return ferror (f) || fclose (f) != 0;
4225
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 ac_clean_files="$ac_clean_files conftest.out"
4231 # Check that the compiler produces executables we can run. If not, either
4232 # the compiler is broken, or we cross compile.
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4234 $as_echo_n "checking whether we are cross compiling... " >&6; }
4235 if test "$cross_compiling" != yes; then
4236 { { ac_try="$ac_link"
4237 case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_link") 2>&5
4244 ac_status=$?
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; }
4247 if { ac_try='./conftest$ac_cv_exeext'
4248 { { case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_try") 2>&5
4255 ac_status=$?
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; }; then
4258 cross_compiling=no
4259 else
4260 if test "$cross_compiling" = maybe; then
4261 cross_compiling=yes
4262 else
4263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4265 as_fn_error $? "cannot run C compiled programs.
4266 If you meant to cross compile, use \`--host'.
4267 See \`config.log' for more details" "$LINENO" 5; }
4268 fi
4269 fi
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4272 $as_echo "$cross_compiling" >&6; }
4273
4274 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4275 ac_clean_files=$ac_clean_files_save
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4277 $as_echo_n "checking for suffix of object files... " >&6; }
4278 if ${ac_cv_objext+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283
4284 int
4285 main ()
4286 {
4287
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.o conftest.obj
4293 if { { ac_try="$ac_compile"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_compile") 2>&5
4301 ac_status=$?
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
4304 for ac_file in conftest.o conftest.obj conftest.*; do
4305 test -f "$ac_file" || continue;
4306 case $ac_file in
4307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4308 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4309 break;;
4310 esac
4311 done
4312 else
4313 $as_echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318 as_fn_error $? "cannot compute suffix of object files: cannot compile
4319 See \`config.log' for more details" "$LINENO" 5; }
4320 fi
4321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4324 $as_echo "$ac_cv_objext" >&6; }
4325 OBJEXT=$ac_cv_objext
4326 ac_objext=$OBJEXT
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4328 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4329 if ${ac_cv_c_compiler_gnu+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334
4335 int
4336 main ()
4337 {
4338 #ifndef __GNUC__
4339 choke me
4340 #endif
4341
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347 ac_compiler_gnu=yes
4348 else
4349 ac_compiler_gnu=no
4350 fi
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4353
4354 fi
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4356 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4357 if test $ac_compiler_gnu = yes; then
4358 GCC=yes
4359 else
4360 GCC=
4361 fi
4362 ac_test_CFLAGS=${CFLAGS+set}
4363 ac_save_CFLAGS=$CFLAGS
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4365 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4366 if ${ac_cv_prog_cc_g+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 ac_save_c_werror_flag=$ac_c_werror_flag
4370 ac_c_werror_flag=yes
4371 ac_cv_prog_cc_g=no
4372 CFLAGS="-g"
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375
4376 int
4377 main ()
4378 {
4379
4380 ;
4381 return 0;
4382 }
4383 _ACEOF
4384 if ac_fn_c_try_compile "$LINENO"; then :
4385 ac_cv_prog_cc_g=yes
4386 else
4387 CFLAGS=""
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390
4391 int
4392 main ()
4393 {
4394
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 if ac_fn_c_try_compile "$LINENO"; then :
4400
4401 else
4402 ac_c_werror_flag=$ac_save_c_werror_flag
4403 CFLAGS="-g"
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406
4407 int
4408 main ()
4409 {
4410
4411 ;
4412 return 0;
4413 }
4414 _ACEOF
4415 if ac_fn_c_try_compile "$LINENO"; then :
4416 ac_cv_prog_cc_g=yes
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 ac_c_werror_flag=$ac_save_c_werror_flag
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4426 $as_echo "$ac_cv_prog_cc_g" >&6; }
4427 if test "$ac_test_CFLAGS" = set; then
4428 CFLAGS=$ac_save_CFLAGS
4429 elif test $ac_cv_prog_cc_g = yes; then
4430 if test "$GCC" = yes; then
4431 CFLAGS="-g -O2"
4432 else
4433 CFLAGS="-g"
4434 fi
4435 else
4436 if test "$GCC" = yes; then
4437 CFLAGS="-O2"
4438 else
4439 CFLAGS=
4440 fi
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4443 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4444 if ${ac_cv_prog_cc_c89+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 ac_cv_prog_cc_c89=no
4448 ac_save_CC=$CC
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #include <stdarg.h>
4452 #include <stdio.h>
4453 struct stat;
4454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4455 struct buf { int x; };
4456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4457 static char *e (p, i)
4458 char **p;
4459 int i;
4460 {
4461 return p[i];
4462 }
4463 static char *f (char * (*g) (char **, int), char **p, ...)
4464 {
4465 char *s;
4466 va_list v;
4467 va_start (v,p);
4468 s = g (p, va_arg (v,int));
4469 va_end (v);
4470 return s;
4471 }
4472
4473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4474 function prototypes and stuff, but not '\xHH' hex character constants.
4475 These don't provoke an error unfortunately, instead are silently treated
4476 as 'x'. The following induces an error, until -std is added to get
4477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4478 array size at least. It's necessary to write '\x00'==0 to get something
4479 that's true only with -std. */
4480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4481
4482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4483 inside strings and character constants. */
4484 #define FOO(x) 'x'
4485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4486
4487 int test (int i, double x);
4488 struct s1 {int (*f) (int a);};
4489 struct s2 {int (*f) (double a);};
4490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4491 int argc;
4492 char **argv;
4493 int
4494 main ()
4495 {
4496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4503 do
4504 CC="$ac_save_CC $ac_arg"
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506 ac_cv_prog_cc_c89=$ac_arg
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext
4509 test "x$ac_cv_prog_cc_c89" != "xno" && break
4510 done
4511 rm -f conftest.$ac_ext
4512 CC=$ac_save_CC
4513
4514 fi
4515 # AC_CACHE_VAL
4516 case "x$ac_cv_prog_cc_c89" in
4517 x)
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519 $as_echo "none needed" >&6; } ;;
4520 xno)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4522 $as_echo "unsupported" >&6; } ;;
4523 *)
4524 CC="$CC $ac_cv_prog_cc_c89"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4527 esac
4528 if test "x$ac_cv_prog_cc_c89" != xno; then :
4529
4530 fi
4531
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4544 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4545 if ${am_cv_prog_cc_c_o+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550
4551 int
4552 main ()
4553 {
4554
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 # Make sure it works both with $CC and with simple cc.
4560 # Following AC_PROG_CC_C_O, we do the test twice because some
4561 # compilers refuse to overwrite an existing .o file with -o,
4562 # though they will create one.
4563 am_cv_prog_cc_c_o=yes
4564 for am_i in 1 2; do
4565 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4566 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } \
4570 && test -f conftest2.$ac_objext; then
4571 : OK
4572 else
4573 am_cv_prog_cc_c_o=no
4574 break
4575 fi
4576 done
4577 rm -f core conftest*
4578 unset am_i
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4581 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4582 if test "$am_cv_prog_cc_c_o" != yes; then
4583 # Losing compiler, so override with the script.
4584 # FIXME: It is wrong to rewrite CC.
4585 # But if we don't then we get into trouble of one sort or another.
4586 # A longer-term fix would be to have automake use am__CC in this case,
4587 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4588 CC="$am_aux_dir/compile $CC"
4589 fi
4590 ac_ext=c
4591 ac_cpp='$CPP $CPPFLAGS'
4592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4595
4596 DEPDIR="${am__leading_dot}deps"
4597
4598 ac_config_commands="$ac_config_commands depfiles"
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4601 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4602 cat > confinc.mk << 'END'
4603 am__doit:
4604 @echo this is the am__doit target >confinc.out
4605 .PHONY: am__doit
4606 END
4607 am__include="#"
4608 am__quote=
4609 # BSD make does it like this.
4610 echo '.include "confinc.mk" # ignored' > confmf.BSD
4611 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4612 echo 'include confinc.mk # ignored' > confmf.GNU
4613 _am_result=no
4614 for s in GNU BSD; do
4615 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4616 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }
4620 case $?:`cat confinc.out 2>/dev/null` in #(
4621 '0:this is the am__doit target') :
4622 case $s in #(
4623 BSD) :
4624 am__include='.include' am__quote='"' ;; #(
4625 *) :
4626 am__include='include' am__quote='' ;;
4627 esac ;; #(
4628 *) :
4629 ;;
4630 esac
4631 if test "$am__include" != "#"; then
4632 _am_result="yes ($s style)"
4633 break
4634 fi
4635 done
4636 rm -f confinc.* confmf.*
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4638 $as_echo "${_am_result}" >&6; }
4639
4640 # Check whether --enable-dependency-tracking was given.
4641 if test "${enable_dependency_tracking+set}" = set; then :
4642 enableval=$enable_dependency_tracking;
4643 fi
4644
4645 if test "x$enable_dependency_tracking" != xno; then
4646 am_depcomp="$ac_aux_dir/depcomp"
4647 AMDEPBACKSLASH='\'
4648 am__nodep='_no'
4649 fi
4650 if test "x$enable_dependency_tracking" != xno; then
4651 AMDEP_TRUE=
4652 AMDEP_FALSE='#'
4653 else
4654 AMDEP_TRUE='#'
4655 AMDEP_FALSE=
4656 fi
4657
4658
4659
4660 depcc="$CC" am_compiler_list=
4661
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4663 $as_echo_n "checking dependency style of $depcc... " >&6; }
4664 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4668 # We make a subdir and do the tests there. Otherwise we can end up
4669 # making bogus files that we don't know about and never remove. For
4670 # instance it was reported that on HP-UX the gcc test will end up
4671 # making a dummy file named 'D' -- because '-MD' means "put the output
4672 # in D".
4673 rm -rf conftest.dir
4674 mkdir conftest.dir
4675 # Copy depcomp to subdir because otherwise we won't find it if we're
4676 # using a relative directory.
4677 cp "$am_depcomp" conftest.dir
4678 cd conftest.dir
4679 # We will build objects and dependencies in a subdirectory because
4680 # it helps to detect inapplicable dependency modes. For instance
4681 # both Tru64's cc and ICC support -MD to output dependencies as a
4682 # side effect of compilation, but ICC will put the dependencies in
4683 # the current directory while Tru64 will put them in the object
4684 # directory.
4685 mkdir sub
4686
4687 am_cv_CC_dependencies_compiler_type=none
4688 if test "$am_compiler_list" = ""; then
4689 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4690 fi
4691 am__universal=false
4692 case " $depcc " in #(
4693 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4694 esac
4695
4696 for depmode in $am_compiler_list; do
4697 # Setup a source with many dependencies, because some compilers
4698 # like to wrap large dependency lists on column 80 (with \), and
4699 # we should not choose a depcomp mode which is confused by this.
4700 #
4701 # We need to recreate these files for each test, as the compiler may
4702 # overwrite some of them when testing with obscure command lines.
4703 # This happens at least with the AIX C compiler.
4704 : > sub/conftest.c
4705 for i in 1 2 3 4 5 6; do
4706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4707 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4708 # Solaris 10 /bin/sh.
4709 echo '/* dummy */' > sub/conftst$i.h
4710 done
4711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4712
4713 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4714 # mode. It turns out that the SunPro C++ compiler does not properly
4715 # handle '-M -o', and we need to detect this. Also, some Intel
4716 # versions had trouble with output in subdirs.
4717 am__obj=sub/conftest.${OBJEXT-o}
4718 am__minus_obj="-o $am__obj"
4719 case $depmode in
4720 gcc)
4721 # This depmode causes a compiler race in universal mode.
4722 test "$am__universal" = false || continue
4723 ;;
4724 nosideeffect)
4725 # After this tag, mechanisms are not by side-effect, so they'll
4726 # only be used when explicitly requested.
4727 if test "x$enable_dependency_tracking" = xyes; then
4728 continue
4729 else
4730 break
4731 fi
4732 ;;
4733 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4734 # This compiler won't grok '-c -o', but also, the minuso test has
4735 # not run yet. These depmodes are late enough in the game, and
4736 # so weak that their functioning should not be impacted.
4737 am__obj=conftest.${OBJEXT-o}
4738 am__minus_obj=
4739 ;;
4740 none) break ;;
4741 esac
4742 if depmode=$depmode \
4743 source=sub/conftest.c object=$am__obj \
4744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4745 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4746 >/dev/null 2>conftest.err &&
4747 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4748 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4749 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4750 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4751 # icc doesn't choke on unknown options, it will just issue warnings
4752 # or remarks (even with -Werror). So we grep stderr for any message
4753 # that says an option was ignored or not supported.
4754 # When given -MP, icc 7.0 and 7.1 complain thusly:
4755 # icc: Command line warning: ignoring option '-M'; no argument required
4756 # The diagnosis changed in icc 8.0:
4757 # icc: Command line remark: option '-MP' not supported
4758 if (grep 'ignoring option' conftest.err ||
4759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4760 am_cv_CC_dependencies_compiler_type=$depmode
4761 break
4762 fi
4763 fi
4764 done
4765
4766 cd ..
4767 rm -rf conftest.dir
4768 else
4769 am_cv_CC_dependencies_compiler_type=none
4770 fi
4771
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4774 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4775 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4776
4777 if
4778 test "x$enable_dependency_tracking" != xno \
4779 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4780 am__fastdepCC_TRUE=
4781 am__fastdepCC_FALSE='#'
4782 else
4783 am__fastdepCC_TRUE='#'
4784 am__fastdepCC_FALSE=
4785 fi
4786
4787
4788 # Necessary if objects are placed in subdirectories.
4789
4790
4791 ansi=
4792 if test -z "$ansi"; then
4793 msg="for C compiler warning flags"
4794 else
4795 msg="for C compiler warning and ANSI conformance flags"
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4798 $as_echo_n "checking $msg... " >&6; }
4799 if ${vl_cv_prog_cc_warnings+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802
4803 if test -n "$CC"; then
4804 cat > conftest.c <<EOF
4805 int main(int argc, char **argv) { return 0; }
4806 EOF
4807
4808 if test "$GCC" = "yes"; then
4809 if test -z "$ansi"; then
4810 vl_cv_prog_cc_warnings="-Wall -W"
4811 else
4812 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4813 fi
4814
4815
4816 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4817 $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4818 test -f conftest.o; then
4819 if test -z "$ansi"; then
4820 vl_cv_prog_cc_warnings="-v"
4821 else
4822 vl_cv_prog_cc_warnings="-v -Xc"
4823 fi
4824
4825 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4826 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4827 test -f conftest.o; then
4828 if test -z "$ansi"; then
4829 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4830 else
4831 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4832 fi
4833
4834 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4835 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4836 test -f conftest.o; then
4837 if test -z "$ansi"; then
4838 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4839 else
4840 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4841 fi
4842
4843 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4844 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4845 test -f conftest.o; then
4846 if test -z "$ansi"; then
4847 vl_cv_prog_cc_warnings="-fullwarn"
4848 else
4849 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4850 fi
4851
4852 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4853 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4854 test -f conftest.o; then
4855 if test -z "$ansi"; then
4856 vl_cv_prog_cc_warnings="+w1"
4857 else
4858 vl_cv_prog_cc_warnings="+w1 -Aa"
4859 fi
4860
4861 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4862 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4863 test -f conftest.o; then
4864 if test -z "$ansi"; then
4865 vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4866 else
4867 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4868 fi
4869
4870 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4871 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4872 test -f conftest.o; then
4873 if test -z "$ansi"; then
4874 vl_cv_prog_cc_warnings="-h msglevel 2"
4875 else
4876 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4877 fi
4878
4879 fi
4880 rm -f conftest.*
4881 fi
4882 if test -n "$vl_cv_prog_cc_warnings"; then
4883 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4884 else
4885 vl_cv_prog_cc_warnings="unknown"
4886 fi
4887
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4890 $as_echo "$vl_cv_prog_cc_warnings" >&6; }
4891
4892
4893
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4895 $as_echo_n "checking whether ln -s works... " >&6; }
4896 LN_S=$as_ln_s
4897 if test "$LN_S" = "ln -s"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4899 $as_echo "yes" >&6; }
4900 else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4902 $as_echo "no, using $LN_S" >&6; }
4903 fi
4904
4905 # Used only for validating the source distribution during distcheck
4906 # Extract the first word of "cmake", so it can be a program name with args.
4907 set dummy cmake; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_CMAKE+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 case $CMAKE in
4914 [\\/]* | ?:[\\/]*)
4915 ac_cv_path_CMAKE="$CMAKE" # Let the user override the test with a path.
4916 ;;
4917 *)
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_path_CMAKE="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929 done
4930 done
4931 IFS=$as_save_IFS
4932
4933 ;;
4934 esac
4935 fi
4936 CMAKE=$ac_cv_path_CMAKE
4937 if test -n "$CMAKE"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMAKE" >&5
4939 $as_echo "$CMAKE" >&6; }
4940 else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945
4946
4947
4948 # Check if LD supports linker scripts, and define automake conditional
4949 # HAVE_LD_VERSION_SCRIPT if so. This functionality is currently
4950 # constrained to compilers using GNU ld on ELF systems or systems
4951 # which provide an adequate emulation thereof.
4952 # Check whether --enable-ld-version-script was given.
4953 if test "${enable_ld_version_script+set}" = set; then :
4954 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4955 else
4956 have_ld_version_script=yes
4957 fi
4958
4959 if test "$have_ld_version_script" != no; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4961 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4962 save_LDFLAGS="$LDFLAGS"
4963 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4964 cat > conftest.map <<EOF
4965 VERS_1 {
4966 global: sym;
4967 };
4968
4969 VERS_2 {
4970 global: sym;
4971 } VERS_1;
4972 EOF
4973
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976
4977 int
4978 main ()
4979 {
4980
4981 ;
4982 return 0;
4983 }
4984 _ACEOF
4985 if ac_fn_c_try_link "$LINENO"; then :
4986 have_ld_version_script=yes
4987 else
4988 have_ld_version_script=no
4989 fi
4990 rm -f core conftest.err conftest.$ac_objext \
4991 conftest$ac_exeext conftest.$ac_ext
4992 rm -f conftest.map
4993 LDFLAGS="$save_LDFLAGS"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4995 $as_echo "$have_ld_version_script" >&6; }
4996 fi
4997 if test "$have_ld_version_script" = "yes"; then
4998 HAVE_LD_VERSION_SCRIPT_TRUE=
4999 HAVE_LD_VERSION_SCRIPT_FALSE='#'
5000 else
5001 HAVE_LD_VERSION_SCRIPT_TRUE='#'
5002 HAVE_LD_VERSION_SCRIPT_FALSE=
5003 fi
5004
5005
5006
5007
5008
5009
5010 case `pwd` in
5011 *\ * | *\ *)
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5013 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5014 esac
5015
5016
5017
5018 macro_version='2.4.6'
5019 macro_revision='2.4.6'
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 ltmain=$ac_aux_dir/ltmain.sh
5034
5035 # Backslashify metacharacters that are still active within
5036 # double-quoted strings.
5037 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5038
5039 # Same as above, but do not quote variable references.
5040 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5041
5042 # Sed substitution to delay expansion of an escaped shell variable in a
5043 # double_quote_subst'ed string.
5044 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5045
5046 # Sed substitution to delay expansion of an escaped single quote.
5047 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5048
5049 # Sed substitution to avoid accidental globbing in evaled expressions
5050 no_glob_subst='s/\*/\\\*/g'
5051
5052 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5053 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5054 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5057 $as_echo_n "checking how to print strings... " >&6; }
5058 # Test print first, because it will be a builtin if present.
5059 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5060 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5061 ECHO='print -r --'
5062 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5063 ECHO='printf %s\n'
5064 else
5065 # Use this function as a fallback that always works.
5066 func_fallback_echo ()
5067 {
5068 eval 'cat <<_LTECHO_EOF
5069 $1
5070 _LTECHO_EOF'
5071 }
5072 ECHO='func_fallback_echo'
5073 fi
5074
5075 # func_echo_all arg...
5076 # Invoke $ECHO with all args, space-separated.
5077 func_echo_all ()
5078 {
5079 $ECHO ""
5080 }
5081
5082 case $ECHO in
5083 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5084 $as_echo "printf" >&6; } ;;
5085 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5086 $as_echo "print -r" >&6; } ;;
5087 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5088 $as_echo "cat" >&6; } ;;
5089 esac
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5105 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5106 if ${ac_cv_path_SED+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5110 for ac_i in 1 2 3 4 5 6 7; do
5111 ac_script="$ac_script$as_nl$ac_script"
5112 done
5113 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5114 { ac_script=; unset ac_script;}
5115 if test -z "$SED"; then
5116 ac_path_SED_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in sed gsed; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5126 as_fn_executable_p "$ac_path_SED" || continue
5127 # Check for GNU ac_path_SED and select it if it is found.
5128 # Check for GNU $ac_path_SED
5129 case `"$ac_path_SED" --version 2>&1` in
5130 *GNU*)
5131 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5132 *)
5133 ac_count=0
5134 $as_echo_n 0123456789 >"conftest.in"
5135 while :
5136 do
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 $as_echo '' >> "conftest.nl"
5141 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_SED_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_SED="$ac_path_SED"
5147 ac_path_SED_max=$ac_count
5148 fi
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5151 done
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5154
5155 $ac_path_SED_found && break 3
5156 done
5157 done
5158 done
5159 IFS=$as_save_IFS
5160 if test -z "$ac_cv_path_SED"; then
5161 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5162 fi
5163 else
5164 ac_cv_path_SED=$SED
5165 fi
5166
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5169 $as_echo "$ac_cv_path_SED" >&6; }
5170 SED="$ac_cv_path_SED"
5171 rm -f conftest.sed
5172
5173 test -z "$SED" && SED=sed
5174 Xsed="$SED -e 1s/^X//"
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5187 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5188 if ${ac_cv_path_GREP+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -z "$GREP"; then
5192 ac_path_GREP_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in grep ggrep; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5202 as_fn_executable_p "$ac_path_GREP" || continue
5203 # Check for GNU ac_path_GREP and select it if it is found.
5204 # Check for GNU $ac_path_GREP
5205 case `"$ac_path_GREP" --version 2>&1` in
5206 *GNU*)
5207 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5208 *)
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5212 do
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'GREP' >> "conftest.nl"
5217 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_GREP="$ac_path_GREP"
5223 ac_path_GREP_max=$ac_count
5224 fi
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5230
5231 $ac_path_GREP_found && break 3
5232 done
5233 done
5234 done
5235 IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_GREP"; then
5237 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5238 fi
5239 else
5240 ac_cv_path_GREP=$GREP
5241 fi
5242
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5245 $as_echo "$ac_cv_path_GREP" >&6; }
5246 GREP="$ac_cv_path_GREP"
5247
5248
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5250 $as_echo_n "checking for egrep... " >&6; }
5251 if ${ac_cv_path_EGREP+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5255 then ac_cv_path_EGREP="$GREP -E"
5256 else
5257 if test -z "$EGREP"; then
5258 ac_path_EGREP_found=false
5259 # Loop through the user's path and test for each of PROGNAME-LIST
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5262 do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_prog in egrep; do
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5268 as_fn_executable_p "$ac_path_EGREP" || continue
5269 # Check for GNU ac_path_EGREP and select it if it is found.
5270 # Check for GNU $ac_path_EGREP
5271 case `"$ac_path_EGREP" --version 2>&1` in
5272 *GNU*)
5273 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5274 *)
5275 ac_count=0
5276 $as_echo_n 0123456789 >"conftest.in"
5277 while :
5278 do
5279 cat "conftest.in" "conftest.in" >"conftest.tmp"
5280 mv "conftest.tmp" "conftest.in"
5281 cp "conftest.in" "conftest.nl"
5282 $as_echo 'EGREP' >> "conftest.nl"
5283 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5285 as_fn_arith $ac_count + 1 && ac_count=$as_val
5286 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5287 # Best one so far, save it but keep looking for a better one
5288 ac_cv_path_EGREP="$ac_path_EGREP"
5289 ac_path_EGREP_max=$ac_count
5290 fi
5291 # 10*(2^10) chars as input seems more than enough
5292 test $ac_count -gt 10 && break
5293 done
5294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5295 esac
5296
5297 $ac_path_EGREP_found && break 3
5298 done
5299 done
5300 done
5301 IFS=$as_save_IFS
5302 if test -z "$ac_cv_path_EGREP"; then
5303 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5304 fi
5305 else
5306 ac_cv_path_EGREP=$EGREP
5307 fi
5308
5309 fi
5310 fi
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5312 $as_echo "$ac_cv_path_EGREP" >&6; }
5313 EGREP="$ac_cv_path_EGREP"
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5317 $as_echo_n "checking for fgrep... " >&6; }
5318 if ${ac_cv_path_FGREP+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5322 then ac_cv_path_FGREP="$GREP -F"
5323 else
5324 if test -z "$FGREP"; then
5325 ac_path_FGREP_found=false
5326 # Loop through the user's path and test for each of PROGNAME-LIST
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5329 do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_prog in fgrep; do
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5335 as_fn_executable_p "$ac_path_FGREP" || continue
5336 # Check for GNU ac_path_FGREP and select it if it is found.
5337 # Check for GNU $ac_path_FGREP
5338 case `"$ac_path_FGREP" --version 2>&1` in
5339 *GNU*)
5340 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5341 *)
5342 ac_count=0
5343 $as_echo_n 0123456789 >"conftest.in"
5344 while :
5345 do
5346 cat "conftest.in" "conftest.in" >"conftest.tmp"
5347 mv "conftest.tmp" "conftest.in"
5348 cp "conftest.in" "conftest.nl"
5349 $as_echo 'FGREP' >> "conftest.nl"
5350 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5352 as_fn_arith $ac_count + 1 && ac_count=$as_val
5353 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5354 # Best one so far, save it but keep looking for a better one
5355 ac_cv_path_FGREP="$ac_path_FGREP"
5356 ac_path_FGREP_max=$ac_count
5357 fi
5358 # 10*(2^10) chars as input seems more than enough
5359 test $ac_count -gt 10 && break
5360 done
5361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362 esac
5363
5364 $ac_path_FGREP_found && break 3
5365 done
5366 done
5367 done
5368 IFS=$as_save_IFS
5369 if test -z "$ac_cv_path_FGREP"; then
5370 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5371 fi
5372 else
5373 ac_cv_path_FGREP=$FGREP
5374 fi
5375
5376 fi
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5379 $as_echo "$ac_cv_path_FGREP" >&6; }
5380 FGREP="$ac_cv_path_FGREP"
5381
5382
5383 test -z "$GREP" && GREP=grep
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 # Check whether --with-gnu-ld was given.
5404 if test "${with_gnu_ld+set}" = set; then :
5405 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5406 else
5407 with_gnu_ld=no
5408 fi
5409
5410 ac_prog=ld
5411 if test yes = "$GCC"; then
5412 # Check if gcc -print-prog-name=ld gives a path.
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5414 $as_echo_n "checking for ld used by $CC... " >&6; }
5415 case $host in
5416 *-*-mingw*)
5417 # gcc leaves a trailing carriage return, which upsets mingw
5418 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5419 *)
5420 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5421 esac
5422 case $ac_prog in
5423 # Accept absolute paths.
5424 [\\/]* | ?:[\\/]*)
5425 re_direlt='/[^/][^/]*/\.\./'
5426 # Canonicalize the pathname of ld
5427 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5428 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5429 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5430 done
5431 test -z "$LD" && LD=$ac_prog
5432 ;;
5433 "")
5434 # If it fails, then pretend we aren't using GCC.
5435 ac_prog=ld
5436 ;;
5437 *)
5438 # If it is relative, then search for the first ld in PATH.
5439 with_gnu_ld=unknown
5440 ;;
5441 esac
5442 elif test yes = "$with_gnu_ld"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5444 $as_echo_n "checking for GNU ld... " >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5447 $as_echo_n "checking for non-GNU ld... " >&6; }
5448 fi
5449 if ${lt_cv_path_LD+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -z "$LD"; then
5453 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5454 for ac_dir in $PATH; do
5455 IFS=$lt_save_ifs
5456 test -z "$ac_dir" && ac_dir=.
5457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5458 lt_cv_path_LD=$ac_dir/$ac_prog
5459 # Check to see if the program is GNU ld. I'd rather use --version,
5460 # but apparently some variants of GNU ld only accept -v.
5461 # Break only if it was the GNU/non-GNU ld that we prefer.
5462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5463 *GNU* | *'with BFD'*)
5464 test no != "$with_gnu_ld" && break
5465 ;;
5466 *)
5467 test yes != "$with_gnu_ld" && break
5468 ;;
5469 esac
5470 fi
5471 done
5472 IFS=$lt_save_ifs
5473 else
5474 lt_cv_path_LD=$LD # Let the user override the test with a path.
5475 fi
5476 fi
5477
5478 LD=$lt_cv_path_LD
5479 if test -n "$LD"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5481 $as_echo "$LD" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5488 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5489 if ${lt_cv_prog_gnu_ld+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5493 case `$LD -v 2>&1 </dev/null` in
5494 *GNU* | *'with BFD'*)
5495 lt_cv_prog_gnu_ld=yes
5496 ;;
5497 *)
5498 lt_cv_prog_gnu_ld=no
5499 ;;
5500 esac
5501 fi
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5503 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5504 with_gnu_ld=$lt_cv_prog_gnu_ld
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5515 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5516 if ${lt_cv_path_NM+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 if test -n "$NM"; then
5520 # Let the user override the test.
5521 lt_cv_path_NM=$NM
5522 else
5523 lt_nm_to_check=${ac_tool_prefix}nm
5524 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5525 lt_nm_to_check="$lt_nm_to_check nm"
5526 fi
5527 for lt_tmp_nm in $lt_nm_to_check; do
5528 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5529 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5530 IFS=$lt_save_ifs
5531 test -z "$ac_dir" && ac_dir=.
5532 tmp_nm=$ac_dir/$lt_tmp_nm
5533 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5534 # Check to see if the nm accepts a BSD-compat flag.
5535 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5536 # nm: unknown option "B" ignored
5537 # Tru64's nm complains that /dev/null is an invalid object file
5538 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5539 case $build_os in
5540 mingw*) lt_bad_file=conftest.nm/nofile ;;
5541 *) lt_bad_file=/dev/null ;;
5542 esac
5543 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5544 *$lt_bad_file* | *'Invalid file or object type'*)
5545 lt_cv_path_NM="$tmp_nm -B"
5546 break 2
5547 ;;
5548 *)
5549 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5550 */dev/null*)
5551 lt_cv_path_NM="$tmp_nm -p"
5552 break 2
5553 ;;
5554 *)
5555 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5556 continue # so that we can try to find one that supports BSD flags
5557 ;;
5558 esac
5559 ;;
5560 esac
5561 fi
5562 done
5563 IFS=$lt_save_ifs
5564 done
5565 : ${lt_cv_path_NM=no}
5566 fi
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5569 $as_echo "$lt_cv_path_NM" >&6; }
5570 if test no != "$lt_cv_path_NM"; then
5571 NM=$lt_cv_path_NM
5572 else
5573 # Didn't find any BSD compatible name lister, look for dumpbin.
5574 if test -n "$DUMPBIN"; then :
5575 # Let the user override the test.
5576 else
5577 if test -n "$ac_tool_prefix"; then
5578 for ac_prog in dumpbin "link -dump"
5579 do
5580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_DUMPBIN+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$DUMPBIN"; then
5588 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 DUMPBIN=$ac_cv_prog_DUMPBIN
5608 if test -n "$DUMPBIN"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5610 $as_echo "$DUMPBIN" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617 test -n "$DUMPBIN" && break
5618 done
5619 fi
5620 if test -z "$DUMPBIN"; then
5621 ac_ct_DUMPBIN=$DUMPBIN
5622 for ac_prog in dumpbin "link -dump"
5623 do
5624 # Extract the first word of "$ac_prog", so it can be a program name with args.
5625 set dummy $ac_prog; ac_word=$2
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 $as_echo_n "checking for $ac_word... " >&6; }
5628 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test -n "$ac_ct_DUMPBIN"; then
5632 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 fi
5650 fi
5651 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5652 if test -n "$ac_ct_DUMPBIN"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5654 $as_echo "$ac_ct_DUMPBIN" >&6; }
5655 else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5658 fi
5659
5660
5661 test -n "$ac_ct_DUMPBIN" && break
5662 done
5663
5664 if test "x$ac_ct_DUMPBIN" = x; then
5665 DUMPBIN=":"
5666 else
5667 case $cross_compiling:$ac_tool_warned in
5668 yes:)
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671 ac_tool_warned=yes ;;
5672 esac
5673 DUMPBIN=$ac_ct_DUMPBIN
5674 fi
5675 fi
5676
5677 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5678 *COFF*)
5679 DUMPBIN="$DUMPBIN -symbols -headers"
5680 ;;
5681 *)
5682 DUMPBIN=:
5683 ;;
5684 esac
5685 fi
5686
5687 if test : != "$DUMPBIN"; then
5688 NM=$DUMPBIN
5689 fi
5690 fi
5691 test -z "$NM" && NM=nm
5692
5693
5694
5695
5696
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5699 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5700 if ${lt_cv_nm_interface+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 lt_cv_nm_interface="BSD nm"
5704 echo "int some_variable = 0;" > conftest.$ac_ext
5705 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5706 (eval "$ac_compile" 2>conftest.err)
5707 cat conftest.err >&5
5708 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5709 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5710 cat conftest.err >&5
5711 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5712 cat conftest.out >&5
5713 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5714 lt_cv_nm_interface="MS dumpbin"
5715 fi
5716 rm -f conftest*
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5719 $as_echo "$lt_cv_nm_interface" >&6; }
5720
5721 # find the maximum length of command line arguments
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5723 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5724 if ${lt_cv_sys_max_cmd_len+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 i=0
5728 teststring=ABCD
5729
5730 case $build_os in
5731 msdosdjgpp*)
5732 # On DJGPP, this test can blow up pretty badly due to problems in libc
5733 # (any single argument exceeding 2000 bytes causes a buffer overrun
5734 # during glob expansion). Even if it were fixed, the result of this
5735 # check would be larger than it should be.
5736 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5737 ;;
5738
5739 gnu*)
5740 # Under GNU Hurd, this test is not required because there is
5741 # no limit to the length of command line arguments.
5742 # Libtool will interpret -1 as no limit whatsoever
5743 lt_cv_sys_max_cmd_len=-1;
5744 ;;
5745
5746 cygwin* | mingw* | cegcc*)
5747 # On Win9x/ME, this test blows up -- it succeeds, but takes
5748 # about 5 minutes as the teststring grows exponentially.
5749 # Worse, since 9x/ME are not pre-emptively multitasking,
5750 # you end up with a "frozen" computer, even though with patience
5751 # the test eventually succeeds (with a max line length of 256k).
5752 # Instead, let's just punt: use the minimum linelength reported by
5753 # all of the supported platforms: 8192 (on NT/2K/XP).
5754 lt_cv_sys_max_cmd_len=8192;
5755 ;;
5756
5757 mint*)
5758 # On MiNT this can take a long time and run out of memory.
5759 lt_cv_sys_max_cmd_len=8192;
5760 ;;
5761
5762 amigaos*)
5763 # On AmigaOS with pdksh, this test takes hours, literally.
5764 # So we just punt and use a minimum line length of 8192.
5765 lt_cv_sys_max_cmd_len=8192;
5766 ;;
5767
5768 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5769 # This has been around since 386BSD, at least. Likely further.
5770 if test -x /sbin/sysctl; then
5771 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5772 elif test -x /usr/sbin/sysctl; then
5773 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5774 else
5775 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5776 fi
5777 # And add a safety zone
5778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5780 ;;
5781
5782 interix*)
5783 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5784 lt_cv_sys_max_cmd_len=196608
5785 ;;
5786
5787 os2*)
5788 # The test takes a long time on OS/2.
5789 lt_cv_sys_max_cmd_len=8192
5790 ;;
5791
5792 osf*)
5793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5795 # nice to cause kernel panics so lets avoid the loop below.
5796 # First set a reasonable default.
5797 lt_cv_sys_max_cmd_len=16384
5798 #
5799 if test -x /sbin/sysconfig; then
5800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5802 esac
5803 fi
5804 ;;
5805 sco3.2v5*)
5806 lt_cv_sys_max_cmd_len=102400
5807 ;;
5808 sysv5* | sco5v6* | sysv4.2uw2*)
5809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5810 if test -n "$kargmax"; then
5811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5812 else
5813 lt_cv_sys_max_cmd_len=32768
5814 fi
5815 ;;
5816 *)
5817 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5818 if test -n "$lt_cv_sys_max_cmd_len" && \
5819 test undefined != "$lt_cv_sys_max_cmd_len"; then
5820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5822 else
5823 # Make teststring a little bigger before we do anything with it.
5824 # a 1K string should be a reasonable start.
5825 for i in 1 2 3 4 5 6 7 8; do
5826 teststring=$teststring$teststring
5827 done
5828 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5829 # If test is not a shell built-in, we'll probably end up computing a
5830 # maximum length that is only half of the actual maximum length, but
5831 # we can't tell.
5832 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5833 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5834 test 17 != "$i" # 1/2 MB should be enough
5835 do
5836 i=`expr $i + 1`
5837 teststring=$teststring$teststring
5838 done
5839 # Only check the string length outside the loop.
5840 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5841 teststring=
5842 # Add a significant safety factor because C++ compilers can tack on
5843 # massive amounts of additional arguments before passing them to the
5844 # linker. It appears as though 1/2 is a usable value.
5845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5846 fi
5847 ;;
5848 esac
5849
5850 fi
5851
5852 if test -n "$lt_cv_sys_max_cmd_len"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5854 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5857 $as_echo "none" >&6; }
5858 fi
5859 max_cmd_len=$lt_cv_sys_max_cmd_len
5860
5861
5862
5863
5864
5865
5866 : ${CP="cp -f"}
5867 : ${MV="mv -f"}
5868 : ${RM="rm -f"}
5869
5870 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5871 lt_unset=unset
5872 else
5873 lt_unset=false
5874 fi
5875
5876
5877
5878
5879
5880 # test EBCDIC or ASCII
5881 case `echo X|tr X '\101'` in
5882 A) # ASCII based system
5883 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5884 lt_SP2NL='tr \040 \012'
5885 lt_NL2SP='tr \015\012 \040\040'
5886 ;;
5887 *) # EBCDIC based system
5888 lt_SP2NL='tr \100 \n'
5889 lt_NL2SP='tr \r\n \100\100'
5890 ;;
5891 esac
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5902 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5903 if ${lt_cv_to_host_file_cmd+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 case $host in
5907 *-*-mingw* )
5908 case $build in
5909 *-*-mingw* ) # actually msys
5910 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5911 ;;
5912 *-*-cygwin* )
5913 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5914 ;;
5915 * ) # otherwise, assume *nix
5916 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5917 ;;
5918 esac
5919 ;;
5920 *-*-cygwin* )
5921 case $build in
5922 *-*-mingw* ) # actually msys
5923 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5924 ;;
5925 *-*-cygwin* )
5926 lt_cv_to_host_file_cmd=func_convert_file_noop
5927 ;;
5928 * ) # otherwise, assume *nix
5929 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5930 ;;
5931 esac
5932 ;;
5933 * ) # unhandled hosts (and "normal" native builds)
5934 lt_cv_to_host_file_cmd=func_convert_file_noop
5935 ;;
5936 esac
5937
5938 fi
5939
5940 to_host_file_cmd=$lt_cv_to_host_file_cmd
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5942 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5943
5944
5945
5946
5947
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5949 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5950 if ${lt_cv_to_tool_file_cmd+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 #assume ordinary cross tools, or native build.
5954 lt_cv_to_tool_file_cmd=func_convert_file_noop
5955 case $host in
5956 *-*-mingw* )
5957 case $build in
5958 *-*-mingw* ) # actually msys
5959 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5960 ;;
5961 esac
5962 ;;
5963 esac
5964
5965 fi
5966
5967 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5969 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5970
5971
5972
5973
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5976 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5977 if ${lt_cv_ld_reload_flag+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 lt_cv_ld_reload_flag='-r'
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5983 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5984 reload_flag=$lt_cv_ld_reload_flag
5985 case $reload_flag in
5986 "" | " "*) ;;
5987 *) reload_flag=" $reload_flag" ;;
5988 esac
5989 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5990 case $host_os in
5991 cygwin* | mingw* | pw32* | cegcc*)
5992 if test yes != "$GCC"; then
5993 reload_cmds=false
5994 fi
5995 ;;
5996 darwin*)
5997 if test yes = "$GCC"; then
5998 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5999 else
6000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6001 fi
6002 ;;
6003 esac
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_OBJDUMP+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if test -n "$OBJDUMP"; then
6022 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 OBJDUMP=$ac_cv_prog_OBJDUMP
6042 if test -n "$OBJDUMP"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6044 $as_echo "$OBJDUMP" >&6; }
6045 else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051 fi
6052 if test -z "$ac_cv_prog_OBJDUMP"; then
6053 ac_ct_OBJDUMP=$OBJDUMP
6054 # Extract the first word of "objdump", so it can be a program name with args.
6055 set dummy objdump; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if test -n "$ac_ct_OBJDUMP"; then
6062 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6084 $as_echo "$ac_ct_OBJDUMP" >&6; }
6085 else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090 if test "x$ac_ct_OBJDUMP" = x; then
6091 OBJDUMP="false"
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099 OBJDUMP=$ac_ct_OBJDUMP
6100 fi
6101 else
6102 OBJDUMP="$ac_cv_prog_OBJDUMP"
6103 fi
6104
6105 test -z "$OBJDUMP" && OBJDUMP=objdump
6106
6107
6108
6109
6110
6111
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6113 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6114 if ${lt_cv_deplibs_check_method+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 lt_cv_file_magic_cmd='$MAGIC_CMD'
6118 lt_cv_file_magic_test_file=
6119 lt_cv_deplibs_check_method='unknown'
6120 # Need to set the preceding variable on all platforms that support
6121 # interlibrary dependencies.
6122 # 'none' -- dependencies not supported.
6123 # 'unknown' -- same as none, but documents that we really don't know.
6124 # 'pass_all' -- all dependencies passed with no checks.
6125 # 'test_compile' -- check by making test program.
6126 # 'file_magic [[regex]]' -- check by looking for files in library path
6127 # that responds to the $file_magic_cmd with a given extended regex.
6128 # If you have 'file' or equivalent on your system and you're not sure
6129 # whether 'pass_all' will *always* work, you probably want this one.
6130
6131 case $host_os in
6132 aix[4-9]*)
6133 lt_cv_deplibs_check_method=pass_all
6134 ;;
6135
6136 beos*)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139
6140 bsdi[45]*)
6141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6142 lt_cv_file_magic_cmd='/usr/bin/file -L'
6143 lt_cv_file_magic_test_file=/shlib/libc.so
6144 ;;
6145
6146 cygwin*)
6147 # func_win32_libid is a shell function defined in ltmain.sh
6148 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6149 lt_cv_file_magic_cmd='func_win32_libid'
6150 ;;
6151
6152 mingw* | pw32*)
6153 # Base MSYS/MinGW do not provide the 'file' command needed by
6154 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6155 # unless we find 'file', for example because we are cross-compiling.
6156 if ( file / ) >/dev/null 2>&1; then
6157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6158 lt_cv_file_magic_cmd='func_win32_libid'
6159 else
6160 # Keep this pattern in sync with the one in func_win32_libid.
6161 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6162 lt_cv_file_magic_cmd='$OBJDUMP -f'
6163 fi
6164 ;;
6165
6166 cegcc*)
6167 # use the weaker test based on 'objdump'. See mingw*.
6168 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6169 lt_cv_file_magic_cmd='$OBJDUMP -f'
6170 ;;
6171
6172 darwin* | rhapsody*)
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175
6176 freebsd* | dragonfly*)
6177 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6178 case $host_cpu in
6179 i*86 )
6180 # Not sure whether the presence of OpenBSD here was a mistake.
6181 # Let's accept both of them until this is cleared up.
6182 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6183 lt_cv_file_magic_cmd=/usr/bin/file
6184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6185 ;;
6186 esac
6187 else
6188 lt_cv_deplibs_check_method=pass_all
6189 fi
6190 ;;
6191
6192 haiku*)
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196 hpux10.20* | hpux11*)
6197 lt_cv_file_magic_cmd=/usr/bin/file
6198 case $host_cpu in
6199 ia64*)
6200 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6201 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6202 ;;
6203 hppa*64*)
6204 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]'
6205 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6206 ;;
6207 *)
6208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6209 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6210 ;;
6211 esac
6212 ;;
6213
6214 interix[3-9]*)
6215 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6217 ;;
6218
6219 irix5* | irix6* | nonstopux*)
6220 case $LD in
6221 *-32|*"-32 ") libmagic=32-bit;;
6222 *-n32|*"-n32 ") libmagic=N32;;
6223 *-64|*"-64 ") libmagic=64-bit;;
6224 *) libmagic=never-match;;
6225 esac
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229 # This must be glibc/ELF.
6230 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233
6234 netbsd* | netbsdelf*-gnu)
6235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6237 else
6238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6239 fi
6240 ;;
6241
6242 newos6*)
6243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6244 lt_cv_file_magic_cmd=/usr/bin/file
6245 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6246 ;;
6247
6248 *nto* | *qnx*)
6249 lt_cv_deplibs_check_method=pass_all
6250 ;;
6251
6252 openbsd* | bitrig*)
6253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6255 else
6256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6257 fi
6258 ;;
6259
6260 osf3* | osf4* | osf5*)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
6263
6264 rdos*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268 solaris*)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271
6272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275
6276 sysv4 | sysv4.3*)
6277 case $host_vendor in
6278 motorola)
6279 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]'
6280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6281 ;;
6282 ncr)
6283 lt_cv_deplibs_check_method=pass_all
6284 ;;
6285 sequent)
6286 lt_cv_file_magic_cmd='/bin/file'
6287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6288 ;;
6289 sni)
6290 lt_cv_file_magic_cmd='/bin/file'
6291 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6292 lt_cv_file_magic_test_file=/lib/libc.so
6293 ;;
6294 siemens)
6295 lt_cv_deplibs_check_method=pass_all
6296 ;;
6297 pc)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300 esac
6301 ;;
6302
6303 tpf*)
6304 lt_cv_deplibs_check_method=pass_all
6305 ;;
6306 os2*)
6307 lt_cv_deplibs_check_method=pass_all
6308 ;;
6309 esac
6310
6311 fi
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6313 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6314
6315 file_magic_glob=
6316 want_nocaseglob=no
6317 if test "$build" = "$host"; then
6318 case $host_os in
6319 mingw* | pw32*)
6320 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6321 want_nocaseglob=yes
6322 else
6323 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6324 fi
6325 ;;
6326 esac
6327 fi
6328
6329 file_magic_cmd=$lt_cv_file_magic_cmd
6330 deplibs_check_method=$lt_cv_deplibs_check_method
6331 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_DLLTOOL+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$DLLTOOL"; then
6363 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380 fi
6381 fi
6382 DLLTOOL=$ac_cv_prog_DLLTOOL
6383 if test -n "$DLLTOOL"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6385 $as_echo "$DLLTOOL" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390
6391
6392 fi
6393 if test -z "$ac_cv_prog_DLLTOOL"; then
6394 ac_ct_DLLTOOL=$DLLTOOL
6395 # Extract the first word of "dlltool", so it can be a program name with args.
6396 set dummy dlltool; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$ac_ct_DLLTOOL"; then
6403 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6423 if test -n "$ac_ct_DLLTOOL"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6425 $as_echo "$ac_ct_DLLTOOL" >&6; }
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430
6431 if test "x$ac_ct_DLLTOOL" = x; then
6432 DLLTOOL="false"
6433 else
6434 case $cross_compiling:$ac_tool_warned in
6435 yes:)
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440 DLLTOOL=$ac_ct_DLLTOOL
6441 fi
6442 else
6443 DLLTOOL="$ac_cv_prog_DLLTOOL"
6444 fi
6445
6446 test -z "$DLLTOOL" && DLLTOOL=dlltool
6447
6448
6449
6450
6451
6452
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6455 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6456 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 lt_cv_sharedlib_from_linklib_cmd='unknown'
6460
6461 case $host_os in
6462 cygwin* | mingw* | pw32* | cegcc*)
6463 # two different shell functions defined in ltmain.sh;
6464 # decide which one to use based on capabilities of $DLLTOOL
6465 case `$DLLTOOL --help 2>&1` in
6466 *--identify-strict*)
6467 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6468 ;;
6469 *)
6470 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6471 ;;
6472 esac
6473 ;;
6474 *)
6475 # fallback: assume linklib IS sharedlib
6476 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6477 ;;
6478 esac
6479
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6482 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6483 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6484 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6485
6486
6487
6488
6489
6490
6491
6492 if test -n "$ac_tool_prefix"; then
6493 for ac_prog in ar
6494 do
6495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_AR+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test -n "$AR"; then
6503 ac_cv_prog_AR="$AR" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 AR=$ac_cv_prog_AR
6523 if test -n "$AR"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6525 $as_echo "$AR" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531
6532 test -n "$AR" && break
6533 done
6534 fi
6535 if test -z "$AR"; then
6536 ac_ct_AR=$AR
6537 for ac_prog in ar
6538 do
6539 # Extract the first word of "$ac_prog", so it can be a program name with args.
6540 set dummy $ac_prog; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$ac_ct_AR"; then
6547 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_ac_ct_AR="$ac_prog"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6567 if test -n "$ac_ct_AR"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6569 $as_echo "$ac_ct_AR" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575
6576 test -n "$ac_ct_AR" && break
6577 done
6578
6579 if test "x$ac_ct_AR" = x; then
6580 AR="false"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588 AR=$ac_ct_AR
6589 fi
6590 fi
6591
6592 : ${AR=ar}
6593 : ${AR_FLAGS=cr}
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6606 $as_echo_n "checking for archiver @FILE support... " >&6; }
6607 if ${lt_cv_ar_at_file+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 lt_cv_ar_at_file=no
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613
6614 int
6615 main ()
6616 {
6617
6618 ;
6619 return 0;
6620 }
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"; then :
6623 echo conftest.$ac_objext > conftest.lst
6624 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6626 (eval $lt_ar_try) 2>&5
6627 ac_status=$?
6628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629 test $ac_status = 0; }
6630 if test 0 -eq "$ac_status"; then
6631 # Ensure the archiver fails upon bogus file names.
6632 rm -f conftest.$ac_objext libconftest.a
6633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6634 (eval $lt_ar_try) 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; }
6638 if test 0 -ne "$ac_status"; then
6639 lt_cv_ar_at_file=@
6640 fi
6641 fi
6642 rm -f conftest.* libconftest.a
6643
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6649 $as_echo "$lt_cv_ar_at_file" >&6; }
6650
6651 if test no = "$lt_cv_ar_at_file"; then
6652 archiver_list_spec=
6653 else
6654 archiver_list_spec=$lt_cv_ar_at_file
6655 fi
6656
6657
6658
6659
6660
6661
6662
6663 if test -n "$ac_tool_prefix"; then
6664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6665 set dummy ${ac_tool_prefix}strip; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_STRIP+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$STRIP"; then
6672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 STRIP=$ac_cv_prog_STRIP
6692 if test -n "$STRIP"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6694 $as_echo "$STRIP" >&6; }
6695 else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700
6701 fi
6702 if test -z "$ac_cv_prog_STRIP"; then
6703 ac_ct_STRIP=$STRIP
6704 # Extract the first word of "strip", so it can be a program name with args.
6705 set dummy strip; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if test -n "$ac_ct_STRIP"; then
6712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_ac_ct_STRIP="strip"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6732 if test -n "$ac_ct_STRIP"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6734 $as_echo "$ac_ct_STRIP" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740 if test "x$ac_ct_STRIP" = x; then
6741 STRIP=":"
6742 else
6743 case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned=yes ;;
6748 esac
6749 STRIP=$ac_ct_STRIP
6750 fi
6751 else
6752 STRIP="$ac_cv_prog_STRIP"
6753 fi
6754
6755 test -z "$STRIP" && STRIP=:
6756
6757
6758
6759
6760
6761
6762 if test -n "$ac_tool_prefix"; then
6763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_RANLIB+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$RANLIB"; then
6771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 RANLIB=$ac_cv_prog_RANLIB
6791 if test -n "$RANLIB"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6793 $as_echo "$RANLIB" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799
6800 fi
6801 if test -z "$ac_cv_prog_RANLIB"; then
6802 ac_ct_RANLIB=$RANLIB
6803 # Extract the first word of "ranlib", so it can be a program name with args.
6804 set dummy ranlib; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 if test -n "$ac_ct_RANLIB"; then
6811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_ac_ct_RANLIB="ranlib"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824 done
6825 done
6826 IFS=$as_save_IFS
6827
6828 fi
6829 fi
6830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6831 if test -n "$ac_ct_RANLIB"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6833 $as_echo "$ac_ct_RANLIB" >&6; }
6834 else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 fi
6838
6839 if test "x$ac_ct_RANLIB" = x; then
6840 RANLIB=":"
6841 else
6842 case $cross_compiling:$ac_tool_warned in
6843 yes:)
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848 RANLIB=$ac_ct_RANLIB
6849 fi
6850 else
6851 RANLIB="$ac_cv_prog_RANLIB"
6852 fi
6853
6854 test -z "$RANLIB" && RANLIB=:
6855
6856
6857
6858
6859
6860
6861 # Determine commands to create old-style static archives.
6862 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6863 old_postinstall_cmds='chmod 644 $oldlib'
6864 old_postuninstall_cmds=
6865
6866 if test -n "$RANLIB"; then
6867 case $host_os in
6868 bitrig* | openbsd*)
6869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6870 ;;
6871 *)
6872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6873 ;;
6874 esac
6875 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6876 fi
6877
6878 case $host_os in
6879 darwin*)
6880 lock_old_archive_extraction=yes ;;
6881 *)
6882 lock_old_archive_extraction=no ;;
6883 esac
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 # If no C compiler was specified, use CC.
6924 LTCC=${LTCC-"$CC"}
6925
6926 # If no C compiler flags were specified, use CFLAGS.
6927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6928
6929 # Allow CC to be a program name with arguments.
6930 compiler=$CC
6931
6932
6933 # Check for command to grab the raw symbol name followed by C symbol from nm.
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6935 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6936 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939
6940 # These are sane defaults that work on at least a few old systems.
6941 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6942
6943 # Character class describing NM global symbol codes.
6944 symcode='[BCDEGRST]'
6945
6946 # Regexp to match symbols that can be accessed directly from C.
6947 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6948
6949 # Define system-specific variables.
6950 case $host_os in
6951 aix*)
6952 symcode='[BCDT]'
6953 ;;
6954 cygwin* | mingw* | pw32* | cegcc*)
6955 symcode='[ABCDGISTW]'
6956 ;;
6957 hpux*)
6958 if test ia64 = "$host_cpu"; then
6959 symcode='[ABCDEGRST]'
6960 fi
6961 ;;
6962 irix* | nonstopux*)
6963 symcode='[BCDEGRST]'
6964 ;;
6965 osf*)
6966 symcode='[BCDEGQRST]'
6967 ;;
6968 solaris*)
6969 symcode='[BDRT]'
6970 ;;
6971 sco3.2v5*)
6972 symcode='[DT]'
6973 ;;
6974 sysv4.2uw2*)
6975 symcode='[DT]'
6976 ;;
6977 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6978 symcode='[ABDT]'
6979 ;;
6980 sysv4)
6981 symcode='[DFNSTU]'
6982 ;;
6983 esac
6984
6985 # If we're using GNU nm, then use its standard symbol codes.
6986 case `$NM -V 2>&1` in
6987 *GNU* | *'with BFD'*)
6988 symcode='[ABCDGIRSTW]' ;;
6989 esac
6990
6991 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6992 # Gets list of data symbols to import.
6993 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6994 # Adjust the below global symbol transforms to fixup imported variables.
6995 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6996 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6997 lt_c_name_lib_hook="\
6998 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6999 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7000 else
7001 # Disable hooks by default.
7002 lt_cv_sys_global_symbol_to_import=
7003 lt_cdecl_hook=
7004 lt_c_name_hook=
7005 lt_c_name_lib_hook=
7006 fi
7007
7008 # Transform an extracted symbol line into a proper C declaration.
7009 # Some systems (esp. on ia64) link data and code symbols differently,
7010 # so use this general approach.
7011 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7012 $lt_cdecl_hook\
7013 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7014 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7015
7016 # Transform an extracted symbol line into symbol name and symbol address
7017 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7018 $lt_c_name_hook\
7019 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7020 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7021
7022 # Transform an extracted symbol line into symbol name with lib prefix and
7023 # symbol address.
7024 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7025 $lt_c_name_lib_hook\
7026 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7027 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7028 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7029
7030 # Handle CRLF in mingw tool chain
7031 opt_cr=
7032 case $build_os in
7033 mingw*)
7034 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7035 ;;
7036 esac
7037
7038 # Try without a prefix underscore, then with it.
7039 for ac_symprfx in "" "_"; do
7040
7041 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7042 symxfrm="\\1 $ac_symprfx\\2 \\2"
7043
7044 # Write the raw and C identifiers.
7045 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7046 # Fake it for dumpbin and say T for any non-static function,
7047 # D for any global variable and I for any imported variable.
7048 # Also find C++ and __fastcall symbols from MSVC++,
7049 # which start with @ or ?.
7050 lt_cv_sys_global_symbol_pipe="$AWK '"\
7051 " {last_section=section; section=\$ 3};"\
7052 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7053 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7054 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7055 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7056 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7057 " \$ 0!~/External *\|/{next};"\
7058 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7059 " {if(hide[section]) next};"\
7060 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7061 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7062 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7063 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7064 " ' prfx=^$ac_symprfx"
7065 else
7066 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7067 fi
7068 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7069
7070 # Check to see that the pipe works correctly.
7071 pipe_works=no
7072
7073 rm -f conftest*
7074 cat > conftest.$ac_ext <<_LT_EOF
7075 #ifdef __cplusplus
7076 extern "C" {
7077 #endif
7078 char nm_test_var;
7079 void nm_test_func(void);
7080 void nm_test_func(void){}
7081 #ifdef __cplusplus
7082 }
7083 #endif
7084 int main(){nm_test_var='a';nm_test_func();return(0);}
7085 _LT_EOF
7086
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088 (eval $ac_compile) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }; then
7092 # Now try to grab the symbols.
7093 nlist=conftest.nm
7094 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7095 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7096 # Try sorting and uniquifying the output.
7097 if sort "$nlist" | uniq > "$nlist"T; then
7098 mv -f "$nlist"T "$nlist"
7099 else
7100 rm -f "$nlist"T
7101 fi
7102
7103 # Make sure that we snagged all the symbols we need.
7104 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7105 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7106 cat <<_LT_EOF > conftest.$ac_ext
7107 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7108 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7109 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7110 relocations are performed -- see ld's documentation on pseudo-relocs. */
7111 # define LT_DLSYM_CONST
7112 #elif defined __osf__
7113 /* This system does not cope well with relocations in const data. */
7114 # define LT_DLSYM_CONST
7115 #else
7116 # define LT_DLSYM_CONST const
7117 #endif
7118
7119 #ifdef __cplusplus
7120 extern "C" {
7121 #endif
7122
7123 _LT_EOF
7124 # Now generate the symbol file.
7125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7126
7127 cat <<_LT_EOF >> conftest.$ac_ext
7128
7129 /* The mapping between symbol names and symbols. */
7130 LT_DLSYM_CONST struct {
7131 const char *name;
7132 void *address;
7133 }
7134 lt__PROGRAM__LTX_preloaded_symbols[] =
7135 {
7136 { "@PROGRAM@", (void *) 0 },
7137 _LT_EOF
7138 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139 cat <<\_LT_EOF >> conftest.$ac_ext
7140 {0, (void *) 0}
7141 };
7142
7143 /* This works around a problem in FreeBSD linker */
7144 #ifdef FREEBSD_WORKAROUND
7145 static const void *lt_preloaded_setup() {
7146 return lt__PROGRAM__LTX_preloaded_symbols;
7147 }
7148 #endif
7149
7150 #ifdef __cplusplus
7151 }
7152 #endif
7153 _LT_EOF
7154 # Now try linking the two files.
7155 mv conftest.$ac_objext conftstm.$ac_objext
7156 lt_globsym_save_LIBS=$LIBS
7157 lt_globsym_save_CFLAGS=$CFLAGS
7158 LIBS=conftstm.$ac_objext
7159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7161 (eval $ac_link) 2>&5
7162 ac_status=$?
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7165 pipe_works=yes
7166 fi
7167 LIBS=$lt_globsym_save_LIBS
7168 CFLAGS=$lt_globsym_save_CFLAGS
7169 else
7170 echo "cannot find nm_test_func in $nlist" >&5
7171 fi
7172 else
7173 echo "cannot find nm_test_var in $nlist" >&5
7174 fi
7175 else
7176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7177 fi
7178 else
7179 echo "$progname: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 fi
7182 rm -rf conftest* conftst*
7183
7184 # Do not use the global_symbol_pipe unless it works.
7185 if test yes = "$pipe_works"; then
7186 break
7187 else
7188 lt_cv_sys_global_symbol_pipe=
7189 fi
7190 done
7191
7192 fi
7193
7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195 lt_cv_sys_global_symbol_to_cdecl=
7196 fi
7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7199 $as_echo "failed" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7202 $as_echo "ok" >&6; }
7203 fi
7204
7205 # Response file support.
7206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7207 nm_file_list_spec='@'
7208 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7209 nm_file_list_spec='@'
7210 fi
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7249 $as_echo_n "checking for sysroot... " >&6; }
7250
7251 # Check whether --with-sysroot was given.
7252 if test "${with_sysroot+set}" = set; then :
7253 withval=$with_sysroot;
7254 else
7255 with_sysroot=no
7256 fi
7257
7258
7259 lt_sysroot=
7260 case $with_sysroot in #(
7261 yes)
7262 if test yes = "$GCC"; then
7263 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7264 fi
7265 ;; #(
7266 /*)
7267 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7268 ;; #(
7269 no|'')
7270 ;; #(
7271 *)
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7273 $as_echo "$with_sysroot" >&6; }
7274 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7275 ;;
7276 esac
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7279 $as_echo "${lt_sysroot:-no}" >&6; }
7280
7281
7282
7283
7284
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7286 $as_echo_n "checking for a working dd... " >&6; }
7287 if ${ac_cv_path_lt_DD+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 printf 0123456789abcdef0123456789abcdef >conftest.i
7291 cat conftest.i conftest.i >conftest2.i
7292 : ${lt_DD:=$DD}
7293 if test -z "$lt_DD"; then
7294 ac_path_lt_DD_found=false
7295 # Loop through the user's path and test for each of PROGNAME-LIST
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_prog in dd; do
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7304 as_fn_executable_p "$ac_path_lt_DD" || continue
7305 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7306 cmp -s conftest.i conftest.out \
7307 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7308 fi
7309 $ac_path_lt_DD_found && break 3
7310 done
7311 done
7312 done
7313 IFS=$as_save_IFS
7314 if test -z "$ac_cv_path_lt_DD"; then
7315 :
7316 fi
7317 else
7318 ac_cv_path_lt_DD=$lt_DD
7319 fi
7320
7321 rm -f conftest.i conftest2.i conftest.out
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7324 $as_echo "$ac_cv_path_lt_DD" >&6; }
7325
7326
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7328 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7329 if ${lt_cv_truncate_bin+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 printf 0123456789abcdef0123456789abcdef >conftest.i
7333 cat conftest.i conftest.i >conftest2.i
7334 lt_cv_truncate_bin=
7335 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7336 cmp -s conftest.i conftest.out \
7337 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7338 fi
7339 rm -f conftest.i conftest2.i conftest.out
7340 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7343 $as_echo "$lt_cv_truncate_bin" >&6; }
7344
7345
7346
7347
7348
7349
7350
7351 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7352 func_cc_basename ()
7353 {
7354 for cc_temp in $*""; do
7355 case $cc_temp in
7356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7358 \-*) ;;
7359 *) break;;
7360 esac
7361 done
7362 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7363 }
7364
7365 # Check whether --enable-libtool-lock was given.
7366 if test "${enable_libtool_lock+set}" = set; then :
7367 enableval=$enable_libtool_lock;
7368 fi
7369
7370 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7371
7372 # Some flags need to be propagated to the compiler or linker for good
7373 # libtool support.
7374 case $host in
7375 ia64-*-hpux*)
7376 # Find out what ABI is being produced by ac_compile, and set mode
7377 # options accordingly.
7378 echo 'int i;' > conftest.$ac_ext
7379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7380 (eval $ac_compile) 2>&5
7381 ac_status=$?
7382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383 test $ac_status = 0; }; then
7384 case `/usr/bin/file conftest.$ac_objext` in
7385 *ELF-32*)
7386 HPUX_IA64_MODE=32
7387 ;;
7388 *ELF-64*)
7389 HPUX_IA64_MODE=64
7390 ;;
7391 esac
7392 fi
7393 rm -rf conftest*
7394 ;;
7395 *-*-irix6*)
7396 # Find out what ABI is being produced by ac_compile, and set linker
7397 # options accordingly.
7398 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7400 (eval $ac_compile) 2>&5
7401 ac_status=$?
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; }; then
7404 if test yes = "$lt_cv_prog_gnu_ld"; then
7405 case `/usr/bin/file conftest.$ac_objext` in
7406 *32-bit*)
7407 LD="${LD-ld} -melf32bsmip"
7408 ;;
7409 *N32*)
7410 LD="${LD-ld} -melf32bmipn32"
7411 ;;
7412 *64-bit*)
7413 LD="${LD-ld} -melf64bmip"
7414 ;;
7415 esac
7416 else
7417 case `/usr/bin/file conftest.$ac_objext` in
7418 *32-bit*)
7419 LD="${LD-ld} -32"
7420 ;;
7421 *N32*)
7422 LD="${LD-ld} -n32"
7423 ;;
7424 *64-bit*)
7425 LD="${LD-ld} -64"
7426 ;;
7427 esac
7428 fi
7429 fi
7430 rm -rf conftest*
7431 ;;
7432
7433 mips64*-*linux*)
7434 # Find out what ABI is being produced by ac_compile, and set linker
7435 # options accordingly.
7436 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7438 (eval $ac_compile) 2>&5
7439 ac_status=$?
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }; then
7442 emul=elf
7443 case `/usr/bin/file conftest.$ac_objext` in
7444 *32-bit*)
7445 emul="${emul}32"
7446 ;;
7447 *64-bit*)
7448 emul="${emul}64"
7449 ;;
7450 esac
7451 case `/usr/bin/file conftest.$ac_objext` in
7452 *MSB*)
7453 emul="${emul}btsmip"
7454 ;;
7455 *LSB*)
7456 emul="${emul}ltsmip"
7457 ;;
7458 esac
7459 case `/usr/bin/file conftest.$ac_objext` in
7460 *N32*)
7461 emul="${emul}n32"
7462 ;;
7463 esac
7464 LD="${LD-ld} -m $emul"
7465 fi
7466 rm -rf conftest*
7467 ;;
7468
7469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7471 # Find out what ABI is being produced by ac_compile, and set linker
7472 # options accordingly. Note that the listed cases only cover the
7473 # situations where additional linker options are needed (such as when
7474 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7475 # vice versa); the common cases where no linker options are needed do
7476 # not appear in the list.
7477 echo 'int i;' > conftest.$ac_ext
7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7479 (eval $ac_compile) 2>&5
7480 ac_status=$?
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
7483 case `/usr/bin/file conftest.o` in
7484 *32-bit*)
7485 case $host in
7486 x86_64-*kfreebsd*-gnu)
7487 LD="${LD-ld} -m elf_i386_fbsd"
7488 ;;
7489 x86_64-*linux*)
7490 case `/usr/bin/file conftest.o` in
7491 *x86-64*)
7492 LD="${LD-ld} -m elf32_x86_64"
7493 ;;
7494 *)
7495 LD="${LD-ld} -m elf_i386"
7496 ;;
7497 esac
7498 ;;
7499 powerpc64le-*linux*)
7500 LD="${LD-ld} -m elf32lppclinux"
7501 ;;
7502 powerpc64-*linux*)
7503 LD="${LD-ld} -m elf32ppclinux"
7504 ;;
7505 s390x-*linux*)
7506 LD="${LD-ld} -m elf_s390"
7507 ;;
7508 sparc64-*linux*)
7509 LD="${LD-ld} -m elf32_sparc"
7510 ;;
7511 esac
7512 ;;
7513 *64-bit*)
7514 case $host in
7515 x86_64-*kfreebsd*-gnu)
7516 LD="${LD-ld} -m elf_x86_64_fbsd"
7517 ;;
7518 x86_64-*linux*)
7519 LD="${LD-ld} -m elf_x86_64"
7520 ;;
7521 powerpcle-*linux*)
7522 LD="${LD-ld} -m elf64lppc"
7523 ;;
7524 powerpc-*linux*)
7525 LD="${LD-ld} -m elf64ppc"
7526 ;;
7527 s390*-*linux*|s390*-*tpf*)
7528 LD="${LD-ld} -m elf64_s390"
7529 ;;
7530 sparc*-*linux*)
7531 LD="${LD-ld} -m elf64_sparc"
7532 ;;
7533 esac
7534 ;;
7535 esac
7536 fi
7537 rm -rf conftest*
7538 ;;
7539
7540 *-*-sco3.2v5*)
7541 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7542 SAVE_CFLAGS=$CFLAGS
7543 CFLAGS="$CFLAGS -belf"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7545 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7546 if ${lt_cv_cc_needs_belf+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 ac_ext=c
7550 ac_cpp='$CPP $CPPFLAGS'
7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7554
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557
7558 int
7559 main ()
7560 {
7561
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_link "$LINENO"; then :
7567 lt_cv_cc_needs_belf=yes
7568 else
7569 lt_cv_cc_needs_belf=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext \
7572 conftest$ac_exeext conftest.$ac_ext
7573 ac_ext=c
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7581 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7582 if test yes != "$lt_cv_cc_needs_belf"; then
7583 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7584 CFLAGS=$SAVE_CFLAGS
7585 fi
7586 ;;
7587 *-*solaris*)
7588 # Find out what ABI is being produced by ac_compile, and set linker
7589 # options accordingly.
7590 echo 'int i;' > conftest.$ac_ext
7591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7592 (eval $ac_compile) 2>&5
7593 ac_status=$?
7594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595 test $ac_status = 0; }; then
7596 case `/usr/bin/file conftest.o` in
7597 *64-bit*)
7598 case $lt_cv_prog_gnu_ld in
7599 yes*)
7600 case $host in
7601 i?86-*-solaris*|x86_64-*-solaris*)
7602 LD="${LD-ld} -m elf_x86_64"
7603 ;;
7604 sparc*-*-solaris*)
7605 LD="${LD-ld} -m elf64_sparc"
7606 ;;
7607 esac
7608 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7609 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7610 LD=${LD-ld}_sol2
7611 fi
7612 ;;
7613 *)
7614 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7615 LD="${LD-ld} -64"
7616 fi
7617 ;;
7618 esac
7619 ;;
7620 esac
7621 fi
7622 rm -rf conftest*
7623 ;;
7624 esac
7625
7626 need_locks=$enable_libtool_lock
7627
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}mt; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 if test -n "$MANIFEST_TOOL"; then
7637 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7657 if test -n "$MANIFEST_TOOL"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7659 $as_echo "$MANIFEST_TOOL" >&6; }
7660 else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665
7666 fi
7667 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7668 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7669 # Extract the first word of "mt", so it can be a program name with args.
7670 set dummy mt; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$ac_ct_MANIFEST_TOOL"; then
7677 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7697 if test -n "$ac_ct_MANIFEST_TOOL"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7699 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7706 MANIFEST_TOOL=":"
7707 else
7708 case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7715 fi
7716 else
7717 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7718 fi
7719
7720 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7722 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7723 if ${lt_cv_path_mainfest_tool+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 lt_cv_path_mainfest_tool=no
7727 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7728 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7729 cat conftest.err >&5
7730 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7731 lt_cv_path_mainfest_tool=yes
7732 fi
7733 rm -f conftest*
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7736 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7737 if test yes != "$lt_cv_path_mainfest_tool"; then
7738 MANIFEST_TOOL=:
7739 fi
7740
7741
7742
7743
7744
7745
7746 case $host_os in
7747 rhapsody* | darwin*)
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7750 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$DSYMUTIL"; then
7757 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770 done
7771 done
7772 IFS=$as_save_IFS
7773
7774 fi
7775 fi
7776 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7777 if test -n "$DSYMUTIL"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7779 $as_echo "$DSYMUTIL" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7783 fi
7784
7785
7786 fi
7787 if test -z "$ac_cv_prog_DSYMUTIL"; then
7788 ac_ct_DSYMUTIL=$DSYMUTIL
7789 # Extract the first word of "dsymutil", so it can be a program name with args.
7790 set dummy dsymutil; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$ac_ct_DSYMUTIL"; then
7797 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7817 if test -n "$ac_ct_DSYMUTIL"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7819 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825 if test "x$ac_ct_DSYMUTIL" = x; then
7826 DSYMUTIL=":"
7827 else
7828 case $cross_compiling:$ac_tool_warned in
7829 yes:)
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832 ac_tool_warned=yes ;;
7833 esac
7834 DSYMUTIL=$ac_ct_DSYMUTIL
7835 fi
7836 else
7837 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7838 fi
7839
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_NMEDIT+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$NMEDIT"; then
7849 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 NMEDIT=$ac_cv_prog_NMEDIT
7869 if test -n "$NMEDIT"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7871 $as_echo "$NMEDIT" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878 fi
7879 if test -z "$ac_cv_prog_NMEDIT"; then
7880 ac_ct_NMEDIT=$NMEDIT
7881 # Extract the first word of "nmedit", so it can be a program name with args.
7882 set dummy nmedit; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$ac_ct_NMEDIT"; then
7889 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7909 if test -n "$ac_ct_NMEDIT"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7911 $as_echo "$ac_ct_NMEDIT" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917 if test "x$ac_ct_NMEDIT" = x; then
7918 NMEDIT=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 NMEDIT=$ac_ct_NMEDIT
7927 fi
7928 else
7929 NMEDIT="$ac_cv_prog_NMEDIT"
7930 fi
7931
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_LIPO+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$LIPO"; then
7941 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958 fi
7959 fi
7960 LIPO=$ac_cv_prog_LIPO
7961 if test -n "$LIPO"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7963 $as_echo "$LIPO" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969
7970 fi
7971 if test -z "$ac_cv_prog_LIPO"; then
7972 ac_ct_LIPO=$LIPO
7973 # Extract the first word of "lipo", so it can be a program name with args.
7974 set dummy lipo; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$ac_ct_LIPO"; then
7981 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_LIPO="lipo"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8001 if test -n "$ac_ct_LIPO"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8003 $as_echo "$ac_ct_LIPO" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009 if test "x$ac_ct_LIPO" = x; then
8010 LIPO=":"
8011 else
8012 case $cross_compiling:$ac_tool_warned in
8013 yes:)
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016 ac_tool_warned=yes ;;
8017 esac
8018 LIPO=$ac_ct_LIPO
8019 fi
8020 else
8021 LIPO="$ac_cv_prog_LIPO"
8022 fi
8023
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}otool; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_OTOOL+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$OTOOL"; then
8033 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 OTOOL=$ac_cv_prog_OTOOL
8053 if test -n "$OTOOL"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8055 $as_echo "$OTOOL" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061
8062 fi
8063 if test -z "$ac_cv_prog_OTOOL"; then
8064 ac_ct_OTOOL=$OTOOL
8065 # Extract the first word of "otool", so it can be a program name with args.
8066 set dummy otool; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_OTOOL"; then
8073 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_OTOOL="otool"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8093 if test -n "$ac_ct_OTOOL"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8095 $as_echo "$ac_ct_OTOOL" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101 if test "x$ac_ct_OTOOL" = x; then
8102 OTOOL=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 OTOOL=$ac_ct_OTOOL
8111 fi
8112 else
8113 OTOOL="$ac_cv_prog_OTOOL"
8114 fi
8115
8116 if test -n "$ac_tool_prefix"; then
8117 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8118 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if ${ac_cv_prog_OTOOL64+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 if test -n "$OTOOL64"; then
8125 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138 done
8139 done
8140 IFS=$as_save_IFS
8141
8142 fi
8143 fi
8144 OTOOL64=$ac_cv_prog_OTOOL64
8145 if test -n "$OTOOL64"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8147 $as_echo "$OTOOL64" >&6; }
8148 else
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8151 fi
8152
8153
8154 fi
8155 if test -z "$ac_cv_prog_OTOOL64"; then
8156 ac_ct_OTOOL64=$OTOOL64
8157 # Extract the first word of "otool64", so it can be a program name with args.
8158 set dummy otool64; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$ac_ct_OTOOL64"; then
8165 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_ac_ct_OTOOL64="otool64"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi
8183 fi
8184 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8185 if test -n "$ac_ct_OTOOL64"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8187 $as_echo "$ac_ct_OTOOL64" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192
8193 if test "x$ac_ct_OTOOL64" = x; then
8194 OTOOL64=":"
8195 else
8196 case $cross_compiling:$ac_tool_warned in
8197 yes:)
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200 ac_tool_warned=yes ;;
8201 esac
8202 OTOOL64=$ac_ct_OTOOL64
8203 fi
8204 else
8205 OTOOL64="$ac_cv_prog_OTOOL64"
8206 fi
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8235 $as_echo_n "checking for -single_module linker flag... " >&6; }
8236 if ${lt_cv_apple_cc_single_mod+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 lt_cv_apple_cc_single_mod=no
8240 if test -z "$LT_MULTI_MODULE"; then
8241 # By default we will add the -single_module flag. You can override
8242 # by either setting the environment variable LT_MULTI_MODULE
8243 # non-empty at configure time, or by adding -multi_module to the
8244 # link flags.
8245 rm -rf libconftest.dylib*
8246 echo "int foo(void){return 1;}" > conftest.c
8247 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8248 -dynamiclib -Wl,-single_module conftest.c" >&5
8249 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8250 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8251 _lt_result=$?
8252 # If there is a non-empty error log, and "single_module"
8253 # appears in it, assume the flag caused a linker warning
8254 if test -s conftest.err && $GREP single_module conftest.err; then
8255 cat conftest.err >&5
8256 # Otherwise, if the output was created with a 0 exit code from
8257 # the compiler, it worked.
8258 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8259 lt_cv_apple_cc_single_mod=yes
8260 else
8261 cat conftest.err >&5
8262 fi
8263 rm -rf libconftest.dylib*
8264 rm -f conftest.*
8265 fi
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8268 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8269
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8271 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8272 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 lt_cv_ld_exported_symbols_list=no
8276 save_LDFLAGS=$LDFLAGS
8277 echo "_main" > conftest.sym
8278 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281
8282 int
8283 main ()
8284 {
8285
8286 ;
8287 return 0;
8288 }
8289 _ACEOF
8290 if ac_fn_c_try_link "$LINENO"; then :
8291 lt_cv_ld_exported_symbols_list=yes
8292 else
8293 lt_cv_ld_exported_symbols_list=no
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297 LDFLAGS=$save_LDFLAGS
8298
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8301 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8304 $as_echo_n "checking for -force_load linker flag... " >&6; }
8305 if ${lt_cv_ld_force_load+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 lt_cv_ld_force_load=no
8309 cat > conftest.c << _LT_EOF
8310 int forced_loaded() { return 2;}
8311 _LT_EOF
8312 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8313 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8314 echo "$AR cr libconftest.a conftest.o" >&5
8315 $AR cr libconftest.a conftest.o 2>&5
8316 echo "$RANLIB libconftest.a" >&5
8317 $RANLIB libconftest.a 2>&5
8318 cat > conftest.c << _LT_EOF
8319 int main() { return 0;}
8320 _LT_EOF
8321 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8322 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8323 _lt_result=$?
8324 if test -s conftest.err && $GREP force_load conftest.err; then
8325 cat conftest.err >&5
8326 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8327 lt_cv_ld_force_load=yes
8328 else
8329 cat conftest.err >&5
8330 fi
8331 rm -f conftest.err libconftest.a conftest conftest.c
8332 rm -rf conftest.dSYM
8333
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8336 $as_echo "$lt_cv_ld_force_load" >&6; }
8337 case $host_os in
8338 rhapsody* | darwin1.[012])
8339 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8340 darwin1.*)
8341 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8342 darwin*) # darwin 5.x on
8343 # if running on 10.5 or later, the deployment target defaults
8344 # to the OS version, if on x86, and 10.4, the deployment
8345 # target defaults to 10.4. Don't you love it?
8346 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8347 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8348 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8349 10.[012][,.]*)
8350 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8351 10.*)
8352 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8353 esac
8354 ;;
8355 esac
8356 if test yes = "$lt_cv_apple_cc_single_mod"; then
8357 _lt_dar_single_mod='$single_module'
8358 fi
8359 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8360 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8361 else
8362 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8363 fi
8364 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8365 _lt_dsymutil='~$DSYMUTIL $lib || :'
8366 else
8367 _lt_dsymutil=
8368 fi
8369 ;;
8370 esac
8371
8372 # func_munge_path_list VARIABLE PATH
8373 # -----------------------------------
8374 # VARIABLE is name of variable containing _space_ separated list of
8375 # directories to be munged by the contents of PATH, which is string
8376 # having a format:
8377 # "DIR[:DIR]:"
8378 # string "DIR[ DIR]" will be prepended to VARIABLE
8379 # ":DIR[:DIR]"
8380 # string "DIR[ DIR]" will be appended to VARIABLE
8381 # "DIRP[:DIRP]::[DIRA:]DIRA"
8382 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8383 # "DIRA[ DIRA]" will be appended to VARIABLE
8384 # "DIR[:DIR]"
8385 # VARIABLE will be replaced by "DIR[ DIR]"
8386 func_munge_path_list ()
8387 {
8388 case x$2 in
8389 x)
8390 ;;
8391 *:)
8392 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8393 ;;
8394 x:*)
8395 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8396 ;;
8397 *::*)
8398 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8399 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8400 ;;
8401 *)
8402 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8403 ;;
8404 esac
8405 }
8406
8407 ac_ext=c
8408 ac_cpp='$CPP $CPPFLAGS'
8409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8413 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8414 # On Suns, sometimes $CPP names a directory.
8415 if test -n "$CPP" && test -d "$CPP"; then
8416 CPP=
8417 fi
8418 if test -z "$CPP"; then
8419 if ${ac_cv_prog_CPP+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 # Double quotes because CPP needs to be expanded
8423 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8424 do
8425 ac_preproc_ok=false
8426 for ac_c_preproc_warn_flag in '' yes
8427 do
8428 # Use a header file that comes with gcc, so configuring glibc
8429 # with a fresh cross-compiler works.
8430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8431 # <limits.h> exists even on freestanding compilers.
8432 # On the NeXT, cc -E runs the code through the compiler's parser,
8433 # not just through cpp. "Syntax error" is here to catch this case.
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8436 #ifdef __STDC__
8437 # include <limits.h>
8438 #else
8439 # include <assert.h>
8440 #endif
8441 Syntax error
8442 _ACEOF
8443 if ac_fn_c_try_cpp "$LINENO"; then :
8444
8445 else
8446 # Broken: fails on valid input.
8447 continue
8448 fi
8449 rm -f conftest.err conftest.i conftest.$ac_ext
8450
8451 # OK, works on sane cases. Now check whether nonexistent headers
8452 # can be detected and how.
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 #include <ac_nonexistent.h>
8456 _ACEOF
8457 if ac_fn_c_try_cpp "$LINENO"; then :
8458 # Broken: success on invalid input.
8459 continue
8460 else
8461 # Passes both tests.
8462 ac_preproc_ok=:
8463 break
8464 fi
8465 rm -f conftest.err conftest.i conftest.$ac_ext
8466
8467 done
8468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8469 rm -f conftest.i conftest.err conftest.$ac_ext
8470 if $ac_preproc_ok; then :
8471 break
8472 fi
8473
8474 done
8475 ac_cv_prog_CPP=$CPP
8476
8477 fi
8478 CPP=$ac_cv_prog_CPP
8479 else
8480 ac_cv_prog_CPP=$CPP
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8483 $as_echo "$CPP" >&6; }
8484 ac_preproc_ok=false
8485 for ac_c_preproc_warn_flag in '' yes
8486 do
8487 # Use a header file that comes with gcc, so configuring glibc
8488 # with a fresh cross-compiler works.
8489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8490 # <limits.h> exists even on freestanding compilers.
8491 # On the NeXT, cc -E runs the code through the compiler's parser,
8492 # not just through cpp. "Syntax error" is here to catch this case.
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #ifdef __STDC__
8496 # include <limits.h>
8497 #else
8498 # include <assert.h>
8499 #endif
8500 Syntax error
8501 _ACEOF
8502 if ac_fn_c_try_cpp "$LINENO"; then :
8503
8504 else
8505 # Broken: fails on valid input.
8506 continue
8507 fi
8508 rm -f conftest.err conftest.i conftest.$ac_ext
8509
8510 # OK, works on sane cases. Now check whether nonexistent headers
8511 # can be detected and how.
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 #include <ac_nonexistent.h>
8515 _ACEOF
8516 if ac_fn_c_try_cpp "$LINENO"; then :
8517 # Broken: success on invalid input.
8518 continue
8519 else
8520 # Passes both tests.
8521 ac_preproc_ok=:
8522 break
8523 fi
8524 rm -f conftest.err conftest.i conftest.$ac_ext
8525
8526 done
8527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8528 rm -f conftest.i conftest.err conftest.$ac_ext
8529 if $ac_preproc_ok; then :
8530
8531 else
8532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8534 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8535 See \`config.log' for more details" "$LINENO" 5; }
8536 fi
8537
8538 ac_ext=c
8539 ac_cpp='$CPP $CPPFLAGS'
8540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8543
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8546 $as_echo_n "checking for ANSI C header files... " >&6; }
8547 if ${ac_cv_header_stdc+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <stdlib.h>
8553 #include <stdarg.h>
8554 #include <string.h>
8555 #include <float.h>
8556
8557 int
8558 main ()
8559 {
8560
8561 ;
8562 return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_c_try_compile "$LINENO"; then :
8566 ac_cv_header_stdc=yes
8567 else
8568 ac_cv_header_stdc=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571
8572 if test $ac_cv_header_stdc = yes; then
8573 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 #include <string.h>
8577
8578 _ACEOF
8579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8580 $EGREP "memchr" >/dev/null 2>&1; then :
8581
8582 else
8583 ac_cv_header_stdc=no
8584 fi
8585 rm -f conftest*
8586
8587 fi
8588
8589 if test $ac_cv_header_stdc = yes; then
8590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 #include <stdlib.h>
8594
8595 _ACEOF
8596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8597 $EGREP "free" >/dev/null 2>&1; then :
8598
8599 else
8600 ac_cv_header_stdc=no
8601 fi
8602 rm -f conftest*
8603
8604 fi
8605
8606 if test $ac_cv_header_stdc = yes; then
8607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8608 if test "$cross_compiling" = yes; then :
8609 :
8610 else
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613 #include <ctype.h>
8614 #include <stdlib.h>
8615 #if ((' ' & 0x0FF) == 0x020)
8616 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8617 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8618 #else
8619 # define ISLOWER(c) \
8620 (('a' <= (c) && (c) <= 'i') \
8621 || ('j' <= (c) && (c) <= 'r') \
8622 || ('s' <= (c) && (c) <= 'z'))
8623 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8624 #endif
8625
8626 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8627 int
8628 main ()
8629 {
8630 int i;
8631 for (i = 0; i < 256; i++)
8632 if (XOR (islower (i), ISLOWER (i))
8633 || toupper (i) != TOUPPER (i))
8634 return 2;
8635 return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_c_try_run "$LINENO"; then :
8639
8640 else
8641 ac_cv_header_stdc=no
8642 fi
8643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8644 conftest.$ac_objext conftest.beam conftest.$ac_ext
8645 fi
8646
8647 fi
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8650 $as_echo "$ac_cv_header_stdc" >&6; }
8651 if test $ac_cv_header_stdc = yes; then
8652
8653 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8654
8655 fi
8656
8657 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8659 inttypes.h stdint.h unistd.h
8660 do :
8661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8662 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8663 "
8664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8665 cat >>confdefs.h <<_ACEOF
8666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8667 _ACEOF
8668
8669 fi
8670
8671 done
8672
8673
8674 for ac_header in dlfcn.h
8675 do :
8676 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8677 "
8678 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8679 cat >>confdefs.h <<_ACEOF
8680 #define HAVE_DLFCN_H 1
8681 _ACEOF
8682
8683 fi
8684
8685 done
8686
8687
8688
8689
8690
8691 # Set options
8692 enable_win32_dll=yes
8693
8694 case $host in
8695 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8696 if test -n "$ac_tool_prefix"; then
8697 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8698 set dummy ${ac_tool_prefix}as; ac_word=$2
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700 $as_echo_n "checking for $ac_word... " >&6; }
8701 if ${ac_cv_prog_AS+:} false; then :
8702 $as_echo_n "(cached) " >&6
8703 else
8704 if test -n "$AS"; then
8705 ac_cv_prog_AS="$AS" # Let the user override the test.
8706 else
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714 ac_cv_prog_AS="${ac_tool_prefix}as"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2
8717 fi
8718 done
8719 done
8720 IFS=$as_save_IFS
8721
8722 fi
8723 fi
8724 AS=$ac_cv_prog_AS
8725 if test -n "$AS"; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8727 $as_echo "$AS" >&6; }
8728 else
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8731 fi
8732
8733
8734 fi
8735 if test -z "$ac_cv_prog_AS"; then
8736 ac_ct_AS=$AS
8737 # Extract the first word of "as", so it can be a program name with args.
8738 set dummy as; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 if test -n "$ac_ct_AS"; then
8745 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8746 else
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_ac_ct_AS="as"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8757 fi
8758 done
8759 done
8760 IFS=$as_save_IFS
8761
8762 fi
8763 fi
8764 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8765 if test -n "$ac_ct_AS"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8767 $as_echo "$ac_ct_AS" >&6; }
8768 else
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772
8773 if test "x$ac_ct_AS" = x; then
8774 AS="false"
8775 else
8776 case $cross_compiling:$ac_tool_warned in
8777 yes:)
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8780 ac_tool_warned=yes ;;
8781 esac
8782 AS=$ac_ct_AS
8783 fi
8784 else
8785 AS="$ac_cv_prog_AS"
8786 fi
8787
8788 if test -n "$ac_tool_prefix"; then
8789 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8790 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if ${ac_cv_prog_DLLTOOL+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 if test -n "$DLLTOOL"; then
8797 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810 done
8811 done
8812 IFS=$as_save_IFS
8813
8814 fi
8815 fi
8816 DLLTOOL=$ac_cv_prog_DLLTOOL
8817 if test -n "$DLLTOOL"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8819 $as_echo "$DLLTOOL" >&6; }
8820 else
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824
8825
8826 fi
8827 if test -z "$ac_cv_prog_DLLTOOL"; then
8828 ac_ct_DLLTOOL=$DLLTOOL
8829 # Extract the first word of "dlltool", so it can be a program name with args.
8830 set dummy dlltool; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 $as_echo_n "checking for $ac_word... " >&6; }
8833 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 if test -n "$ac_ct_DLLTOOL"; then
8837 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8838 else
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 for as_dir in $PATH
8841 do
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2
8849 fi
8850 done
8851 done
8852 IFS=$as_save_IFS
8853
8854 fi
8855 fi
8856 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8857 if test -n "$ac_ct_DLLTOOL"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8859 $as_echo "$ac_ct_DLLTOOL" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8863 fi
8864
8865 if test "x$ac_ct_DLLTOOL" = x; then
8866 DLLTOOL="false"
8867 else
8868 case $cross_compiling:$ac_tool_warned in
8869 yes:)
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8872 ac_tool_warned=yes ;;
8873 esac
8874 DLLTOOL=$ac_ct_DLLTOOL
8875 fi
8876 else
8877 DLLTOOL="$ac_cv_prog_DLLTOOL"
8878 fi
8879
8880 if test -n "$ac_tool_prefix"; then
8881 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8882 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884 $as_echo_n "checking for $ac_word... " >&6; }
8885 if ${ac_cv_prog_OBJDUMP+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 if test -n "$OBJDUMP"; then
8889 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8890 else
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8898 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 break 2
8901 fi
8902 done
8903 done
8904 IFS=$as_save_IFS
8905
8906 fi
8907 fi
8908 OBJDUMP=$ac_cv_prog_OBJDUMP
8909 if test -n "$OBJDUMP"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8911 $as_echo "$OBJDUMP" >&6; }
8912 else
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8915 fi
8916
8917
8918 fi
8919 if test -z "$ac_cv_prog_OBJDUMP"; then
8920 ac_ct_OBJDUMP=$OBJDUMP
8921 # Extract the first word of "objdump", so it can be a program name with args.
8922 set dummy objdump; ac_word=$2
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 $as_echo_n "checking for $ac_word... " >&6; }
8925 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 if test -n "$ac_ct_OBJDUMP"; then
8929 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8930 else
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 for as_dir in $PATH
8933 do
8934 IFS=$as_save_IFS
8935 test -z "$as_dir" && as_dir=.
8936 for ac_exec_ext in '' $ac_executable_extensions; do
8937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8938 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 break 2
8941 fi
8942 done
8943 done
8944 IFS=$as_save_IFS
8945
8946 fi
8947 fi
8948 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8949 if test -n "$ac_ct_OBJDUMP"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8951 $as_echo "$ac_ct_OBJDUMP" >&6; }
8952 else
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8955 fi
8956
8957 if test "x$ac_ct_OBJDUMP" = x; then
8958 OBJDUMP="false"
8959 else
8960 case $cross_compiling:$ac_tool_warned in
8961 yes:)
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8964 ac_tool_warned=yes ;;
8965 esac
8966 OBJDUMP=$ac_ct_OBJDUMP
8967 fi
8968 else
8969 OBJDUMP="$ac_cv_prog_OBJDUMP"
8970 fi
8971
8972 ;;
8973 esac
8974
8975 test -z "$AS" && AS=as
8976
8977
8978
8979
8980
8981 test -z "$DLLTOOL" && DLLTOOL=dlltool
8982
8983
8984
8985
8986
8987 test -z "$OBJDUMP" && OBJDUMP=objdump
8988
8989
8990
8991
8992
8993
8994
8995 enable_dlopen=no
8996
8997
8998
8999 # Check whether --enable-shared was given.
9000 if test "${enable_shared+set}" = set; then :
9001 enableval=$enable_shared; p=${PACKAGE-default}
9002 case $enableval in
9003 yes) enable_shared=yes ;;
9004 no) enable_shared=no ;;
9005 *)
9006 enable_shared=no
9007 # Look at the argument we got. We use all the common list separators.
9008 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9009 for pkg in $enableval; do
9010 IFS=$lt_save_ifs
9011 if test "X$pkg" = "X$p"; then
9012 enable_shared=yes
9013 fi
9014 done
9015 IFS=$lt_save_ifs
9016 ;;
9017 esac
9018 else
9019 enable_shared=yes
9020 fi
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 # Check whether --enable-static was given.
9031 if test "${enable_static+set}" = set; then :
9032 enableval=$enable_static; p=${PACKAGE-default}
9033 case $enableval in
9034 yes) enable_static=yes ;;
9035 no) enable_static=no ;;
9036 *)
9037 enable_static=no
9038 # Look at the argument we got. We use all the common list separators.
9039 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9040 for pkg in $enableval; do
9041 IFS=$lt_save_ifs
9042 if test "X$pkg" = "X$p"; then
9043 enable_static=yes
9044 fi
9045 done
9046 IFS=$lt_save_ifs
9047 ;;
9048 esac
9049 else
9050 enable_static=yes
9051 fi
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062 # Check whether --with-pic was given.
9063 if test "${with_pic+set}" = set; then :
9064 withval=$with_pic; lt_p=${PACKAGE-default}
9065 case $withval in
9066 yes|no) pic_mode=$withval ;;
9067 *)
9068 pic_mode=default
9069 # Look at the argument we got. We use all the common list separators.
9070 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9071 for lt_pkg in $withval; do
9072 IFS=$lt_save_ifs
9073 if test "X$lt_pkg" = "X$lt_p"; then
9074 pic_mode=yes
9075 fi
9076 done
9077 IFS=$lt_save_ifs
9078 ;;
9079 esac
9080 else
9081 pic_mode=default
9082 fi
9083
9084
9085
9086
9087
9088
9089
9090
9091 # Check whether --enable-fast-install was given.
9092 if test "${enable_fast_install+set}" = set; then :
9093 enableval=$enable_fast_install; p=${PACKAGE-default}
9094 case $enableval in
9095 yes) enable_fast_install=yes ;;
9096 no) enable_fast_install=no ;;
9097 *)
9098 enable_fast_install=no
9099 # Look at the argument we got. We use all the common list separators.
9100 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9101 for pkg in $enableval; do
9102 IFS=$lt_save_ifs
9103 if test "X$pkg" = "X$p"; then
9104 enable_fast_install=yes
9105 fi
9106 done
9107 IFS=$lt_save_ifs
9108 ;;
9109 esac
9110 else
9111 enable_fast_install=yes
9112 fi
9113
9114
9115
9116
9117
9118
9119
9120
9121 shared_archive_member_spec=
9122 case $host,$enable_shared in
9123 power*-*-aix[5-9]*,yes)
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9125 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9126
9127 # Check whether --with-aix-soname was given.
9128 if test "${with_aix_soname+set}" = set; then :
9129 withval=$with_aix_soname; case $withval in
9130 aix|svr4|both)
9131 ;;
9132 *)
9133 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9134 ;;
9135 esac
9136 lt_cv_with_aix_soname=$with_aix_soname
9137 else
9138 if ${lt_cv_with_aix_soname+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 lt_cv_with_aix_soname=aix
9142 fi
9143
9144 with_aix_soname=$lt_cv_with_aix_soname
9145 fi
9146
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9148 $as_echo "$with_aix_soname" >&6; }
9149 if test aix != "$with_aix_soname"; then
9150 # For the AIX way of multilib, we name the shared archive member
9151 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9152 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9153 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9154 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9155 if test 64 = "${OBJECT_MODE-32}"; then
9156 shared_archive_member_spec=shr_64
9157 else
9158 shared_archive_member_spec=shr
9159 fi
9160 fi
9161 ;;
9162 *)
9163 with_aix_soname=aix
9164 ;;
9165 esac
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 # This can be used to rebuild libtool when needed
9177 LIBTOOL_DEPS=$ltmain
9178
9179 # Always use our own libtool.
9180 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 test -z "$LN_S" && LN_S="ln -s"
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226 if test -n "${ZSH_VERSION+set}"; then
9227 setopt NO_GLOB_SUBST
9228 fi
9229
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9231 $as_echo_n "checking for objdir... " >&6; }
9232 if ${lt_cv_objdir+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 rm -f .libs 2>/dev/null
9236 mkdir .libs 2>/dev/null
9237 if test -d .libs; then
9238 lt_cv_objdir=.libs
9239 else
9240 # MS-DOS does not allow filenames that begin with a dot.
9241 lt_cv_objdir=_libs
9242 fi
9243 rmdir .libs 2>/dev/null
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9246 $as_echo "$lt_cv_objdir" >&6; }
9247 objdir=$lt_cv_objdir
9248
9249
9250
9251
9252
9253 cat >>confdefs.h <<_ACEOF
9254 #define LT_OBJDIR "$lt_cv_objdir/"
9255 _ACEOF
9256
9257
9258
9259
9260 case $host_os in
9261 aix3*)
9262 # AIX sometimes has problems with the GCC collect2 program. For some
9263 # reason, if we set the COLLECT_NAMES environment variable, the problems
9264 # vanish in a puff of smoke.
9265 if test set != "${COLLECT_NAMES+set}"; then
9266 COLLECT_NAMES=
9267 export COLLECT_NAMES
9268 fi
9269 ;;
9270 esac
9271
9272 # Global variables:
9273 ofile=libtool
9274 can_build_shared=yes
9275
9276 # All known linkers require a '.a' archive for static linking (except MSVC,
9277 # which needs '.lib').
9278 libext=a
9279
9280 with_gnu_ld=$lt_cv_prog_gnu_ld
9281
9282 old_CC=$CC
9283 old_CFLAGS=$CFLAGS
9284
9285 # Set sane defaults for various variables
9286 test -z "$CC" && CC=cc
9287 test -z "$LTCC" && LTCC=$CC
9288 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9289 test -z "$LD" && LD=ld
9290 test -z "$ac_objext" && ac_objext=o
9291
9292 func_cc_basename $compiler
9293 cc_basename=$func_cc_basename_result
9294
9295
9296 # Only perform the check for file, if the check method requires it
9297 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9298 case $deplibs_check_method in
9299 file_magic*)
9300 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9302 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9303 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 case $MAGIC_CMD in
9307 [\\/*] | ?:[\\/]*)
9308 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9309 ;;
9310 *)
9311 lt_save_MAGIC_CMD=$MAGIC_CMD
9312 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9313 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9314 for ac_dir in $ac_dummy; do
9315 IFS=$lt_save_ifs
9316 test -z "$ac_dir" && ac_dir=.
9317 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9318 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9319 if test -n "$file_magic_test_file"; then
9320 case $deplibs_check_method in
9321 "file_magic "*)
9322 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9323 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9325 $EGREP "$file_magic_regex" > /dev/null; then
9326 :
9327 else
9328 cat <<_LT_EOF 1>&2
9329
9330 *** Warning: the command libtool uses to detect shared libraries,
9331 *** $file_magic_cmd, produces output that libtool cannot recognize.
9332 *** The result is that libtool may fail to recognize shared libraries
9333 *** as such. This will affect the creation of libtool libraries that
9334 *** depend on shared libraries, but programs linked with such libtool
9335 *** libraries will work regardless of this problem. Nevertheless, you
9336 *** may want to report the problem to your system manager and/or to
9337 *** [email protected]
9338
9339 _LT_EOF
9340 fi ;;
9341 esac
9342 fi
9343 break
9344 fi
9345 done
9346 IFS=$lt_save_ifs
9347 MAGIC_CMD=$lt_save_MAGIC_CMD
9348 ;;
9349 esac
9350 fi
9351
9352 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9353 if test -n "$MAGIC_CMD"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9355 $as_echo "$MAGIC_CMD" >&6; }
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9359 fi
9360
9361
9362
9363
9364
9365 if test -z "$lt_cv_path_MAGIC_CMD"; then
9366 if test -n "$ac_tool_prefix"; then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9368 $as_echo_n "checking for file... " >&6; }
9369 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 case $MAGIC_CMD in
9373 [\\/*] | ?:[\\/]*)
9374 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9375 ;;
9376 *)
9377 lt_save_MAGIC_CMD=$MAGIC_CMD
9378 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9379 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9380 for ac_dir in $ac_dummy; do
9381 IFS=$lt_save_ifs
9382 test -z "$ac_dir" && ac_dir=.
9383 if test -f "$ac_dir/file"; then
9384 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9385 if test -n "$file_magic_test_file"; then
9386 case $deplibs_check_method in
9387 "file_magic "*)
9388 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9389 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9390 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9391 $EGREP "$file_magic_regex" > /dev/null; then
9392 :
9393 else
9394 cat <<_LT_EOF 1>&2
9395
9396 *** Warning: the command libtool uses to detect shared libraries,
9397 *** $file_magic_cmd, produces output that libtool cannot recognize.
9398 *** The result is that libtool may fail to recognize shared libraries
9399 *** as such. This will affect the creation of libtool libraries that
9400 *** depend on shared libraries, but programs linked with such libtool
9401 *** libraries will work regardless of this problem. Nevertheless, you
9402 *** may want to report the problem to your system manager and/or to
9403 *** [email protected]
9404
9405 _LT_EOF
9406 fi ;;
9407 esac
9408 fi
9409 break
9410 fi
9411 done
9412 IFS=$lt_save_ifs
9413 MAGIC_CMD=$lt_save_MAGIC_CMD
9414 ;;
9415 esac
9416 fi
9417
9418 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9419 if test -n "$MAGIC_CMD"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9421 $as_echo "$MAGIC_CMD" >&6; }
9422 else
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9425 fi
9426
9427
9428 else
9429 MAGIC_CMD=:
9430 fi
9431 fi
9432
9433 fi
9434 ;;
9435 esac
9436
9437 # Use C for the default configuration in the libtool script
9438
9439 lt_save_CC=$CC
9440 ac_ext=c
9441 ac_cpp='$CPP $CPPFLAGS'
9442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9445
9446
9447 # Source file extension for C test sources.
9448 ac_ext=c
9449
9450 # Object file extension for compiled C test sources.
9451 objext=o
9452 objext=$objext
9453
9454 # Code to be used in simple compile tests
9455 lt_simple_compile_test_code="int some_variable = 0;"
9456
9457 # Code to be used in simple link tests
9458 lt_simple_link_test_code='int main(){return(0);}'
9459
9460
9461
9462
9463
9464
9465
9466 # If no C compiler was specified, use CC.
9467 LTCC=${LTCC-"$CC"}
9468
9469 # If no C compiler flags were specified, use CFLAGS.
9470 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9471
9472 # Allow CC to be a program name with arguments.
9473 compiler=$CC
9474
9475 # Save the default compiler, since it gets overwritten when the other
9476 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9477 compiler_DEFAULT=$CC
9478
9479 # save warnings/boilerplate of simple test code
9480 ac_outfile=conftest.$ac_objext
9481 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9482 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9483 _lt_compiler_boilerplate=`cat conftest.err`
9484 $RM conftest*
9485
9486 ac_outfile=conftest.$ac_objext
9487 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9488 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9489 _lt_linker_boilerplate=`cat conftest.err`
9490 $RM -r conftest*
9491
9492
9493 ## CAVEAT EMPTOR:
9494 ## There is no encapsulation within the following macros, do not change
9495 ## the running order or otherwise move them around unless you know exactly
9496 ## what you are doing...
9497 if test -n "$compiler"; then
9498
9499 lt_prog_compiler_no_builtin_flag=
9500
9501 if test yes = "$GCC"; then
9502 case $cc_basename in
9503 nvcc*)
9504 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9505 *)
9506 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9507 esac
9508
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9510 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9511 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 lt_cv_prog_compiler_rtti_exceptions=no
9515 ac_outfile=conftest.$ac_objext
9516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9517 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9518 # Insert the option either (1) after the last *FLAGS variable, or
9519 # (2) before a word containing "conftest.", or (3) at the end.
9520 # Note that $ac_compile itself does not contain backslashes and begins
9521 # with a dollar sign (not a hyphen), so the echo should work correctly.
9522 # The option is referenced via a variable to avoid confusing sed.
9523 lt_compile=`echo "$ac_compile" | $SED \
9524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9526 -e 's:$: $lt_compiler_flag:'`
9527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9528 (eval "$lt_compile" 2>conftest.err)
9529 ac_status=$?
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 if (exit $ac_status) && test -s "$ac_outfile"; then
9533 # The compiler can only warn and ignore the option if not recognized
9534 # So say no if there are warnings other than the usual output.
9535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9538 lt_cv_prog_compiler_rtti_exceptions=yes
9539 fi
9540 fi
9541 $RM conftest*
9542
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9545 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9546
9547 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9548 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9549 else
9550 :
9551 fi
9552
9553 fi
9554
9555
9556
9557
9558
9559
9560 lt_prog_compiler_wl=
9561 lt_prog_compiler_pic=
9562 lt_prog_compiler_static=
9563
9564
9565 if test yes = "$GCC"; then
9566 lt_prog_compiler_wl='-Wl,'
9567 lt_prog_compiler_static='-static'
9568
9569 case $host_os in
9570 aix*)
9571 # All AIX code is PIC.
9572 if test ia64 = "$host_cpu"; then
9573 # AIX 5 now supports IA64 processor
9574 lt_prog_compiler_static='-Bstatic'
9575 fi
9576 lt_prog_compiler_pic='-fPIC'
9577 ;;
9578
9579 amigaos*)
9580 case $host_cpu in
9581 powerpc)
9582 # see comment about AmigaOS4 .so support
9583 lt_prog_compiler_pic='-fPIC'
9584 ;;
9585 m68k)
9586 # FIXME: we need at least 68020 code to build shared libraries, but
9587 # adding the '-m68020' flag to GCC prevents building anything better,
9588 # like '-m68040'.
9589 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9590 ;;
9591 esac
9592 ;;
9593
9594 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9595 # PIC is the default for these OSes.
9596 ;;
9597
9598 mingw* | cygwin* | pw32* | os2* | cegcc*)
9599 # This hack is so that the source file can tell whether it is being
9600 # built for inclusion in a dll (and should export symbols for example).
9601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9602 # (--disable-auto-import) libraries
9603 lt_prog_compiler_pic='-DDLL_EXPORT'
9604 case $host_os in
9605 os2*)
9606 lt_prog_compiler_static='$wl-static'
9607 ;;
9608 esac
9609 ;;
9610
9611 darwin* | rhapsody*)
9612 # PIC is the default on this platform
9613 # Common symbols not allowed in MH_DYLIB files
9614 lt_prog_compiler_pic='-fno-common'
9615 ;;
9616
9617 haiku*)
9618 # PIC is the default for Haiku.
9619 # The "-static" flag exists, but is broken.
9620 lt_prog_compiler_static=
9621 ;;
9622
9623 hpux*)
9624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9626 # sets the default TLS model and affects inlining.
9627 case $host_cpu in
9628 hppa*64*)
9629 # +Z the default
9630 ;;
9631 *)
9632 lt_prog_compiler_pic='-fPIC'
9633 ;;
9634 esac
9635 ;;
9636
9637 interix[3-9]*)
9638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9639 # Instead, we relocate shared libraries at runtime.
9640 ;;
9641
9642 msdosdjgpp*)
9643 # Just because we use GCC doesn't mean we suddenly get shared libraries
9644 # on systems that don't support them.
9645 lt_prog_compiler_can_build_shared=no
9646 enable_shared=no
9647 ;;
9648
9649 *nto* | *qnx*)
9650 # QNX uses GNU C++, but need to define -shared option too, otherwise
9651 # it will coredump.
9652 lt_prog_compiler_pic='-fPIC -shared'
9653 ;;
9654
9655 sysv4*MP*)
9656 if test -d /usr/nec; then
9657 lt_prog_compiler_pic=-Kconform_pic
9658 fi
9659 ;;
9660
9661 *)
9662 lt_prog_compiler_pic='-fPIC'
9663 ;;
9664 esac
9665
9666 case $cc_basename in
9667 nvcc*) # Cuda Compiler Driver 2.2
9668 lt_prog_compiler_wl='-Xlinker '
9669 if test -n "$lt_prog_compiler_pic"; then
9670 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9671 fi
9672 ;;
9673 esac
9674 else
9675 # PORTME Check for flag to pass linker flags through the system compiler.
9676 case $host_os in
9677 aix*)
9678 lt_prog_compiler_wl='-Wl,'
9679 if test ia64 = "$host_cpu"; then
9680 # AIX 5 now supports IA64 processor
9681 lt_prog_compiler_static='-Bstatic'
9682 else
9683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9684 fi
9685 ;;
9686
9687 darwin* | rhapsody*)
9688 # PIC is the default on this platform
9689 # Common symbols not allowed in MH_DYLIB files
9690 lt_prog_compiler_pic='-fno-common'
9691 case $cc_basename in
9692 nagfor*)
9693 # NAG Fortran compiler
9694 lt_prog_compiler_wl='-Wl,-Wl,,'
9695 lt_prog_compiler_pic='-PIC'
9696 lt_prog_compiler_static='-Bstatic'
9697 ;;
9698 esac
9699 ;;
9700
9701 mingw* | cygwin* | pw32* | os2* | cegcc*)
9702 # This hack is so that the source file can tell whether it is being
9703 # built for inclusion in a dll (and should export symbols for example).
9704 lt_prog_compiler_pic='-DDLL_EXPORT'
9705 case $host_os in
9706 os2*)
9707 lt_prog_compiler_static='$wl-static'
9708 ;;
9709 esac
9710 ;;
9711
9712 hpux9* | hpux10* | hpux11*)
9713 lt_prog_compiler_wl='-Wl,'
9714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9715 # not for PA HP-UX.
9716 case $host_cpu in
9717 hppa*64*|ia64*)
9718 # +Z the default
9719 ;;
9720 *)
9721 lt_prog_compiler_pic='+Z'
9722 ;;
9723 esac
9724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9725 lt_prog_compiler_static='$wl-a ${wl}archive'
9726 ;;
9727
9728 irix5* | irix6* | nonstopux*)
9729 lt_prog_compiler_wl='-Wl,'
9730 # PIC (with -KPIC) is the default.
9731 lt_prog_compiler_static='-non_shared'
9732 ;;
9733
9734 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9735 case $cc_basename in
9736 # old Intel for x86_64, which still supported -KPIC.
9737 ecc*)
9738 lt_prog_compiler_wl='-Wl,'
9739 lt_prog_compiler_pic='-KPIC'
9740 lt_prog_compiler_static='-static'
9741 ;;
9742 # flang / f18. f95 an alias for gfortran or flang on Debian
9743 flang* | f18* | f95*)
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_pic='-fPIC'
9746 lt_prog_compiler_static='-static'
9747 ;;
9748 # icc used to be incompatible with GCC.
9749 # ICC 10 doesn't accept -KPIC any more.
9750 icc* | ifort*)
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_pic='-fPIC'
9753 lt_prog_compiler_static='-static'
9754 ;;
9755 # Lahey Fortran 8.1.
9756 lf95*)
9757 lt_prog_compiler_wl='-Wl,'
9758 lt_prog_compiler_pic='--shared'
9759 lt_prog_compiler_static='--static'
9760 ;;
9761 nagfor*)
9762 # NAG Fortran compiler
9763 lt_prog_compiler_wl='-Wl,-Wl,,'
9764 lt_prog_compiler_pic='-PIC'
9765 lt_prog_compiler_static='-Bstatic'
9766 ;;
9767 tcc*)
9768 # Fabrice Bellard et al's Tiny C Compiler
9769 lt_prog_compiler_wl='-Wl,'
9770 lt_prog_compiler_pic='-fPIC'
9771 lt_prog_compiler_static='-static'
9772 ;;
9773 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9774 # Portland Group compilers (*not* the Pentium gcc compiler,
9775 # which looks to be a dead project)
9776 lt_prog_compiler_wl='-Wl,'
9777 lt_prog_compiler_pic='-fpic'
9778 lt_prog_compiler_static='-Bstatic'
9779 ;;
9780 ccc*)
9781 lt_prog_compiler_wl='-Wl,'
9782 # All Alpha code is PIC.
9783 lt_prog_compiler_static='-non_shared'
9784 ;;
9785 xl* | bgxl* | bgf* | mpixl*)
9786 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9787 lt_prog_compiler_wl='-Wl,'
9788 lt_prog_compiler_pic='-qpic'
9789 lt_prog_compiler_static='-qstaticlink'
9790 ;;
9791 *)
9792 case `$CC -V 2>&1 | sed 5q` in
9793 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9794 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9795 lt_prog_compiler_pic='-KPIC'
9796 lt_prog_compiler_static='-Bstatic'
9797 lt_prog_compiler_wl=''
9798 ;;
9799 *Sun\ F* | *Sun*Fortran*)
9800 lt_prog_compiler_pic='-KPIC'
9801 lt_prog_compiler_static='-Bstatic'
9802 lt_prog_compiler_wl='-Qoption ld '
9803 ;;
9804 *Sun\ C*)
9805 # Sun C 5.9
9806 lt_prog_compiler_pic='-KPIC'
9807 lt_prog_compiler_static='-Bstatic'
9808 lt_prog_compiler_wl='-Wl,'
9809 ;;
9810 *Intel*\ [CF]*Compiler*)
9811 lt_prog_compiler_wl='-Wl,'
9812 lt_prog_compiler_pic='-fPIC'
9813 lt_prog_compiler_static='-static'
9814 ;;
9815 *Portland\ Group*)
9816 lt_prog_compiler_wl='-Wl,'
9817 lt_prog_compiler_pic='-fpic'
9818 lt_prog_compiler_static='-Bstatic'
9819 ;;
9820 esac
9821 ;;
9822 esac
9823 ;;
9824
9825 newsos6)
9826 lt_prog_compiler_pic='-KPIC'
9827 lt_prog_compiler_static='-Bstatic'
9828 ;;
9829
9830 *nto* | *qnx*)
9831 # QNX uses GNU C++, but need to define -shared option too, otherwise
9832 # it will coredump.
9833 lt_prog_compiler_pic='-fPIC -shared'
9834 ;;
9835
9836 osf3* | osf4* | osf5*)
9837 lt_prog_compiler_wl='-Wl,'
9838 # All OSF/1 code is PIC.
9839 lt_prog_compiler_static='-non_shared'
9840 ;;
9841
9842 rdos*)
9843 lt_prog_compiler_static='-non_shared'
9844 ;;
9845
9846 solaris*)
9847 lt_prog_compiler_pic='-KPIC'
9848 lt_prog_compiler_static='-Bstatic'
9849 case $cc_basename in
9850 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9851 lt_prog_compiler_wl='-Qoption ld ';;
9852 *)
9853 lt_prog_compiler_wl='-Wl,';;
9854 esac
9855 ;;
9856
9857 sunos4*)
9858 lt_prog_compiler_wl='-Qoption ld '
9859 lt_prog_compiler_pic='-PIC'
9860 lt_prog_compiler_static='-Bstatic'
9861 ;;
9862
9863 sysv4 | sysv4.2uw2* | sysv4.3*)
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='-KPIC'
9866 lt_prog_compiler_static='-Bstatic'
9867 ;;
9868
9869 sysv4*MP*)
9870 if test -d /usr/nec; then
9871 lt_prog_compiler_pic='-Kconform_pic'
9872 lt_prog_compiler_static='-Bstatic'
9873 fi
9874 ;;
9875
9876 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9877 lt_prog_compiler_wl='-Wl,'
9878 lt_prog_compiler_pic='-KPIC'
9879 lt_prog_compiler_static='-Bstatic'
9880 ;;
9881
9882 unicos*)
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_can_build_shared=no
9885 ;;
9886
9887 uts4*)
9888 lt_prog_compiler_pic='-pic'
9889 lt_prog_compiler_static='-Bstatic'
9890 ;;
9891
9892 *)
9893 lt_prog_compiler_can_build_shared=no
9894 ;;
9895 esac
9896 fi
9897
9898 case $host_os in
9899 # For platforms that do not support PIC, -DPIC is meaningless:
9900 *djgpp*)
9901 lt_prog_compiler_pic=
9902 ;;
9903 *)
9904 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9905 ;;
9906 esac
9907
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9910 if ${lt_cv_prog_compiler_pic+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9916 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9917 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9918
9919 #
9920 # Check to make sure the PIC flag actually works.
9921 #
9922 if test -n "$lt_prog_compiler_pic"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9924 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9925 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 lt_cv_prog_compiler_pic_works=no
9929 ac_outfile=conftest.$ac_objext
9930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9931 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9932 # Insert the option either (1) after the last *FLAGS variable, or
9933 # (2) before a word containing "conftest.", or (3) at the end.
9934 # Note that $ac_compile itself does not contain backslashes and begins
9935 # with a dollar sign (not a hyphen), so the echo should work correctly.
9936 # The option is referenced via a variable to avoid confusing sed.
9937 lt_compile=`echo "$ac_compile" | $SED \
9938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9940 -e 's:$: $lt_compiler_flag:'`
9941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9942 (eval "$lt_compile" 2>conftest.err)
9943 ac_status=$?
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 if (exit $ac_status) && test -s "$ac_outfile"; then
9947 # The compiler can only warn and ignore the option if not recognized
9948 # So say no if there are warnings other than the usual output.
9949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9952 lt_cv_prog_compiler_pic_works=yes
9953 fi
9954 fi
9955 $RM conftest*
9956
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9959 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9960
9961 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9962 case $lt_prog_compiler_pic in
9963 "" | " "*) ;;
9964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9965 esac
9966 else
9967 lt_prog_compiler_pic=
9968 lt_prog_compiler_can_build_shared=no
9969 fi
9970
9971 fi
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983 #
9984 # Check to make sure the static flag actually works.
9985 #
9986 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9988 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9989 if ${lt_cv_prog_compiler_static_works+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 lt_cv_prog_compiler_static_works=no
9993 save_LDFLAGS=$LDFLAGS
9994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9997 # The linker can only warn and ignore the option if not recognized
9998 # So say no if there are warnings
9999 if test -s conftest.err; then
10000 # Append any errors to the config.log.
10001 cat conftest.err 1>&5
10002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10004 if diff conftest.exp conftest.er2 >/dev/null; then
10005 lt_cv_prog_compiler_static_works=yes
10006 fi
10007 else
10008 lt_cv_prog_compiler_static_works=yes
10009 fi
10010 fi
10011 $RM -r conftest*
10012 LDFLAGS=$save_LDFLAGS
10013
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10016 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10017
10018 if test yes = "$lt_cv_prog_compiler_static_works"; then
10019 :
10020 else
10021 lt_prog_compiler_static=
10022 fi
10023
10024
10025
10026
10027
10028
10029
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10032 if ${lt_cv_prog_compiler_c_o+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 lt_cv_prog_compiler_c_o=no
10036 $RM -r conftest 2>/dev/null
10037 mkdir conftest
10038 cd conftest
10039 mkdir out
10040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10041
10042 lt_compiler_flag="-o out/conftest2.$ac_objext"
10043 # Insert the option either (1) after the last *FLAGS variable, or
10044 # (2) before a word containing "conftest.", or (3) at the end.
10045 # Note that $ac_compile itself does not contain backslashes and begins
10046 # with a dollar sign (not a hyphen), so the echo should work correctly.
10047 lt_compile=`echo "$ac_compile" | $SED \
10048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10050 -e 's:$: $lt_compiler_flag:'`
10051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10052 (eval "$lt_compile" 2>out/conftest.err)
10053 ac_status=$?
10054 cat out/conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10057 then
10058 # The compiler can only warn and ignore the option if not recognized
10059 # So say no if there are warnings
10060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10063 lt_cv_prog_compiler_c_o=yes
10064 fi
10065 fi
10066 chmod u+w . 2>&5
10067 $RM conftest*
10068 # SGI C++ compiler will create directory out/ii_files/ for
10069 # template instantiation
10070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10071 $RM out/* && rmdir out
10072 cd ..
10073 $RM -r conftest
10074 $RM conftest*
10075
10076 fi
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10078 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10079
10080
10081
10082
10083
10084
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10087 if ${lt_cv_prog_compiler_c_o+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 lt_cv_prog_compiler_c_o=no
10091 $RM -r conftest 2>/dev/null
10092 mkdir conftest
10093 cd conftest
10094 mkdir out
10095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10096
10097 lt_compiler_flag="-o out/conftest2.$ac_objext"
10098 # Insert the option either (1) after the last *FLAGS variable, or
10099 # (2) before a word containing "conftest.", or (3) at the end.
10100 # Note that $ac_compile itself does not contain backslashes and begins
10101 # with a dollar sign (not a hyphen), so the echo should work correctly.
10102 lt_compile=`echo "$ac_compile" | $SED \
10103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10105 -e 's:$: $lt_compiler_flag:'`
10106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10107 (eval "$lt_compile" 2>out/conftest.err)
10108 ac_status=$?
10109 cat out/conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10112 then
10113 # The compiler can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10118 lt_cv_prog_compiler_c_o=yes
10119 fi
10120 fi
10121 chmod u+w . 2>&5
10122 $RM conftest*
10123 # SGI C++ compiler will create directory out/ii_files/ for
10124 # template instantiation
10125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10126 $RM out/* && rmdir out
10127 cd ..
10128 $RM -r conftest
10129 $RM conftest*
10130
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10134
10135
10136
10137
10138 hard_links=nottested
10139 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10140 # do not overwrite the value of need_locks provided by the user
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10142 $as_echo_n "checking if we can lock with hard links... " >&6; }
10143 hard_links=yes
10144 $RM conftest*
10145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10146 touch conftest.a
10147 ln conftest.a conftest.b 2>&5 || hard_links=no
10148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10150 $as_echo "$hard_links" >&6; }
10151 if test no = "$hard_links"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10153 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10154 need_locks=warn
10155 fi
10156 else
10157 need_locks=no
10158 fi
10159
10160
10161
10162
10163
10164
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10167
10168 runpath_var=
10169 allow_undefined_flag=
10170 always_export_symbols=no
10171 archive_cmds=
10172 archive_expsym_cmds=
10173 compiler_needs_object=no
10174 enable_shared_with_static_runtimes=no
10175 export_dynamic_flag_spec=
10176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10177 hardcode_automatic=no
10178 hardcode_direct=no
10179 hardcode_direct_absolute=no
10180 hardcode_libdir_flag_spec=
10181 hardcode_libdir_separator=
10182 hardcode_minus_L=no
10183 hardcode_shlibpath_var=unsupported
10184 inherit_rpath=no
10185 link_all_deplibs=unknown
10186 module_cmds=
10187 module_expsym_cmds=
10188 old_archive_from_new_cmds=
10189 old_archive_from_expsyms_cmds=
10190 thread_safe_flag_spec=
10191 whole_archive_flag_spec=
10192 # include_expsyms should be a list of space-separated symbols to be *always*
10193 # included in the symbol list
10194 include_expsyms=
10195 # exclude_expsyms can be an extended regexp of symbols to exclude
10196 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10197 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10198 # as well as any symbol that contains 'd'.
10199 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10200 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10201 # platforms (ab)use it in PIC code, but their linkers get confused if
10202 # the symbol is explicitly referenced. Since portable code cannot
10203 # rely on this symbol name, it's probably fine to never include it in
10204 # preloaded symbol tables.
10205 # Exclude shared library initialization/finalization symbols.
10206 extract_expsyms_cmds=
10207
10208 case $host_os in
10209 cygwin* | mingw* | pw32* | cegcc*)
10210 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10211 # When not using gcc, we currently assume that we are using
10212 # Microsoft Visual C++.
10213 if test yes != "$GCC"; then
10214 with_gnu_ld=no
10215 fi
10216 ;;
10217 interix*)
10218 # we just hope/assume this is gcc and not c89 (= MSVC++)
10219 with_gnu_ld=yes
10220 ;;
10221 openbsd* | bitrig*)
10222 with_gnu_ld=no
10223 ;;
10224 linux* | k*bsd*-gnu | gnu*)
10225 link_all_deplibs=no
10226 ;;
10227 esac
10228
10229 ld_shlibs=yes
10230
10231 # On some targets, GNU ld is compatible enough with the native linker
10232 # that we're better off using the native interface for both.
10233 lt_use_gnu_ld_interface=no
10234 if test yes = "$with_gnu_ld"; then
10235 case $host_os in
10236 aix*)
10237 # The AIX port of GNU ld has always aspired to compatibility
10238 # with the native linker. However, as the warning in the GNU ld
10239 # block says, versions before 2.19.5* couldn't really create working
10240 # shared libraries, regardless of the interface used.
10241 case `$LD -v 2>&1` in
10242 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10243 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10244 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10245 *)
10246 lt_use_gnu_ld_interface=yes
10247 ;;
10248 esac
10249 ;;
10250 *)
10251 lt_use_gnu_ld_interface=yes
10252 ;;
10253 esac
10254 fi
10255
10256 if test yes = "$lt_use_gnu_ld_interface"; then
10257 # If archive_cmds runs LD, not CC, wlarc should be empty
10258 wlarc='$wl'
10259
10260 # Set some defaults for GNU ld with shared library support. These
10261 # are reset later if shared libraries are not supported. Putting them
10262 # here allows them to be overridden if necessary.
10263 runpath_var=LD_RUN_PATH
10264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10265 export_dynamic_flag_spec='$wl--export-dynamic'
10266 # ancient GNU ld didn't support --whole-archive et. al.
10267 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10268 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10269 else
10270 whole_archive_flag_spec=
10271 fi
10272 supports_anon_versioning=no
10273 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10274 *GNU\ gold*) supports_anon_versioning=yes ;;
10275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10278 *\ 2.11.*) ;; # other 2.11 versions
10279 *) supports_anon_versioning=yes ;;
10280 esac
10281
10282 # See if GNU ld supports shared libraries.
10283 case $host_os in
10284 aix[3-9]*)
10285 # On AIX/PPC, the GNU linker is very broken
10286 if test ia64 != "$host_cpu"; then
10287 ld_shlibs=no
10288 cat <<_LT_EOF 1>&2
10289
10290 *** Warning: the GNU linker, at least up to release 2.19, is reported
10291 *** to be unable to reliably create shared libraries on AIX.
10292 *** Therefore, libtool is disabling shared libraries support. If you
10293 *** really care for shared libraries, you may want to install binutils
10294 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10295 *** You will then need to restart the configuration process.
10296
10297 _LT_EOF
10298 fi
10299 ;;
10300
10301 amigaos*)
10302 case $host_cpu in
10303 powerpc)
10304 # see comment about AmigaOS4 .so support
10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10306 archive_expsym_cmds=''
10307 ;;
10308 m68k)
10309 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)'
10310 hardcode_libdir_flag_spec='-L$libdir'
10311 hardcode_minus_L=yes
10312 ;;
10313 esac
10314 ;;
10315
10316 beos*)
10317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10318 allow_undefined_flag=unsupported
10319 # Joseph Beckenbach <[email protected]> says some releases of gcc
10320 # support --undefined. This deserves some investigation. FIXME
10321 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10322 else
10323 ld_shlibs=no
10324 fi
10325 ;;
10326
10327 cygwin* | mingw* | pw32* | cegcc*)
10328 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10329 # as there is no search path for DLLs.
10330 hardcode_libdir_flag_spec='-L$libdir'
10331 export_dynamic_flag_spec='$wl--export-all-symbols'
10332 allow_undefined_flag=unsupported
10333 always_export_symbols=no
10334 enable_shared_with_static_runtimes=yes
10335 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'
10336 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10337
10338 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10340 # If the export-symbols file already is a .def file, use it as
10341 # is; otherwise, prepend EXPORTS...
10342 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10343 cp $export_symbols $output_objdir/$soname.def;
10344 else
10345 echo EXPORTS > $output_objdir/$soname.def;
10346 cat $export_symbols >> $output_objdir/$soname.def;
10347 fi~
10348 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10349 else
10350 ld_shlibs=no
10351 fi
10352 ;;
10353
10354 haiku*)
10355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10356 link_all_deplibs=yes
10357 ;;
10358
10359 os2*)
10360 hardcode_libdir_flag_spec='-L$libdir'
10361 hardcode_minus_L=yes
10362 allow_undefined_flag=unsupported
10363 shrext_cmds=.dll
10364 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10365 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10366 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10367 $ECHO EXPORTS >> $output_objdir/$libname.def~
10368 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10369 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10370 emximp -o $lib $output_objdir/$libname.def'
10371 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10372 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10373 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10374 $ECHO EXPORTS >> $output_objdir/$libname.def~
10375 prefix_cmds="$SED"~
10376 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10377 prefix_cmds="$prefix_cmds -e 1d";
10378 fi~
10379 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10380 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10381 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10382 emximp -o $lib $output_objdir/$libname.def'
10383 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10384 enable_shared_with_static_runtimes=yes
10385 ;;
10386
10387 interix[3-9]*)
10388 hardcode_direct=no
10389 hardcode_shlibpath_var=no
10390 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10391 export_dynamic_flag_spec='$wl-E'
10392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10393 # Instead, shared libraries are loaded at an image base (0x10000000 by
10394 # default) and relocated if they conflict, which is a slow very memory
10395 # consuming and fragmenting process. To avoid this, we pick a random,
10396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10399 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'
10400 ;;
10401
10402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10403 tmp_diet=no
10404 if test linux-dietlibc = "$host_os"; then
10405 case $cc_basename in
10406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10407 esac
10408 fi
10409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10410 && test no = "$tmp_diet"
10411 then
10412 tmp_addflag=' $pic_flag'
10413 tmp_sharedflag='-shared'
10414 case $cc_basename,$host_cpu in
10415 pgcc*) # Portland Group C compiler
10416 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'
10417 tmp_addflag=' $pic_flag'
10418 ;;
10419 pgf77* | pgf90* | pgf95* | pgfortran*)
10420 # Portland Group f77 and f90 compilers
10421 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'
10422 tmp_addflag=' $pic_flag -Mnomain' ;;
10423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10424 tmp_addflag=' -i_dynamic' ;;
10425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10426 tmp_addflag=' -i_dynamic -nofor_main' ;;
10427 ifc* | ifort*) # Intel Fortran compiler
10428 tmp_addflag=' -nofor_main' ;;
10429 lf95*) # Lahey Fortran 8.1
10430 whole_archive_flag_spec=
10431 tmp_sharedflag='--shared' ;;
10432 nagfor*) # NAGFOR 5.3
10433 tmp_sharedflag='-Wl,-shared' ;;
10434 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10435 tmp_sharedflag='-qmkshrobj'
10436 tmp_addflag= ;;
10437 nvcc*) # Cuda Compiler Driver 2.2
10438 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'
10439 compiler_needs_object=yes
10440 ;;
10441 esac
10442 case `$CC -V 2>&1 | sed 5q` in
10443 *Sun\ C*) # Sun C 5.9
10444 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'
10445 compiler_needs_object=yes
10446 tmp_sharedflag='-G' ;;
10447 *Sun\ F*) # Sun Fortran 8.3
10448 tmp_sharedflag='-G' ;;
10449 esac
10450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10451
10452 if test yes = "$supports_anon_versioning"; then
10453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10455 echo "local: *; };" >> $output_objdir/$libname.ver~
10456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10457 fi
10458
10459 case $cc_basename in
10460 tcc*)
10461 export_dynamic_flag_spec='-rdynamic'
10462 ;;
10463 xlf* | bgf* | bgxlf* | mpixlf*)
10464 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10465 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10467 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10468 if test yes = "$supports_anon_versioning"; then
10469 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10471 echo "local: *; };" >> $output_objdir/$libname.ver~
10472 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10473 fi
10474 ;;
10475 esac
10476 else
10477 ld_shlibs=no
10478 fi
10479 ;;
10480
10481 netbsd* | netbsdelf*-gnu)
10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10484 wlarc=
10485 else
10486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10487 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10488 fi
10489 ;;
10490
10491 solaris*)
10492 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10493 ld_shlibs=no
10494 cat <<_LT_EOF 1>&2
10495
10496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10497 *** create shared libraries on Solaris systems. Therefore, libtool
10498 *** is disabling shared libraries support. We urge you to upgrade GNU
10499 *** binutils to release 2.9.1 or newer. Another option is to modify
10500 *** your PATH or compiler configuration so that the native linker is
10501 *** used, and then restart.
10502
10503 _LT_EOF
10504 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10506 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10507 else
10508 ld_shlibs=no
10509 fi
10510 ;;
10511
10512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10513 case `$LD -v 2>&1` in
10514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10515 ld_shlibs=no
10516 cat <<_LT_EOF 1>&2
10517
10518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10519 *** reliably create shared libraries on SCO systems. Therefore, libtool
10520 *** is disabling shared libraries support. We urge you to upgrade GNU
10521 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10522 *** your PATH or compiler configuration so that the native linker is
10523 *** used, and then restart.
10524
10525 _LT_EOF
10526 ;;
10527 *)
10528 # For security reasons, it is highly recommended that you always
10529 # use absolute paths for naming shared libraries, and exclude the
10530 # DT_RUNPATH tag from executables and libraries. But doing so
10531 # requires that you compile everything twice, which is a pain.
10532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10536 else
10537 ld_shlibs=no
10538 fi
10539 ;;
10540 esac
10541 ;;
10542
10543 sunos4*)
10544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10545 wlarc=
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 ;;
10549
10550 *)
10551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10552 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10553 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10554 else
10555 ld_shlibs=no
10556 fi
10557 ;;
10558 esac
10559
10560 if test no = "$ld_shlibs"; then
10561 runpath_var=
10562 hardcode_libdir_flag_spec=
10563 export_dynamic_flag_spec=
10564 whole_archive_flag_spec=
10565 fi
10566 else
10567 # PORTME fill in a description of your system's linker (not GNU ld)
10568 case $host_os in
10569 aix3*)
10570 allow_undefined_flag=unsupported
10571 always_export_symbols=yes
10572 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'
10573 # Note: this linker hardcodes the directories in LIBPATH if there
10574 # are no directories specified by -L.
10575 hardcode_minus_L=yes
10576 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10577 # Neither direct hardcoding nor static linking is supported with a
10578 # broken collect2.
10579 hardcode_direct=unsupported
10580 fi
10581 ;;
10582
10583 aix[4-9]*)
10584 if test ia64 = "$host_cpu"; then
10585 # On IA64, the linker does run time linking by default, so we don't
10586 # have to do anything special.
10587 aix_use_runtimelinking=no
10588 exp_sym_flag='-Bexport'
10589 no_entry_flag=
10590 else
10591 # If we're using GNU nm, then we don't want the "-C" option.
10592 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10593 # Without the "-l" option, or with the "-B" option, AIX nm treats
10594 # weak defined symbols like other global defined symbols, whereas
10595 # GNU nm marks them as "W".
10596 # While the 'weak' keyword is ignored in the Export File, we need
10597 # it in the Import File for the 'aix-soname' feature, so we have
10598 # to replace the "-B" option with "-P" for AIX nm.
10599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10600 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10601 else
10602 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10603 fi
10604 aix_use_runtimelinking=no
10605
10606 # Test if we are trying to use run time linking or normal
10607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10608 # have runtime linking enabled, and use it for executables.
10609 # For shared libraries, we enable/disable runtime linking
10610 # depending on the kind of the shared library created -
10611 # when "with_aix_soname,aix_use_runtimelinking" is:
10612 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10613 # "aix,yes" lib.so shared, rtl:yes, for executables
10614 # lib.a static archive
10615 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10616 # lib.a(lib.so.V) shared, rtl:no, for executables
10617 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10618 # lib.a(lib.so.V) shared, rtl:no
10619 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10620 # lib.a static archive
10621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10622 for ld_flag in $LDFLAGS; do
10623 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10624 aix_use_runtimelinking=yes
10625 break
10626 fi
10627 done
10628 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10629 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10630 # so we don't have lib.a shared libs to link our executables.
10631 # We have to force runtime linking in this case.
10632 aix_use_runtimelinking=yes
10633 LDFLAGS="$LDFLAGS -Wl,-brtl"
10634 fi
10635 ;;
10636 esac
10637
10638 exp_sym_flag='-bexport'
10639 no_entry_flag='-bnoentry'
10640 fi
10641
10642 # When large executables or shared objects are built, AIX ld can
10643 # have problems creating the table of contents. If linking a library
10644 # or program results in "error TOC overflow" add -mminimal-toc to
10645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10647
10648 archive_cmds=''
10649 hardcode_direct=yes
10650 hardcode_direct_absolute=yes
10651 hardcode_libdir_separator=':'
10652 link_all_deplibs=yes
10653 file_list_spec='$wl-f,'
10654 case $with_aix_soname,$aix_use_runtimelinking in
10655 aix,*) ;; # traditional, no import file
10656 svr4,* | *,yes) # use import file
10657 # The Import File defines what to hardcode.
10658 hardcode_direct=no
10659 hardcode_direct_absolute=no
10660 ;;
10661 esac
10662
10663 if test yes = "$GCC"; then
10664 case $host_os in aix4.[012]|aix4.[012].*)
10665 # We only want to do this on AIX 4.2 and lower, the check
10666 # below for broken collect2 doesn't work under 4.3+
10667 collect2name=`$CC -print-prog-name=collect2`
10668 if test -f "$collect2name" &&
10669 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10670 then
10671 # We have reworked collect2
10672 :
10673 else
10674 # We have old collect2
10675 hardcode_direct=unsupported
10676 # It fails to find uninstalled libraries when the uninstalled
10677 # path is not listed in the libpath. Setting hardcode_minus_L
10678 # to unsupported forces relinking
10679 hardcode_minus_L=yes
10680 hardcode_libdir_flag_spec='-L$libdir'
10681 hardcode_libdir_separator=
10682 fi
10683 ;;
10684 esac
10685 shared_flag='-shared'
10686 if test yes = "$aix_use_runtimelinking"; then
10687 shared_flag="$shared_flag "'$wl-G'
10688 fi
10689 # Need to ensure runtime linking is disabled for the traditional
10690 # shared library, or the linker may eventually find shared libraries
10691 # /with/ Import File - we do not want to mix them.
10692 shared_flag_aix='-shared'
10693 shared_flag_svr4='-shared $wl-G'
10694 else
10695 # not using gcc
10696 if test ia64 = "$host_cpu"; then
10697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10698 # chokes on -Wl,-G. The following line is correct:
10699 shared_flag='-G'
10700 else
10701 if test yes = "$aix_use_runtimelinking"; then
10702 shared_flag='$wl-G'
10703 else
10704 shared_flag='$wl-bM:SRE'
10705 fi
10706 shared_flag_aix='$wl-bM:SRE'
10707 shared_flag_svr4='$wl-G'
10708 fi
10709 fi
10710
10711 export_dynamic_flag_spec='$wl-bexpall'
10712 # It seems that -bexpall does not export symbols beginning with
10713 # underscore (_), so it is better to generate a list of symbols to export.
10714 always_export_symbols=yes
10715 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10716 # Warning - without using the other runtime loading flags (-brtl),
10717 # -berok will link without error, but may produce a broken library.
10718 allow_undefined_flag='-berok'
10719 # Determine the default libpath from the value encoded in an
10720 # empty executable.
10721 if test set = "${lt_cv_aix_libpath+set}"; then
10722 aix_libpath=$lt_cv_aix_libpath
10723 else
10724 if ${lt_cv_aix_libpath_+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729
10730 int
10731 main ()
10732 {
10733
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 if ac_fn_c_try_link "$LINENO"; then :
10739
10740 lt_aix_libpath_sed='
10741 /Import File Strings/,/^$/ {
10742 /^0/ {
10743 s/^0 *\([^ ]*\) *$/\1/
10744 p
10745 }
10746 }'
10747 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10748 # Check for a 64-bit object if we didn't find anything.
10749 if test -z "$lt_cv_aix_libpath_"; then
10750 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10751 fi
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 if test -z "$lt_cv_aix_libpath_"; then
10756 lt_cv_aix_libpath_=/usr/lib:/lib
10757 fi
10758
10759 fi
10760
10761 aix_libpath=$lt_cv_aix_libpath_
10762 fi
10763
10764 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10765 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10766 else
10767 if test ia64 = "$host_cpu"; then
10768 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10769 allow_undefined_flag="-z nodefs"
10770 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"
10771 else
10772 # Determine the default libpath from the value encoded in an
10773 # empty executable.
10774 if test set = "${lt_cv_aix_libpath+set}"; then
10775 aix_libpath=$lt_cv_aix_libpath
10776 else
10777 if ${lt_cv_aix_libpath_+:} false; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10782
10783 int
10784 main ()
10785 {
10786
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_c_try_link "$LINENO"; then :
10792
10793 lt_aix_libpath_sed='
10794 /Import File Strings/,/^$/ {
10795 /^0/ {
10796 s/^0 *\([^ ]*\) *$/\1/
10797 p
10798 }
10799 }'
10800 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10801 # Check for a 64-bit object if we didn't find anything.
10802 if test -z "$lt_cv_aix_libpath_"; then
10803 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804 fi
10805 fi
10806 rm -f core conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 if test -z "$lt_cv_aix_libpath_"; then
10809 lt_cv_aix_libpath_=/usr/lib:/lib
10810 fi
10811
10812 fi
10813
10814 aix_libpath=$lt_cv_aix_libpath_
10815 fi
10816
10817 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10818 # Warning - without using the other run time loading flags,
10819 # -berok will link without error, but may produce a broken library.
10820 no_undefined_flag=' $wl-bernotok'
10821 allow_undefined_flag=' $wl-berok'
10822 if test yes = "$with_gnu_ld"; then
10823 # We only use this code for GNU lds that support --whole-archive.
10824 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10825 else
10826 # Exported symbols can be pulled into shared objects from archives
10827 whole_archive_flag_spec='$convenience'
10828 fi
10829 archive_cmds_need_lc=yes
10830 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10831 # -brtl affects multiple linker settings, -berok does not and is overridden later
10832 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10833 if test svr4 != "$with_aix_soname"; then
10834 # This is similar to how AIX traditionally builds its shared libraries.
10835 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10836 fi
10837 if test aix != "$with_aix_soname"; then
10838 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10839 else
10840 # used by -dlpreopen to get the symbols
10841 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10842 fi
10843 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10844 fi
10845 fi
10846 ;;
10847
10848 amigaos*)
10849 case $host_cpu in
10850 powerpc)
10851 # see comment about AmigaOS4 .so support
10852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10853 archive_expsym_cmds=''
10854 ;;
10855 m68k)
10856 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)'
10857 hardcode_libdir_flag_spec='-L$libdir'
10858 hardcode_minus_L=yes
10859 ;;
10860 esac
10861 ;;
10862
10863 bsdi[45]*)
10864 export_dynamic_flag_spec=-rdynamic
10865 ;;
10866
10867 cygwin* | mingw* | pw32* | cegcc*)
10868 # When not using gcc, we currently assume that we are using
10869 # Microsoft Visual C++.
10870 # hardcode_libdir_flag_spec is actually meaningless, as there is
10871 # no search path for DLLs.
10872 case $cc_basename in
10873 cl*)
10874 # Native MSVC
10875 hardcode_libdir_flag_spec=' '
10876 allow_undefined_flag=unsupported
10877 always_export_symbols=yes
10878 file_list_spec='@'
10879 # Tell ltmain to make .lib files, not .a files.
10880 libext=lib
10881 # Tell ltmain to make .dll files, not .so files.
10882 shrext_cmds=.dll
10883 # FIXME: Setting linknames here is a bad hack.
10884 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10885 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10886 cp "$export_symbols" "$output_objdir/$soname.def";
10887 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10888 else
10889 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10890 fi~
10891 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10892 linknames='
10893 # The linker will not automatically build a static lib if we build a DLL.
10894 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10895 enable_shared_with_static_runtimes=yes
10896 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10898 # Don't use ranlib
10899 old_postinstall_cmds='chmod 644 $oldlib'
10900 postlink_cmds='lt_outputfile="@OUTPUT@"~
10901 lt_tool_outputfile="@TOOL_OUTPUT@"~
10902 case $lt_outputfile in
10903 *.exe|*.EXE) ;;
10904 *)
10905 lt_outputfile=$lt_outputfile.exe
10906 lt_tool_outputfile=$lt_tool_outputfile.exe
10907 ;;
10908 esac~
10909 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10910 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10911 $RM "$lt_outputfile.manifest";
10912 fi'
10913 ;;
10914 *)
10915 # Assume MSVC wrapper
10916 hardcode_libdir_flag_spec=' '
10917 allow_undefined_flag=unsupported
10918 # Tell ltmain to make .lib files, not .a files.
10919 libext=lib
10920 # Tell ltmain to make .dll files, not .so files.
10921 shrext_cmds=.dll
10922 # FIXME: Setting linknames here is a bad hack.
10923 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10924 # The linker will automatically build a .lib file if we build a DLL.
10925 old_archive_from_new_cmds='true'
10926 # FIXME: Should let the user specify the lib program.
10927 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10928 enable_shared_with_static_runtimes=yes
10929 ;;
10930 esac
10931 ;;
10932
10933 darwin* | rhapsody*)
10934
10935
10936 archive_cmds_need_lc=no
10937 hardcode_direct=no
10938 hardcode_automatic=yes
10939 hardcode_shlibpath_var=unsupported
10940 if test yes = "$lt_cv_ld_force_load"; then
10941 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\"`'
10942
10943 else
10944 whole_archive_flag_spec=''
10945 fi
10946 link_all_deplibs=yes
10947 allow_undefined_flag=$_lt_dar_allow_undefined
10948 case $cc_basename in
10949 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10950 *) _lt_dar_can_shared=$GCC ;;
10951 esac
10952 if test yes = "$_lt_dar_can_shared"; then
10953 output_verbose_link_cmd=func_echo_all
10954 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10955 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10956 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"
10957 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"
10958
10959 else
10960 ld_shlibs=no
10961 fi
10962
10963 ;;
10964
10965 dgux*)
10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967 hardcode_libdir_flag_spec='-L$libdir'
10968 hardcode_shlibpath_var=no
10969 ;;
10970
10971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10972 # support. Future versions do this automatically, but an explicit c++rt0.o
10973 # does not break anything, and helps significantly (at the cost of a little
10974 # extra space).
10975 freebsd2.2*)
10976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10977 hardcode_libdir_flag_spec='-R$libdir'
10978 hardcode_direct=yes
10979 hardcode_shlibpath_var=no
10980 ;;
10981
10982 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10983 freebsd2.*)
10984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10985 hardcode_direct=yes
10986 hardcode_minus_L=yes
10987 hardcode_shlibpath_var=no
10988 ;;
10989
10990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10991 freebsd* | dragonfly*)
10992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10993 hardcode_libdir_flag_spec='-R$libdir'
10994 hardcode_direct=yes
10995 hardcode_shlibpath_var=no
10996 ;;
10997
10998 hpux9*)
10999 if test yes = "$GCC"; then
11000 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11001 else
11002 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11003 fi
11004 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11005 hardcode_libdir_separator=:
11006 hardcode_direct=yes
11007
11008 # hardcode_minus_L: Not really in the search PATH,
11009 # but as the default location of the library.
11010 hardcode_minus_L=yes
11011 export_dynamic_flag_spec='$wl-E'
11012 ;;
11013
11014 hpux10*)
11015 if test yes,no = "$GCC,$with_gnu_ld"; then
11016 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11017 else
11018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11019 fi
11020 if test no = "$with_gnu_ld"; then
11021 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11022 hardcode_libdir_separator=:
11023 hardcode_direct=yes
11024 hardcode_direct_absolute=yes
11025 export_dynamic_flag_spec='$wl-E'
11026 # hardcode_minus_L: Not really in the search PATH,
11027 # but as the default location of the library.
11028 hardcode_minus_L=yes
11029 fi
11030 ;;
11031
11032 hpux11*)
11033 if test yes,no = "$GCC,$with_gnu_ld"; then
11034 case $host_cpu in
11035 hppa*64*)
11036 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11037 ;;
11038 ia64*)
11039 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11040 ;;
11041 *)
11042 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11043 ;;
11044 esac
11045 else
11046 case $host_cpu in
11047 hppa*64*)
11048 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 ;;
11050 ia64*)
11051 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11052 ;;
11053 *)
11054
11055 # Older versions of the 11.00 compiler do not understand -b yet
11056 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11058 $as_echo_n "checking if $CC understands -b... " >&6; }
11059 if ${lt_cv_prog_compiler__b+:} false; then :
11060 $as_echo_n "(cached) " >&6
11061 else
11062 lt_cv_prog_compiler__b=no
11063 save_LDFLAGS=$LDFLAGS
11064 LDFLAGS="$LDFLAGS -b"
11065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11067 # The linker can only warn and ignore the option if not recognized
11068 # So say no if there are warnings
11069 if test -s conftest.err; then
11070 # Append any errors to the config.log.
11071 cat conftest.err 1>&5
11072 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11074 if diff conftest.exp conftest.er2 >/dev/null; then
11075 lt_cv_prog_compiler__b=yes
11076 fi
11077 else
11078 lt_cv_prog_compiler__b=yes
11079 fi
11080 fi
11081 $RM -r conftest*
11082 LDFLAGS=$save_LDFLAGS
11083
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11086 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11087
11088 if test yes = "$lt_cv_prog_compiler__b"; then
11089 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11090 else
11091 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11092 fi
11093
11094 ;;
11095 esac
11096 fi
11097 if test no = "$with_gnu_ld"; then
11098 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11099 hardcode_libdir_separator=:
11100
11101 case $host_cpu in
11102 hppa*64*|ia64*)
11103 hardcode_direct=no
11104 hardcode_shlibpath_var=no
11105 ;;
11106 *)
11107 hardcode_direct=yes
11108 hardcode_direct_absolute=yes
11109 export_dynamic_flag_spec='$wl-E'
11110
11111 # hardcode_minus_L: Not really in the search PATH,
11112 # but as the default location of the library.
11113 hardcode_minus_L=yes
11114 ;;
11115 esac
11116 fi
11117 ;;
11118
11119 irix5* | irix6* | nonstopux*)
11120 if test yes = "$GCC"; then
11121 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'
11122 # Try to use the -exported_symbol ld option, if it does not
11123 # work, assume that -exports_file does not work either and
11124 # implicitly export all symbols.
11125 # This should be the same for all languages, so no per-tag cache variable.
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11127 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11128 if ${lt_cv_irix_exported_symbol+:} false; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 save_LDFLAGS=$LDFLAGS
11132 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11135 int foo (void) { return 0; }
11136 _ACEOF
11137 if ac_fn_c_try_link "$LINENO"; then :
11138 lt_cv_irix_exported_symbol=yes
11139 else
11140 lt_cv_irix_exported_symbol=no
11141 fi
11142 rm -f core conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
11144 LDFLAGS=$save_LDFLAGS
11145 fi
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11147 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11148 if test yes = "$lt_cv_irix_exported_symbol"; then
11149 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'
11150 fi
11151 link_all_deplibs=no
11152 else
11153 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'
11154 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'
11155 fi
11156 archive_cmds_need_lc='no'
11157 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11158 hardcode_libdir_separator=:
11159 inherit_rpath=yes
11160 link_all_deplibs=yes
11161 ;;
11162
11163 linux*)
11164 case $cc_basename in
11165 tcc*)
11166 # Fabrice Bellard et al's Tiny C Compiler
11167 ld_shlibs=yes
11168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11169 ;;
11170 esac
11171 ;;
11172
11173 netbsd* | netbsdelf*-gnu)
11174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11176 else
11177 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11178 fi
11179 hardcode_libdir_flag_spec='-R$libdir'
11180 hardcode_direct=yes
11181 hardcode_shlibpath_var=no
11182 ;;
11183
11184 newsos6)
11185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11186 hardcode_direct=yes
11187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11188 hardcode_libdir_separator=:
11189 hardcode_shlibpath_var=no
11190 ;;
11191
11192 *nto* | *qnx*)
11193 ;;
11194
11195 openbsd* | bitrig*)
11196 if test -f /usr/libexec/ld.so; then
11197 hardcode_direct=yes
11198 hardcode_shlibpath_var=no
11199 hardcode_direct_absolute=yes
11200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11202 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11203 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11204 export_dynamic_flag_spec='$wl-E'
11205 else
11206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11207 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11208 fi
11209 else
11210 ld_shlibs=no
11211 fi
11212 ;;
11213
11214 os2*)
11215 hardcode_libdir_flag_spec='-L$libdir'
11216 hardcode_minus_L=yes
11217 allow_undefined_flag=unsupported
11218 shrext_cmds=.dll
11219 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11220 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11221 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11222 $ECHO EXPORTS >> $output_objdir/$libname.def~
11223 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11224 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11225 emximp -o $lib $output_objdir/$libname.def'
11226 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11227 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11228 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11229 $ECHO EXPORTS >> $output_objdir/$libname.def~
11230 prefix_cmds="$SED"~
11231 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11232 prefix_cmds="$prefix_cmds -e 1d";
11233 fi~
11234 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11235 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11236 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11237 emximp -o $lib $output_objdir/$libname.def'
11238 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11239 enable_shared_with_static_runtimes=yes
11240 ;;
11241
11242 osf3*)
11243 if test yes = "$GCC"; then
11244 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11245 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'
11246 else
11247 allow_undefined_flag=' -expect_unresolved \*'
11248 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'
11249 fi
11250 archive_cmds_need_lc='no'
11251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11252 hardcode_libdir_separator=:
11253 ;;
11254
11255 osf4* | osf5*) # as osf3* with the addition of -msym flag
11256 if test yes = "$GCC"; then
11257 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11258 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'
11259 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11260 else
11261 allow_undefined_flag=' -expect_unresolved \*'
11262 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'
11263 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~
11264 $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'
11265
11266 # Both c and cxx compiler support -rpath directly
11267 hardcode_libdir_flag_spec='-rpath $libdir'
11268 fi
11269 archive_cmds_need_lc='no'
11270 hardcode_libdir_separator=:
11271 ;;
11272
11273 solaris*)
11274 no_undefined_flag=' -z defs'
11275 if test yes = "$GCC"; then
11276 wlarc='$wl'
11277 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11279 $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'
11280 else
11281 case `$CC -V 2>&1` in
11282 *"Compilers 5.0"*)
11283 wlarc=''
11284 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11286 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11287 ;;
11288 *)
11289 wlarc='$wl'
11290 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11292 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11293 ;;
11294 esac
11295 fi
11296 hardcode_libdir_flag_spec='-R$libdir'
11297 hardcode_shlibpath_var=no
11298 case $host_os in
11299 solaris2.[0-5] | solaris2.[0-5].*) ;;
11300 *)
11301 # The compiler driver will combine and reorder linker options,
11302 # but understands '-z linker_flag'. GCC discards it without '$wl',
11303 # but is careful enough not to reorder.
11304 # Supported since Solaris 2.6 (maybe 2.5.1?)
11305 if test yes = "$GCC"; then
11306 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11307 else
11308 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11309 fi
11310 ;;
11311 esac
11312 link_all_deplibs=yes
11313 ;;
11314
11315 sunos4*)
11316 if test sequent = "$host_vendor"; then
11317 # Use $CC to link under sequent, because it throws in some extra .o
11318 # files that make .init and .fini sections work.
11319 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11320 else
11321 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11322 fi
11323 hardcode_libdir_flag_spec='-L$libdir'
11324 hardcode_direct=yes
11325 hardcode_minus_L=yes
11326 hardcode_shlibpath_var=no
11327 ;;
11328
11329 sysv4)
11330 case $host_vendor in
11331 sni)
11332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333 hardcode_direct=yes # is this really true???
11334 ;;
11335 siemens)
11336 ## LD is ld it makes a PLAMLIB
11337 ## CC just makes a GrossModule.
11338 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11339 reload_cmds='$CC -r -o $output$reload_objs'
11340 hardcode_direct=no
11341 ;;
11342 motorola)
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11345 ;;
11346 esac
11347 runpath_var='LD_RUN_PATH'
11348 hardcode_shlibpath_var=no
11349 ;;
11350
11351 sysv4.3*)
11352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353 hardcode_shlibpath_var=no
11354 export_dynamic_flag_spec='-Bexport'
11355 ;;
11356
11357 sysv4*MP*)
11358 if test -d /usr/nec; then
11359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11360 hardcode_shlibpath_var=no
11361 runpath_var=LD_RUN_PATH
11362 hardcode_runpath_var=yes
11363 ld_shlibs=yes
11364 fi
11365 ;;
11366
11367 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11368 no_undefined_flag='$wl-z,text'
11369 archive_cmds_need_lc=no
11370 hardcode_shlibpath_var=no
11371 runpath_var='LD_RUN_PATH'
11372
11373 if test yes = "$GCC"; then
11374 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376 else
11377 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379 fi
11380 ;;
11381
11382 sysv5* | sco3.2v5* | sco5v6*)
11383 # Note: We CANNOT use -z defs as we might desire, because we do not
11384 # link with -lc, and that would cause any symbols used from libc to
11385 # always be unresolved, which means just about no library would
11386 # ever link correctly. If we're not using GNU ld we use -z text
11387 # though, which does catch some bad symbols but isn't as heavy-handed
11388 # as -z defs.
11389 no_undefined_flag='$wl-z,text'
11390 allow_undefined_flag='$wl-z,nodefs'
11391 archive_cmds_need_lc=no
11392 hardcode_shlibpath_var=no
11393 hardcode_libdir_flag_spec='$wl-R,$libdir'
11394 hardcode_libdir_separator=':'
11395 link_all_deplibs=yes
11396 export_dynamic_flag_spec='$wl-Bexport'
11397 runpath_var='LD_RUN_PATH'
11398
11399 if test yes = "$GCC"; then
11400 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 else
11403 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405 fi
11406 ;;
11407
11408 uts4*)
11409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11410 hardcode_libdir_flag_spec='-L$libdir'
11411 hardcode_shlibpath_var=no
11412 ;;
11413
11414 *)
11415 ld_shlibs=no
11416 ;;
11417 esac
11418
11419 if test sni = "$host_vendor"; then
11420 case $host in
11421 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11422 export_dynamic_flag_spec='$wl-Blargedynsym'
11423 ;;
11424 esac
11425 fi
11426 fi
11427
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11429 $as_echo "$ld_shlibs" >&6; }
11430 test no = "$ld_shlibs" && can_build_shared=no
11431
11432 with_gnu_ld=$with_gnu_ld
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448 #
11449 # Do we need to explicitly link libc?
11450 #
11451 case "x$archive_cmds_need_lc" in
11452 x|xyes)
11453 # Assume -lc should be added
11454 archive_cmds_need_lc=yes
11455
11456 if test yes,yes = "$GCC,$enable_shared"; then
11457 case $archive_cmds in
11458 *'~'*)
11459 # FIXME: we may have to deal with multi-command sequences.
11460 ;;
11461 '$CC '*)
11462 # Test whether the compiler implicitly links with -lc since on some
11463 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11464 # to ld, don't add -lc before -lgcc.
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11466 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11467 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 $RM conftest*
11471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11472
11473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11474 (eval $ac_compile) 2>&5
11475 ac_status=$?
11476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477 test $ac_status = 0; } 2>conftest.err; then
11478 soname=conftest
11479 lib=conftest
11480 libobjs=conftest.$ac_objext
11481 deplibs=
11482 wl=$lt_prog_compiler_wl
11483 pic_flag=$lt_prog_compiler_pic
11484 compiler_flags=-v
11485 linker_flags=-v
11486 verstring=
11487 output_objdir=.
11488 libname=conftest
11489 lt_save_allow_undefined_flag=$allow_undefined_flag
11490 allow_undefined_flag=
11491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11492 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11493 ac_status=$?
11494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11495 test $ac_status = 0; }
11496 then
11497 lt_cv_archive_cmds_need_lc=no
11498 else
11499 lt_cv_archive_cmds_need_lc=yes
11500 fi
11501 allow_undefined_flag=$lt_save_allow_undefined_flag
11502 else
11503 cat conftest.err 1>&5
11504 fi
11505 $RM conftest*
11506
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11509 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11510 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11511 ;;
11512 esac
11513 fi
11514 ;;
11515 esac
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11670
11671 if test yes = "$GCC"; then
11672 case $host_os in
11673 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11674 *) lt_awk_arg='/^libraries:/' ;;
11675 esac
11676 case $host_os in
11677 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11678 *) lt_sed_strip_eq='s|=/|/|g' ;;
11679 esac
11680 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11681 case $lt_search_path_spec in
11682 *\;*)
11683 # if the path contains ";" then we assume it to be the separator
11684 # otherwise default to the standard path separator (i.e. ":") - it is
11685 # assumed that no part of a normal pathname contains ";" but that should
11686 # okay in the real world where ";" in dirpaths is itself problematic.
11687 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11688 ;;
11689 *)
11690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11691 ;;
11692 esac
11693 # Ok, now we have the path, separated by spaces, we can step through it
11694 # and add multilib dir if necessary...
11695 lt_tmp_lt_search_path_spec=
11696 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11697 # ...but if some path component already ends with the multilib dir we assume
11698 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11699 case "$lt_multi_os_dir; $lt_search_path_spec " in
11700 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11701 lt_multi_os_dir=
11702 ;;
11703 esac
11704 for lt_sys_path in $lt_search_path_spec; do
11705 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11707 elif test -n "$lt_multi_os_dir"; then
11708 test -d "$lt_sys_path" && \
11709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11710 fi
11711 done
11712 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11713 BEGIN {RS = " "; FS = "/|\n";} {
11714 lt_foo = "";
11715 lt_count = 0;
11716 for (lt_i = NF; lt_i > 0; lt_i--) {
11717 if ($lt_i != "" && $lt_i != ".") {
11718 if ($lt_i == "..") {
11719 lt_count++;
11720 } else {
11721 if (lt_count == 0) {
11722 lt_foo = "/" $lt_i lt_foo;
11723 } else {
11724 lt_count--;
11725 }
11726 }
11727 }
11728 }
11729 if (lt_foo != "") { lt_freq[lt_foo]++; }
11730 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11731 }'`
11732 # AWK program above erroneously prepends '/' to C:/dos/paths
11733 # for these hosts.
11734 case $host_os in
11735 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11736 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11737 esac
11738 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11739 else
11740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11741 fi
11742 library_names_spec=
11743 libname_spec='lib$name'
11744 soname_spec=
11745 shrext_cmds=.so
11746 postinstall_cmds=
11747 postuninstall_cmds=
11748 finish_cmds=
11749 finish_eval=
11750 shlibpath_var=
11751 shlibpath_overrides_runpath=unknown
11752 version_type=none
11753 dynamic_linker="$host_os ld.so"
11754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11755 need_lib_prefix=unknown
11756 hardcode_into_libs=no
11757
11758 # when you set need_version to no, make sure it does not cause -set_version
11759 # flags to be left without arguments
11760 need_version=unknown
11761
11762
11763
11764 case $host_os in
11765 aix3*)
11766 version_type=linux # correct to gnu/linux during the next big refactor
11767 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11768 shlibpath_var=LIBPATH
11769
11770 # AIX 3 has no versioning support, so we append a major version to the name.
11771 soname_spec='$libname$release$shared_ext$major'
11772 ;;
11773
11774 aix[4-9]*)
11775 version_type=linux # correct to gnu/linux during the next big refactor
11776 need_lib_prefix=no
11777 need_version=no
11778 hardcode_into_libs=yes
11779 if test ia64 = "$host_cpu"; then
11780 # AIX 5 supports IA64
11781 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 else
11784 # With GCC up to 2.95.x, collect2 would create an import file
11785 # for dependence libraries. The import file would start with
11786 # the line '#! .'. This would cause the generated library to
11787 # depend on '.', always an invalid library. This was fixed in
11788 # development snapshots of GCC prior to 3.0.
11789 case $host_os in
11790 aix4 | aix4.[01] | aix4.[01].*)
11791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11792 echo ' yes '
11793 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11794 :
11795 else
11796 can_build_shared=no
11797 fi
11798 ;;
11799 esac
11800 # Using Import Files as archive members, it is possible to support
11801 # filename-based versioning of shared library archives on AIX. While
11802 # this would work for both with and without runtime linking, it will
11803 # prevent static linking of such archives. So we do filename-based
11804 # shared library versioning with .so extension only, which is used
11805 # when both runtime linking and shared linking is enabled.
11806 # Unfortunately, runtime linking may impact performance, so we do
11807 # not want this to be the default eventually. Also, we use the
11808 # versioned .so libs for executables only if there is the -brtl
11809 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11810 # To allow for filename-based versioning support, we need to create
11811 # libNAME.so.V as an archive file, containing:
11812 # *) an Import File, referring to the versioned filename of the
11813 # archive as well as the shared archive member, telling the
11814 # bitwidth (32 or 64) of that shared object, and providing the
11815 # list of exported symbols of that shared object, eventually
11816 # decorated with the 'weak' keyword
11817 # *) the shared object with the F_LOADONLY flag set, to really avoid
11818 # it being seen by the linker.
11819 # At run time we better use the real file rather than another symlink,
11820 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11821
11822 case $with_aix_soname,$aix_use_runtimelinking in
11823 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11824 # soname into executable. Probably we can add versioning support to
11825 # collect2, so additional links can be useful in future.
11826 aix,yes) # traditional libtool
11827 dynamic_linker='AIX unversionable lib.so'
11828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11829 # instead of lib<name>.a to let people know that these are not
11830 # typical AIX shared libraries.
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832 ;;
11833 aix,no) # traditional AIX only
11834 dynamic_linker='AIX lib.a(lib.so.V)'
11835 # We preserve .a as extension for shared libraries through AIX4.2
11836 # and later when we are not doing run time linking.
11837 library_names_spec='$libname$release.a $libname.a'
11838 soname_spec='$libname$release$shared_ext$major'
11839 ;;
11840 svr4,*) # full svr4 only
11841 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11842 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11843 # We do not specify a path in Import Files, so LIBPATH fires.
11844 shlibpath_overrides_runpath=yes
11845 ;;
11846 *,yes) # both, prefer svr4
11847 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11848 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11849 # unpreferred sharedlib libNAME.a needs extra handling
11850 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11851 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11852 # We do not specify a path in Import Files, so LIBPATH fires.
11853 shlibpath_overrides_runpath=yes
11854 ;;
11855 *,no) # both, prefer aix
11856 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11857 library_names_spec='$libname$release.a $libname.a'
11858 soname_spec='$libname$release$shared_ext$major'
11859 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11860 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11861 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11862 ;;
11863 esac
11864 shlibpath_var=LIBPATH
11865 fi
11866 ;;
11867
11868 amigaos*)
11869 case $host_cpu in
11870 powerpc)
11871 # Since July 2007 AmigaOS4 officially supports .so libraries.
11872 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11874 ;;
11875 m68k)
11876 library_names_spec='$libname.ixlibrary $libname.a'
11877 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11878 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11879 ;;
11880 esac
11881 ;;
11882
11883 beos*)
11884 library_names_spec='$libname$shared_ext'
11885 dynamic_linker="$host_os ld.so"
11886 shlibpath_var=LIBRARY_PATH
11887 ;;
11888
11889 bsdi[45]*)
11890 version_type=linux # correct to gnu/linux during the next big refactor
11891 need_version=no
11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11893 soname_spec='$libname$release$shared_ext$major'
11894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11895 shlibpath_var=LD_LIBRARY_PATH
11896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11898 # the default ld.so.conf also contains /usr/contrib/lib and
11899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11900 # libtool to hard-code these into programs
11901 ;;
11902
11903 cygwin* | mingw* | pw32* | cegcc*)
11904 version_type=windows
11905 shrext_cmds=.dll
11906 need_version=no
11907 need_lib_prefix=no
11908
11909 case $GCC,$cc_basename in
11910 yes,*)
11911 # gcc
11912 library_names_spec='$libname.dll.a'
11913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11914 postinstall_cmds='base_file=`basename \$file`~
11915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11916 dldir=$destdir/`dirname \$dlpath`~
11917 test -d \$dldir || mkdir -p \$dldir~
11918 $install_prog $dir/$dlname \$dldir/$dlname~
11919 chmod a+x \$dldir/$dlname~
11920 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11921 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11922 fi'
11923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11924 dlpath=$dir/\$dldll~
11925 $RM \$dlpath'
11926 shlibpath_overrides_runpath=yes
11927
11928 case $host_os in
11929 cygwin*)
11930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11931 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11932
11933 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11934 ;;
11935 mingw* | cegcc*)
11936 # MinGW DLLs use traditional 'lib' prefix
11937 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11938 ;;
11939 pw32*)
11940 # pw32 DLLs use 'pw' prefix rather than 'lib'
11941 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11942 ;;
11943 esac
11944 dynamic_linker='Win32 ld.exe'
11945 ;;
11946
11947 *,cl*)
11948 # Native MSVC
11949 libname_spec='$name'
11950 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11951 library_names_spec='$libname.dll.lib'
11952
11953 case $build_os in
11954 mingw*)
11955 sys_lib_search_path_spec=
11956 lt_save_ifs=$IFS
11957 IFS=';'
11958 for lt_path in $LIB
11959 do
11960 IFS=$lt_save_ifs
11961 # Let DOS variable expansion print the short 8.3 style file name.
11962 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11963 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11964 done
11965 IFS=$lt_save_ifs
11966 # Convert to MSYS style.
11967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11968 ;;
11969 cygwin*)
11970 # Convert to unix form, then to dos form, then back to unix form
11971 # but this time dos style (no spaces!) so that the unix form looks
11972 # like /cygdrive/c/PROGRA~1:/cygdr...
11973 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11974 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11975 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11976 ;;
11977 *)
11978 sys_lib_search_path_spec=$LIB
11979 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11980 # It is most probably a Windows format PATH.
11981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11982 else
11983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11984 fi
11985 # FIXME: find the short name or the path components, as spaces are
11986 # common. (e.g. "Program Files" -> "PROGRA~1")
11987 ;;
11988 esac
11989
11990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11991 postinstall_cmds='base_file=`basename \$file`~
11992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11993 dldir=$destdir/`dirname \$dlpath`~
11994 test -d \$dldir || mkdir -p \$dldir~
11995 $install_prog $dir/$dlname \$dldir/$dlname'
11996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11997 dlpath=$dir/\$dldll~
11998 $RM \$dlpath'
11999 shlibpath_overrides_runpath=yes
12000 dynamic_linker='Win32 link.exe'
12001 ;;
12002
12003 *)
12004 # Assume MSVC wrapper
12005 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12006 dynamic_linker='Win32 ld.exe'
12007 ;;
12008 esac
12009 # FIXME: first we should search . and the directory the executable is in
12010 shlibpath_var=PATH
12011 ;;
12012
12013 darwin* | rhapsody*)
12014 dynamic_linker="$host_os dyld"
12015 version_type=darwin
12016 need_lib_prefix=no
12017 need_version=no
12018 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12019 soname_spec='$libname$release$major$shared_ext'
12020 shlibpath_overrides_runpath=yes
12021 shlibpath_var=DYLD_LIBRARY_PATH
12022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12023
12024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12026 ;;
12027
12028 dgux*)
12029 version_type=linux # correct to gnu/linux during the next big refactor
12030 need_lib_prefix=no
12031 need_version=no
12032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12033 soname_spec='$libname$release$shared_ext$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 ;;
12036
12037 freebsd* | dragonfly*)
12038 # DragonFly does not have aout. When/if they implement a new
12039 # versioning mechanism, adjust this.
12040 if test -x /usr/bin/objformat; then
12041 objformat=`/usr/bin/objformat`
12042 else
12043 case $host_os in
12044 freebsd[23].*) objformat=aout ;;
12045 *) objformat=elf ;;
12046 esac
12047 fi
12048 version_type=freebsd-$objformat
12049 case $version_type in
12050 freebsd-elf*)
12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12052 soname_spec='$libname$release$shared_ext$major'
12053 need_version=no
12054 need_lib_prefix=no
12055 ;;
12056 freebsd-*)
12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12058 need_version=yes
12059 ;;
12060 esac
12061 shlibpath_var=LD_LIBRARY_PATH
12062 case $host_os in
12063 freebsd2.*)
12064 shlibpath_overrides_runpath=yes
12065 ;;
12066 freebsd3.[01]* | freebsdelf3.[01]*)
12067 shlibpath_overrides_runpath=yes
12068 hardcode_into_libs=yes
12069 ;;
12070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12072 shlibpath_overrides_runpath=no
12073 hardcode_into_libs=yes
12074 ;;
12075 *) # from 4.6 on, and DragonFly
12076 shlibpath_overrides_runpath=yes
12077 hardcode_into_libs=yes
12078 ;;
12079 esac
12080 ;;
12081
12082 haiku*)
12083 version_type=linux # correct to gnu/linux during the next big refactor
12084 need_lib_prefix=no
12085 need_version=no
12086 dynamic_linker="$host_os runtime_loader"
12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088 soname_spec='$libname$release$shared_ext$major'
12089 shlibpath_var=LIBRARY_PATH
12090 shlibpath_overrides_runpath=no
12091 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12092 hardcode_into_libs=yes
12093 ;;
12094
12095 hpux9* | hpux10* | hpux11*)
12096 # Give a soname corresponding to the major version so that dld.sl refuses to
12097 # link against other versions.
12098 version_type=sunos
12099 need_lib_prefix=no
12100 need_version=no
12101 case $host_cpu in
12102 ia64*)
12103 shrext_cmds='.so'
12104 hardcode_into_libs=yes
12105 dynamic_linker="$host_os dld.so"
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12109 soname_spec='$libname$release$shared_ext$major'
12110 if test 32 = "$HPUX_IA64_MODE"; then
12111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12112 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12113 else
12114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12115 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12116 fi
12117 ;;
12118 hppa*64*)
12119 shrext_cmds='.sl'
12120 hardcode_into_libs=yes
12121 dynamic_linker="$host_os dld.sl"
12122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12125 soname_spec='$libname$release$shared_ext$major'
12126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12128 ;;
12129 *)
12130 shrext_cmds='.sl'
12131 dynamic_linker="$host_os dld.sl"
12132 shlibpath_var=SHLIB_PATH
12133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12135 soname_spec='$libname$release$shared_ext$major'
12136 ;;
12137 esac
12138 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12139 postinstall_cmds='chmod 555 $lib'
12140 # or fails outright, so override atomically:
12141 install_override_mode=555
12142 ;;
12143
12144 interix[3-9]*)
12145 version_type=linux # correct to gnu/linux during the next big refactor
12146 need_lib_prefix=no
12147 need_version=no
12148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12149 soname_spec='$libname$release$shared_ext$major'
12150 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=no
12153 hardcode_into_libs=yes
12154 ;;
12155
12156 irix5* | irix6* | nonstopux*)
12157 case $host_os in
12158 nonstopux*) version_type=nonstopux ;;
12159 *)
12160 if test yes = "$lt_cv_prog_gnu_ld"; then
12161 version_type=linux # correct to gnu/linux during the next big refactor
12162 else
12163 version_type=irix
12164 fi ;;
12165 esac
12166 need_lib_prefix=no
12167 need_version=no
12168 soname_spec='$libname$release$shared_ext$major'
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12170 case $host_os in
12171 irix5* | nonstopux*)
12172 libsuff= shlibsuff=
12173 ;;
12174 *)
12175 case $LD in # libtool.m4 will add one of these switches to LD
12176 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12177 libsuff= shlibsuff= libmagic=32-bit;;
12178 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12179 libsuff=32 shlibsuff=N32 libmagic=N32;;
12180 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12181 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12182 *) libsuff= shlibsuff= libmagic=never-match;;
12183 esac
12184 ;;
12185 esac
12186 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12187 shlibpath_overrides_runpath=no
12188 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12189 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12190 hardcode_into_libs=yes
12191 ;;
12192
12193 # No shared lib support for Linux oldld, aout, or coff.
12194 linux*oldld* | linux*aout* | linux*coff*)
12195 dynamic_linker=no
12196 ;;
12197
12198 linux*android*)
12199 version_type=none # Android doesn't support versioned libraries.
12200 need_lib_prefix=no
12201 need_version=no
12202 library_names_spec='$libname$release$shared_ext'
12203 soname_spec='$libname$release$shared_ext'
12204 finish_cmds=
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=yes
12207
12208 # This implies no fast_install, which is unacceptable.
12209 # Some rework will be needed to allow for fast_install
12210 # before this can be enabled.
12211 hardcode_into_libs=yes
12212
12213 dynamic_linker='Android linker'
12214 # Don't embed -rpath directories since the linker doesn't support them.
12215 hardcode_libdir_flag_spec='-L$libdir'
12216 ;;
12217
12218 # This must be glibc/ELF.
12219 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12220 version_type=linux # correct to gnu/linux during the next big refactor
12221 need_lib_prefix=no
12222 need_version=no
12223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12224 soname_spec='$libname$release$shared_ext$major'
12225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=no
12228
12229 # Some binutils ld are patched to set DT_RUNPATH
12230 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 lt_cv_shlibpath_overrides_runpath=no
12234 save_LDFLAGS=$LDFLAGS
12235 save_libdir=$libdir
12236 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12237 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240
12241 int
12242 main ()
12243 {
12244
12245 ;
12246 return 0;
12247 }
12248 _ACEOF
12249 if ac_fn_c_try_link "$LINENO"; then :
12250 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12251 lt_cv_shlibpath_overrides_runpath=yes
12252 fi
12253 fi
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LDFLAGS=$save_LDFLAGS
12257 libdir=$save_libdir
12258
12259 fi
12260
12261 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12262
12263 # This implies no fast_install, which is unacceptable.
12264 # Some rework will be needed to allow for fast_install
12265 # before this can be enabled.
12266 hardcode_into_libs=yes
12267
12268 # Ideally, we could use ldconfig to report *all* directores which are
12269 # searched for libraries, however this is still not possible. Aside from not
12270 # being certain /sbin/ldconfig is available, command
12271 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12272 # even though it is searched at run-time. Try to do the best guess by
12273 # appending ld.so.conf contents (and includes) to the search path.
12274 if test -f /etc/ld.so.conf; then
12275 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' ' '`
12276 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12277 fi
12278
12279 # We used to test for /lib/ld.so.1 and disable shared libraries on
12280 # powerpc, because MkLinux only supported shared libraries with the
12281 # GNU dynamic linker. Since this was broken with cross compilers,
12282 # most powerpc-linux boxes support dynamic linking these days and
12283 # people can always --disable-shared, the test was removed, and we
12284 # assume the GNU/Linux dynamic linker is in use.
12285 dynamic_linker='GNU/Linux ld.so'
12286 ;;
12287
12288 netbsdelf*-gnu)
12289 version_type=linux
12290 need_lib_prefix=no
12291 need_version=no
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12293 soname_spec='${libname}${release}${shared_ext}$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=no
12296 hardcode_into_libs=yes
12297 dynamic_linker='NetBSD ld.elf_so'
12298 ;;
12299
12300 netbsd*)
12301 version_type=sunos
12302 need_lib_prefix=no
12303 need_version=no
12304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12305 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12307 dynamic_linker='NetBSD (a.out) ld.so'
12308 else
12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12310 soname_spec='$libname$release$shared_ext$major'
12311 dynamic_linker='NetBSD ld.elf_so'
12312 fi
12313 shlibpath_var=LD_LIBRARY_PATH
12314 shlibpath_overrides_runpath=yes
12315 hardcode_into_libs=yes
12316 ;;
12317
12318 newsos6)
12319 version_type=linux # correct to gnu/linux during the next big refactor
12320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 shlibpath_overrides_runpath=yes
12323 ;;
12324
12325 *nto* | *qnx*)
12326 version_type=qnx
12327 need_lib_prefix=no
12328 need_version=no
12329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12330 soname_spec='$libname$release$shared_ext$major'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=no
12333 hardcode_into_libs=yes
12334 dynamic_linker='ldqnx.so'
12335 ;;
12336
12337 openbsd* | bitrig*)
12338 version_type=sunos
12339 sys_lib_dlsearch_path_spec=/usr/lib
12340 need_lib_prefix=no
12341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12342 need_version=no
12343 else
12344 need_version=yes
12345 fi
12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12348 shlibpath_var=LD_LIBRARY_PATH
12349 shlibpath_overrides_runpath=yes
12350 ;;
12351
12352 os2*)
12353 libname_spec='$name'
12354 version_type=windows
12355 shrext_cmds=.dll
12356 need_version=no
12357 need_lib_prefix=no
12358 # OS/2 can only load a DLL with a base name of 8 characters or less.
12359 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12360 v=$($ECHO $release$versuffix | tr -d .-);
12361 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12362 $ECHO $n$v`$shared_ext'
12363 library_names_spec='${libname}_dll.$libext'
12364 dynamic_linker='OS/2 ld.exe'
12365 shlibpath_var=BEGINLIBPATH
12366 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12368 postinstall_cmds='base_file=`basename \$file`~
12369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12370 dldir=$destdir/`dirname \$dlpath`~
12371 test -d \$dldir || mkdir -p \$dldir~
12372 $install_prog $dir/$dlname \$dldir/$dlname~
12373 chmod a+x \$dldir/$dlname~
12374 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12375 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12376 fi'
12377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12378 dlpath=$dir/\$dldll~
12379 $RM \$dlpath'
12380 ;;
12381
12382 osf3* | osf4* | osf5*)
12383 version_type=osf
12384 need_lib_prefix=no
12385 need_version=no
12386 soname_spec='$libname$release$shared_ext$major'
12387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12388 shlibpath_var=LD_LIBRARY_PATH
12389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12391 ;;
12392
12393 rdos*)
12394 dynamic_linker=no
12395 ;;
12396
12397 solaris*)
12398 version_type=linux # correct to gnu/linux during the next big refactor
12399 need_lib_prefix=no
12400 need_version=no
12401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12402 soname_spec='$libname$release$shared_ext$major'
12403 shlibpath_var=LD_LIBRARY_PATH
12404 shlibpath_overrides_runpath=yes
12405 hardcode_into_libs=yes
12406 # ldd complains unless libraries are executable
12407 postinstall_cmds='chmod +x $lib'
12408 ;;
12409
12410 sunos4*)
12411 version_type=sunos
12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=yes
12416 if test yes = "$with_gnu_ld"; then
12417 need_lib_prefix=no
12418 fi
12419 need_version=yes
12420 ;;
12421
12422 sysv4 | sysv4.3*)
12423 version_type=linux # correct to gnu/linux during the next big refactor
12424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12425 soname_spec='$libname$release$shared_ext$major'
12426 shlibpath_var=LD_LIBRARY_PATH
12427 case $host_vendor in
12428 sni)
12429 shlibpath_overrides_runpath=no
12430 need_lib_prefix=no
12431 runpath_var=LD_RUN_PATH
12432 ;;
12433 siemens)
12434 need_lib_prefix=no
12435 ;;
12436 motorola)
12437 need_lib_prefix=no
12438 need_version=no
12439 shlibpath_overrides_runpath=no
12440 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12441 ;;
12442 esac
12443 ;;
12444
12445 sysv4*MP*)
12446 if test -d /usr/nec; then
12447 version_type=linux # correct to gnu/linux during the next big refactor
12448 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12449 soname_spec='$libname$shared_ext.$major'
12450 shlibpath_var=LD_LIBRARY_PATH
12451 fi
12452 ;;
12453
12454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12455 version_type=sco
12456 need_lib_prefix=no
12457 need_version=no
12458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12459 soname_spec='$libname$release$shared_ext$major'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=yes
12462 hardcode_into_libs=yes
12463 if test yes = "$with_gnu_ld"; then
12464 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12465 else
12466 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12467 case $host_os in
12468 sco3.2v5*)
12469 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12470 ;;
12471 esac
12472 fi
12473 sys_lib_dlsearch_path_spec='/usr/lib'
12474 ;;
12475
12476 tpf*)
12477 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12478 version_type=linux # correct to gnu/linux during the next big refactor
12479 need_lib_prefix=no
12480 need_version=no
12481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12482 shlibpath_var=LD_LIBRARY_PATH
12483 shlibpath_overrides_runpath=no
12484 hardcode_into_libs=yes
12485 ;;
12486
12487 uts4*)
12488 version_type=linux # correct to gnu/linux during the next big refactor
12489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12490 soname_spec='$libname$release$shared_ext$major'
12491 shlibpath_var=LD_LIBRARY_PATH
12492 ;;
12493
12494 *)
12495 dynamic_linker=no
12496 ;;
12497 esac
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12499 $as_echo "$dynamic_linker" >&6; }
12500 test no = "$dynamic_linker" && can_build_shared=no
12501
12502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12503 if test yes = "$GCC"; then
12504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12505 fi
12506
12507 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12508 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12509 fi
12510
12511 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12512 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12513 fi
12514
12515 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12516 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12517
12518 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12519 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12520
12521 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12522 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12621 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12622 hardcode_action=
12623 if test -n "$hardcode_libdir_flag_spec" ||
12624 test -n "$runpath_var" ||
12625 test yes = "$hardcode_automatic"; then
12626
12627 # We can hardcode non-existent directories.
12628 if test no != "$hardcode_direct" &&
12629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12630 # have to relink, otherwise we might link with an installed library
12631 # when we should be linking with a yet-to-be-installed one
12632 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12633 test no != "$hardcode_minus_L"; then
12634 # Linking always hardcodes the temporary library directory.
12635 hardcode_action=relink
12636 else
12637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12638 hardcode_action=immediate
12639 fi
12640 else
12641 # We cannot hardcode anything, or else we can only hardcode existing
12642 # directories.
12643 hardcode_action=unsupported
12644 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12646 $as_echo "$hardcode_action" >&6; }
12647
12648 if test relink = "$hardcode_action" ||
12649 test yes = "$inherit_rpath"; then
12650 # Fast installation is not supported
12651 enable_fast_install=no
12652 elif test yes = "$shlibpath_overrides_runpath" ||
12653 test no = "$enable_shared"; then
12654 # Fast installation is not necessary
12655 enable_fast_install=needless
12656 fi
12657
12658
12659
12660
12661
12662
12663 if test yes != "$enable_dlopen"; then
12664 enable_dlopen=unknown
12665 enable_dlopen_self=unknown
12666 enable_dlopen_self_static=unknown
12667 else
12668 lt_cv_dlopen=no
12669 lt_cv_dlopen_libs=
12670
12671 case $host_os in
12672 beos*)
12673 lt_cv_dlopen=load_add_on
12674 lt_cv_dlopen_libs=
12675 lt_cv_dlopen_self=yes
12676 ;;
12677
12678 mingw* | pw32* | cegcc*)
12679 lt_cv_dlopen=LoadLibrary
12680 lt_cv_dlopen_libs=
12681 ;;
12682
12683 cygwin*)
12684 lt_cv_dlopen=dlopen
12685 lt_cv_dlopen_libs=
12686 ;;
12687
12688 darwin*)
12689 # if libdl is installed we need to link against it
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12691 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12692 if ${ac_cv_lib_dl_dlopen+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 ac_check_lib_save_LIBS=$LIBS
12696 LIBS="-ldl $LIBS"
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char dlopen ();
12707 int
12708 main ()
12709 {
12710 return dlopen ();
12711 ;
12712 return 0;
12713 }
12714 _ACEOF
12715 if ac_fn_c_try_link "$LINENO"; then :
12716 ac_cv_lib_dl_dlopen=yes
12717 else
12718 ac_cv_lib_dl_dlopen=no
12719 fi
12720 rm -f core conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722 LIBS=$ac_check_lib_save_LIBS
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12725 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12726 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12727 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12728 else
12729
12730 lt_cv_dlopen=dyld
12731 lt_cv_dlopen_libs=
12732 lt_cv_dlopen_self=yes
12733
12734 fi
12735
12736 ;;
12737
12738 tpf*)
12739 # Don't try to run any link tests for TPF. We know it's impossible
12740 # because TPF is a cross-compiler, and we know how we open DSOs.
12741 lt_cv_dlopen=dlopen
12742 lt_cv_dlopen_libs=
12743 lt_cv_dlopen_self=no
12744 ;;
12745
12746 *)
12747 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12748 if test "x$ac_cv_func_shl_load" = xyes; then :
12749 lt_cv_dlopen=shl_load
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12752 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12753 if ${ac_cv_lib_dld_shl_load+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-ldld $LIBS"
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 char shl_load ();
12768 int
12769 main ()
12770 {
12771 return shl_load ();
12772 ;
12773 return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_c_try_link "$LINENO"; then :
12777 ac_cv_lib_dld_shl_load=yes
12778 else
12779 ac_cv_lib_dld_shl_load=no
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12786 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12787 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12788 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12789 else
12790 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12791 if test "x$ac_cv_func_dlopen" = xyes; then :
12792 lt_cv_dlopen=dlopen
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12795 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12796 if ${ac_cv_lib_dl_dlopen+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 ac_check_lib_save_LIBS=$LIBS
12800 LIBS="-ldl $LIBS"
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12807 #ifdef __cplusplus
12808 extern "C"
12809 #endif
12810 char dlopen ();
12811 int
12812 main ()
12813 {
12814 return dlopen ();
12815 ;
12816 return 0;
12817 }
12818 _ACEOF
12819 if ac_fn_c_try_link "$LINENO"; then :
12820 ac_cv_lib_dl_dlopen=yes
12821 else
12822 ac_cv_lib_dl_dlopen=no
12823 fi
12824 rm -f core conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12826 LIBS=$ac_check_lib_save_LIBS
12827 fi
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12829 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12830 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12831 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12834 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12835 if ${ac_cv_lib_svld_dlopen+:} false; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 ac_check_lib_save_LIBS=$LIBS
12839 LIBS="-lsvld $LIBS"
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842
12843 /* Override any GCC internal prototype to avoid an error.
12844 Use char because int might match the return type of a GCC
12845 builtin and then its argument prototype would still apply. */
12846 #ifdef __cplusplus
12847 extern "C"
12848 #endif
12849 char dlopen ();
12850 int
12851 main ()
12852 {
12853 return dlopen ();
12854 ;
12855 return 0;
12856 }
12857 _ACEOF
12858 if ac_fn_c_try_link "$LINENO"; then :
12859 ac_cv_lib_svld_dlopen=yes
12860 else
12861 ac_cv_lib_svld_dlopen=no
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext \
12864 conftest$ac_exeext conftest.$ac_ext
12865 LIBS=$ac_check_lib_save_LIBS
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12868 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12869 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12870 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12873 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12874 if ${ac_cv_lib_dld_dld_link+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 ac_check_lib_save_LIBS=$LIBS
12878 LIBS="-ldld $LIBS"
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12885 #ifdef __cplusplus
12886 extern "C"
12887 #endif
12888 char dld_link ();
12889 int
12890 main ()
12891 {
12892 return dld_link ();
12893 ;
12894 return 0;
12895 }
12896 _ACEOF
12897 if ac_fn_c_try_link "$LINENO"; then :
12898 ac_cv_lib_dld_dld_link=yes
12899 else
12900 ac_cv_lib_dld_dld_link=no
12901 fi
12902 rm -f core conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext conftest.$ac_ext
12904 LIBS=$ac_check_lib_save_LIBS
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12907 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12908 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12909 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12910 fi
12911
12912
12913 fi
12914
12915
12916 fi
12917
12918
12919 fi
12920
12921
12922 fi
12923
12924
12925 fi
12926
12927 ;;
12928 esac
12929
12930 if test no = "$lt_cv_dlopen"; then
12931 enable_dlopen=no
12932 else
12933 enable_dlopen=yes
12934 fi
12935
12936 case $lt_cv_dlopen in
12937 dlopen)
12938 save_CPPFLAGS=$CPPFLAGS
12939 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12940
12941 save_LDFLAGS=$LDFLAGS
12942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12943
12944 save_LIBS=$LIBS
12945 LIBS="$lt_cv_dlopen_libs $LIBS"
12946
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12948 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12949 if ${lt_cv_dlopen_self+:} false; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 if test yes = "$cross_compiling"; then :
12953 lt_cv_dlopen_self=cross
12954 else
12955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12956 lt_status=$lt_dlunknown
12957 cat > conftest.$ac_ext <<_LT_EOF
12958 #line $LINENO "configure"
12959 #include "confdefs.h"
12960
12961 #if HAVE_DLFCN_H
12962 #include <dlfcn.h>
12963 #endif
12964
12965 #include <stdio.h>
12966
12967 #ifdef RTLD_GLOBAL
12968 # define LT_DLGLOBAL RTLD_GLOBAL
12969 #else
12970 # ifdef DL_GLOBAL
12971 # define LT_DLGLOBAL DL_GLOBAL
12972 # else
12973 # define LT_DLGLOBAL 0
12974 # endif
12975 #endif
12976
12977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12978 find out it does not work in some platform. */
12979 #ifndef LT_DLLAZY_OR_NOW
12980 # ifdef RTLD_LAZY
12981 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12982 # else
12983 # ifdef DL_LAZY
12984 # define LT_DLLAZY_OR_NOW DL_LAZY
12985 # else
12986 # ifdef RTLD_NOW
12987 # define LT_DLLAZY_OR_NOW RTLD_NOW
12988 # else
12989 # ifdef DL_NOW
12990 # define LT_DLLAZY_OR_NOW DL_NOW
12991 # else
12992 # define LT_DLLAZY_OR_NOW 0
12993 # endif
12994 # endif
12995 # endif
12996 # endif
12997 #endif
12998
12999 /* When -fvisibility=hidden is used, assume the code has been annotated
13000 correspondingly for the symbols needed. */
13001 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13002 int fnord () __attribute__((visibility("default")));
13003 #endif
13004
13005 int fnord () { return 42; }
13006 int main ()
13007 {
13008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13009 int status = $lt_dlunknown;
13010
13011 if (self)
13012 {
13013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13014 else
13015 {
13016 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13017 else puts (dlerror ());
13018 }
13019 /* dlclose (self); */
13020 }
13021 else
13022 puts (dlerror ());
13023
13024 return status;
13025 }
13026 _LT_EOF
13027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13028 (eval $ac_link) 2>&5
13029 ac_status=$?
13030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13031 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13032 (./conftest; exit; ) >&5 2>/dev/null
13033 lt_status=$?
13034 case x$lt_status in
13035 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13036 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13037 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13038 esac
13039 else :
13040 # compilation failed
13041 lt_cv_dlopen_self=no
13042 fi
13043 fi
13044 rm -fr conftest*
13045
13046
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13049 $as_echo "$lt_cv_dlopen_self" >&6; }
13050
13051 if test yes = "$lt_cv_dlopen_self"; then
13052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13054 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13055 if ${lt_cv_dlopen_self_static+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 if test yes = "$cross_compiling"; then :
13059 lt_cv_dlopen_self_static=cross
13060 else
13061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13062 lt_status=$lt_dlunknown
13063 cat > conftest.$ac_ext <<_LT_EOF
13064 #line $LINENO "configure"
13065 #include "confdefs.h"
13066
13067 #if HAVE_DLFCN_H
13068 #include <dlfcn.h>
13069 #endif
13070
13071 #include <stdio.h>
13072
13073 #ifdef RTLD_GLOBAL
13074 # define LT_DLGLOBAL RTLD_GLOBAL
13075 #else
13076 # ifdef DL_GLOBAL
13077 # define LT_DLGLOBAL DL_GLOBAL
13078 # else
13079 # define LT_DLGLOBAL 0
13080 # endif
13081 #endif
13082
13083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13084 find out it does not work in some platform. */
13085 #ifndef LT_DLLAZY_OR_NOW
13086 # ifdef RTLD_LAZY
13087 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13088 # else
13089 # ifdef DL_LAZY
13090 # define LT_DLLAZY_OR_NOW DL_LAZY
13091 # else
13092 # ifdef RTLD_NOW
13093 # define LT_DLLAZY_OR_NOW RTLD_NOW
13094 # else
13095 # ifdef DL_NOW
13096 # define LT_DLLAZY_OR_NOW DL_NOW
13097 # else
13098 # define LT_DLLAZY_OR_NOW 0
13099 # endif
13100 # endif
13101 # endif
13102 # endif
13103 #endif
13104
13105 /* When -fvisibility=hidden is used, assume the code has been annotated
13106 correspondingly for the symbols needed. */
13107 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13108 int fnord () __attribute__((visibility("default")));
13109 #endif
13110
13111 int fnord () { return 42; }
13112 int main ()
13113 {
13114 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13115 int status = $lt_dlunknown;
13116
13117 if (self)
13118 {
13119 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13120 else
13121 {
13122 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13123 else puts (dlerror ());
13124 }
13125 /* dlclose (self); */
13126 }
13127 else
13128 puts (dlerror ());
13129
13130 return status;
13131 }
13132 _LT_EOF
13133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13134 (eval $ac_link) 2>&5
13135 ac_status=$?
13136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13137 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13138 (./conftest; exit; ) >&5 2>/dev/null
13139 lt_status=$?
13140 case x$lt_status in
13141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13143 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13144 esac
13145 else :
13146 # compilation failed
13147 lt_cv_dlopen_self_static=no
13148 fi
13149 fi
13150 rm -fr conftest*
13151
13152
13153 fi
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13155 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13156 fi
13157
13158 CPPFLAGS=$save_CPPFLAGS
13159 LDFLAGS=$save_LDFLAGS
13160 LIBS=$save_LIBS
13161 ;;
13162 esac
13163
13164 case $lt_cv_dlopen_self in
13165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13166 *) enable_dlopen_self=unknown ;;
13167 esac
13168
13169 case $lt_cv_dlopen_self_static in
13170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13171 *) enable_dlopen_self_static=unknown ;;
13172 esac
13173 fi
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191 striplib=
13192 old_striplib=
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13194 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13195 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13196 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13197 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13199 $as_echo "yes" >&6; }
13200 else
13201 # FIXME - insert some real tests, host_os isn't really good enough
13202 case $host_os in
13203 darwin*)
13204 if test -n "$STRIP"; then
13205 striplib="$STRIP -x"
13206 old_striplib="$STRIP -S"
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13208 $as_echo "yes" >&6; }
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213 ;;
13214 *)
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 ;;
13218 esac
13219 fi
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232 # Report what library types will actually be built
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13234 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13236 $as_echo "$can_build_shared" >&6; }
13237
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13239 $as_echo_n "checking whether to build shared libraries... " >&6; }
13240 test no = "$can_build_shared" && enable_shared=no
13241
13242 # On AIX, shared libraries and static libraries use the same namespace, and
13243 # are all built from PIC.
13244 case $host_os in
13245 aix3*)
13246 test yes = "$enable_shared" && enable_static=no
13247 if test -n "$RANLIB"; then
13248 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13249 postinstall_cmds='$RANLIB $lib'
13250 fi
13251 ;;
13252
13253 aix[4-9]*)
13254 if test ia64 != "$host_cpu"; then
13255 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13256 yes,aix,yes) ;; # shared object as lib.so file only
13257 yes,svr4,*) ;; # shared object as lib.so archive member only
13258 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13259 esac
13260 fi
13261 ;;
13262 esac
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13264 $as_echo "$enable_shared" >&6; }
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13267 $as_echo_n "checking whether to build static libraries... " >&6; }
13268 # Make sure either enable_shared or enable_static is yes.
13269 test yes = "$enable_shared" || enable_static=yes
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13271 $as_echo "$enable_static" >&6; }
13272
13273
13274
13275
13276 fi
13277 ac_ext=c
13278 ac_cpp='$CPP $CPPFLAGS'
13279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13282
13283 CC=$lt_save_CC
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299 ac_config_commands="$ac_config_commands libtool"
13300
13301
13302
13303
13304 # Only expand once:
13305
13306
13307 ac_ext=cpp
13308 ac_cpp='$CXXCPP $CPPFLAGS'
13309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13312 if test -z "$CXX"; then
13313 if test -n "$CCC"; then
13314 CXX=$CCC
13315 else
13316 if test -n "$ac_tool_prefix"; then
13317 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13318 do
13319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322 $as_echo_n "checking for $ac_word... " >&6; }
13323 if ${ac_cv_prog_CXX+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 if test -n "$CXX"; then
13327 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13328 else
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13331 do
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 break 2
13339 fi
13340 done
13341 done
13342 IFS=$as_save_IFS
13343
13344 fi
13345 fi
13346 CXX=$ac_cv_prog_CXX
13347 if test -n "$CXX"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13349 $as_echo "$CXX" >&6; }
13350 else
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 $as_echo "no" >&6; }
13353 fi
13354
13355
13356 test -n "$CXX" && break
13357 done
13358 fi
13359 if test -z "$CXX"; then
13360 ac_ct_CXX=$CXX
13361 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13362 do
13363 # Extract the first word of "$ac_prog", so it can be a program name with args.
13364 set dummy $ac_prog; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 if test -n "$ac_ct_CXX"; then
13371 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13372 else
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376 IFS=$as_save_IFS
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13380 ac_cv_prog_ac_ct_CXX="$ac_prog"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382 break 2
13383 fi
13384 done
13385 done
13386 IFS=$as_save_IFS
13387
13388 fi
13389 fi
13390 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13391 if test -n "$ac_ct_CXX"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13393 $as_echo "$ac_ct_CXX" >&6; }
13394 else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13397 fi
13398
13399
13400 test -n "$ac_ct_CXX" && break
13401 done
13402
13403 if test "x$ac_ct_CXX" = x; then
13404 CXX="g++"
13405 else
13406 case $cross_compiling:$ac_tool_warned in
13407 yes:)
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13410 ac_tool_warned=yes ;;
13411 esac
13412 CXX=$ac_ct_CXX
13413 fi
13414 fi
13415
13416 fi
13417 fi
13418 # Provide some information about the compiler.
13419 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13420 set X $ac_compile
13421 ac_compiler=$2
13422 for ac_option in --version -v -V -qversion; do
13423 { { ac_try="$ac_compiler $ac_option >&5"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427 esac
13428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13429 $as_echo "$ac_try_echo"; } >&5
13430 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13431 ac_status=$?
13432 if test -s conftest.err; then
13433 sed '10a\
13434 ... rest of stderr output deleted ...
13435 10q' conftest.err >conftest.er1
13436 cat conftest.er1 >&5
13437 fi
13438 rm -f conftest.er1 conftest.err
13439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13440 test $ac_status = 0; }
13441 done
13442
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13444 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13445 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13446 $as_echo_n "(cached) " >&6
13447 else
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13450
13451 int
13452 main ()
13453 {
13454 #ifndef __GNUC__
13455 choke me
13456 #endif
13457
13458 ;
13459 return 0;
13460 }
13461 _ACEOF
13462 if ac_fn_cxx_try_compile "$LINENO"; then :
13463 ac_compiler_gnu=yes
13464 else
13465 ac_compiler_gnu=no
13466 fi
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13469
13470 fi
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13472 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13473 if test $ac_compiler_gnu = yes; then
13474 GXX=yes
13475 else
13476 GXX=
13477 fi
13478 ac_test_CXXFLAGS=${CXXFLAGS+set}
13479 ac_save_CXXFLAGS=$CXXFLAGS
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13481 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13482 if ${ac_cv_prog_cxx_g+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13486 ac_cxx_werror_flag=yes
13487 ac_cv_prog_cxx_g=no
13488 CXXFLAGS="-g"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491
13492 int
13493 main ()
13494 {
13495
13496 ;
13497 return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_cxx_try_compile "$LINENO"; then :
13501 ac_cv_prog_cxx_g=yes
13502 else
13503 CXXFLAGS=""
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506
13507 int
13508 main ()
13509 {
13510
13511 ;
13512 return 0;
13513 }
13514 _ACEOF
13515 if ac_fn_cxx_try_compile "$LINENO"; then :
13516
13517 else
13518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13519 CXXFLAGS="-g"
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h. */
13522
13523 int
13524 main ()
13525 {
13526
13527 ;
13528 return 0;
13529 }
13530 _ACEOF
13531 if ac_fn_cxx_try_compile "$LINENO"; then :
13532 ac_cv_prog_cxx_g=yes
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13540 fi
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13542 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13543 if test "$ac_test_CXXFLAGS" = set; then
13544 CXXFLAGS=$ac_save_CXXFLAGS
13545 elif test $ac_cv_prog_cxx_g = yes; then
13546 if test "$GXX" = yes; then
13547 CXXFLAGS="-g -O2"
13548 else
13549 CXXFLAGS="-g"
13550 fi
13551 else
13552 if test "$GXX" = yes; then
13553 CXXFLAGS="-O2"
13554 else
13555 CXXFLAGS=
13556 fi
13557 fi
13558 ac_ext=c
13559 ac_cpp='$CPP $CPPFLAGS'
13560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13563
13564 depcc="$CXX" am_compiler_list=
13565
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13567 $as_echo_n "checking dependency style of $depcc... " >&6; }
13568 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13572 # We make a subdir and do the tests there. Otherwise we can end up
13573 # making bogus files that we don't know about and never remove. For
13574 # instance it was reported that on HP-UX the gcc test will end up
13575 # making a dummy file named 'D' -- because '-MD' means "put the output
13576 # in D".
13577 rm -rf conftest.dir
13578 mkdir conftest.dir
13579 # Copy depcomp to subdir because otherwise we won't find it if we're
13580 # using a relative directory.
13581 cp "$am_depcomp" conftest.dir
13582 cd conftest.dir
13583 # We will build objects and dependencies in a subdirectory because
13584 # it helps to detect inapplicable dependency modes. For instance
13585 # both Tru64's cc and ICC support -MD to output dependencies as a
13586 # side effect of compilation, but ICC will put the dependencies in
13587 # the current directory while Tru64 will put them in the object
13588 # directory.
13589 mkdir sub
13590
13591 am_cv_CXX_dependencies_compiler_type=none
13592 if test "$am_compiler_list" = ""; then
13593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13594 fi
13595 am__universal=false
13596 case " $depcc " in #(
13597 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13598 esac
13599
13600 for depmode in $am_compiler_list; do
13601 # Setup a source with many dependencies, because some compilers
13602 # like to wrap large dependency lists on column 80 (with \), and
13603 # we should not choose a depcomp mode which is confused by this.
13604 #
13605 # We need to recreate these files for each test, as the compiler may
13606 # overwrite some of them when testing with obscure command lines.
13607 # This happens at least with the AIX C compiler.
13608 : > sub/conftest.c
13609 for i in 1 2 3 4 5 6; do
13610 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13611 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13612 # Solaris 10 /bin/sh.
13613 echo '/* dummy */' > sub/conftst$i.h
13614 done
13615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13616
13617 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13618 # mode. It turns out that the SunPro C++ compiler does not properly
13619 # handle '-M -o', and we need to detect this. Also, some Intel
13620 # versions had trouble with output in subdirs.
13621 am__obj=sub/conftest.${OBJEXT-o}
13622 am__minus_obj="-o $am__obj"
13623 case $depmode in
13624 gcc)
13625 # This depmode causes a compiler race in universal mode.
13626 test "$am__universal" = false || continue
13627 ;;
13628 nosideeffect)
13629 # After this tag, mechanisms are not by side-effect, so they'll
13630 # only be used when explicitly requested.
13631 if test "x$enable_dependency_tracking" = xyes; then
13632 continue
13633 else
13634 break
13635 fi
13636 ;;
13637 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13638 # This compiler won't grok '-c -o', but also, the minuso test has
13639 # not run yet. These depmodes are late enough in the game, and
13640 # so weak that their functioning should not be impacted.
13641 am__obj=conftest.${OBJEXT-o}
13642 am__minus_obj=
13643 ;;
13644 none) break ;;
13645 esac
13646 if depmode=$depmode \
13647 source=sub/conftest.c object=$am__obj \
13648 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13649 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13650 >/dev/null 2>conftest.err &&
13651 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13652 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13653 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13654 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13655 # icc doesn't choke on unknown options, it will just issue warnings
13656 # or remarks (even with -Werror). So we grep stderr for any message
13657 # that says an option was ignored or not supported.
13658 # When given -MP, icc 7.0 and 7.1 complain thusly:
13659 # icc: Command line warning: ignoring option '-M'; no argument required
13660 # The diagnosis changed in icc 8.0:
13661 # icc: Command line remark: option '-MP' not supported
13662 if (grep 'ignoring option' conftest.err ||
13663 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13664 am_cv_CXX_dependencies_compiler_type=$depmode
13665 break
13666 fi
13667 fi
13668 done
13669
13670 cd ..
13671 rm -rf conftest.dir
13672 else
13673 am_cv_CXX_dependencies_compiler_type=none
13674 fi
13675
13676 fi
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13678 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13679 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13680
13681 if
13682 test "x$enable_dependency_tracking" != xno \
13683 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13684 am__fastdepCXX_TRUE=
13685 am__fastdepCXX_FALSE='#'
13686 else
13687 am__fastdepCXX_TRUE='#'
13688 am__fastdepCXX_FALSE=
13689 fi
13690
13691
13692
13693
13694
13695 func_stripname_cnf ()
13696 {
13697 case $2 in
13698 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13699 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13700 esac
13701 } # func_stripname_cnf
13702
13703 if test -n "$CXX" && ( test no != "$CXX" &&
13704 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13705 (test g++ != "$CXX"))); then
13706 ac_ext=cpp
13707 ac_cpp='$CXXCPP $CPPFLAGS'
13708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13712 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13713 if test -z "$CXXCPP"; then
13714 if ${ac_cv_prog_CXXCPP+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 # Double quotes because CXXCPP needs to be expanded
13718 for CXXCPP in "$CXX -E" "/lib/cpp"
13719 do
13720 ac_preproc_ok=false
13721 for ac_cxx_preproc_warn_flag in '' yes
13722 do
13723 # Use a header file that comes with gcc, so configuring glibc
13724 # with a fresh cross-compiler works.
13725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13726 # <limits.h> exists even on freestanding compilers.
13727 # On the NeXT, cc -E runs the code through the compiler's parser,
13728 # not just through cpp. "Syntax error" is here to catch this case.
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731 #ifdef __STDC__
13732 # include <limits.h>
13733 #else
13734 # include <assert.h>
13735 #endif
13736 Syntax error
13737 _ACEOF
13738 if ac_fn_cxx_try_cpp "$LINENO"; then :
13739
13740 else
13741 # Broken: fails on valid input.
13742 continue
13743 fi
13744 rm -f conftest.err conftest.i conftest.$ac_ext
13745
13746 # OK, works on sane cases. Now check whether nonexistent headers
13747 # can be detected and how.
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include <ac_nonexistent.h>
13751 _ACEOF
13752 if ac_fn_cxx_try_cpp "$LINENO"; then :
13753 # Broken: success on invalid input.
13754 continue
13755 else
13756 # Passes both tests.
13757 ac_preproc_ok=:
13758 break
13759 fi
13760 rm -f conftest.err conftest.i conftest.$ac_ext
13761
13762 done
13763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13764 rm -f conftest.i conftest.err conftest.$ac_ext
13765 if $ac_preproc_ok; then :
13766 break
13767 fi
13768
13769 done
13770 ac_cv_prog_CXXCPP=$CXXCPP
13771
13772 fi
13773 CXXCPP=$ac_cv_prog_CXXCPP
13774 else
13775 ac_cv_prog_CXXCPP=$CXXCPP
13776 fi
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13778 $as_echo "$CXXCPP" >&6; }
13779 ac_preproc_ok=false
13780 for ac_cxx_preproc_warn_flag in '' yes
13781 do
13782 # Use a header file that comes with gcc, so configuring glibc
13783 # with a fresh cross-compiler works.
13784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13785 # <limits.h> exists even on freestanding compilers.
13786 # On the NeXT, cc -E runs the code through the compiler's parser,
13787 # not just through cpp. "Syntax error" is here to catch this case.
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790 #ifdef __STDC__
13791 # include <limits.h>
13792 #else
13793 # include <assert.h>
13794 #endif
13795 Syntax error
13796 _ACEOF
13797 if ac_fn_cxx_try_cpp "$LINENO"; then :
13798
13799 else
13800 # Broken: fails on valid input.
13801 continue
13802 fi
13803 rm -f conftest.err conftest.i conftest.$ac_ext
13804
13805 # OK, works on sane cases. Now check whether nonexistent headers
13806 # can be detected and how.
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #include <ac_nonexistent.h>
13810 _ACEOF
13811 if ac_fn_cxx_try_cpp "$LINENO"; then :
13812 # Broken: success on invalid input.
13813 continue
13814 else
13815 # Passes both tests.
13816 ac_preproc_ok=:
13817 break
13818 fi
13819 rm -f conftest.err conftest.i conftest.$ac_ext
13820
13821 done
13822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13823 rm -f conftest.i conftest.err conftest.$ac_ext
13824 if $ac_preproc_ok; then :
13825
13826 else
13827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13829 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13830 See \`config.log' for more details" "$LINENO" 5; }
13831 fi
13832
13833 ac_ext=c
13834 ac_cpp='$CPP $CPPFLAGS'
13835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13838
13839 else
13840 _lt_caught_CXX_error=yes
13841 fi
13842
13843 ac_ext=cpp
13844 ac_cpp='$CXXCPP $CPPFLAGS'
13845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13848
13849 archive_cmds_need_lc_CXX=no
13850 allow_undefined_flag_CXX=
13851 always_export_symbols_CXX=no
13852 archive_expsym_cmds_CXX=
13853 compiler_needs_object_CXX=no
13854 export_dynamic_flag_spec_CXX=
13855 hardcode_direct_CXX=no
13856 hardcode_direct_absolute_CXX=no
13857 hardcode_libdir_flag_spec_CXX=
13858 hardcode_libdir_separator_CXX=
13859 hardcode_minus_L_CXX=no
13860 hardcode_shlibpath_var_CXX=unsupported
13861 hardcode_automatic_CXX=no
13862 inherit_rpath_CXX=no
13863 module_cmds_CXX=
13864 module_expsym_cmds_CXX=
13865 link_all_deplibs_CXX=unknown
13866 old_archive_cmds_CXX=$old_archive_cmds
13867 reload_flag_CXX=$reload_flag
13868 reload_cmds_CXX=$reload_cmds
13869 no_undefined_flag_CXX=
13870 whole_archive_flag_spec_CXX=
13871 enable_shared_with_static_runtimes_CXX=no
13872
13873 # Source file extension for C++ test sources.
13874 ac_ext=cpp
13875
13876 # Object file extension for compiled C++ test sources.
13877 objext=o
13878 objext_CXX=$objext
13879
13880 # No sense in running all these tests if we already determined that
13881 # the CXX compiler isn't working. Some variables (like enable_shared)
13882 # are currently assumed to apply to all compilers on this platform,
13883 # and will be corrupted by setting them based on a non-working compiler.
13884 if test yes != "$_lt_caught_CXX_error"; then
13885 # Code to be used in simple compile tests
13886 lt_simple_compile_test_code="int some_variable = 0;"
13887
13888 # Code to be used in simple link tests
13889 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13890
13891 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13892
13893
13894
13895
13896
13897
13898 # If no C compiler was specified, use CC.
13899 LTCC=${LTCC-"$CC"}
13900
13901 # If no C compiler flags were specified, use CFLAGS.
13902 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13903
13904 # Allow CC to be a program name with arguments.
13905 compiler=$CC
13906
13907
13908 # save warnings/boilerplate of simple test code
13909 ac_outfile=conftest.$ac_objext
13910 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13911 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13912 _lt_compiler_boilerplate=`cat conftest.err`
13913 $RM conftest*
13914
13915 ac_outfile=conftest.$ac_objext
13916 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13917 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13918 _lt_linker_boilerplate=`cat conftest.err`
13919 $RM -r conftest*
13920
13921
13922 # Allow CC to be a program name with arguments.
13923 lt_save_CC=$CC
13924 lt_save_CFLAGS=$CFLAGS
13925 lt_save_LD=$LD
13926 lt_save_GCC=$GCC
13927 GCC=$GXX
13928 lt_save_with_gnu_ld=$with_gnu_ld
13929 lt_save_path_LD=$lt_cv_path_LD
13930 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13931 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13932 else
13933 $as_unset lt_cv_prog_gnu_ld
13934 fi
13935 if test -n "${lt_cv_path_LDCXX+set}"; then
13936 lt_cv_path_LD=$lt_cv_path_LDCXX
13937 else
13938 $as_unset lt_cv_path_LD
13939 fi
13940 test -z "${LDCXX+set}" || LD=$LDCXX
13941 CC=${CXX-"c++"}
13942 CFLAGS=$CXXFLAGS
13943 compiler=$CC
13944 compiler_CXX=$CC
13945 func_cc_basename $compiler
13946 cc_basename=$func_cc_basename_result
13947
13948
13949 if test -n "$compiler"; then
13950 # We don't want -fno-exception when compiling C++ code, so set the
13951 # no_builtin_flag separately
13952 if test yes = "$GXX"; then
13953 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13954 else
13955 lt_prog_compiler_no_builtin_flag_CXX=
13956 fi
13957
13958 if test yes = "$GXX"; then
13959 # Set up default GNU C++ configuration
13960
13961
13962
13963 # Check whether --with-gnu-ld was given.
13964 if test "${with_gnu_ld+set}" = set; then :
13965 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13966 else
13967 with_gnu_ld=no
13968 fi
13969
13970 ac_prog=ld
13971 if test yes = "$GCC"; then
13972 # Check if gcc -print-prog-name=ld gives a path.
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13974 $as_echo_n "checking for ld used by $CC... " >&6; }
13975 case $host in
13976 *-*-mingw*)
13977 # gcc leaves a trailing carriage return, which upsets mingw
13978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13979 *)
13980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13981 esac
13982 case $ac_prog in
13983 # Accept absolute paths.
13984 [\\/]* | ?:[\\/]*)
13985 re_direlt='/[^/][^/]*/\.\./'
13986 # Canonicalize the pathname of ld
13987 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13988 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13989 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13990 done
13991 test -z "$LD" && LD=$ac_prog
13992 ;;
13993 "")
13994 # If it fails, then pretend we aren't using GCC.
13995 ac_prog=ld
13996 ;;
13997 *)
13998 # If it is relative, then search for the first ld in PATH.
13999 with_gnu_ld=unknown
14000 ;;
14001 esac
14002 elif test yes = "$with_gnu_ld"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14004 $as_echo_n "checking for GNU ld... " >&6; }
14005 else
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14007 $as_echo_n "checking for non-GNU ld... " >&6; }
14008 fi
14009 if ${lt_cv_path_LD+:} false; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 if test -z "$LD"; then
14013 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14014 for ac_dir in $PATH; do
14015 IFS=$lt_save_ifs
14016 test -z "$ac_dir" && ac_dir=.
14017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14018 lt_cv_path_LD=$ac_dir/$ac_prog
14019 # Check to see if the program is GNU ld. I'd rather use --version,
14020 # but apparently some variants of GNU ld only accept -v.
14021 # Break only if it was the GNU/non-GNU ld that we prefer.
14022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14023 *GNU* | *'with BFD'*)
14024 test no != "$with_gnu_ld" && break
14025 ;;
14026 *)
14027 test yes != "$with_gnu_ld" && break
14028 ;;
14029 esac
14030 fi
14031 done
14032 IFS=$lt_save_ifs
14033 else
14034 lt_cv_path_LD=$LD # Let the user override the test with a path.
14035 fi
14036 fi
14037
14038 LD=$lt_cv_path_LD
14039 if test -n "$LD"; then
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14041 $as_echo "$LD" >&6; }
14042 else
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14044 $as_echo "no" >&6; }
14045 fi
14046 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14048 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14049 if ${lt_cv_prog_gnu_ld+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14053 case `$LD -v 2>&1 </dev/null` in
14054 *GNU* | *'with BFD'*)
14055 lt_cv_prog_gnu_ld=yes
14056 ;;
14057 *)
14058 lt_cv_prog_gnu_ld=no
14059 ;;
14060 esac
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14063 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14064 with_gnu_ld=$lt_cv_prog_gnu_ld
14065
14066
14067
14068
14069
14070
14071
14072 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14073 # archiving commands below assume that GNU ld is being used.
14074 if test yes = "$with_gnu_ld"; then
14075 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14076 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'
14077
14078 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14079 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14080
14081 # If archive_cmds runs LD, not CC, wlarc should be empty
14082 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14083 # investigate it a little bit more. (MM)
14084 wlarc='$wl'
14085
14086 # ancient GNU ld didn't support --whole-archive et. al.
14087 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14088 $GREP 'no-whole-archive' > /dev/null; then
14089 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14090 else
14091 whole_archive_flag_spec_CXX=
14092 fi
14093 else
14094 with_gnu_ld=no
14095 wlarc=
14096
14097 # A generic and very simple default shared library creation
14098 # command for GNU C++ for the case where it uses the native
14099 # linker, instead of GNU ld. If possible, this setting should
14100 # overridden to take advantage of the native linker features on
14101 # the platform it is being used on.
14102 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14103 fi
14104
14105 # Commands to make compiler produce verbose output that lists
14106 # what "hidden" libraries, object files and flags are used when
14107 # linking a shared library.
14108 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14109
14110 else
14111 GXX=no
14112 with_gnu_ld=no
14113 wlarc=
14114 fi
14115
14116 # PORTME: fill in a description of your system's C++ link characteristics
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14118 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14119 ld_shlibs_CXX=yes
14120 case $host_os in
14121 aix3*)
14122 # FIXME: insert proper C++ library support
14123 ld_shlibs_CXX=no
14124 ;;
14125 aix[4-9]*)
14126 if test ia64 = "$host_cpu"; then
14127 # On IA64, the linker does run time linking by default, so we don't
14128 # have to do anything special.
14129 aix_use_runtimelinking=no
14130 exp_sym_flag='-Bexport'
14131 no_entry_flag=
14132 else
14133 aix_use_runtimelinking=no
14134
14135 # Test if we are trying to use run time linking or normal
14136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14137 # have runtime linking enabled, and use it for executables.
14138 # For shared libraries, we enable/disable runtime linking
14139 # depending on the kind of the shared library created -
14140 # when "with_aix_soname,aix_use_runtimelinking" is:
14141 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14142 # "aix,yes" lib.so shared, rtl:yes, for executables
14143 # lib.a static archive
14144 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14145 # lib.a(lib.so.V) shared, rtl:no, for executables
14146 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14147 # lib.a(lib.so.V) shared, rtl:no
14148 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14149 # lib.a static archive
14150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14151 for ld_flag in $LDFLAGS; do
14152 case $ld_flag in
14153 *-brtl*)
14154 aix_use_runtimelinking=yes
14155 break
14156 ;;
14157 esac
14158 done
14159 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14160 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14161 # so we don't have lib.a shared libs to link our executables.
14162 # We have to force runtime linking in this case.
14163 aix_use_runtimelinking=yes
14164 LDFLAGS="$LDFLAGS -Wl,-brtl"
14165 fi
14166 ;;
14167 esac
14168
14169 exp_sym_flag='-bexport'
14170 no_entry_flag='-bnoentry'
14171 fi
14172
14173 # When large executables or shared objects are built, AIX ld can
14174 # have problems creating the table of contents. If linking a library
14175 # or program results in "error TOC overflow" add -mminimal-toc to
14176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14178
14179 archive_cmds_CXX=''
14180 hardcode_direct_CXX=yes
14181 hardcode_direct_absolute_CXX=yes
14182 hardcode_libdir_separator_CXX=':'
14183 link_all_deplibs_CXX=yes
14184 file_list_spec_CXX='$wl-f,'
14185 case $with_aix_soname,$aix_use_runtimelinking in
14186 aix,*) ;; # no import file
14187 svr4,* | *,yes) # use import file
14188 # The Import File defines what to hardcode.
14189 hardcode_direct_CXX=no
14190 hardcode_direct_absolute_CXX=no
14191 ;;
14192 esac
14193
14194 if test yes = "$GXX"; then
14195 case $host_os in aix4.[012]|aix4.[012].*)
14196 # We only want to do this on AIX 4.2 and lower, the check
14197 # below for broken collect2 doesn't work under 4.3+
14198 collect2name=`$CC -print-prog-name=collect2`
14199 if test -f "$collect2name" &&
14200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14201 then
14202 # We have reworked collect2
14203 :
14204 else
14205 # We have old collect2
14206 hardcode_direct_CXX=unsupported
14207 # It fails to find uninstalled libraries when the uninstalled
14208 # path is not listed in the libpath. Setting hardcode_minus_L
14209 # to unsupported forces relinking
14210 hardcode_minus_L_CXX=yes
14211 hardcode_libdir_flag_spec_CXX='-L$libdir'
14212 hardcode_libdir_separator_CXX=
14213 fi
14214 esac
14215 shared_flag='-shared'
14216 if test yes = "$aix_use_runtimelinking"; then
14217 shared_flag=$shared_flag' $wl-G'
14218 fi
14219 # Need to ensure runtime linking is disabled for the traditional
14220 # shared library, or the linker may eventually find shared libraries
14221 # /with/ Import File - we do not want to mix them.
14222 shared_flag_aix='-shared'
14223 shared_flag_svr4='-shared $wl-G'
14224 else
14225 # not using gcc
14226 if test ia64 = "$host_cpu"; then
14227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14228 # chokes on -Wl,-G. The following line is correct:
14229 shared_flag='-G'
14230 else
14231 if test yes = "$aix_use_runtimelinking"; then
14232 shared_flag='$wl-G'
14233 else
14234 shared_flag='$wl-bM:SRE'
14235 fi
14236 shared_flag_aix='$wl-bM:SRE'
14237 shared_flag_svr4='$wl-G'
14238 fi
14239 fi
14240
14241 export_dynamic_flag_spec_CXX='$wl-bexpall'
14242 # It seems that -bexpall does not export symbols beginning with
14243 # underscore (_), so it is better to generate a list of symbols to
14244 # export.
14245 always_export_symbols_CXX=yes
14246 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14247 # Warning - without using the other runtime loading flags (-brtl),
14248 # -berok will link without error, but may produce a broken library.
14249 # The "-G" linker flag allows undefined symbols.
14250 no_undefined_flag_CXX='-bernotok'
14251 # Determine the default libpath from the value encoded in an empty
14252 # executable.
14253 if test set = "${lt_cv_aix_libpath+set}"; then
14254 aix_libpath=$lt_cv_aix_libpath
14255 else
14256 if ${lt_cv_aix_libpath__CXX+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261
14262 int
14263 main ()
14264 {
14265
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_cxx_try_link "$LINENO"; then :
14271
14272 lt_aix_libpath_sed='
14273 /Import File Strings/,/^$/ {
14274 /^0/ {
14275 s/^0 *\([^ ]*\) *$/\1/
14276 p
14277 }
14278 }'
14279 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280 # Check for a 64-bit object if we didn't find anything.
14281 if test -z "$lt_cv_aix_libpath__CXX"; then
14282 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14283 fi
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 if test -z "$lt_cv_aix_libpath__CXX"; then
14288 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14289 fi
14290
14291 fi
14292
14293 aix_libpath=$lt_cv_aix_libpath__CXX
14294 fi
14295
14296 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14297
14298 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14299 else
14300 if test ia64 = "$host_cpu"; then
14301 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14302 allow_undefined_flag_CXX="-z nodefs"
14303 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"
14304 else
14305 # Determine the default libpath from the value encoded in an
14306 # empty executable.
14307 if test set = "${lt_cv_aix_libpath+set}"; then
14308 aix_libpath=$lt_cv_aix_libpath
14309 else
14310 if ${lt_cv_aix_libpath__CXX+:} false; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315
14316 int
14317 main ()
14318 {
14319
14320 ;
14321 return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_cxx_try_link "$LINENO"; then :
14325
14326 lt_aix_libpath_sed='
14327 /Import File Strings/,/^$/ {
14328 /^0/ {
14329 s/^0 *\([^ ]*\) *$/\1/
14330 p
14331 }
14332 }'
14333 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14334 # Check for a 64-bit object if we didn't find anything.
14335 if test -z "$lt_cv_aix_libpath__CXX"; then
14336 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14337 fi
14338 fi
14339 rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14341 if test -z "$lt_cv_aix_libpath__CXX"; then
14342 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14343 fi
14344
14345 fi
14346
14347 aix_libpath=$lt_cv_aix_libpath__CXX
14348 fi
14349
14350 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14351 # Warning - without using the other run time loading flags,
14352 # -berok will link without error, but may produce a broken library.
14353 no_undefined_flag_CXX=' $wl-bernotok'
14354 allow_undefined_flag_CXX=' $wl-berok'
14355 if test yes = "$with_gnu_ld"; then
14356 # We only use this code for GNU lds that support --whole-archive.
14357 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14358 else
14359 # Exported symbols can be pulled into shared objects from archives
14360 whole_archive_flag_spec_CXX='$convenience'
14361 fi
14362 archive_cmds_need_lc_CXX=yes
14363 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14364 # -brtl affects multiple linker settings, -berok does not and is overridden later
14365 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14366 if test svr4 != "$with_aix_soname"; then
14367 # This is similar to how AIX traditionally builds its shared
14368 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14369 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14370 fi
14371 if test aix != "$with_aix_soname"; then
14372 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14373 else
14374 # used by -dlpreopen to get the symbols
14375 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14376 fi
14377 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14378 fi
14379 fi
14380 ;;
14381
14382 beos*)
14383 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14384 allow_undefined_flag_CXX=unsupported
14385 # Joseph Beckenbach <[email protected]> says some releases of gcc
14386 # support --undefined. This deserves some investigation. FIXME
14387 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14388 else
14389 ld_shlibs_CXX=no
14390 fi
14391 ;;
14392
14393 chorus*)
14394 case $cc_basename in
14395 *)
14396 # FIXME: insert proper C++ library support
14397 ld_shlibs_CXX=no
14398 ;;
14399 esac
14400 ;;
14401
14402 cygwin* | mingw* | pw32* | cegcc*)
14403 case $GXX,$cc_basename in
14404 ,cl* | no,cl*)
14405 # Native MSVC
14406 # hardcode_libdir_flag_spec is actually meaningless, as there is
14407 # no search path for DLLs.
14408 hardcode_libdir_flag_spec_CXX=' '
14409 allow_undefined_flag_CXX=unsupported
14410 always_export_symbols_CXX=yes
14411 file_list_spec_CXX='@'
14412 # Tell ltmain to make .lib files, not .a files.
14413 libext=lib
14414 # Tell ltmain to make .dll files, not .so files.
14415 shrext_cmds=.dll
14416 # FIXME: Setting linknames here is a bad hack.
14417 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14418 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14419 cp "$export_symbols" "$output_objdir/$soname.def";
14420 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14421 else
14422 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14423 fi~
14424 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14425 linknames='
14426 # The linker will not automatically build a static lib if we build a DLL.
14427 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14428 enable_shared_with_static_runtimes_CXX=yes
14429 # Don't use ranlib
14430 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14431 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14432 lt_tool_outputfile="@TOOL_OUTPUT@"~
14433 case $lt_outputfile in
14434 *.exe|*.EXE) ;;
14435 *)
14436 lt_outputfile=$lt_outputfile.exe
14437 lt_tool_outputfile=$lt_tool_outputfile.exe
14438 ;;
14439 esac~
14440 func_to_tool_file "$lt_outputfile"~
14441 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14442 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14443 $RM "$lt_outputfile.manifest";
14444 fi'
14445 ;;
14446 *)
14447 # g++
14448 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14449 # as there is no search path for DLLs.
14450 hardcode_libdir_flag_spec_CXX='-L$libdir'
14451 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14452 allow_undefined_flag_CXX=unsupported
14453 always_export_symbols_CXX=no
14454 enable_shared_with_static_runtimes_CXX=yes
14455
14456 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14457 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'
14458 # If the export-symbols file already is a .def file, use it as
14459 # is; otherwise, prepend EXPORTS...
14460 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14461 cp $export_symbols $output_objdir/$soname.def;
14462 else
14463 echo EXPORTS > $output_objdir/$soname.def;
14464 cat $export_symbols >> $output_objdir/$soname.def;
14465 fi~
14466 $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'
14467 else
14468 ld_shlibs_CXX=no
14469 fi
14470 ;;
14471 esac
14472 ;;
14473 darwin* | rhapsody*)
14474
14475
14476 archive_cmds_need_lc_CXX=no
14477 hardcode_direct_CXX=no
14478 hardcode_automatic_CXX=yes
14479 hardcode_shlibpath_var_CXX=unsupported
14480 if test yes = "$lt_cv_ld_force_load"; then
14481 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\"`'
14482
14483 else
14484 whole_archive_flag_spec_CXX=''
14485 fi
14486 link_all_deplibs_CXX=yes
14487 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14488 case $cc_basename in
14489 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14490 *) _lt_dar_can_shared=$GCC ;;
14491 esac
14492 if test yes = "$_lt_dar_can_shared"; then
14493 output_verbose_link_cmd=func_echo_all
14494 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"
14495 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14496 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"
14497 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"
14498 if test yes != "$lt_cv_apple_cc_single_mod"; then
14499 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"
14500 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"
14501 fi
14502
14503 else
14504 ld_shlibs_CXX=no
14505 fi
14506
14507 ;;
14508
14509 os2*)
14510 hardcode_libdir_flag_spec_CXX='-L$libdir'
14511 hardcode_minus_L_CXX=yes
14512 allow_undefined_flag_CXX=unsupported
14513 shrext_cmds=.dll
14514 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14515 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14516 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14517 $ECHO EXPORTS >> $output_objdir/$libname.def~
14518 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14519 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14520 emximp -o $lib $output_objdir/$libname.def'
14521 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14522 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14523 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14524 $ECHO EXPORTS >> $output_objdir/$libname.def~
14525 prefix_cmds="$SED"~
14526 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14527 prefix_cmds="$prefix_cmds -e 1d";
14528 fi~
14529 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14530 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14531 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14532 emximp -o $lib $output_objdir/$libname.def'
14533 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14534 enable_shared_with_static_runtimes_CXX=yes
14535 ;;
14536
14537 dgux*)
14538 case $cc_basename in
14539 ec++*)
14540 # FIXME: insert proper C++ library support
14541 ld_shlibs_CXX=no
14542 ;;
14543 ghcx*)
14544 # Green Hills C++ Compiler
14545 # FIXME: insert proper C++ library support
14546 ld_shlibs_CXX=no
14547 ;;
14548 *)
14549 # FIXME: insert proper C++ library support
14550 ld_shlibs_CXX=no
14551 ;;
14552 esac
14553 ;;
14554
14555 freebsd2.*)
14556 # C++ shared libraries reported to be fairly broken before
14557 # switch to ELF
14558 ld_shlibs_CXX=no
14559 ;;
14560
14561 freebsd-elf*)
14562 archive_cmds_need_lc_CXX=no
14563 ;;
14564
14565 freebsd* | dragonfly*)
14566 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14567 # conventions
14568 ld_shlibs_CXX=yes
14569 ;;
14570
14571 haiku*)
14572 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14573 link_all_deplibs_CXX=yes
14574 ;;
14575
14576 hpux9*)
14577 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14578 hardcode_libdir_separator_CXX=:
14579 export_dynamic_flag_spec_CXX='$wl-E'
14580 hardcode_direct_CXX=yes
14581 hardcode_minus_L_CXX=yes # Not in the search PATH,
14582 # but as the default
14583 # location of the library.
14584
14585 case $cc_basename in
14586 CC*)
14587 # FIXME: insert proper C++ library support
14588 ld_shlibs_CXX=no
14589 ;;
14590 aCC*)
14591 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14592 # Commands to make compiler produce verbose output that lists
14593 # what "hidden" libraries, object files and flags are used when
14594 # linking a shared library.
14595 #
14596 # There doesn't appear to be a way to prevent this compiler from
14597 # explicitly linking system object files so we need to strip them
14598 # from the output so that they don't get included in the library
14599 # dependencies.
14600 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"'
14601 ;;
14602 *)
14603 if test yes = "$GXX"; then
14604 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14605 else
14606 # FIXME: insert proper C++ library support
14607 ld_shlibs_CXX=no
14608 fi
14609 ;;
14610 esac
14611 ;;
14612
14613 hpux10*|hpux11*)
14614 if test no = "$with_gnu_ld"; then
14615 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14616 hardcode_libdir_separator_CXX=:
14617
14618 case $host_cpu in
14619 hppa*64*|ia64*)
14620 ;;
14621 *)
14622 export_dynamic_flag_spec_CXX='$wl-E'
14623 ;;
14624 esac
14625 fi
14626 case $host_cpu in
14627 hppa*64*|ia64*)
14628 hardcode_direct_CXX=no
14629 hardcode_shlibpath_var_CXX=no
14630 ;;
14631 *)
14632 hardcode_direct_CXX=yes
14633 hardcode_direct_absolute_CXX=yes
14634 hardcode_minus_L_CXX=yes # Not in the search PATH,
14635 # but as the default
14636 # location of the library.
14637 ;;
14638 esac
14639
14640 case $cc_basename in
14641 CC*)
14642 # FIXME: insert proper C++ library support
14643 ld_shlibs_CXX=no
14644 ;;
14645 aCC*)
14646 case $host_cpu in
14647 hppa*64*)
14648 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14649 ;;
14650 ia64*)
14651 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14652 ;;
14653 *)
14654 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14655 ;;
14656 esac
14657 # Commands to make compiler produce verbose output that lists
14658 # what "hidden" libraries, object files and flags are used when
14659 # linking a shared library.
14660 #
14661 # There doesn't appear to be a way to prevent this compiler from
14662 # explicitly linking system object files so we need to strip them
14663 # from the output so that they don't get included in the library
14664 # dependencies.
14665 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"'
14666 ;;
14667 *)
14668 if test yes = "$GXX"; then
14669 if test no = "$with_gnu_ld"; then
14670 case $host_cpu in
14671 hppa*64*)
14672 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14673 ;;
14674 ia64*)
14675 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14676 ;;
14677 *)
14678 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'
14679 ;;
14680 esac
14681 fi
14682 else
14683 # FIXME: insert proper C++ library support
14684 ld_shlibs_CXX=no
14685 fi
14686 ;;
14687 esac
14688 ;;
14689
14690 interix[3-9]*)
14691 hardcode_direct_CXX=no
14692 hardcode_shlibpath_var_CXX=no
14693 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14694 export_dynamic_flag_spec_CXX='$wl-E'
14695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14696 # Instead, shared libraries are loaded at an image base (0x10000000 by
14697 # default) and relocated if they conflict, which is a slow very memory
14698 # consuming and fragmenting process. To avoid this, we pick a random,
14699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14700 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14701 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'
14702 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'
14703 ;;
14704 irix5* | irix6*)
14705 case $cc_basename in
14706 CC*)
14707 # SGI C++
14708 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'
14709
14710 # Archives containing C++ object files must be created using
14711 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14712 # necessary to make sure instantiated templates are included
14713 # in the archive.
14714 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14715 ;;
14716 *)
14717 if test yes = "$GXX"; then
14718 if test no = "$with_gnu_ld"; then
14719 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'
14720 else
14721 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'
14722 fi
14723 fi
14724 link_all_deplibs_CXX=yes
14725 ;;
14726 esac
14727 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14728 hardcode_libdir_separator_CXX=:
14729 inherit_rpath_CXX=yes
14730 ;;
14731
14732 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14733 case $cc_basename in
14734 KCC*)
14735 # Kuck and Associates, Inc. (KAI) C++ Compiler
14736
14737 # KCC will only create a shared library if the output file
14738 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14739 # to its proper name (with version) after linking.
14740 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'
14741 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'
14742 # Commands to make compiler produce verbose output that lists
14743 # what "hidden" libraries, object files and flags are used when
14744 # linking a shared library.
14745 #
14746 # There doesn't appear to be a way to prevent this compiler from
14747 # explicitly linking system object files so we need to strip them
14748 # from the output so that they don't get included in the library
14749 # dependencies.
14750 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"'
14751
14752 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14753 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14754
14755 # Archives containing C++ object files must be created using
14756 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14757 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14758 ;;
14759 icpc* | ecpc* )
14760 # Intel C++
14761 with_gnu_ld=yes
14762 # version 8.0 and above of icpc choke on multiply defined symbols
14763 # if we add $predep_objects and $postdep_objects, however 7.1 and
14764 # earlier do not add the objects themselves.
14765 case `$CC -V 2>&1` in
14766 *"Version 7."*)
14767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14768 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'
14769 ;;
14770 *) # Version 8.0 or newer
14771 tmp_idyn=
14772 case $host_cpu in
14773 ia64*) tmp_idyn=' -i_dynamic';;
14774 esac
14775 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14776 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'
14777 ;;
14778 esac
14779 archive_cmds_need_lc_CXX=no
14780 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14781 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14782 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14783 ;;
14784 pgCC* | pgcpp*)
14785 # Portland Group C++ compiler
14786 case `$CC -V` in
14787 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14788 prelink_cmds_CXX='tpldir=Template.dir~
14789 rm -rf $tpldir~
14790 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14791 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14792 old_archive_cmds_CXX='tpldir=Template.dir~
14793 rm -rf $tpldir~
14794 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14795 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14796 $RANLIB $oldlib'
14797 archive_cmds_CXX='tpldir=Template.dir~
14798 rm -rf $tpldir~
14799 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14800 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14801 archive_expsym_cmds_CXX='tpldir=Template.dir~
14802 rm -rf $tpldir~
14803 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14804 $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'
14805 ;;
14806 *) # Version 6 and above use weak symbols
14807 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14808 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'
14809 ;;
14810 esac
14811
14812 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14813 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14814 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'
14815 ;;
14816 cxx*)
14817 # Compaq C++
14818 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14819 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'
14820
14821 runpath_var=LD_RUN_PATH
14822 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14823 hardcode_libdir_separator_CXX=:
14824
14825 # Commands to make compiler produce verbose output that lists
14826 # what "hidden" libraries, object files and flags are used when
14827 # linking a shared library.
14828 #
14829 # There doesn't appear to be a way to prevent this compiler from
14830 # explicitly linking system object files so we need to strip them
14831 # from the output so that they don't get included in the library
14832 # dependencies.
14833 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'
14834 ;;
14835 xl* | mpixl* | bgxl*)
14836 # IBM XL 8.0 on PPC, with GNU ld
14837 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14838 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14839 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14840 if test yes = "$supports_anon_versioning"; then
14841 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14843 echo "local: *; };" >> $output_objdir/$libname.ver~
14844 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14845 fi
14846 ;;
14847 *)
14848 case `$CC -V 2>&1 | sed 5q` in
14849 *Sun\ C*)
14850 # Sun C++ 5.9
14851 no_undefined_flag_CXX=' -zdefs'
14852 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14853 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'
14854 hardcode_libdir_flag_spec_CXX='-R$libdir'
14855 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'
14856 compiler_needs_object_CXX=yes
14857
14858 # Not sure whether something based on
14859 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14860 # would be better.
14861 output_verbose_link_cmd='func_echo_all'
14862
14863 # Archives containing C++ object files must be created using
14864 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14865 # necessary to make sure instantiated templates are included
14866 # in the archive.
14867 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14868 ;;
14869 esac
14870 ;;
14871 esac
14872 ;;
14873
14874 lynxos*)
14875 # FIXME: insert proper C++ library support
14876 ld_shlibs_CXX=no
14877 ;;
14878
14879 m88k*)
14880 # FIXME: insert proper C++ library support
14881 ld_shlibs_CXX=no
14882 ;;
14883
14884 mvs*)
14885 case $cc_basename in
14886 cxx*)
14887 # FIXME: insert proper C++ library support
14888 ld_shlibs_CXX=no
14889 ;;
14890 *)
14891 # FIXME: insert proper C++ library support
14892 ld_shlibs_CXX=no
14893 ;;
14894 esac
14895 ;;
14896
14897 netbsd*)
14898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14899 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14900 wlarc=
14901 hardcode_libdir_flag_spec_CXX='-R$libdir'
14902 hardcode_direct_CXX=yes
14903 hardcode_shlibpath_var_CXX=no
14904 fi
14905 # Workaround some broken pre-1.5 toolchains
14906 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14907 ;;
14908
14909 *nto* | *qnx*)
14910 ld_shlibs_CXX=yes
14911 ;;
14912
14913 openbsd* | bitrig*)
14914 if test -f /usr/libexec/ld.so; then
14915 hardcode_direct_CXX=yes
14916 hardcode_shlibpath_var_CXX=no
14917 hardcode_direct_absolute_CXX=yes
14918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14919 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14922 export_dynamic_flag_spec_CXX='$wl-E'
14923 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14924 fi
14925 output_verbose_link_cmd=func_echo_all
14926 else
14927 ld_shlibs_CXX=no
14928 fi
14929 ;;
14930
14931 osf3* | osf4* | osf5*)
14932 case $cc_basename in
14933 KCC*)
14934 # Kuck and Associates, Inc. (KAI) C++ Compiler
14935
14936 # KCC will only create a shared library if the output file
14937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14938 # to its proper name (with version) after linking.
14939 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'
14940
14941 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14942 hardcode_libdir_separator_CXX=:
14943
14944 # Archives containing C++ object files must be created using
14945 # the KAI C++ compiler.
14946 case $host in
14947 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14948 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14949 esac
14950 ;;
14951 RCC*)
14952 # Rational C++ 2.4.1
14953 # FIXME: insert proper C++ library support
14954 ld_shlibs_CXX=no
14955 ;;
14956 cxx*)
14957 case $host in
14958 osf3*)
14959 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14960 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'
14961 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14962 ;;
14963 *)
14964 allow_undefined_flag_CXX=' -expect_unresolved \*'
14965 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'
14966 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14967 echo "-hidden">> $lib.exp~
14968 $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~
14969 $RM $lib.exp'
14970 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14971 ;;
14972 esac
14973
14974 hardcode_libdir_separator_CXX=:
14975
14976 # Commands to make compiler produce verbose output that lists
14977 # what "hidden" libraries, object files and flags are used when
14978 # linking a shared library.
14979 #
14980 # There doesn't appear to be a way to prevent this compiler from
14981 # explicitly linking system object files so we need to strip them
14982 # from the output so that they don't get included in the library
14983 # dependencies.
14984 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"'
14985 ;;
14986 *)
14987 if test yes,no = "$GXX,$with_gnu_ld"; then
14988 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14989 case $host in
14990 osf3*)
14991 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'
14992 ;;
14993 *)
14994 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'
14995 ;;
14996 esac
14997
14998 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14999 hardcode_libdir_separator_CXX=:
15000
15001 # Commands to make compiler produce verbose output that lists
15002 # what "hidden" libraries, object files and flags are used when
15003 # linking a shared library.
15004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15005
15006 else
15007 # FIXME: insert proper C++ library support
15008 ld_shlibs_CXX=no
15009 fi
15010 ;;
15011 esac
15012 ;;
15013
15014 psos*)
15015 # FIXME: insert proper C++ library support
15016 ld_shlibs_CXX=no
15017 ;;
15018
15019 sunos4*)
15020 case $cc_basename in
15021 CC*)
15022 # Sun C++ 4.x
15023 # FIXME: insert proper C++ library support
15024 ld_shlibs_CXX=no
15025 ;;
15026 lcc*)
15027 # Lucid
15028 # FIXME: insert proper C++ library support
15029 ld_shlibs_CXX=no
15030 ;;
15031 *)
15032 # FIXME: insert proper C++ library support
15033 ld_shlibs_CXX=no
15034 ;;
15035 esac
15036 ;;
15037
15038 solaris*)
15039 case $cc_basename in
15040 CC* | sunCC*)
15041 # Sun C++ 4.2, 5.x and Centerline C++
15042 archive_cmds_need_lc_CXX=yes
15043 no_undefined_flag_CXX=' -zdefs'
15044 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15046 $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'
15047
15048 hardcode_libdir_flag_spec_CXX='-R$libdir'
15049 hardcode_shlibpath_var_CXX=no
15050 case $host_os in
15051 solaris2.[0-5] | solaris2.[0-5].*) ;;
15052 *)
15053 # The compiler driver will combine and reorder linker options,
15054 # but understands '-z linker_flag'.
15055 # Supported since Solaris 2.6 (maybe 2.5.1?)
15056 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15057 ;;
15058 esac
15059 link_all_deplibs_CXX=yes
15060
15061 output_verbose_link_cmd='func_echo_all'
15062
15063 # Archives containing C++ object files must be created using
15064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15065 # necessary to make sure instantiated templates are included
15066 # in the archive.
15067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15068 ;;
15069 gcx*)
15070 # Green Hills C++ Compiler
15071 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15072
15073 # The C++ compiler must be used to create the archive.
15074 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15075 ;;
15076 *)
15077 # GNU C++ compiler with Solaris linker
15078 if test yes,no = "$GXX,$with_gnu_ld"; then
15079 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15080 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15081 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15082 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15083 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15084
15085 # Commands to make compiler produce verbose output that lists
15086 # what "hidden" libraries, object files and flags are used when
15087 # linking a shared library.
15088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15089 else
15090 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15091 # platform.
15092 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15093 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15094 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15095
15096 # Commands to make compiler produce verbose output that lists
15097 # what "hidden" libraries, object files and flags are used when
15098 # linking a shared library.
15099 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15100 fi
15101
15102 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15103 case $host_os in
15104 solaris2.[0-5] | solaris2.[0-5].*) ;;
15105 *)
15106 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15107 ;;
15108 esac
15109 fi
15110 ;;
15111 esac
15112 ;;
15113
15114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15115 no_undefined_flag_CXX='$wl-z,text'
15116 archive_cmds_need_lc_CXX=no
15117 hardcode_shlibpath_var_CXX=no
15118 runpath_var='LD_RUN_PATH'
15119
15120 case $cc_basename in
15121 CC*)
15122 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15123 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15124 ;;
15125 *)
15126 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128 ;;
15129 esac
15130 ;;
15131
15132 sysv5* | sco3.2v5* | sco5v6*)
15133 # Note: We CANNOT use -z defs as we might desire, because we do not
15134 # link with -lc, and that would cause any symbols used from libc to
15135 # always be unresolved, which means just about no library would
15136 # ever link correctly. If we're not using GNU ld we use -z text
15137 # though, which does catch some bad symbols but isn't as heavy-handed
15138 # as -z defs.
15139 no_undefined_flag_CXX='$wl-z,text'
15140 allow_undefined_flag_CXX='$wl-z,nodefs'
15141 archive_cmds_need_lc_CXX=no
15142 hardcode_shlibpath_var_CXX=no
15143 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15144 hardcode_libdir_separator_CXX=':'
15145 link_all_deplibs_CXX=yes
15146 export_dynamic_flag_spec_CXX='$wl-Bexport'
15147 runpath_var='LD_RUN_PATH'
15148
15149 case $cc_basename in
15150 CC*)
15151 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15152 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15153 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15154 '"$old_archive_cmds_CXX"
15155 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15156 '"$reload_cmds_CXX"
15157 ;;
15158 *)
15159 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15161 ;;
15162 esac
15163 ;;
15164
15165 tandem*)
15166 case $cc_basename in
15167 NCC*)
15168 # NonStop-UX NCC 3.20
15169 # FIXME: insert proper C++ library support
15170 ld_shlibs_CXX=no
15171 ;;
15172 *)
15173 # FIXME: insert proper C++ library support
15174 ld_shlibs_CXX=no
15175 ;;
15176 esac
15177 ;;
15178
15179 vxworks*)
15180 # FIXME: insert proper C++ library support
15181 ld_shlibs_CXX=no
15182 ;;
15183
15184 *)
15185 # FIXME: insert proper C++ library support
15186 ld_shlibs_CXX=no
15187 ;;
15188 esac
15189
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15191 $as_echo "$ld_shlibs_CXX" >&6; }
15192 test no = "$ld_shlibs_CXX" && can_build_shared=no
15193
15194 GCC_CXX=$GXX
15195 LD_CXX=$LD
15196
15197 ## CAVEAT EMPTOR:
15198 ## There is no encapsulation within the following macros, do not change
15199 ## the running order or otherwise move them around unless you know exactly
15200 ## what you are doing...
15201 # Dependencies to place before and after the object being linked:
15202 predep_objects_CXX=
15203 postdep_objects_CXX=
15204 predeps_CXX=
15205 postdeps_CXX=
15206 compiler_lib_search_path_CXX=
15207
15208 cat > conftest.$ac_ext <<_LT_EOF
15209 class Foo
15210 {
15211 public:
15212 Foo (void) { a = 0; }
15213 private:
15214 int a;
15215 };
15216 _LT_EOF
15217
15218
15219 _lt_libdeps_save_CFLAGS=$CFLAGS
15220 case "$CC $CFLAGS " in #(
15221 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15222 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15223 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15224 esac
15225
15226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15227 (eval $ac_compile) 2>&5
15228 ac_status=$?
15229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15230 test $ac_status = 0; }; then
15231 # Parse the compiler output and extract the necessary
15232 # objects, libraries and library flags.
15233
15234 # Sentinel used to keep track of whether or not we are before
15235 # the conftest object file.
15236 pre_test_object_deps_done=no
15237
15238 for p in `eval "$output_verbose_link_cmd"`; do
15239 case $prev$p in
15240
15241 -L* | -R* | -l*)
15242 # Some compilers place space between "-{L,R}" and the path.
15243 # Remove the space.
15244 if test x-L = "$p" ||
15245 test x-R = "$p"; then
15246 prev=$p
15247 continue
15248 fi
15249
15250 # Expand the sysroot to ease extracting the directories later.
15251 if test -z "$prev"; then
15252 case $p in
15253 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15254 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15255 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15256 esac
15257 fi
15258 case $p in
15259 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15260 esac
15261 if test no = "$pre_test_object_deps_done"; then
15262 case $prev in
15263 -L | -R)
15264 # Internal compiler library paths should come after those
15265 # provided the user. The postdeps already come after the
15266 # user supplied libs so there is no need to process them.
15267 if test -z "$compiler_lib_search_path_CXX"; then
15268 compiler_lib_search_path_CXX=$prev$p
15269 else
15270 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15271 fi
15272 ;;
15273 # The "-l" case would never come before the object being
15274 # linked, so don't bother handling this case.
15275 esac
15276 else
15277 if test -z "$postdeps_CXX"; then
15278 postdeps_CXX=$prev$p
15279 else
15280 postdeps_CXX="${postdeps_CXX} $prev$p"
15281 fi
15282 fi
15283 prev=
15284 ;;
15285
15286 *.lto.$objext) ;; # Ignore GCC LTO objects
15287 *.$objext)
15288 # This assumes that the test object file only shows up
15289 # once in the compiler output.
15290 if test "$p" = "conftest.$objext"; then
15291 pre_test_object_deps_done=yes
15292 continue
15293 fi
15294
15295 if test no = "$pre_test_object_deps_done"; then
15296 if test -z "$predep_objects_CXX"; then
15297 predep_objects_CXX=$p
15298 else
15299 predep_objects_CXX="$predep_objects_CXX $p"
15300 fi
15301 else
15302 if test -z "$postdep_objects_CXX"; then
15303 postdep_objects_CXX=$p
15304 else
15305 postdep_objects_CXX="$postdep_objects_CXX $p"
15306 fi
15307 fi
15308 ;;
15309
15310 *) ;; # Ignore the rest.
15311
15312 esac
15313 done
15314
15315 # Clean up.
15316 rm -f a.out a.exe
15317 else
15318 echo "libtool.m4: error: problem compiling CXX test program"
15319 fi
15320
15321 $RM -f confest.$objext
15322 CFLAGS=$_lt_libdeps_save_CFLAGS
15323
15324 # PORTME: override above test on systems where it is broken
15325 case $host_os in
15326 interix[3-9]*)
15327 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15328 # hack all around it, let's just trust "g++" to DTRT.
15329 predep_objects_CXX=
15330 postdep_objects_CXX=
15331 postdeps_CXX=
15332 ;;
15333 esac
15334
15335
15336 case " $postdeps_CXX " in
15337 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15338 esac
15339 compiler_lib_search_dirs_CXX=
15340 if test -n "${compiler_lib_search_path_CXX}"; then
15341 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15342 fi
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374 lt_prog_compiler_wl_CXX=
15375 lt_prog_compiler_pic_CXX=
15376 lt_prog_compiler_static_CXX=
15377
15378
15379 # C++ specific cases for pic, static, wl, etc.
15380 if test yes = "$GXX"; then
15381 lt_prog_compiler_wl_CXX='-Wl,'
15382 lt_prog_compiler_static_CXX='-static'
15383
15384 case $host_os in
15385 aix*)
15386 # All AIX code is PIC.
15387 if test ia64 = "$host_cpu"; then
15388 # AIX 5 now supports IA64 processor
15389 lt_prog_compiler_static_CXX='-Bstatic'
15390 fi
15391 lt_prog_compiler_pic_CXX='-fPIC'
15392 ;;
15393
15394 amigaos*)
15395 case $host_cpu in
15396 powerpc)
15397 # see comment about AmigaOS4 .so support
15398 lt_prog_compiler_pic_CXX='-fPIC'
15399 ;;
15400 m68k)
15401 # FIXME: we need at least 68020 code to build shared libraries, but
15402 # adding the '-m68020' flag to GCC prevents building anything better,
15403 # like '-m68040'.
15404 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15405 ;;
15406 esac
15407 ;;
15408
15409 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15410 # PIC is the default for these OSes.
15411 ;;
15412 mingw* | cygwin* | os2* | pw32* | cegcc*)
15413 # This hack is so that the source file can tell whether it is being
15414 # built for inclusion in a dll (and should export symbols for example).
15415 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15416 # (--disable-auto-import) libraries
15417 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15418 case $host_os in
15419 os2*)
15420 lt_prog_compiler_static_CXX='$wl-static'
15421 ;;
15422 esac
15423 ;;
15424 darwin* | rhapsody*)
15425 # PIC is the default on this platform
15426 # Common symbols not allowed in MH_DYLIB files
15427 lt_prog_compiler_pic_CXX='-fno-common'
15428 ;;
15429 *djgpp*)
15430 # DJGPP does not support shared libraries at all
15431 lt_prog_compiler_pic_CXX=
15432 ;;
15433 haiku*)
15434 # PIC is the default for Haiku.
15435 # The "-static" flag exists, but is broken.
15436 lt_prog_compiler_static_CXX=
15437 ;;
15438 interix[3-9]*)
15439 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15440 # Instead, we relocate shared libraries at runtime.
15441 ;;
15442 sysv4*MP*)
15443 if test -d /usr/nec; then
15444 lt_prog_compiler_pic_CXX=-Kconform_pic
15445 fi
15446 ;;
15447 hpux*)
15448 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15449 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15450 # sets the default TLS model and affects inlining.
15451 case $host_cpu in
15452 hppa*64*)
15453 ;;
15454 *)
15455 lt_prog_compiler_pic_CXX='-fPIC'
15456 ;;
15457 esac
15458 ;;
15459 *qnx* | *nto*)
15460 # QNX uses GNU C++, but need to define -shared option too, otherwise
15461 # it will coredump.
15462 lt_prog_compiler_pic_CXX='-fPIC -shared'
15463 ;;
15464 *)
15465 lt_prog_compiler_pic_CXX='-fPIC'
15466 ;;
15467 esac
15468 else
15469 case $host_os in
15470 aix[4-9]*)
15471 # All AIX code is PIC.
15472 if test ia64 = "$host_cpu"; then
15473 # AIX 5 now supports IA64 processor
15474 lt_prog_compiler_static_CXX='-Bstatic'
15475 else
15476 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15477 fi
15478 ;;
15479 chorus*)
15480 case $cc_basename in
15481 cxch68*)
15482 # Green Hills C++ Compiler
15483 # _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"
15484 ;;
15485 esac
15486 ;;
15487 mingw* | cygwin* | os2* | pw32* | cegcc*)
15488 # This hack is so that the source file can tell whether it is being
15489 # built for inclusion in a dll (and should export symbols for example).
15490 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15491 ;;
15492 dgux*)
15493 case $cc_basename in
15494 ec++*)
15495 lt_prog_compiler_pic_CXX='-KPIC'
15496 ;;
15497 ghcx*)
15498 # Green Hills C++ Compiler
15499 lt_prog_compiler_pic_CXX='-pic'
15500 ;;
15501 *)
15502 ;;
15503 esac
15504 ;;
15505 freebsd* | dragonfly*)
15506 # FreeBSD uses GNU C++
15507 ;;
15508 hpux9* | hpux10* | hpux11*)
15509 case $cc_basename in
15510 CC*)
15511 lt_prog_compiler_wl_CXX='-Wl,'
15512 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15513 if test ia64 != "$host_cpu"; then
15514 lt_prog_compiler_pic_CXX='+Z'
15515 fi
15516 ;;
15517 aCC*)
15518 lt_prog_compiler_wl_CXX='-Wl,'
15519 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15520 case $host_cpu in
15521 hppa*64*|ia64*)
15522 # +Z the default
15523 ;;
15524 *)
15525 lt_prog_compiler_pic_CXX='+Z'
15526 ;;
15527 esac
15528 ;;
15529 *)
15530 ;;
15531 esac
15532 ;;
15533 interix*)
15534 # This is c89, which is MS Visual C++ (no shared libs)
15535 # Anyone wants to do a port?
15536 ;;
15537 irix5* | irix6* | nonstopux*)
15538 case $cc_basename in
15539 CC*)
15540 lt_prog_compiler_wl_CXX='-Wl,'
15541 lt_prog_compiler_static_CXX='-non_shared'
15542 # CC pic flag -KPIC is the default.
15543 ;;
15544 *)
15545 ;;
15546 esac
15547 ;;
15548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15549 case $cc_basename in
15550 KCC*)
15551 # KAI C++ Compiler
15552 lt_prog_compiler_wl_CXX='--backend -Wl,'
15553 lt_prog_compiler_pic_CXX='-fPIC'
15554 ;;
15555 ecpc* )
15556 # old Intel C++ for x86_64, which still supported -KPIC.
15557 lt_prog_compiler_wl_CXX='-Wl,'
15558 lt_prog_compiler_pic_CXX='-KPIC'
15559 lt_prog_compiler_static_CXX='-static'
15560 ;;
15561 icpc* )
15562 # Intel C++, used to be incompatible with GCC.
15563 # ICC 10 doesn't accept -KPIC any more.
15564 lt_prog_compiler_wl_CXX='-Wl,'
15565 lt_prog_compiler_pic_CXX='-fPIC'
15566 lt_prog_compiler_static_CXX='-static'
15567 ;;
15568 pgCC* | pgcpp*)
15569 # Portland Group C++ compiler
15570 lt_prog_compiler_wl_CXX='-Wl,'
15571 lt_prog_compiler_pic_CXX='-fpic'
15572 lt_prog_compiler_static_CXX='-Bstatic'
15573 ;;
15574 cxx*)
15575 # Compaq C++
15576 # Make sure the PIC flag is empty. It appears that all Alpha
15577 # Linux and Compaq Tru64 Unix objects are PIC.
15578 lt_prog_compiler_pic_CXX=
15579 lt_prog_compiler_static_CXX='-non_shared'
15580 ;;
15581 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15582 # IBM XL 8.0, 9.0 on PPC and BlueGene
15583 lt_prog_compiler_wl_CXX='-Wl,'
15584 lt_prog_compiler_pic_CXX='-qpic'
15585 lt_prog_compiler_static_CXX='-qstaticlink'
15586 ;;
15587 *)
15588 case `$CC -V 2>&1 | sed 5q` in
15589 *Sun\ C*)
15590 # Sun C++ 5.9
15591 lt_prog_compiler_pic_CXX='-KPIC'
15592 lt_prog_compiler_static_CXX='-Bstatic'
15593 lt_prog_compiler_wl_CXX='-Qoption ld '
15594 ;;
15595 esac
15596 ;;
15597 esac
15598 ;;
15599 lynxos*)
15600 ;;
15601 m88k*)
15602 ;;
15603 mvs*)
15604 case $cc_basename in
15605 cxx*)
15606 lt_prog_compiler_pic_CXX='-W c,exportall'
15607 ;;
15608 *)
15609 ;;
15610 esac
15611 ;;
15612 netbsd* | netbsdelf*-gnu)
15613 ;;
15614 *qnx* | *nto*)
15615 # QNX uses GNU C++, but need to define -shared option too, otherwise
15616 # it will coredump.
15617 lt_prog_compiler_pic_CXX='-fPIC -shared'
15618 ;;
15619 osf3* | osf4* | osf5*)
15620 case $cc_basename in
15621 KCC*)
15622 lt_prog_compiler_wl_CXX='--backend -Wl,'
15623 ;;
15624 RCC*)
15625 # Rational C++ 2.4.1
15626 lt_prog_compiler_pic_CXX='-pic'
15627 ;;
15628 cxx*)
15629 # Digital/Compaq C++
15630 lt_prog_compiler_wl_CXX='-Wl,'
15631 # Make sure the PIC flag is empty. It appears that all Alpha
15632 # Linux and Compaq Tru64 Unix objects are PIC.
15633 lt_prog_compiler_pic_CXX=
15634 lt_prog_compiler_static_CXX='-non_shared'
15635 ;;
15636 *)
15637 ;;
15638 esac
15639 ;;
15640 psos*)
15641 ;;
15642 solaris*)
15643 case $cc_basename in
15644 CC* | sunCC*)
15645 # Sun C++ 4.2, 5.x and Centerline C++
15646 lt_prog_compiler_pic_CXX='-KPIC'
15647 lt_prog_compiler_static_CXX='-Bstatic'
15648 lt_prog_compiler_wl_CXX='-Qoption ld '
15649 ;;
15650 gcx*)
15651 # Green Hills C++ Compiler
15652 lt_prog_compiler_pic_CXX='-PIC'
15653 ;;
15654 *)
15655 ;;
15656 esac
15657 ;;
15658 sunos4*)
15659 case $cc_basename in
15660 CC*)
15661 # Sun C++ 4.x
15662 lt_prog_compiler_pic_CXX='-pic'
15663 lt_prog_compiler_static_CXX='-Bstatic'
15664 ;;
15665 lcc*)
15666 # Lucid
15667 lt_prog_compiler_pic_CXX='-pic'
15668 ;;
15669 *)
15670 ;;
15671 esac
15672 ;;
15673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15674 case $cc_basename in
15675 CC*)
15676 lt_prog_compiler_wl_CXX='-Wl,'
15677 lt_prog_compiler_pic_CXX='-KPIC'
15678 lt_prog_compiler_static_CXX='-Bstatic'
15679 ;;
15680 esac
15681 ;;
15682 tandem*)
15683 case $cc_basename in
15684 NCC*)
15685 # NonStop-UX NCC 3.20
15686 lt_prog_compiler_pic_CXX='-KPIC'
15687 ;;
15688 *)
15689 ;;
15690 esac
15691 ;;
15692 vxworks*)
15693 ;;
15694 *)
15695 lt_prog_compiler_can_build_shared_CXX=no
15696 ;;
15697 esac
15698 fi
15699
15700 case $host_os in
15701 # For platforms that do not support PIC, -DPIC is meaningless:
15702 *djgpp*)
15703 lt_prog_compiler_pic_CXX=
15704 ;;
15705 *)
15706 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15707 ;;
15708 esac
15709
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15711 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15712 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15718 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15719 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15720
15721 #
15722 # Check to make sure the PIC flag actually works.
15723 #
15724 if test -n "$lt_prog_compiler_pic_CXX"; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15726 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15727 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15728 $as_echo_n "(cached) " >&6
15729 else
15730 lt_cv_prog_compiler_pic_works_CXX=no
15731 ac_outfile=conftest.$ac_objext
15732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15734 # Insert the option either (1) after the last *FLAGS variable, or
15735 # (2) before a word containing "conftest.", or (3) at the end.
15736 # Note that $ac_compile itself does not contain backslashes and begins
15737 # with a dollar sign (not a hyphen), so the echo should work correctly.
15738 # The option is referenced via a variable to avoid confusing sed.
15739 lt_compile=`echo "$ac_compile" | $SED \
15740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15742 -e 's:$: $lt_compiler_flag:'`
15743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15744 (eval "$lt_compile" 2>conftest.err)
15745 ac_status=$?
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 if (exit $ac_status) && test -s "$ac_outfile"; then
15749 # The compiler can only warn and ignore the option if not recognized
15750 # So say no if there are warnings other than the usual output.
15751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15754 lt_cv_prog_compiler_pic_works_CXX=yes
15755 fi
15756 fi
15757 $RM conftest*
15758
15759 fi
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15761 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15762
15763 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15764 case $lt_prog_compiler_pic_CXX in
15765 "" | " "*) ;;
15766 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15767 esac
15768 else
15769 lt_prog_compiler_pic_CXX=
15770 lt_prog_compiler_can_build_shared_CXX=no
15771 fi
15772
15773 fi
15774
15775
15776
15777
15778
15779 #
15780 # Check to make sure the static flag actually works.
15781 #
15782 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15784 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15785 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15786 $as_echo_n "(cached) " >&6
15787 else
15788 lt_cv_prog_compiler_static_works_CXX=no
15789 save_LDFLAGS=$LDFLAGS
15790 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15793 # The linker can only warn and ignore the option if not recognized
15794 # So say no if there are warnings
15795 if test -s conftest.err; then
15796 # Append any errors to the config.log.
15797 cat conftest.err 1>&5
15798 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15800 if diff conftest.exp conftest.er2 >/dev/null; then
15801 lt_cv_prog_compiler_static_works_CXX=yes
15802 fi
15803 else
15804 lt_cv_prog_compiler_static_works_CXX=yes
15805 fi
15806 fi
15807 $RM -r conftest*
15808 LDFLAGS=$save_LDFLAGS
15809
15810 fi
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15812 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15813
15814 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15815 :
15816 else
15817 lt_prog_compiler_static_CXX=
15818 fi
15819
15820
15821
15822
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15824 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15825 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15826 $as_echo_n "(cached) " >&6
15827 else
15828 lt_cv_prog_compiler_c_o_CXX=no
15829 $RM -r conftest 2>/dev/null
15830 mkdir conftest
15831 cd conftest
15832 mkdir out
15833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15834
15835 lt_compiler_flag="-o out/conftest2.$ac_objext"
15836 # Insert the option either (1) after the last *FLAGS variable, or
15837 # (2) before a word containing "conftest.", or (3) at the end.
15838 # Note that $ac_compile itself does not contain backslashes and begins
15839 # with a dollar sign (not a hyphen), so the echo should work correctly.
15840 lt_compile=`echo "$ac_compile" | $SED \
15841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15843 -e 's:$: $lt_compiler_flag:'`
15844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15845 (eval "$lt_compile" 2>out/conftest.err)
15846 ac_status=$?
15847 cat out/conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15850 then
15851 # The compiler can only warn and ignore the option if not recognized
15852 # So say no if there are warnings
15853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15856 lt_cv_prog_compiler_c_o_CXX=yes
15857 fi
15858 fi
15859 chmod u+w . 2>&5
15860 $RM conftest*
15861 # SGI C++ compiler will create directory out/ii_files/ for
15862 # template instantiation
15863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15864 $RM out/* && rmdir out
15865 cd ..
15866 $RM -r conftest
15867 $RM conftest*
15868
15869 fi
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15871 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15872
15873
15874
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15877 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 lt_cv_prog_compiler_c_o_CXX=no
15881 $RM -r conftest 2>/dev/null
15882 mkdir conftest
15883 cd conftest
15884 mkdir out
15885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15886
15887 lt_compiler_flag="-o out/conftest2.$ac_objext"
15888 # Insert the option either (1) after the last *FLAGS variable, or
15889 # (2) before a word containing "conftest.", or (3) at the end.
15890 # Note that $ac_compile itself does not contain backslashes and begins
15891 # with a dollar sign (not a hyphen), so the echo should work correctly.
15892 lt_compile=`echo "$ac_compile" | $SED \
15893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15895 -e 's:$: $lt_compiler_flag:'`
15896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15897 (eval "$lt_compile" 2>out/conftest.err)
15898 ac_status=$?
15899 cat out/conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15902 then
15903 # The compiler can only warn and ignore the option if not recognized
15904 # So say no if there are warnings
15905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15908 lt_cv_prog_compiler_c_o_CXX=yes
15909 fi
15910 fi
15911 chmod u+w . 2>&5
15912 $RM conftest*
15913 # SGI C++ compiler will create directory out/ii_files/ for
15914 # template instantiation
15915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15916 $RM out/* && rmdir out
15917 cd ..
15918 $RM -r conftest
15919 $RM conftest*
15920
15921 fi
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15923 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15924
15925
15926
15927
15928 hard_links=nottested
15929 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15930 # do not overwrite the value of need_locks provided by the user
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15932 $as_echo_n "checking if we can lock with hard links... " >&6; }
15933 hard_links=yes
15934 $RM conftest*
15935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15936 touch conftest.a
15937 ln conftest.a conftest.b 2>&5 || hard_links=no
15938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15940 $as_echo "$hard_links" >&6; }
15941 if test no = "$hard_links"; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15943 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15944 need_locks=warn
15945 fi
15946 else
15947 need_locks=no
15948 fi
15949
15950
15951
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15953 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15954
15955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15956 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15957 case $host_os in
15958 aix[4-9]*)
15959 # If we're using GNU nm, then we don't want the "-C" option.
15960 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15961 # Without the "-l" option, or with the "-B" option, AIX nm treats
15962 # weak defined symbols like other global defined symbols, whereas
15963 # GNU nm marks them as "W".
15964 # While the 'weak' keyword is ignored in the Export File, we need
15965 # it in the Import File for the 'aix-soname' feature, so we have
15966 # to replace the "-B" option with "-P" for AIX nm.
15967 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15968 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15969 else
15970 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15971 fi
15972 ;;
15973 pw32*)
15974 export_symbols_cmds_CXX=$ltdll_cmds
15975 ;;
15976 cygwin* | mingw* | cegcc*)
15977 case $cc_basename in
15978 cl*)
15979 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15980 ;;
15981 *)
15982 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'
15983 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15984 ;;
15985 esac
15986 ;;
15987 linux* | k*bsd*-gnu | gnu*)
15988 link_all_deplibs_CXX=no
15989 ;;
15990 *)
15991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15992 ;;
15993 esac
15994
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15996 $as_echo "$ld_shlibs_CXX" >&6; }
15997 test no = "$ld_shlibs_CXX" && can_build_shared=no
15998
15999 with_gnu_ld_CXX=$with_gnu_ld
16000
16001
16002
16003
16004
16005
16006 #
16007 # Do we need to explicitly link libc?
16008 #
16009 case "x$archive_cmds_need_lc_CXX" in
16010 x|xyes)
16011 # Assume -lc should be added
16012 archive_cmds_need_lc_CXX=yes
16013
16014 if test yes,yes = "$GCC,$enable_shared"; then
16015 case $archive_cmds_CXX in
16016 *'~'*)
16017 # FIXME: we may have to deal with multi-command sequences.
16018 ;;
16019 '$CC '*)
16020 # Test whether the compiler implicitly links with -lc since on some
16021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16022 # to ld, don't add -lc before -lgcc.
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16024 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16025 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 $RM conftest*
16029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16030
16031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16032 (eval $ac_compile) 2>&5
16033 ac_status=$?
16034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035 test $ac_status = 0; } 2>conftest.err; then
16036 soname=conftest
16037 lib=conftest
16038 libobjs=conftest.$ac_objext
16039 deplibs=
16040 wl=$lt_prog_compiler_wl_CXX
16041 pic_flag=$lt_prog_compiler_pic_CXX
16042 compiler_flags=-v
16043 linker_flags=-v
16044 verstring=
16045 output_objdir=.
16046 libname=conftest
16047 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16048 allow_undefined_flag_CXX=
16049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16050 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16051 ac_status=$?
16052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16053 test $ac_status = 0; }
16054 then
16055 lt_cv_archive_cmds_need_lc_CXX=no
16056 else
16057 lt_cv_archive_cmds_need_lc_CXX=yes
16058 fi
16059 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16060 else
16061 cat conftest.err 1>&5
16062 fi
16063 $RM conftest*
16064
16065 fi
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16067 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16068 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16069 ;;
16070 esac
16071 fi
16072 ;;
16073 esac
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16137 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16138
16139 library_names_spec=
16140 libname_spec='lib$name'
16141 soname_spec=
16142 shrext_cmds=.so
16143 postinstall_cmds=
16144 postuninstall_cmds=
16145 finish_cmds=
16146 finish_eval=
16147 shlibpath_var=
16148 shlibpath_overrides_runpath=unknown
16149 version_type=none
16150 dynamic_linker="$host_os ld.so"
16151 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16152 need_lib_prefix=unknown
16153 hardcode_into_libs=no
16154
16155 # when you set need_version to no, make sure it does not cause -set_version
16156 # flags to be left without arguments
16157 need_version=unknown
16158
16159
16160
16161 case $host_os in
16162 aix3*)
16163 version_type=linux # correct to gnu/linux during the next big refactor
16164 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16165 shlibpath_var=LIBPATH
16166
16167 # AIX 3 has no versioning support, so we append a major version to the name.
16168 soname_spec='$libname$release$shared_ext$major'
16169 ;;
16170
16171 aix[4-9]*)
16172 version_type=linux # correct to gnu/linux during the next big refactor
16173 need_lib_prefix=no
16174 need_version=no
16175 hardcode_into_libs=yes
16176 if test ia64 = "$host_cpu"; then
16177 # AIX 5 supports IA64
16178 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 else
16181 # With GCC up to 2.95.x, collect2 would create an import file
16182 # for dependence libraries. The import file would start with
16183 # the line '#! .'. This would cause the generated library to
16184 # depend on '.', always an invalid library. This was fixed in
16185 # development snapshots of GCC prior to 3.0.
16186 case $host_os in
16187 aix4 | aix4.[01] | aix4.[01].*)
16188 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16189 echo ' yes '
16190 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16191 :
16192 else
16193 can_build_shared=no
16194 fi
16195 ;;
16196 esac
16197 # Using Import Files as archive members, it is possible to support
16198 # filename-based versioning of shared library archives on AIX. While
16199 # this would work for both with and without runtime linking, it will
16200 # prevent static linking of such archives. So we do filename-based
16201 # shared library versioning with .so extension only, which is used
16202 # when both runtime linking and shared linking is enabled.
16203 # Unfortunately, runtime linking may impact performance, so we do
16204 # not want this to be the default eventually. Also, we use the
16205 # versioned .so libs for executables only if there is the -brtl
16206 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16207 # To allow for filename-based versioning support, we need to create
16208 # libNAME.so.V as an archive file, containing:
16209 # *) an Import File, referring to the versioned filename of the
16210 # archive as well as the shared archive member, telling the
16211 # bitwidth (32 or 64) of that shared object, and providing the
16212 # list of exported symbols of that shared object, eventually
16213 # decorated with the 'weak' keyword
16214 # *) the shared object with the F_LOADONLY flag set, to really avoid
16215 # it being seen by the linker.
16216 # At run time we better use the real file rather than another symlink,
16217 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16218
16219 case $with_aix_soname,$aix_use_runtimelinking in
16220 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16221 # soname into executable. Probably we can add versioning support to
16222 # collect2, so additional links can be useful in future.
16223 aix,yes) # traditional libtool
16224 dynamic_linker='AIX unversionable lib.so'
16225 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16226 # instead of lib<name>.a to let people know that these are not
16227 # typical AIX shared libraries.
16228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16229 ;;
16230 aix,no) # traditional AIX only
16231 dynamic_linker='AIX lib.a(lib.so.V)'
16232 # We preserve .a as extension for shared libraries through AIX4.2
16233 # and later when we are not doing run time linking.
16234 library_names_spec='$libname$release.a $libname.a'
16235 soname_spec='$libname$release$shared_ext$major'
16236 ;;
16237 svr4,*) # full svr4 only
16238 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16239 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16240 # We do not specify a path in Import Files, so LIBPATH fires.
16241 shlibpath_overrides_runpath=yes
16242 ;;
16243 *,yes) # both, prefer svr4
16244 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16245 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16246 # unpreferred sharedlib libNAME.a needs extra handling
16247 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16248 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16249 # We do not specify a path in Import Files, so LIBPATH fires.
16250 shlibpath_overrides_runpath=yes
16251 ;;
16252 *,no) # both, prefer aix
16253 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16254 library_names_spec='$libname$release.a $libname.a'
16255 soname_spec='$libname$release$shared_ext$major'
16256 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16257 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16258 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16259 ;;
16260 esac
16261 shlibpath_var=LIBPATH
16262 fi
16263 ;;
16264
16265 amigaos*)
16266 case $host_cpu in
16267 powerpc)
16268 # Since July 2007 AmigaOS4 officially supports .so libraries.
16269 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16271 ;;
16272 m68k)
16273 library_names_spec='$libname.ixlibrary $libname.a'
16274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16275 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16276 ;;
16277 esac
16278 ;;
16279
16280 beos*)
16281 library_names_spec='$libname$shared_ext'
16282 dynamic_linker="$host_os ld.so"
16283 shlibpath_var=LIBRARY_PATH
16284 ;;
16285
16286 bsdi[45]*)
16287 version_type=linux # correct to gnu/linux during the next big refactor
16288 need_version=no
16289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16290 soname_spec='$libname$release$shared_ext$major'
16291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16295 # the default ld.so.conf also contains /usr/contrib/lib and
16296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16297 # libtool to hard-code these into programs
16298 ;;
16299
16300 cygwin* | mingw* | pw32* | cegcc*)
16301 version_type=windows
16302 shrext_cmds=.dll
16303 need_version=no
16304 need_lib_prefix=no
16305
16306 case $GCC,$cc_basename in
16307 yes,*)
16308 # gcc
16309 library_names_spec='$libname.dll.a'
16310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16311 postinstall_cmds='base_file=`basename \$file`~
16312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16313 dldir=$destdir/`dirname \$dlpath`~
16314 test -d \$dldir || mkdir -p \$dldir~
16315 $install_prog $dir/$dlname \$dldir/$dlname~
16316 chmod a+x \$dldir/$dlname~
16317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16319 fi'
16320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16321 dlpath=$dir/\$dldll~
16322 $RM \$dlpath'
16323 shlibpath_overrides_runpath=yes
16324
16325 case $host_os in
16326 cygwin*)
16327 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16328 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16329
16330 ;;
16331 mingw* | cegcc*)
16332 # MinGW DLLs use traditional 'lib' prefix
16333 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16334 ;;
16335 pw32*)
16336 # pw32 DLLs use 'pw' prefix rather than 'lib'
16337 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16338 ;;
16339 esac
16340 dynamic_linker='Win32 ld.exe'
16341 ;;
16342
16343 *,cl*)
16344 # Native MSVC
16345 libname_spec='$name'
16346 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16347 library_names_spec='$libname.dll.lib'
16348
16349 case $build_os in
16350 mingw*)
16351 sys_lib_search_path_spec=
16352 lt_save_ifs=$IFS
16353 IFS=';'
16354 for lt_path in $LIB
16355 do
16356 IFS=$lt_save_ifs
16357 # Let DOS variable expansion print the short 8.3 style file name.
16358 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16359 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16360 done
16361 IFS=$lt_save_ifs
16362 # Convert to MSYS style.
16363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16364 ;;
16365 cygwin*)
16366 # Convert to unix form, then to dos form, then back to unix form
16367 # but this time dos style (no spaces!) so that the unix form looks
16368 # like /cygdrive/c/PROGRA~1:/cygdr...
16369 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16370 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16371 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16372 ;;
16373 *)
16374 sys_lib_search_path_spec=$LIB
16375 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16376 # It is most probably a Windows format PATH.
16377 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16378 else
16379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16380 fi
16381 # FIXME: find the short name or the path components, as spaces are
16382 # common. (e.g. "Program Files" -> "PROGRA~1")
16383 ;;
16384 esac
16385
16386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16387 postinstall_cmds='base_file=`basename \$file`~
16388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16389 dldir=$destdir/`dirname \$dlpath`~
16390 test -d \$dldir || mkdir -p \$dldir~
16391 $install_prog $dir/$dlname \$dldir/$dlname'
16392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16393 dlpath=$dir/\$dldll~
16394 $RM \$dlpath'
16395 shlibpath_overrides_runpath=yes
16396 dynamic_linker='Win32 link.exe'
16397 ;;
16398
16399 *)
16400 # Assume MSVC wrapper
16401 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16402 dynamic_linker='Win32 ld.exe'
16403 ;;
16404 esac
16405 # FIXME: first we should search . and the directory the executable is in
16406 shlibpath_var=PATH
16407 ;;
16408
16409 darwin* | rhapsody*)
16410 dynamic_linker="$host_os dyld"
16411 version_type=darwin
16412 need_lib_prefix=no
16413 need_version=no
16414 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16415 soname_spec='$libname$release$major$shared_ext'
16416 shlibpath_overrides_runpath=yes
16417 shlibpath_var=DYLD_LIBRARY_PATH
16418 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16419
16420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16421 ;;
16422
16423 dgux*)
16424 version_type=linux # correct to gnu/linux during the next big refactor
16425 need_lib_prefix=no
16426 need_version=no
16427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16428 soname_spec='$libname$release$shared_ext$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 ;;
16431
16432 freebsd* | dragonfly*)
16433 # DragonFly does not have aout. When/if they implement a new
16434 # versioning mechanism, adjust this.
16435 if test -x /usr/bin/objformat; then
16436 objformat=`/usr/bin/objformat`
16437 else
16438 case $host_os in
16439 freebsd[23].*) objformat=aout ;;
16440 *) objformat=elf ;;
16441 esac
16442 fi
16443 version_type=freebsd-$objformat
16444 case $version_type in
16445 freebsd-elf*)
16446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16447 soname_spec='$libname$release$shared_ext$major'
16448 need_version=no
16449 need_lib_prefix=no
16450 ;;
16451 freebsd-*)
16452 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16453 need_version=yes
16454 ;;
16455 esac
16456 shlibpath_var=LD_LIBRARY_PATH
16457 case $host_os in
16458 freebsd2.*)
16459 shlibpath_overrides_runpath=yes
16460 ;;
16461 freebsd3.[01]* | freebsdelf3.[01]*)
16462 shlibpath_overrides_runpath=yes
16463 hardcode_into_libs=yes
16464 ;;
16465 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16466 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16467 shlibpath_overrides_runpath=no
16468 hardcode_into_libs=yes
16469 ;;
16470 *) # from 4.6 on, and DragonFly
16471 shlibpath_overrides_runpath=yes
16472 hardcode_into_libs=yes
16473 ;;
16474 esac
16475 ;;
16476
16477 haiku*)
16478 version_type=linux # correct to gnu/linux during the next big refactor
16479 need_lib_prefix=no
16480 need_version=no
16481 dynamic_linker="$host_os runtime_loader"
16482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16483 soname_spec='$libname$release$shared_ext$major'
16484 shlibpath_var=LIBRARY_PATH
16485 shlibpath_overrides_runpath=no
16486 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16487 hardcode_into_libs=yes
16488 ;;
16489
16490 hpux9* | hpux10* | hpux11*)
16491 # Give a soname corresponding to the major version so that dld.sl refuses to
16492 # link against other versions.
16493 version_type=sunos
16494 need_lib_prefix=no
16495 need_version=no
16496 case $host_cpu in
16497 ia64*)
16498 shrext_cmds='.so'
16499 hardcode_into_libs=yes
16500 dynamic_linker="$host_os dld.so"
16501 shlibpath_var=LD_LIBRARY_PATH
16502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16504 soname_spec='$libname$release$shared_ext$major'
16505 if test 32 = "$HPUX_IA64_MODE"; then
16506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16507 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16508 else
16509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16510 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16511 fi
16512 ;;
16513 hppa*64*)
16514 shrext_cmds='.sl'
16515 hardcode_into_libs=yes
16516 dynamic_linker="$host_os dld.sl"
16517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16520 soname_spec='$libname$release$shared_ext$major'
16521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16523 ;;
16524 *)
16525 shrext_cmds='.sl'
16526 dynamic_linker="$host_os dld.sl"
16527 shlibpath_var=SHLIB_PATH
16528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16530 soname_spec='$libname$release$shared_ext$major'
16531 ;;
16532 esac
16533 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16534 postinstall_cmds='chmod 555 $lib'
16535 # or fails outright, so override atomically:
16536 install_override_mode=555
16537 ;;
16538
16539 interix[3-9]*)
16540 version_type=linux # correct to gnu/linux during the next big refactor
16541 need_lib_prefix=no
16542 need_version=no
16543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16544 soname_spec='$libname$release$shared_ext$major'
16545 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16546 shlibpath_var=LD_LIBRARY_PATH
16547 shlibpath_overrides_runpath=no
16548 hardcode_into_libs=yes
16549 ;;
16550
16551 irix5* | irix6* | nonstopux*)
16552 case $host_os in
16553 nonstopux*) version_type=nonstopux ;;
16554 *)
16555 if test yes = "$lt_cv_prog_gnu_ld"; then
16556 version_type=linux # correct to gnu/linux during the next big refactor
16557 else
16558 version_type=irix
16559 fi ;;
16560 esac
16561 need_lib_prefix=no
16562 need_version=no
16563 soname_spec='$libname$release$shared_ext$major'
16564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16565 case $host_os in
16566 irix5* | nonstopux*)
16567 libsuff= shlibsuff=
16568 ;;
16569 *)
16570 case $LD in # libtool.m4 will add one of these switches to LD
16571 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16572 libsuff= shlibsuff= libmagic=32-bit;;
16573 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16574 libsuff=32 shlibsuff=N32 libmagic=N32;;
16575 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16576 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16577 *) libsuff= shlibsuff= libmagic=never-match;;
16578 esac
16579 ;;
16580 esac
16581 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16582 shlibpath_overrides_runpath=no
16583 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16584 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16585 hardcode_into_libs=yes
16586 ;;
16587
16588 # No shared lib support for Linux oldld, aout, or coff.
16589 linux*oldld* | linux*aout* | linux*coff*)
16590 dynamic_linker=no
16591 ;;
16592
16593 linux*android*)
16594 version_type=none # Android doesn't support versioned libraries.
16595 need_lib_prefix=no
16596 need_version=no
16597 library_names_spec='$libname$release$shared_ext'
16598 soname_spec='$libname$release$shared_ext'
16599 finish_cmds=
16600 shlibpath_var=LD_LIBRARY_PATH
16601 shlibpath_overrides_runpath=yes
16602
16603 # This implies no fast_install, which is unacceptable.
16604 # Some rework will be needed to allow for fast_install
16605 # before this can be enabled.
16606 hardcode_into_libs=yes
16607
16608 dynamic_linker='Android linker'
16609 # Don't embed -rpath directories since the linker doesn't support them.
16610 hardcode_libdir_flag_spec_CXX='-L$libdir'
16611 ;;
16612
16613 # This must be glibc/ELF.
16614 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16615 version_type=linux # correct to gnu/linux during the next big refactor
16616 need_lib_prefix=no
16617 need_version=no
16618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16619 soname_spec='$libname$release$shared_ext$major'
16620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=no
16623
16624 # Some binutils ld are patched to set DT_RUNPATH
16625 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 lt_cv_shlibpath_overrides_runpath=no
16629 save_LDFLAGS=$LDFLAGS
16630 save_libdir=$libdir
16631 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16632 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16635
16636 int
16637 main ()
16638 {
16639
16640 ;
16641 return 0;
16642 }
16643 _ACEOF
16644 if ac_fn_cxx_try_link "$LINENO"; then :
16645 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16646 lt_cv_shlibpath_overrides_runpath=yes
16647 fi
16648 fi
16649 rm -f core conftest.err conftest.$ac_objext \
16650 conftest$ac_exeext conftest.$ac_ext
16651 LDFLAGS=$save_LDFLAGS
16652 libdir=$save_libdir
16653
16654 fi
16655
16656 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16657
16658 # This implies no fast_install, which is unacceptable.
16659 # Some rework will be needed to allow for fast_install
16660 # before this can be enabled.
16661 hardcode_into_libs=yes
16662
16663 # Ideally, we could use ldconfig to report *all* directores which are
16664 # searched for libraries, however this is still not possible. Aside from not
16665 # being certain /sbin/ldconfig is available, command
16666 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16667 # even though it is searched at run-time. Try to do the best guess by
16668 # appending ld.so.conf contents (and includes) to the search path.
16669 if test -f /etc/ld.so.conf; then
16670 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' ' '`
16671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16672 fi
16673
16674 # We used to test for /lib/ld.so.1 and disable shared libraries on
16675 # powerpc, because MkLinux only supported shared libraries with the
16676 # GNU dynamic linker. Since this was broken with cross compilers,
16677 # most powerpc-linux boxes support dynamic linking these days and
16678 # people can always --disable-shared, the test was removed, and we
16679 # assume the GNU/Linux dynamic linker is in use.
16680 dynamic_linker='GNU/Linux ld.so'
16681 ;;
16682
16683 netbsdelf*-gnu)
16684 version_type=linux
16685 need_lib_prefix=no
16686 need_version=no
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath=no
16691 hardcode_into_libs=yes
16692 dynamic_linker='NetBSD ld.elf_so'
16693 ;;
16694
16695 netbsd*)
16696 version_type=sunos
16697 need_lib_prefix=no
16698 need_version=no
16699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16700 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702 dynamic_linker='NetBSD (a.out) ld.so'
16703 else
16704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16705 soname_spec='$libname$release$shared_ext$major'
16706 dynamic_linker='NetBSD ld.elf_so'
16707 fi
16708 shlibpath_var=LD_LIBRARY_PATH
16709 shlibpath_overrides_runpath=yes
16710 hardcode_into_libs=yes
16711 ;;
16712
16713 newsos6)
16714 version_type=linux # correct to gnu/linux during the next big refactor
16715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath=yes
16718 ;;
16719
16720 *nto* | *qnx*)
16721 version_type=qnx
16722 need_lib_prefix=no
16723 need_version=no
16724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16725 soname_spec='$libname$release$shared_ext$major'
16726 shlibpath_var=LD_LIBRARY_PATH
16727 shlibpath_overrides_runpath=no
16728 hardcode_into_libs=yes
16729 dynamic_linker='ldqnx.so'
16730 ;;
16731
16732 openbsd* | bitrig*)
16733 version_type=sunos
16734 sys_lib_dlsearch_path_spec=/usr/lib
16735 need_lib_prefix=no
16736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16737 need_version=no
16738 else
16739 need_version=yes
16740 fi
16741 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16743 shlibpath_var=LD_LIBRARY_PATH
16744 shlibpath_overrides_runpath=yes
16745 ;;
16746
16747 os2*)
16748 libname_spec='$name'
16749 version_type=windows
16750 shrext_cmds=.dll
16751 need_version=no
16752 need_lib_prefix=no
16753 # OS/2 can only load a DLL with a base name of 8 characters or less.
16754 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16755 v=$($ECHO $release$versuffix | tr -d .-);
16756 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16757 $ECHO $n$v`$shared_ext'
16758 library_names_spec='${libname}_dll.$libext'
16759 dynamic_linker='OS/2 ld.exe'
16760 shlibpath_var=BEGINLIBPATH
16761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16763 postinstall_cmds='base_file=`basename \$file`~
16764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16765 dldir=$destdir/`dirname \$dlpath`~
16766 test -d \$dldir || mkdir -p \$dldir~
16767 $install_prog $dir/$dlname \$dldir/$dlname~
16768 chmod a+x \$dldir/$dlname~
16769 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16770 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16771 fi'
16772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16773 dlpath=$dir/\$dldll~
16774 $RM \$dlpath'
16775 ;;
16776
16777 osf3* | osf4* | osf5*)
16778 version_type=osf
16779 need_lib_prefix=no
16780 need_version=no
16781 soname_spec='$libname$release$shared_ext$major'
16782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16783 shlibpath_var=LD_LIBRARY_PATH
16784 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16786 ;;
16787
16788 rdos*)
16789 dynamic_linker=no
16790 ;;
16791
16792 solaris*)
16793 version_type=linux # correct to gnu/linux during the next big refactor
16794 need_lib_prefix=no
16795 need_version=no
16796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16797 soname_spec='$libname$release$shared_ext$major'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 shlibpath_overrides_runpath=yes
16800 hardcode_into_libs=yes
16801 # ldd complains unless libraries are executable
16802 postinstall_cmds='chmod +x $lib'
16803 ;;
16804
16805 sunos4*)
16806 version_type=sunos
16807 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16808 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 shlibpath_overrides_runpath=yes
16811 if test yes = "$with_gnu_ld"; then
16812 need_lib_prefix=no
16813 fi
16814 need_version=yes
16815 ;;
16816
16817 sysv4 | sysv4.3*)
16818 version_type=linux # correct to gnu/linux during the next big refactor
16819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16820 soname_spec='$libname$release$shared_ext$major'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 case $host_vendor in
16823 sni)
16824 shlibpath_overrides_runpath=no
16825 need_lib_prefix=no
16826 runpath_var=LD_RUN_PATH
16827 ;;
16828 siemens)
16829 need_lib_prefix=no
16830 ;;
16831 motorola)
16832 need_lib_prefix=no
16833 need_version=no
16834 shlibpath_overrides_runpath=no
16835 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16836 ;;
16837 esac
16838 ;;
16839
16840 sysv4*MP*)
16841 if test -d /usr/nec; then
16842 version_type=linux # correct to gnu/linux during the next big refactor
16843 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16844 soname_spec='$libname$shared_ext.$major'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 fi
16847 ;;
16848
16849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16850 version_type=sco
16851 need_lib_prefix=no
16852 need_version=no
16853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16854 soname_spec='$libname$release$shared_ext$major'
16855 shlibpath_var=LD_LIBRARY_PATH
16856 shlibpath_overrides_runpath=yes
16857 hardcode_into_libs=yes
16858 if test yes = "$with_gnu_ld"; then
16859 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16860 else
16861 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16862 case $host_os in
16863 sco3.2v5*)
16864 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16865 ;;
16866 esac
16867 fi
16868 sys_lib_dlsearch_path_spec='/usr/lib'
16869 ;;
16870
16871 tpf*)
16872 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16873 version_type=linux # correct to gnu/linux during the next big refactor
16874 need_lib_prefix=no
16875 need_version=no
16876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 shlibpath_overrides_runpath=no
16879 hardcode_into_libs=yes
16880 ;;
16881
16882 uts4*)
16883 version_type=linux # correct to gnu/linux during the next big refactor
16884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16885 soname_spec='$libname$release$shared_ext$major'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 ;;
16888
16889 *)
16890 dynamic_linker=no
16891 ;;
16892 esac
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16894 $as_echo "$dynamic_linker" >&6; }
16895 test no = "$dynamic_linker" && can_build_shared=no
16896
16897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16898 if test yes = "$GCC"; then
16899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16900 fi
16901
16902 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16903 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16904 fi
16905
16906 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16907 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16908 fi
16909
16910 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16911 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16912
16913 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16914 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16915
16916 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16917 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16959 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16960 hardcode_action_CXX=
16961 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16962 test -n "$runpath_var_CXX" ||
16963 test yes = "$hardcode_automatic_CXX"; then
16964
16965 # We can hardcode non-existent directories.
16966 if test no != "$hardcode_direct_CXX" &&
16967 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16968 # have to relink, otherwise we might link with an installed library
16969 # when we should be linking with a yet-to-be-installed one
16970 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16971 test no != "$hardcode_minus_L_CXX"; then
16972 # Linking always hardcodes the temporary library directory.
16973 hardcode_action_CXX=relink
16974 else
16975 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16976 hardcode_action_CXX=immediate
16977 fi
16978 else
16979 # We cannot hardcode anything, or else we can only hardcode existing
16980 # directories.
16981 hardcode_action_CXX=unsupported
16982 fi
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16984 $as_echo "$hardcode_action_CXX" >&6; }
16985
16986 if test relink = "$hardcode_action_CXX" ||
16987 test yes = "$inherit_rpath_CXX"; then
16988 # Fast installation is not supported
16989 enable_fast_install=no
16990 elif test yes = "$shlibpath_overrides_runpath" ||
16991 test no = "$enable_shared"; then
16992 # Fast installation is not necessary
16993 enable_fast_install=needless
16994 fi
16995
16996
16997
16998
16999
17000
17001
17002 fi # test -n "$compiler"
17003
17004 CC=$lt_save_CC
17005 CFLAGS=$lt_save_CFLAGS
17006 LDCXX=$LD
17007 LD=$lt_save_LD
17008 GCC=$lt_save_GCC
17009 with_gnu_ld=$lt_save_with_gnu_ld
17010 lt_cv_path_LDCXX=$lt_cv_path_LD
17011 lt_cv_path_LD=$lt_save_path_LD
17012 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17013 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17014 fi # test yes != "$_lt_caught_CXX_error"
17015
17016 ac_ext=c
17017 ac_cpp='$CPP $CPPFLAGS'
17018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17021
17022
17023
17024 # Enable support for silent build rules
17025 # Check whether --enable-silent-rules was given.
17026 if test "${enable_silent_rules+set}" = set; then :
17027 enableval=$enable_silent_rules;
17028 fi
17029
17030 case $enable_silent_rules in # (((
17031 yes) AM_DEFAULT_VERBOSITY=0;;
17032 no) AM_DEFAULT_VERBOSITY=1;;
17033 *) AM_DEFAULT_VERBOSITY=1;;
17034 esac
17035 am_make=${MAKE-make}
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17037 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17038 if ${am_cv_make_support_nested_variables+:} false; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 if $as_echo 'TRUE=$(BAR$(V))
17042 BAR0=false
17043 BAR1=true
17044 V=1
17045 am__doit:
17046 @$(TRUE)
17047 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17048 am_cv_make_support_nested_variables=yes
17049 else
17050 am_cv_make_support_nested_variables=no
17051 fi
17052 fi
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17054 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17055 if test $am_cv_make_support_nested_variables = yes; then
17056 AM_V='$(V)'
17057 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17058 else
17059 AM_V=$AM_DEFAULT_VERBOSITY
17060 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17061 fi
17062 AM_BACKSLASH='\'
17063
17064
17065 tiff_libs_private=
17066
17067
17068 tiff_requires_private=
17069
17070
17071
17072 if test "$enable_static" = "yes"; then
17073 BUILD_STATIC_TRUE=
17074 BUILD_STATIC_FALSE='#'
17075 else
17076 BUILD_STATIC_TRUE='#'
17077 BUILD_STATIC_FALSE=
17078 fi
17079
17080
17081 SAVED_CFLAGS="$CFLAGS"
17082 CFLAGS=$(echo "$CFLAGS " | sed "s/-Werror //")
17083
17084 case "${host_os}" in
17085 cygwin* | mingw32* | beos* | darwin*)
17086 ;;
17087 *)
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17089 $as_echo_n "checking for sin in -lm... " >&6; }
17090 if ${ac_cv_lib_m_sin+:} false; then :
17091 $as_echo_n "(cached) " >&6
17092 else
17093 ac_check_lib_save_LIBS=$LIBS
17094 LIBS="-lm $LIBS"
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17097
17098 /* Override any GCC internal prototype to avoid an error.
17099 Use char because int might match the return type of a GCC
17100 builtin and then its argument prototype would still apply. */
17101 #ifdef __cplusplus
17102 extern "C"
17103 #endif
17104 char sin ();
17105 int
17106 main ()
17107 {
17108 return sin ();
17109 ;
17110 return 0;
17111 }
17112 _ACEOF
17113 if ac_fn_c_try_link "$LINENO"; then :
17114 ac_cv_lib_m_sin=yes
17115 else
17116 ac_cv_lib_m_sin=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17121 fi
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17123 $as_echo "$ac_cv_lib_m_sin" >&6; }
17124 if test "x$ac_cv_lib_m_sin" = xyes; then :
17125 libm_lib=yes
17126 else
17127 libm_lib=no
17128 fi
17129
17130 if test "x$libm_lib" = "xyes" ; then
17131 LIBS="-lm $LIBS"
17132 tiff_libs_private="-lm ${tiff_libs_private}"
17133 fi
17134 ;;
17135 esac
17136
17137 for ac_header in assert.h fcntl.h io.h search.h unistd.h
17138 do :
17139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17140 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17142 cat >>confdefs.h <<_ACEOF
17143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17144 _ACEOF
17145
17146 fi
17147
17148 done
17149
17150
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17152 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17153 if ${ac_cv_c_const+:} false; then :
17154 $as_echo_n "(cached) " >&6
17155 else
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17158
17159 int
17160 main ()
17161 {
17162
17163 #ifndef __cplusplus
17164 /* Ultrix mips cc rejects this sort of thing. */
17165 typedef int charset[2];
17166 const charset cs = { 0, 0 };
17167 /* SunOS 4.1.1 cc rejects this. */
17168 char const *const *pcpcc;
17169 char **ppc;
17170 /* NEC SVR4.0.2 mips cc rejects this. */
17171 struct point {int x, y;};
17172 static struct point const zero = {0,0};
17173 /* AIX XL C 1.02.0.0 rejects this.
17174 It does not let you subtract one const X* pointer from another in
17175 an arm of an if-expression whose if-part is not a constant
17176 expression */
17177 const char *g = "string";
17178 pcpcc = &g + (g ? g-g : 0);
17179 /* HPUX 7.0 cc rejects these. */
17180 ++pcpcc;
17181 ppc = (char**) pcpcc;
17182 pcpcc = (char const *const *) ppc;
17183 { /* SCO 3.2v4 cc rejects this sort of thing. */
17184 char tx;
17185 char *t = &tx;
17186 char const *s = 0 ? (char *) 0 : (char const *) 0;
17187
17188 *t++ = 0;
17189 if (s) return 0;
17190 }
17191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17192 int x[] = {25, 17};
17193 const int *foo = &x[0];
17194 ++foo;
17195 }
17196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17197 typedef const int *iptr;
17198 iptr p = 0;
17199 ++p;
17200 }
17201 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17203 struct s { int j; const int *ap[3]; } bx;
17204 struct s *b = &bx; b->j = 5;
17205 }
17206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17207 const int foo = 10;
17208 if (!foo) return 0;
17209 }
17210 return !cs[0] && !zero.x;
17211 #endif
17212
17213 ;
17214 return 0;
17215 }
17216 _ACEOF
17217 if ac_fn_c_try_compile "$LINENO"; then :
17218 ac_cv_c_const=yes
17219 else
17220 ac_cv_c_const=no
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 fi
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17225 $as_echo "$ac_cv_c_const" >&6; }
17226 if test $ac_cv_c_const = no; then
17227
17228 $as_echo "#define const /**/" >>confdefs.h
17229
17230 fi
17231
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17233 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17234 if ${ac_cv_c_bigendian+:} false; then :
17235 $as_echo_n "(cached) " >&6
17236 else
17237 ac_cv_c_bigendian=unknown
17238 # See if we're dealing with a universal compiler.
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17241 #ifndef __APPLE_CC__
17242 not a universal capable compiler
17243 #endif
17244 typedef int dummy;
17245
17246 _ACEOF
17247 if ac_fn_c_try_compile "$LINENO"; then :
17248
17249 # Check for potential -arch flags. It is not universal unless
17250 # there are at least two -arch flags with different values.
17251 ac_arch=
17252 ac_prev=
17253 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17254 if test -n "$ac_prev"; then
17255 case $ac_word in
17256 i?86 | x86_64 | ppc | ppc64)
17257 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17258 ac_arch=$ac_word
17259 else
17260 ac_cv_c_bigendian=universal
17261 break
17262 fi
17263 ;;
17264 esac
17265 ac_prev=
17266 elif test "x$ac_word" = "x-arch"; then
17267 ac_prev=arch
17268 fi
17269 done
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17272 if test $ac_cv_c_bigendian = unknown; then
17273 # See if sys/param.h defines the BYTE_ORDER macro.
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17276 #include <sys/types.h>
17277 #include <sys/param.h>
17278
17279 int
17280 main ()
17281 {
17282 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17283 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17284 && LITTLE_ENDIAN)
17285 bogus endian macros
17286 #endif
17287
17288 ;
17289 return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_compile "$LINENO"; then :
17293 # It does; now see whether it defined to BIG_ENDIAN or not.
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295 /* end confdefs.h. */
17296 #include <sys/types.h>
17297 #include <sys/param.h>
17298
17299 int
17300 main ()
17301 {
17302 #if BYTE_ORDER != BIG_ENDIAN
17303 not big endian
17304 #endif
17305
17306 ;
17307 return 0;
17308 }
17309 _ACEOF
17310 if ac_fn_c_try_compile "$LINENO"; then :
17311 ac_cv_c_bigendian=yes
17312 else
17313 ac_cv_c_bigendian=no
17314 fi
17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 fi
17319 if test $ac_cv_c_bigendian = unknown; then
17320 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17323 #include <limits.h>
17324
17325 int
17326 main ()
17327 {
17328 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17329 bogus endian macros
17330 #endif
17331
17332 ;
17333 return 0;
17334 }
17335 _ACEOF
17336 if ac_fn_c_try_compile "$LINENO"; then :
17337 # It does; now see whether it defined to _BIG_ENDIAN or not.
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17340 #include <limits.h>
17341
17342 int
17343 main ()
17344 {
17345 #ifndef _BIG_ENDIAN
17346 not big endian
17347 #endif
17348
17349 ;
17350 return 0;
17351 }
17352 _ACEOF
17353 if ac_fn_c_try_compile "$LINENO"; then :
17354 ac_cv_c_bigendian=yes
17355 else
17356 ac_cv_c_bigendian=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 fi
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 fi
17362 if test $ac_cv_c_bigendian = unknown; then
17363 # Compile a test program.
17364 if test "$cross_compiling" = yes; then :
17365 # Try to guess by grepping values from an object file.
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17368 short int ascii_mm[] =
17369 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17370 short int ascii_ii[] =
17371 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17372 int use_ascii (int i) {
17373 return ascii_mm[i] + ascii_ii[i];
17374 }
17375 short int ebcdic_ii[] =
17376 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17377 short int ebcdic_mm[] =
17378 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17379 int use_ebcdic (int i) {
17380 return ebcdic_mm[i] + ebcdic_ii[i];
17381 }
17382 extern int foo;
17383
17384 int
17385 main ()
17386 {
17387 return use_ascii (foo) == use_ebcdic (foo);
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_compile "$LINENO"; then :
17393 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17394 ac_cv_c_bigendian=yes
17395 fi
17396 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17397 if test "$ac_cv_c_bigendian" = unknown; then
17398 ac_cv_c_bigendian=no
17399 else
17400 # finding both strings is unlikely to happen, but who knows?
17401 ac_cv_c_bigendian=unknown
17402 fi
17403 fi
17404 fi
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406 else
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17409 $ac_includes_default
17410 int
17411 main ()
17412 {
17413
17414 /* Are we little or big endian? From Harbison&Steele. */
17415 union
17416 {
17417 long int l;
17418 char c[sizeof (long int)];
17419 } u;
17420 u.l = 1;
17421 return u.c[sizeof (long int) - 1] == 1;
17422
17423 ;
17424 return 0;
17425 }
17426 _ACEOF
17427 if ac_fn_c_try_run "$LINENO"; then :
17428 ac_cv_c_bigendian=no
17429 else
17430 ac_cv_c_bigendian=yes
17431 fi
17432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17433 conftest.$ac_objext conftest.beam conftest.$ac_ext
17434 fi
17435
17436 fi
17437 fi
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17439 $as_echo "$ac_cv_c_bigendian" >&6; }
17440 case $ac_cv_c_bigendian in #(
17441 yes)
17442 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17443 ;; #(
17444 no)
17445 ;; #(
17446 universal)
17447
17448 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17449
17450 ;; #(
17451 *)
17452 as_fn_error $? "unknown endianness
17453 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17454 esac
17455
17456 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17457 if test "x$ac_cv_type_off_t" = xyes; then :
17458
17459 else
17460
17461 cat >>confdefs.h <<_ACEOF
17462 #define off_t long int
17463 _ACEOF
17464
17465 fi
17466
17467 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17468 if test "x$ac_cv_type_size_t" = xyes; then :
17469
17470 else
17471
17472 cat >>confdefs.h <<_ACEOF
17473 #define size_t unsigned int
17474 _ACEOF
17475
17476 fi
17477
17478
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17480 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17481 if ${ac_cv_struct_tm+:} false; then :
17482 $as_echo_n "(cached) " >&6
17483 else
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486 #include <sys/types.h>
17487 #include <time.h>
17488
17489 int
17490 main ()
17491 {
17492 struct tm tm;
17493 int *p = &tm.tm_sec;
17494 return !p;
17495 ;
17496 return 0;
17497 }
17498 _ACEOF
17499 if ac_fn_c_try_compile "$LINENO"; then :
17500 ac_cv_struct_tm=time.h
17501 else
17502 ac_cv_struct_tm=sys/time.h
17503 fi
17504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505 fi
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17507 $as_echo "$ac_cv_struct_tm" >&6; }
17508 if test $ac_cv_struct_tm = sys/time.h; then
17509
17510 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17511
17512 fi
17513
17514
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17516 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17517 if ${ac_cv_sys_largefile_source+:} false; then :
17518 $as_echo_n "(cached) " >&6
17519 else
17520 while :; do
17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522 /* end confdefs.h. */
17523 #include <sys/types.h> /* for off_t */
17524 #include <stdio.h>
17525 int
17526 main ()
17527 {
17528 int (*fp) (FILE *, off_t, int) = fseeko;
17529 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17530 ;
17531 return 0;
17532 }
17533 _ACEOF
17534 if ac_fn_c_try_link "$LINENO"; then :
17535 ac_cv_sys_largefile_source=no; break
17536 fi
17537 rm -f core conftest.err conftest.$ac_objext \
17538 conftest$ac_exeext conftest.$ac_ext
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540 /* end confdefs.h. */
17541 #define _LARGEFILE_SOURCE 1
17542 #include <sys/types.h> /* for off_t */
17543 #include <stdio.h>
17544 int
17545 main ()
17546 {
17547 int (*fp) (FILE *, off_t, int) = fseeko;
17548 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17549 ;
17550 return 0;
17551 }
17552 _ACEOF
17553 if ac_fn_c_try_link "$LINENO"; then :
17554 ac_cv_sys_largefile_source=1; break
17555 fi
17556 rm -f core conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17558 ac_cv_sys_largefile_source=unknown
17559 break
17560 done
17561 fi
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17563 $as_echo "$ac_cv_sys_largefile_source" >&6; }
17564 case $ac_cv_sys_largefile_source in #(
17565 no | unknown) ;;
17566 *)
17567 cat >>confdefs.h <<_ACEOF
17568 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17569 _ACEOF
17570 ;;
17571 esac
17572 rm -rf conftest*
17573
17574 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17575 # in glibc 2.1.3, but that breaks too many other things.
17576 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17577 if test $ac_cv_sys_largefile_source != unknown; then
17578
17579 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17580
17581 fi
17582
17583
17584 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
17585 if test "x$ac_cv_have_decl_optarg" = xyes; then :
17586 ac_have_decl=1
17587 else
17588 ac_have_decl=0
17589 fi
17590
17591 cat >>confdefs.h <<_ACEOF
17592 #define HAVE_DECL_OPTARG $ac_have_decl
17593 _ACEOF
17594
17595
17596
17597 # Check whether --enable-deprecated was given.
17598 if test "${enable_deprecated+set}" = set; then :
17599 enableval=$enable_deprecated; enable_deprecated=$enableval
17600 else
17601 enable_deprecated=no
17602 fi
17603
17604
17605 if test "$enable_deprecated" = "yes"; then
17606 # Disable deprecated features to ensure clean build
17607 CPPFLAGS="-DTIFF_DISABLE_DEPRECATED $CPPFLAGS"
17608 fi
17609
17610
17611 # Obtain the size of 'size_t' and define as SIZEOF_SIZE_T. Result is
17612 # available in ac_cv_sizeof_size_t
17613 # The cast to long int works around a bug in the HP C Compiler
17614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17616 # This bug is HP SR number 8606223364.
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17618 $as_echo_n "checking size of size_t... " >&6; }
17619 if ${ac_cv_sizeof_size_t+:} false; then :
17620 $as_echo_n "(cached) " >&6
17621 else
17622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
17623
17624 else
17625 if test "$ac_cv_type_size_t" = yes; then
17626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17628 as_fn_error 77 "cannot compute sizeof (size_t)
17629 See \`config.log' for more details" "$LINENO" 5; }
17630 else
17631 ac_cv_sizeof_size_t=0
17632 fi
17633 fi
17634
17635 fi
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17637 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17638
17639
17640
17641 cat >>confdefs.h <<_ACEOF
17642 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17643 _ACEOF
17644
17645
17646
17647
17648 # C99 fixed-size integer types
17649 INT8_T='int8_t'
17650 UINT8_T='uint8_t'
17651
17652 INT16_T='int16_t'
17653 UINT16_T='uint16_t'
17654
17655 INT32_T='int32_t'
17656 UINT32_T='uint32_t'
17657
17658 INT64_T='int64_t'
17659 UINT64_T='uint64_t'
17660
17661 if test $ac_cv_sizeof_size_t -eq 4
17662 then
17663 SSIZE_T='int32_t'
17664 elif test $ac_cv_sizeof_size_t -eq 8
17665 then
17666 SSIZE_T='int64_t'
17667 else
17668 as_fn_error $? "Unsupported size_t size ${ac_cv_sizeof_size_t}; please add support" "$LINENO" 5
17669 fi
17670
17671
17672 # Determine TIFF equivalent of ssize_t
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
17674 $as_echo_n "checking for signed size type... " >&6; }
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
17676 $as_echo "$SSIZE_T" >&6; }
17677
17678 cat >>confdefs.h <<_ACEOF
17679 #define TIFF_SSIZE_T $SSIZE_T
17680 _ACEOF
17681
17682
17683 for ac_func in mmap setmode
17684 do :
17685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17688 cat >>confdefs.h <<_ACEOF
17689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17690 _ACEOF
17691
17692 fi
17693 done
17694
17695
17696 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17697 if test "x$ac_cv_func_getopt" = xyes; then :
17698 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17699
17700 else
17701 case " $LIBOBJS " in
17702 *" getopt.$ac_objext "* ) ;;
17703 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17704 ;;
17705 esac
17706
17707 fi
17708
17709
17710
17711 if test "$ac_cv_c_bigendian" = yes ; then
17712 HOST_BIGENDIAN=1
17713 else
17714 HOST_BIGENDIAN=0
17715 fi
17716
17717 cat >>confdefs.h <<_ACEOF
17718 #define HOST_BIGENDIAN $HOST_BIGENDIAN
17719 _ACEOF
17720
17721
17722 #_POSIX_C_SOURCE=2
17723 #AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
17724
17725 HAVE_IEEEFP=1
17726
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_IEEEFP $HAVE_IEEEFP
17729 _ACEOF
17730
17731
17732
17733 # Check whether --enable-rpath was given.
17734 if test "${enable_rpath+set}" = set; then :
17735 enableval=$enable_rpath; HAVE_RPATH=$enableval
17736 else
17737 HAVE_RPATH=no
17738 fi
17739
17740 if test "$HAVE_RPATH" = "yes"; then
17741 HAVE_RPATH_TRUE=
17742 HAVE_RPATH_FALSE='#'
17743 else
17744 HAVE_RPATH_TRUE='#'
17745 HAVE_RPATH_FALSE=
17746 fi
17747
17748
17749
17750 # Check whether --enable-largefile was given.
17751 if test "${enable_largefile+set}" = set; then :
17752 enableval=$enable_largefile;
17753 fi
17754
17755 if test "$enable_largefile" != no; then
17756
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17758 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17759 if ${ac_cv_sys_largefile_CC+:} false; then :
17760 $as_echo_n "(cached) " >&6
17761 else
17762 ac_cv_sys_largefile_CC=no
17763 if test "$GCC" != yes; then
17764 ac_save_CC=$CC
17765 while :; do
17766 # IRIX 6.2 and later do not support large files by default,
17767 # so use the C compiler's -n32 option if that helps.
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770 #include <sys/types.h>
17771 /* Check that off_t can represent 2**63 - 1 correctly.
17772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17773 since some C++ compilers masquerading as C compilers
17774 incorrectly reject 9223372036854775807. */
17775 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17777 && LARGE_OFF_T % 2147483647 == 1)
17778 ? 1 : -1];
17779 int
17780 main ()
17781 {
17782
17783 ;
17784 return 0;
17785 }
17786 _ACEOF
17787 if ac_fn_c_try_compile "$LINENO"; then :
17788 break
17789 fi
17790 rm -f core conftest.err conftest.$ac_objext
17791 CC="$CC -n32"
17792 if ac_fn_c_try_compile "$LINENO"; then :
17793 ac_cv_sys_largefile_CC=' -n32'; break
17794 fi
17795 rm -f core conftest.err conftest.$ac_objext
17796 break
17797 done
17798 CC=$ac_save_CC
17799 rm -f conftest.$ac_ext
17800 fi
17801 fi
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17803 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17804 if test "$ac_cv_sys_largefile_CC" != no; then
17805 CC=$CC$ac_cv_sys_largefile_CC
17806 fi
17807
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17809 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17810 if ${ac_cv_sys_file_offset_bits+:} false; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 while :; do
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17816 #include <sys/types.h>
17817 /* Check that off_t can represent 2**63 - 1 correctly.
17818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17819 since some C++ compilers masquerading as C compilers
17820 incorrectly reject 9223372036854775807. */
17821 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17823 && LARGE_OFF_T % 2147483647 == 1)
17824 ? 1 : -1];
17825 int
17826 main ()
17827 {
17828
17829 ;
17830 return 0;
17831 }
17832 _ACEOF
17833 if ac_fn_c_try_compile "$LINENO"; then :
17834 ac_cv_sys_file_offset_bits=no; break
17835 fi
17836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17839 #define _FILE_OFFSET_BITS 64
17840 #include <sys/types.h>
17841 /* Check that off_t can represent 2**63 - 1 correctly.
17842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17843 since some C++ compilers masquerading as C compilers
17844 incorrectly reject 9223372036854775807. */
17845 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17847 && LARGE_OFF_T % 2147483647 == 1)
17848 ? 1 : -1];
17849 int
17850 main ()
17851 {
17852
17853 ;
17854 return 0;
17855 }
17856 _ACEOF
17857 if ac_fn_c_try_compile "$LINENO"; then :
17858 ac_cv_sys_file_offset_bits=64; break
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 ac_cv_sys_file_offset_bits=unknown
17862 break
17863 done
17864 fi
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17866 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17867 case $ac_cv_sys_file_offset_bits in #(
17868 no | unknown) ;;
17869 *)
17870 cat >>confdefs.h <<_ACEOF
17871 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17872 _ACEOF
17873 ;;
17874 esac
17875 rm -rf conftest*
17876 if test $ac_cv_sys_file_offset_bits = unknown; then
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17878 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17879 if ${ac_cv_sys_large_files+:} false; then :
17880 $as_echo_n "(cached) " >&6
17881 else
17882 while :; do
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h. */
17885 #include <sys/types.h>
17886 /* Check that off_t can represent 2**63 - 1 correctly.
17887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17888 since some C++ compilers masquerading as C compilers
17889 incorrectly reject 9223372036854775807. */
17890 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17892 && LARGE_OFF_T % 2147483647 == 1)
17893 ? 1 : -1];
17894 int
17895 main ()
17896 {
17897
17898 ;
17899 return 0;
17900 }
17901 _ACEOF
17902 if ac_fn_c_try_compile "$LINENO"; then :
17903 ac_cv_sys_large_files=no; break
17904 fi
17905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h. */
17908 #define _LARGE_FILES 1
17909 #include <sys/types.h>
17910 /* Check that off_t can represent 2**63 - 1 correctly.
17911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17912 since some C++ compilers masquerading as C compilers
17913 incorrectly reject 9223372036854775807. */
17914 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17916 && LARGE_OFF_T % 2147483647 == 1)
17917 ? 1 : -1];
17918 int
17919 main ()
17920 {
17921
17922 ;
17923 return 0;
17924 }
17925 _ACEOF
17926 if ac_fn_c_try_compile "$LINENO"; then :
17927 ac_cv_sys_large_files=1; break
17928 fi
17929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17930 ac_cv_sys_large_files=unknown
17931 break
17932 done
17933 fi
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17935 $as_echo "$ac_cv_sys_large_files" >&6; }
17936 case $ac_cv_sys_large_files in #(
17937 no | unknown) ;;
17938 *)
17939 cat >>confdefs.h <<_ACEOF
17940 #define _LARGE_FILES $ac_cv_sys_large_files
17941 _ACEOF
17942 ;;
17943 esac
17944 rm -rf conftest*
17945 fi
17946
17947
17948 fi
17949
17950
17951
17952 LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
17953
17954
17955 # Check whether --with-docdir was given.
17956 if test "${with_docdir+set}" = set; then :
17957 withval=$with_docdir;
17958 fi
17959
17960 if test "x$with_docdir" != "x" ; then
17961 LIBTIFF_DOCDIR=$with_docdir
17962 fi
17963
17964
17965
17966
17967
17968 # Check whether --enable-tools was given.
17969 if test "${enable_tools+set}" = set; then :
17970 enableval=$enable_tools; TIFF_TOOLS=$enableval
17971 else
17972 TIFF_TOOLS=yes
17973 fi
17974
17975 if test "$TIFF_TOOLS" = "yes"; then
17976 TIFF_TOOLS_TRUE=
17977 TIFF_TOOLS_FALSE='#'
17978 else
17979 TIFF_TOOLS_TRUE='#'
17980 TIFF_TOOLS_FALSE=
17981 fi
17982
17983
17984 # Check whether --enable-tests was given.
17985 if test "${enable_tests+set}" = set; then :
17986 enableval=$enable_tests; TIFF_TESTS=$enableval
17987 else
17988 TIFF_TESTS=yes
17989 fi
17990
17991 if test "$TIFF_TESTS" = "yes"; then
17992 TIFF_TESTS_TRUE=
17993 TIFF_TESTS_FALSE='#'
17994 else
17995 TIFF_TESTS_TRUE='#'
17996 TIFF_TESTS_FALSE=
17997 fi
17998
17999
18000 # Check whether --enable-contrib was given.
18001 if test "${enable_contrib+set}" = set; then :
18002 enableval=$enable_contrib; TIFF_CONTRIB=$enableval
18003 else
18004 TIFF_CONTRIB=yes
18005 fi
18006
18007 if test "$TIFF_CONTRIB" = "yes"; then
18008 TIFF_CONTRIB_TRUE=
18009 TIFF_CONTRIB_FALSE='#'
18010 else
18011 TIFF_CONTRIB_TRUE='#'
18012 TIFF_CONTRIB_FALSE=
18013 fi
18014
18015
18016 # Check whether --enable-docs was given.
18017 if test "${enable_docs+set}" = set; then :
18018 enableval=$enable_docs; TIFF_DOCS=$enableval
18019 else
18020 TIFF_DOCS=yes
18021 fi
18022
18023 if test "$TIFF_DOCS" = "yes"; then
18024 TIFF_DOCS_TRUE=
18025 TIFF_DOCS_FALSE='#'
18026 else
18027 TIFF_DOCS_TRUE='#'
18028 TIFF_DOCS_FALSE=
18029 fi
18030
18031
18032
18033
18034 # Check whether --enable-ccitt was given.
18035 if test "${enable_ccitt+set}" = set; then :
18036 enableval=$enable_ccitt; HAVE_CCITT=$enableval
18037 else
18038 HAVE_CCITT=yes
18039 fi
18040
18041
18042 if test "$HAVE_CCITT" = "yes" ; then
18043
18044 $as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
18045
18046 fi
18047
18048 # Check whether --enable-packbits was given.
18049 if test "${enable_packbits+set}" = set; then :
18050 enableval=$enable_packbits; HAVE_PACKBITS=$enableval
18051 else
18052 HAVE_PACKBITS=yes
18053 fi
18054
18055
18056 if test "$HAVE_PACKBITS" = "yes" ; then
18057
18058 $as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
18059
18060 fi
18061
18062 # Check whether --enable-lzw was given.
18063 if test "${enable_lzw+set}" = set; then :
18064 enableval=$enable_lzw; HAVE_LZW=$enableval
18065 else
18066 HAVE_LZW=yes
18067 fi
18068
18069
18070 if test "$HAVE_LZW" = "yes" ; then
18071
18072 $as_echo "#define LZW_SUPPORT 1" >>confdefs.h
18073
18074 fi
18075
18076 # Check whether --enable-thunder was given.
18077 if test "${enable_thunder+set}" = set; then :
18078 enableval=$enable_thunder; HAVE_THUNDER=$enableval
18079 else
18080 HAVE_THUNDER=yes
18081 fi
18082
18083
18084 if test "$HAVE_THUNDER" = "yes" ; then
18085
18086 $as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
18087
18088 fi
18089
18090 HAVE_NEXT=yes
18091
18092 # Check whether --enable-next was given.
18093 if test "${enable_next+set}" = set; then :
18094 enableval=$enable_next; HAVE_NEXT=$enableval
18095 else
18096 HAVE_NEXT=yes
18097 fi
18098
18099
18100 if test "$HAVE_NEXT" = "yes" ; then
18101
18102 $as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
18103
18104 fi
18105
18106 # Check whether --enable-logluv was given.
18107 if test "${enable_logluv+set}" = set; then :
18108 enableval=$enable_logluv; HAVE_LOGLUV=$enableval
18109 else
18110 HAVE_LOGLUV=yes
18111 fi
18112
18113
18114 if test "$HAVE_LOGLUV" = "yes" ; then
18115
18116 $as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
18117
18118 fi
18119
18120
18121 # Check whether --enable-mdi was given.
18122 if test "${enable_mdi+set}" = set; then :
18123 enableval=$enable_mdi; HAVE_MDI=$enableval
18124 else
18125 HAVE_MDI=yes
18126 fi
18127
18128
18129 if test "$HAVE_MDI" = "yes" ; then
18130
18131 $as_echo "#define MDI_SUPPORT 1" >>confdefs.h
18132
18133 fi
18134
18135
18136 HAVE_ZLIB=no
18137
18138 # Check whether --enable-zlib was given.
18139 if test "${enable_zlib+set}" = set; then :
18140 enableval=$enable_zlib;
18141 fi
18142
18143
18144 # Check whether --with-zlib-include-dir was given.
18145 if test "${with_zlib_include_dir+set}" = set; then :
18146 withval=$with_zlib_include_dir;
18147 fi
18148
18149
18150 # Check whether --with-zlib-lib-dir was given.
18151 if test "${with_zlib_lib_dir+set}" = set; then :
18152 withval=$with_zlib_lib_dir;
18153 fi
18154
18155
18156 if test "x$enable_zlib" != "xno" ; then
18157
18158 if test "x$with_zlib_lib_dir" != "x" ; then
18159 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
18160 fi
18161
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
18163 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
18164 if ${ac_cv_lib_z_inflateEnd+:} false; then :
18165 $as_echo_n "(cached) " >&6
18166 else
18167 ac_check_lib_save_LIBS=$LIBS
18168 LIBS="-lz $LIBS"
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18171
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18175 #ifdef __cplusplus
18176 extern "C"
18177 #endif
18178 char inflateEnd ();
18179 int
18180 main ()
18181 {
18182 return inflateEnd ();
18183 ;
18184 return 0;
18185 }
18186 _ACEOF
18187 if ac_fn_c_try_link "$LINENO"; then :
18188 ac_cv_lib_z_inflateEnd=yes
18189 else
18190 ac_cv_lib_z_inflateEnd=no
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194 LIBS=$ac_check_lib_save_LIBS
18195 fi
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
18197 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
18198 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
18199 zlib_lib=yes
18200 else
18201 zlib_lib=no
18202 fi
18203
18204 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
18205 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
18206 fi
18207
18208 if test "x$with_zlib_include_dir" != "x" ; then
18209 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
18210 fi
18211 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18212 if test "x$ac_cv_header_zlib_h" = xyes; then :
18213 zlib_h=yes
18214 else
18215 zlib_h=no
18216 fi
18217
18218
18219 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
18220 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
18221 fi
18222
18223 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
18224 HAVE_ZLIB=yes
18225 fi
18226
18227 fi
18228
18229 if test "$HAVE_ZLIB" = "yes" ; then
18230
18231 $as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
18232
18233 LIBS="-lz $LIBS"
18234 tiff_libs_private="-lz ${tiff_libs_private}"
18235 tiff_requires_private="zlib ${tiff_requires_private}"
18236
18237 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
18238 LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
18239 fi
18240
18241 fi
18242
18243
18244 HAVE_LIBDEFLATE=no
18245
18246 # Check whether --enable-libdeflate was given.
18247 if test "${enable_libdeflate+set}" = set; then :
18248 enableval=$enable_libdeflate;
18249 fi
18250
18251
18252 # Check whether --with-libdeflate-include-dir was given.
18253 if test "${with_libdeflate_include_dir+set}" = set; then :
18254 withval=$with_libdeflate_include_dir;
18255 fi
18256
18257
18258 # Check whether --with-libdeflate-lib-dir was given.
18259 if test "${with_libdeflate_lib_dir+set}" = set; then :
18260 withval=$with_libdeflate_lib_dir;
18261 fi
18262
18263
18264 if test "x$enable_libdeflate" != "xno" ; then
18265
18266 if test "x$with_libdeflate_lib_dir" != "x" ; then
18267 LDFLAGS="-L$with_libdeflate_lib_dir $LDFLAGS"
18268 fi
18269
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdeflate_zlib_decompress in -ldeflate" >&5
18271 $as_echo_n "checking for libdeflate_zlib_decompress in -ldeflate... " >&6; }
18272 if ${ac_cv_lib_deflate_libdeflate_zlib_decompress+:} false; then :
18273 $as_echo_n "(cached) " >&6
18274 else
18275 ac_check_lib_save_LIBS=$LIBS
18276 LIBS="-ldeflate $LIBS"
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18279
18280 /* Override any GCC internal prototype to avoid an error.
18281 Use char because int might match the return type of a GCC
18282 builtin and then its argument prototype would still apply. */
18283 #ifdef __cplusplus
18284 extern "C"
18285 #endif
18286 char libdeflate_zlib_decompress ();
18287 int
18288 main ()
18289 {
18290 return libdeflate_zlib_decompress ();
18291 ;
18292 return 0;
18293 }
18294 _ACEOF
18295 if ac_fn_c_try_link "$LINENO"; then :
18296 ac_cv_lib_deflate_libdeflate_zlib_decompress=yes
18297 else
18298 ac_cv_lib_deflate_libdeflate_zlib_decompress=no
18299 fi
18300 rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302 LIBS=$ac_check_lib_save_LIBS
18303 fi
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_deflate_libdeflate_zlib_decompress" >&5
18305 $as_echo "$ac_cv_lib_deflate_libdeflate_zlib_decompress" >&6; }
18306 if test "x$ac_cv_lib_deflate_libdeflate_zlib_decompress" = xyes; then :
18307 libdeflate_lib=yes
18308 else
18309 libdeflate_lib=no
18310 fi
18311
18312 if test "$libdeflate_lib" = "no" -a "x$with_libdeflate_lib_dir" != "x"; then
18313 as_fn_error $? "libdeflate library not found at $with_libdeflate_lib_dir" "$LINENO" 5
18314 fi
18315
18316 if test "x$with_libdeflate_include_dir" != "x" ; then
18317 CPPFLAGS="-I$with_libdeflate_include_dir $CPPFLAGS"
18318 fi
18319 ac_fn_c_check_header_mongrel "$LINENO" "libdeflate.h" "ac_cv_header_libdeflate_h" "$ac_includes_default"
18320 if test "x$ac_cv_header_libdeflate_h" = xyes; then :
18321 libdeflate_h=yes
18322 else
18323 libdeflate_h=no
18324 fi
18325
18326
18327 if test "$libdeflate_h" = "no" -a "x$with_libdeflate_include_dir" != "x" ; then
18328 as_fn_error $? "libdeflate headers not found at $with_libdeflate_include_dir" "$LINENO" 5
18329 fi
18330
18331 if test "$libdeflate_lib" = "yes" -a "$libdeflate_h" = "yes" ; then
18332 HAVE_LIBDEFLATE=yes
18333 fi
18334
18335 fi
18336
18337 if test "$HAVE_LIBDEFLATE" = "yes" -a "$HAVE_ZLIB" = "no" ; then
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdeflate available but zlib is not. libdeflate cannot be used" >&5
18339 $as_echo "$as_me: WARNING: libdeflate available but zlib is not. libdeflate cannot be used" >&2;}
18340 HAVE_LIBDEFLATE=no
18341 fi
18342
18343 if test "$HAVE_LIBDEFLATE" = "yes" ; then
18344
18345 $as_echo "#define LIBDEFLATE_SUPPORT 1" >>confdefs.h
18346
18347 LIBS="-ldeflate $LIBS"
18348 tiff_libs_private="-ldeflate ${tiff_libs_private}"
18349 tiff_requires_private="libdeflate ${tiff_requires_private}"
18350
18351 if test "$HAVE_RPATH" = "yes" -a "x$with_libdeflate_lib_dir" != "x" ; then
18352 LIBDIR="-R $with_libdeflate_lib_dir $LIBDIR"
18353 fi
18354
18355 fi
18356
18357
18358 # Check whether --enable-pixarlog was given.
18359 if test "${enable_pixarlog+set}" = set; then :
18360 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
18361 else
18362 HAVE_PIXARLOG=yes
18363 fi
18364
18365
18366 if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
18367
18368 $as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
18369
18370 else
18371 HAVE_PIXARLOG=no
18372 fi
18373
18374
18375 HAVE_JPEG=no
18376 HAVE_JPEGTURBO_DUAL_MODE_8_12=no
18377
18378 # Check whether --enable-jpeg was given.
18379 if test "${enable_jpeg+set}" = set; then :
18380 enableval=$enable_jpeg;
18381 fi
18382
18383
18384 # Check whether --with-jpeg-include-dir was given.
18385 if test "${with_jpeg_include_dir+set}" = set; then :
18386 withval=$with_jpeg_include_dir;
18387 fi
18388
18389
18390 # Check whether --with-jpeg-lib-dir was given.
18391 if test "${with_jpeg_lib_dir+set}" = set; then :
18392 withval=$with_jpeg_lib_dir;
18393 fi
18394
18395
18396 if test "x$enable_jpeg" != "xno" ; then
18397
18398 if test "x$with_jpeg_lib_dir" != "x" ; then
18399 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
18400
18401 fi
18402
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
18404 $as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
18405 if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
18406 $as_echo_n "(cached) " >&6
18407 else
18408 ac_check_lib_save_LIBS=$LIBS
18409 LIBS="-ljpeg $LIBS"
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18416 #ifdef __cplusplus
18417 extern "C"
18418 #endif
18419 char jpeg_read_scanlines ();
18420 int
18421 main ()
18422 {
18423 return jpeg_read_scanlines ();
18424 ;
18425 return 0;
18426 }
18427 _ACEOF
18428 if ac_fn_c_try_link "$LINENO"; then :
18429 ac_cv_lib_jpeg_jpeg_read_scanlines=yes
18430 else
18431 ac_cv_lib_jpeg_jpeg_read_scanlines=no
18432 fi
18433 rm -f core conftest.err conftest.$ac_objext \
18434 conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18436 fi
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
18438 $as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
18439 if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
18440 jpeg_lib=yes
18441 else
18442 jpeg_lib=no
18443 fi
18444
18445 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
18446 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
18447 fi
18448
18449 if test "x$with_jpeg_include_dir" != "x" ; then
18450 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
18451 fi
18452 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
18453 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
18454 jpeg_h=yes
18455 else
18456 jpeg_h=no
18457 fi
18458
18459
18460 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
18461 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
18462 fi
18463
18464 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg12_read_scanlines in -ljpeg" >&5
18466 $as_echo_n "checking for jpeg12_read_scanlines in -ljpeg... " >&6; }
18467 if ${ac_cv_lib_jpeg_jpeg12_read_scanlines+:} false; then :
18468 $as_echo_n "(cached) " >&6
18469 else
18470 ac_check_lib_save_LIBS=$LIBS
18471 LIBS="-ljpeg $LIBS"
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18474
18475 /* Override any GCC internal prototype to avoid an error.
18476 Use char because int might match the return type of a GCC
18477 builtin and then its argument prototype would still apply. */
18478 #ifdef __cplusplus
18479 extern "C"
18480 #endif
18481 char jpeg12_read_scanlines ();
18482 int
18483 main ()
18484 {
18485 return jpeg12_read_scanlines ();
18486 ;
18487 return 0;
18488 }
18489 _ACEOF
18490 if ac_fn_c_try_link "$LINENO"; then :
18491 ac_cv_lib_jpeg_jpeg12_read_scanlines=yes
18492 else
18493 ac_cv_lib_jpeg_jpeg12_read_scanlines=no
18494 fi
18495 rm -f core conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18497 LIBS=$ac_check_lib_save_LIBS
18498 fi
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg12_read_scanlines" >&5
18500 $as_echo "$ac_cv_lib_jpeg_jpeg12_read_scanlines" >&6; }
18501 if test "x$ac_cv_lib_jpeg_jpeg12_read_scanlines" = xyes; then :
18502 HAVE_JPEGTURBO_DUAL_MODE_8_12=yes
18503 else
18504 HAVE_JPEGTURBO_DUAL_MODE_8_12=no
18505 fi
18506
18507 HAVE_JPEG=yes
18508 fi
18509
18510 fi
18511
18512 if test "$HAVE_JPEG" = "yes" ; then
18513
18514 $as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
18515
18516 LIBS="-ljpeg $LIBS"
18517 tiff_libs_private="-ljpeg ${tiff_libs_private}"
18518 tiff_requires_private="libjpeg ${tiff_requires_private}"
18519
18520 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
18521 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
18522 fi
18523
18524 if test "$HAVE_JPEGTURBO_DUAL_MODE_8_12" = "yes"; then
18525
18526 $as_echo "#define HAVE_JPEGTURBO_DUAL_MODE_8_12 1" >>confdefs.h
18527
18528 fi
18529 fi
18530
18531 if test "$HAVE_JPEG" = 'yes'; then
18532 HAVE_JPEG_TRUE=
18533 HAVE_JPEG_FALSE='#'
18534 else
18535 HAVE_JPEG_TRUE='#'
18536 HAVE_JPEG_FALSE=
18537 fi
18538
18539 if test "$HAVE_JPEGTURBO_DUAL_MODE_8_12" = 'yes'; then
18540 HAVE_JPEGTURBO_DUAL_MODE_8_12_TRUE=
18541 HAVE_JPEGTURBO_DUAL_MODE_8_12_FALSE='#'
18542 else
18543 HAVE_JPEGTURBO_DUAL_MODE_8_12_TRUE='#'
18544 HAVE_JPEGTURBO_DUAL_MODE_8_12_FALSE=
18545 fi
18546
18547
18548
18549 # Check whether --enable-old-jpeg was given.
18550 if test "${enable_old_jpeg+set}" = set; then :
18551 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
18552 else
18553 HAVE_OJPEG=yes
18554 fi
18555
18556
18557 if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
18558
18559 $as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
18560
18561 else
18562 HAVE_OJPEG=no
18563 fi
18564
18565
18566 HAVE_JBIG=no
18567
18568 # Check whether --enable-jbig was given.
18569 if test "${enable_jbig+set}" = set; then :
18570 enableval=$enable_jbig;
18571 fi
18572
18573
18574 # Check whether --with-jbig-include-dir was given.
18575 if test "${with_jbig_include_dir+set}" = set; then :
18576 withval=$with_jbig_include_dir;
18577 fi
18578
18579
18580 # Check whether --with-jbig-lib-dir was given.
18581 if test "${with_jbig_lib_dir+set}" = set; then :
18582 withval=$with_jbig_lib_dir;
18583 fi
18584
18585
18586 if test "x$enable_jbig" != "xno" ; then
18587
18588 if test "x$with_jbig_lib_dir" != "x" ; then
18589 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
18590
18591 fi
18592
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
18594 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
18595 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
18596 $as_echo_n "(cached) " >&6
18597 else
18598 ac_check_lib_save_LIBS=$LIBS
18599 LIBS="-ljbig $LIBS"
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18602
18603 /* Override any GCC internal prototype to avoid an error.
18604 Use char because int might match the return type of a GCC
18605 builtin and then its argument prototype would still apply. */
18606 #ifdef __cplusplus
18607 extern "C"
18608 #endif
18609 char jbg_dec_init ();
18610 int
18611 main ()
18612 {
18613 return jbg_dec_init ();
18614 ;
18615 return 0;
18616 }
18617 _ACEOF
18618 if ac_fn_c_try_link "$LINENO"; then :
18619 ac_cv_lib_jbig_jbg_dec_init=yes
18620 else
18621 ac_cv_lib_jbig_jbg_dec_init=no
18622 fi
18623 rm -f core conftest.err conftest.$ac_objext \
18624 conftest$ac_exeext conftest.$ac_ext
18625 LIBS=$ac_check_lib_save_LIBS
18626 fi
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
18628 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
18629 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
18630 jbig_lib=yes
18631 else
18632 jbig_lib=no
18633 fi
18634
18635 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
18636 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
18637 fi
18638
18639 if test "x$with_jbig_include_dir" != "x" ; then
18640 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
18641 fi
18642 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
18643 if test "x$ac_cv_header_jbig_h" = xyes; then :
18644 jbig_h=yes
18645 else
18646 jbig_h=no
18647 fi
18648
18649
18650 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
18651 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
18652 fi
18653
18654 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
18655 HAVE_JBIG=yes
18656 fi
18657
18658 fi
18659
18660 if test "$HAVE_JBIG" = "yes" ; then
18661
18662 $as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
18663
18664 LIBS="-ljbig $LIBS"
18665 tiff_libs_private="-ljbig ${tiff_libs_private}"
18666
18667 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
18668 LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
18669 fi
18670
18671 # Older versions of jbigkit lack jbg_newlen
18672 for ac_func in jbg_newlen
18673 do :
18674 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18675 if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18676 cat >>confdefs.h <<_ACEOF
18677 #define HAVE_JBG_NEWLEN 1
18678 _ACEOF
18679
18680 fi
18681 done
18682
18683
18684 fi
18685
18686 if test "$HAVE_JBIG" = 'yes'; then
18687 HAVE_JBIG_TRUE=
18688 HAVE_JBIG_FALSE='#'
18689 else
18690 HAVE_JBIG_TRUE='#'
18691 HAVE_JBIG_FALSE=
18692 fi
18693
18694
18695
18696 HAVE_LERC=no
18697
18698 # Check whether --enable-lerc was given.
18699 if test "${enable_lerc+set}" = set; then :
18700 enableval=$enable_lerc;
18701 fi
18702
18703
18704 # Check whether --with-lerc-include-dir was given.
18705 if test "${with_lerc_include_dir+set}" = set; then :
18706 withval=$with_lerc_include_dir;
18707 fi
18708
18709
18710 # Check whether --with-lerc-lib-dir was given.
18711 if test "${with_lerc_lib_dir+set}" = set; then :
18712 withval=$with_lerc_lib_dir;
18713 fi
18714
18715
18716 if test "x$enable_lerc" != "xno" ; then
18717
18718 if test "x$with_lerc_lib_dir" != "x" ; then
18719 LDFLAGS="-L$with_lerc_lib_dir $LDFLAGS"
18720 fi
18721
18722 lerc_lib_name="LercLib"
18723 as_ac_Lib=`$as_echo "ac_cv_lib_"$lerc_lib_name"''_lerc_decode" | $as_tr_sh`
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lerc_decode in -l\"$lerc_lib_name\"" >&5
18725 $as_echo_n "checking for lerc_decode in -l\"$lerc_lib_name\"... " >&6; }
18726 if eval \${$as_ac_Lib+:} false; then :
18727 $as_echo_n "(cached) " >&6
18728 else
18729 ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-l"$lerc_lib_name" $LIBS"
18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18733
18734 /* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 char lerc_decode ();
18741 int
18742 main ()
18743 {
18744 return lerc_decode ();
18745 ;
18746 return 0;
18747 }
18748 _ACEOF
18749 if ac_fn_c_try_link "$LINENO"; then :
18750 eval "$as_ac_Lib=yes"
18751 else
18752 eval "$as_ac_Lib=no"
18753 fi
18754 rm -f core conftest.err conftest.$ac_objext \
18755 conftest$ac_exeext conftest.$ac_ext
18756 LIBS=$ac_check_lib_save_LIBS
18757 fi
18758 eval ac_res=\$$as_ac_Lib
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18760 $as_echo "$ac_res" >&6; }
18761 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18762 lerc_lib=yes
18763 else
18764 lerc_lib=no
18765 fi
18766
18767 if test "$lerc_lib" = "no" ; then
18768 lerc_lib_name="Lerc"
18769 as_ac_Lib=`$as_echo "ac_cv_lib_"$lerc_lib_name"''_lerc_decode" | $as_tr_sh`
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lerc_decode in -l\"$lerc_lib_name\"" >&5
18771 $as_echo_n "checking for lerc_decode in -l\"$lerc_lib_name\"... " >&6; }
18772 if eval \${$as_ac_Lib+:} false; then :
18773 $as_echo_n "(cached) " >&6
18774 else
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-l"$lerc_lib_name" $LIBS"
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779
18780 /* Override any GCC internal prototype to avoid an error.
18781 Use char because int might match the return type of a GCC
18782 builtin and then its argument prototype would still apply. */
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 char lerc_decode ();
18787 int
18788 main ()
18789 {
18790 return lerc_decode ();
18791 ;
18792 return 0;
18793 }
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796 eval "$as_ac_Lib=yes"
18797 else
18798 eval "$as_ac_Lib=no"
18799 fi
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18803 fi
18804 eval ac_res=\$$as_ac_Lib
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18806 $as_echo "$ac_res" >&6; }
18807 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18808 lerc_lib=yes
18809 else
18810 lerc_lib=no
18811 fi
18812
18813 fi
18814 if test "$lerc_lib" = "no" -a "x$with_lerc_lib_dir" != "x"; then
18815 as_fn_error $? "lerc library not found at $with_lerc_lib_dir" "$LINENO" 5
18816 fi
18817
18818 if test "x$with_lerc_include_dir" != "x" ; then
18819 CPPFLAGS="-I$with_lerc_include_dir $CPPFLAGS"
18820 fi
18821 ac_fn_c_check_header_mongrel "$LINENO" "Lerc_c_api.h" "ac_cv_header_Lerc_c_api_h" "$ac_includes_default"
18822 if test "x$ac_cv_header_Lerc_c_api_h" = xyes; then :
18823 lerc_c_api_h=yes
18824 else
18825 lerc_c_api_h=no
18826 fi
18827
18828
18829 if test "$lerc_c_api_h" = "no" -a "x$with_lerc_include_dir" != "x" ; then
18830 as_fn_error $? "Liblerc headers not found at $with_lerc_include_dir" "$LINENO" 5
18831 fi
18832
18833 if test "$lerc_lib" = "yes" -a "$lerc_c_api_h" = "yes" ; then
18834 HAVE_LERC=yes
18835 fi
18836
18837 fi
18838
18839 if test "$HAVE_LERC" = "yes" ; then
18840
18841 $as_echo "#define LERC_SUPPORT 1" >>confdefs.h
18842
18843 LIBS="-l${lerc_lib_name} $LIBS"
18844 tiff_libs_private="-l${lerc_lib_name} ${tiff_libs_private}"
18845 tiff_requires_private="Lerc ${tiff_requires_private}"
18846
18847 if test "$HAVE_RPATH" = "yes" -a "x$with_lerc_lib_dir" != "x" ; then
18848 LIBDIR="-R $with_lerc_lib_dir $LIBDIR"
18849 fi
18850
18851 if test "$enable_static" != "no"; then
18852
18853 $as_echo "#define LERC_STATIC 1" >>confdefs.h
18854
18855 fi
18856 fi
18857
18858 if test "$HAVE_LERC" = 'yes'; then
18859 HAVE_LERC_TRUE=
18860 HAVE_LERC_FALSE='#'
18861 else
18862 HAVE_LERC_TRUE='#'
18863 HAVE_LERC_FALSE=
18864 fi
18865
18866
18867
18868 HAVE_LZMA=no
18869
18870 # Check whether --enable-lzma was given.
18871 if test "${enable_lzma+set}" = set; then :
18872 enableval=$enable_lzma;
18873 fi
18874
18875
18876 # Check whether --with-lzma-include-dir was given.
18877 if test "${with_lzma_include_dir+set}" = set; then :
18878 withval=$with_lzma_include_dir;
18879 fi
18880
18881
18882 # Check whether --with-lzma-lib-dir was given.
18883 if test "${with_lzma_lib_dir+set}" = set; then :
18884 withval=$with_lzma_lib_dir;
18885 fi
18886
18887
18888 if test "x$enable_lzma" != "xno" ; then
18889
18890 if test "x$with_lzma_lib_dir" != "x" ; then
18891 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
18892 fi
18893
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
18895 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
18896 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18897 $as_echo_n "(cached) " >&6
18898 else
18899 ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-llzma $LIBS"
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903
18904 /* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18907 #ifdef __cplusplus
18908 extern "C"
18909 #endif
18910 char lzma_code ();
18911 int
18912 main ()
18913 {
18914 return lzma_code ();
18915 ;
18916 return 0;
18917 }
18918 _ACEOF
18919 if ac_fn_c_try_link "$LINENO"; then :
18920 ac_cv_lib_lzma_lzma_code=yes
18921 else
18922 ac_cv_lib_lzma_lzma_code=no
18923 fi
18924 rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18927 fi
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
18929 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
18930 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18931 lzma_lib=yes
18932 else
18933 lzma_lib=no
18934 fi
18935
18936 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
18937 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
18938 fi
18939
18940 if test "x$with_lzma_include_dir" != "x" ; then
18941 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
18942 fi
18943 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
18944 if test "x$ac_cv_header_lzma_h" = xyes; then :
18945 lzma_h=yes
18946 else
18947 lzma_h=no
18948 fi
18949
18950
18951 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
18952 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
18953 fi
18954
18955 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
18956 HAVE_LZMA=yes
18957 fi
18958
18959 fi
18960
18961 if test "$HAVE_LZMA" = "yes" ; then
18962
18963 $as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
18964
18965 LIBS="-llzma $LIBS"
18966 tiff_libs_private="-llzma ${tiff_libs_private}"
18967 tiff_requires_private="liblzma ${tiff_requires_private}"
18968
18969 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
18970 LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
18971 fi
18972
18973 fi
18974
18975 if test "$HAVE_LZMA" = 'yes'; then
18976 HAVE_LZMA_TRUE=
18977 HAVE_LZMA_FALSE='#'
18978 else
18979 HAVE_LZMA_TRUE='#'
18980 HAVE_LZMA_FALSE=
18981 fi
18982
18983
18984
18985 HAVE_ZSTD=no
18986
18987 # Check whether --enable-zstd was given.
18988 if test "${enable_zstd+set}" = set; then :
18989 enableval=$enable_zstd;
18990 fi
18991
18992
18993 # Check whether --with-zstd-include-dir was given.
18994 if test "${with_zstd_include_dir+set}" = set; then :
18995 withval=$with_zstd_include_dir;
18996 fi
18997
18998
18999 # Check whether --with-zstd-lib-dir was given.
19000 if test "${with_zstd_lib_dir+set}" = set; then :
19001 withval=$with_zstd_lib_dir;
19002 fi
19003
19004
19005 if test "x$enable_zstd" != "xno" ; then
19006
19007 if test "x$with_zstd_lib_dir" != "x" ; then
19008 LDFLAGS="-L$with_zstd_lib_dir $LDFLAGS"
19009 fi
19010
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompressStream in -lzstd" >&5
19012 $as_echo_n "checking for ZSTD_decompressStream in -lzstd... " >&6; }
19013 if ${ac_cv_lib_zstd_ZSTD_decompressStream+:} false; then :
19014 $as_echo_n "(cached) " >&6
19015 else
19016 ac_check_lib_save_LIBS=$LIBS
19017 LIBS="-lzstd $LIBS"
19018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19019 /* end confdefs.h. */
19020
19021 /* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19024 #ifdef __cplusplus
19025 extern "C"
19026 #endif
19027 char ZSTD_decompressStream ();
19028 int
19029 main ()
19030 {
19031 return ZSTD_decompressStream ();
19032 ;
19033 return 0;
19034 }
19035 _ACEOF
19036 if ac_fn_c_try_link "$LINENO"; then :
19037 ac_cv_lib_zstd_ZSTD_decompressStream=yes
19038 else
19039 ac_cv_lib_zstd_ZSTD_decompressStream=no
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043 LIBS=$ac_check_lib_save_LIBS
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompressStream" >&5
19046 $as_echo "$ac_cv_lib_zstd_ZSTD_decompressStream" >&6; }
19047 if test "x$ac_cv_lib_zstd_ZSTD_decompressStream" = xyes; then :
19048 zstd_lib=yes
19049 else
19050 zstd_lib=no
19051 fi
19052
19053 if test "$zstd_lib" = "no" -a "x$with_zstd_lib_dir" != "x"; then
19054 as_fn_error $? "zstd library not found at $with_zstd_lib_dir" "$LINENO" 5
19055 fi
19056
19057 if test "x$with_zstd_include_dir" != "x" ; then
19058 CPPFLAGS="-I$with_zstd_include_dir $CPPFLAGS"
19059 fi
19060 ac_fn_c_check_header_mongrel "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
19061 if test "x$ac_cv_header_zstd_h" = xyes; then :
19062 zstd_h=yes
19063 else
19064 zstd_h=no
19065 fi
19066
19067
19068 if test "$zstd_h" = "no" -a "x$with_zstd_include_dir" != "x" ; then
19069 as_fn_error $? "Libzstd headers not found at $with_zstd_include_dir" "$LINENO" 5
19070 fi
19071
19072 if test "$zstd_lib" = "yes" -a "$zstd_h" = "yes" ; then
19073 HAVE_ZSTD=yes
19074 fi
19075
19076 fi
19077
19078 if test "$HAVE_ZSTD" = "yes" ; then
19079
19080 $as_echo "#define ZSTD_SUPPORT 1" >>confdefs.h
19081
19082 LIBS="-lzstd $LIBS"
19083 tiff_libs_private="-lzstd ${tiff_libs_private}"
19084 tiff_requires_private="libzstd ${tiff_requires_private}"
19085
19086 if test "$HAVE_RPATH" = "yes" -a "x$with_zstd_lib_dir" != "x" ; then
19087 LIBDIR="-R $with_zstd_lib_dir $LIBDIR"
19088 fi
19089
19090 fi
19091
19092 if test "$HAVE_ZSTD" = 'yes'; then
19093 HAVE_ZSTD_TRUE=
19094 HAVE_ZSTD_FALSE='#'
19095 else
19096 HAVE_ZSTD_TRUE='#'
19097 HAVE_ZSTD_FALSE=
19098 fi
19099
19100
19101
19102 HAVE_WEBP=no
19103
19104 # Check whether --enable-webp was given.
19105 if test "${enable_webp+set}" = set; then :
19106 enableval=$enable_webp;
19107 fi
19108
19109
19110 # Check whether --with-webp-include-dir was given.
19111 if test "${with_webp_include_dir+set}" = set; then :
19112 withval=$with_webp_include_dir;
19113 fi
19114
19115
19116 # Check whether --with-webp-lib-dir was given.
19117 if test "${with_webp_lib_dir+set}" = set; then :
19118 withval=$with_webp_lib_dir;
19119 fi
19120
19121
19122 if test "x$enable_webp" != "xno" ; then
19123
19124 if test "x$with_webp_lib_dir" != "x" ; then
19125 LDFLAGS="-L$with_webp_lib_dir $LDFLAGS"
19126 fi
19127
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecode in -lwebp" >&5
19129 $as_echo_n "checking for WebPDecode in -lwebp... " >&6; }
19130 if ${ac_cv_lib_webp_WebPDecode+:} false; then :
19131 $as_echo_n "(cached) " >&6
19132 else
19133 ac_check_lib_save_LIBS=$LIBS
19134 LIBS="-lwebp $LIBS"
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h. */
19137
19138 /* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19141 #ifdef __cplusplus
19142 extern "C"
19143 #endif
19144 char WebPDecode ();
19145 int
19146 main ()
19147 {
19148 return WebPDecode ();
19149 ;
19150 return 0;
19151 }
19152 _ACEOF
19153 if ac_fn_c_try_link "$LINENO"; then :
19154 ac_cv_lib_webp_WebPDecode=yes
19155 else
19156 ac_cv_lib_webp_WebPDecode=no
19157 fi
19158 rm -f core conftest.err conftest.$ac_objext \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19161 fi
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecode" >&5
19163 $as_echo "$ac_cv_lib_webp_WebPDecode" >&6; }
19164 if test "x$ac_cv_lib_webp_WebPDecode" = xyes; then :
19165 webp_lib=yes
19166 else
19167 webp_lib=no
19168 fi
19169
19170 if test "$webp_lib" = "no" -a "x$with_webp_lib_dir" != "x"; then
19171 as_fn_error $? "webp library not found at $with_webp_lib_dir" "$LINENO" 5
19172 fi
19173
19174 if test "x$with_webp_include_dir" != "x" ; then
19175 CPPFLAGS="-I$with_webp_include_dir $CPPFLAGS"
19176 fi
19177 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
19178 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
19179 webp_h=yes
19180 else
19181 webp_h=no
19182 fi
19183
19184
19185 if test "$webp_h" = "no" -a "x$with_webp_include_dir" != "x" ; then
19186 as_fn_error $? "Libwebp headers not found at $with_webp_include_dir" "$LINENO" 5
19187 fi
19188
19189 if test "$webp_lib" = "yes" -a "$webp_h" = "yes" ; then
19190 HAVE_WEBP=yes
19191 fi
19192
19193 fi
19194
19195 if test "$HAVE_WEBP" = "yes" ; then
19196
19197 $as_echo "#define WEBP_SUPPORT 1" >>confdefs.h
19198
19199 LIBS="-lwebp $LIBS"
19200 tiff_libs_private="-lwebp ${tiff_libs_private}"
19201 tiff_requires_private="libwebp ${tiff_requires_private}"
19202
19203 if test "$HAVE_RPATH" = "yes" -a "x$with_webp_lib_dir" != "x" ; then
19204 LIBDIR="-R $with_webp_lib_dir $LIBDIR"
19205 fi
19206
19207 fi
19208
19209 if test "$HAVE_WEBP" = 'yes'; then
19210 HAVE_WEBP_TRUE=
19211 HAVE_WEBP_FALSE='#'
19212 else
19213 HAVE_WEBP_TRUE='#'
19214 HAVE_WEBP_FALSE=
19215 fi
19216
19217
19218
19219 if test "$HAVE_JPEGTURBO_DUAL_MODE_8_12" = "no"; then
19220 HAVE_JPEG12=no
19221
19222 # Check whether --enable-jpeg12 was given.
19223 if test "${enable_jpeg12+set}" = set; then :
19224 enableval=$enable_jpeg12;
19225 fi
19226
19227
19228 # Check whether --with-jpeg12-include-dir was given.
19229 if test "${with_jpeg12_include_dir+set}" = set; then :
19230 withval=$with_jpeg12_include_dir;
19231 fi
19232
19233
19234 # Check whether --with-jpeg12-lib was given.
19235 if test "${with_jpeg12_lib+set}" = set; then :
19236 withval=$with_jpeg12_lib;
19237 fi
19238
19239
19240 if test "x$enable_jpeg12" = "xyes" ; then
19241
19242 if test "x$with_jpeg12_lib" != "x" ; then
19243 LIBS="$with_jpeg12_lib $LIBS"
19244 fi
19245
19246 HAVE_JPEG12=yes
19247
19248
19249 $as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
19250
19251 if test "x$with_jpeg12_include_dir" != "x" ; then
19252
19253 cat >>confdefs.h <<_ACEOF
19254 #define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
19255 _ACEOF
19256
19257 fi
19258 fi
19259 fi
19260
19261
19262 # Check whether --enable-cxx was given.
19263 if test "${enable_cxx+set}" = set; then :
19264 enableval=$enable_cxx; HAVE_CXX=$enableval
19265 else
19266 HAVE_CXX=yes
19267 fi
19268
19269
19270 if test "$HAVE_CXX" = "yes" ; then
19271
19272 $as_echo "#define CXX_SUPPORT 1" >>confdefs.h
19273
19274 else
19275 HAVE_CXX=no
19276 fi
19277
19278 if test "$HAVE_CXX" = "yes"; then
19279 HAVE_CXX_TRUE=
19280 HAVE_CXX_FALSE='#'
19281 else
19282 HAVE_CXX_TRUE='#'
19283 HAVE_CXX_FALSE=
19284 fi
19285
19286
19287
19288 HAVE_OPENGL=no
19289
19290 # Check whether --enable-opengl was given.
19291 if test "${enable_opengl+set}" = set; then :
19292 enableval=$enable_opengl;
19293 fi
19294
19295
19296 if test "x$enable_opengl" != "xno" ; then
19297
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19299 $as_echo_n "checking for X... " >&6; }
19300
19301
19302 # Check whether --with-x was given.
19303 if test "${with_x+set}" = set; then :
19304 withval=$with_x;
19305 fi
19306
19307 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19308 if test "x$with_x" = xno; then
19309 # The user explicitly disabled X.
19310 have_x=disabled
19311 else
19312 case $x_includes,$x_libraries in #(
19313 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19314 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19315 $as_echo_n "(cached) " >&6
19316 else
19317 # One or both of the vars are not set, and there is no cached value.
19318 ac_x_includes=no ac_x_libraries=no
19319 rm -f -r conftest.dir
19320 if mkdir conftest.dir; then
19321 cd conftest.dir
19322 cat >Imakefile <<'_ACEOF'
19323 incroot:
19324 @echo incroot='${INCROOT}'
19325 usrlibdir:
19326 @echo usrlibdir='${USRLIBDIR}'
19327 libdir:
19328 @echo libdir='${LIBDIR}'
19329 _ACEOF
19330 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19331 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19332 for ac_var in incroot usrlibdir libdir; do
19333 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19334 done
19335 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19336 for ac_extension in a so sl dylib la dll; do
19337 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19338 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19339 ac_im_usrlibdir=$ac_im_libdir; break
19340 fi
19341 done
19342 # Screen out bogus values from the imake configuration. They are
19343 # bogus both because they are the default anyway, and because
19344 # using them would break gcc on systems where it needs fixed includes.
19345 case $ac_im_incroot in
19346 /usr/include) ac_x_includes= ;;
19347 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19348 esac
19349 case $ac_im_usrlibdir in
19350 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19351 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19352 esac
19353 fi
19354 cd ..
19355 rm -f -r conftest.dir
19356 fi
19357
19358 # Standard set of common directories for X headers.
19359 # Check X11 before X11Rn because it is often a symlink to the current release.
19360 ac_x_header_dirs='
19361 /usr/X11/include
19362 /usr/X11R7/include
19363 /usr/X11R6/include
19364 /usr/X11R5/include
19365 /usr/X11R4/include
19366
19367 /usr/include/X11
19368 /usr/include/X11R7
19369 /usr/include/X11R6
19370 /usr/include/X11R5
19371 /usr/include/X11R4
19372
19373 /usr/local/X11/include
19374 /usr/local/X11R7/include
19375 /usr/local/X11R6/include
19376 /usr/local/X11R5/include
19377 /usr/local/X11R4/include
19378
19379 /usr/local/include/X11
19380 /usr/local/include/X11R7
19381 /usr/local/include/X11R6
19382 /usr/local/include/X11R5
19383 /usr/local/include/X11R4
19384
19385 /usr/X386/include
19386 /usr/x386/include
19387 /usr/XFree86/include/X11
19388
19389 /usr/include
19390 /usr/local/include
19391 /usr/unsupported/include
19392 /usr/athena/include
19393 /usr/local/x11r5/include
19394 /usr/lpp/Xamples/include
19395
19396 /usr/openwin/include
19397 /usr/openwin/share/include'
19398
19399 if test "$ac_x_includes" = no; then
19400 # Guess where to find include files, by looking for Xlib.h.
19401 # First, try using that file with no special directory specified.
19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h. */
19404 #include <X11/Xlib.h>
19405 _ACEOF
19406 if ac_fn_c_try_cpp "$LINENO"; then :
19407 # We can compile using X headers with no special include directory.
19408 ac_x_includes=
19409 else
19410 for ac_dir in $ac_x_header_dirs; do
19411 if test -r "$ac_dir/X11/Xlib.h"; then
19412 ac_x_includes=$ac_dir
19413 break
19414 fi
19415 done
19416 fi
19417 rm -f conftest.err conftest.i conftest.$ac_ext
19418 fi # $ac_x_includes = no
19419
19420 if test "$ac_x_libraries" = no; then
19421 # Check for the libraries.
19422 # See if we find them without any special options.
19423 # Don't add to $LIBS permanently.
19424 ac_save_LIBS=$LIBS
19425 LIBS="-lX11 $LIBS"
19426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h. */
19428 #include <X11/Xlib.h>
19429 int
19430 main ()
19431 {
19432 XrmInitialize ()
19433 ;
19434 return 0;
19435 }
19436 _ACEOF
19437 if ac_fn_c_try_link "$LINENO"; then :
19438 LIBS=$ac_save_LIBS
19439 # We can link X programs with no special library path.
19440 ac_x_libraries=
19441 else
19442 LIBS=$ac_save_LIBS
19443 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19444 do
19445 # Don't even attempt the hair of trying to link an X program!
19446 for ac_extension in a so sl dylib la dll; do
19447 if test -r "$ac_dir/libX11.$ac_extension"; then
19448 ac_x_libraries=$ac_dir
19449 break 2
19450 fi
19451 done
19452 done
19453 fi
19454 rm -f core conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
19456 fi # $ac_x_libraries = no
19457
19458 case $ac_x_includes,$ac_x_libraries in #(
19459 no,* | *,no | *\'*)
19460 # Didn't find X, or a directory has "'" in its name.
19461 ac_cv_have_x="have_x=no";; #(
19462 *)
19463 # Record where we found X for the cache.
19464 ac_cv_have_x="have_x=yes\
19465 ac_x_includes='$ac_x_includes'\
19466 ac_x_libraries='$ac_x_libraries'"
19467 esac
19468 fi
19469 ;; #(
19470 *) have_x=yes;;
19471 esac
19472 eval "$ac_cv_have_x"
19473 fi # $with_x != no
19474
19475 if test "$have_x" != yes; then
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19477 $as_echo "$have_x" >&6; }
19478 no_x=yes
19479 else
19480 # If each of the values was on the command line, it overrides each guess.
19481 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19482 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19483 # Update the cache value to reflect the command line values.
19484 ac_cv_have_x="have_x=yes\
19485 ac_x_includes='$x_includes'\
19486 ac_x_libraries='$x_libraries'"
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19488 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19489 fi
19490
19491 if test "$no_x" = yes; then
19492 # Not all programs may use this symbol, but it does not hurt to define it.
19493
19494 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19495
19496 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19497 else
19498 if test -n "$x_includes"; then
19499 X_CFLAGS="$X_CFLAGS -I$x_includes"
19500 fi
19501
19502 # It would also be nice to do this for all -L options, not just this one.
19503 if test -n "$x_libraries"; then
19504 X_LIBS="$X_LIBS -L$x_libraries"
19505 # For Solaris; some versions of Sun CC require a space after -R and
19506 # others require no space. Words are not sufficient . . . .
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19508 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19509 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19510 ac_xsave_c_werror_flag=$ac_c_werror_flag
19511 ac_c_werror_flag=yes
19512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19513 /* end confdefs.h. */
19514
19515 int
19516 main ()
19517 {
19518
19519 ;
19520 return 0;
19521 }
19522 _ACEOF
19523 if ac_fn_c_try_link "$LINENO"; then :
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19525 $as_echo "no" >&6; }
19526 X_LIBS="$X_LIBS -R$x_libraries"
19527 else
19528 LIBS="$ac_xsave_LIBS -R $x_libraries"
19529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19531
19532 int
19533 main ()
19534 {
19535
19536 ;
19537 return 0;
19538 }
19539 _ACEOF
19540 if ac_fn_c_try_link "$LINENO"; then :
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19542 $as_echo "yes" >&6; }
19543 X_LIBS="$X_LIBS -R $x_libraries"
19544 else
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19546 $as_echo "neither works" >&6; }
19547 fi
19548 rm -f core conftest.err conftest.$ac_objext \
19549 conftest$ac_exeext conftest.$ac_ext
19550 fi
19551 rm -f core conftest.err conftest.$ac_objext \
19552 conftest$ac_exeext conftest.$ac_ext
19553 ac_c_werror_flag=$ac_xsave_c_werror_flag
19554 LIBS=$ac_xsave_LIBS
19555 fi
19556
19557 # Check for system-dependent libraries X programs must link with.
19558 # Do this before checking for the system-independent R6 libraries
19559 # (-lICE), since we may need -lsocket or whatever for X linking.
19560
19561 if test "$ISC" = yes; then
19562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19563 else
19564 # Martyn Johnson says this is needed for Ultrix, if the X
19565 # libraries were built with DECnet support. And Karl Berry says
19566 # the Alpha needs dnet_stub (dnet does not exist).
19567 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19569 /* end confdefs.h. */
19570
19571 /* Override any GCC internal prototype to avoid an error.
19572 Use char because int might match the return type of a GCC
19573 builtin and then its argument prototype would still apply. */
19574 #ifdef __cplusplus
19575 extern "C"
19576 #endif
19577 char XOpenDisplay ();
19578 int
19579 main ()
19580 {
19581 return XOpenDisplay ();
19582 ;
19583 return 0;
19584 }
19585 _ACEOF
19586 if ac_fn_c_try_link "$LINENO"; then :
19587
19588 else
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19590 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19591 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
19592 $as_echo_n "(cached) " >&6
19593 else
19594 ac_check_lib_save_LIBS=$LIBS
19595 LIBS="-ldnet $LIBS"
19596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19598
19599 /* Override any GCC internal prototype to avoid an error.
19600 Use char because int might match the return type of a GCC
19601 builtin and then its argument prototype would still apply. */
19602 #ifdef __cplusplus
19603 extern "C"
19604 #endif
19605 char dnet_ntoa ();
19606 int
19607 main ()
19608 {
19609 return dnet_ntoa ();
19610 ;
19611 return 0;
19612 }
19613 _ACEOF
19614 if ac_fn_c_try_link "$LINENO"; then :
19615 ac_cv_lib_dnet_dnet_ntoa=yes
19616 else
19617 ac_cv_lib_dnet_dnet_ntoa=no
19618 fi
19619 rm -f core conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
19621 LIBS=$ac_check_lib_save_LIBS
19622 fi
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19624 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19625 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
19626 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19627 fi
19628
19629 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19631 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19632 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
19633 $as_echo_n "(cached) " >&6
19634 else
19635 ac_check_lib_save_LIBS=$LIBS
19636 LIBS="-ldnet_stub $LIBS"
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19639
19640 /* Override any GCC internal prototype to avoid an error.
19641 Use char because int might match the return type of a GCC
19642 builtin and then its argument prototype would still apply. */
19643 #ifdef __cplusplus
19644 extern "C"
19645 #endif
19646 char dnet_ntoa ();
19647 int
19648 main ()
19649 {
19650 return dnet_ntoa ();
19651 ;
19652 return 0;
19653 }
19654 _ACEOF
19655 if ac_fn_c_try_link "$LINENO"; then :
19656 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19657 else
19658 ac_cv_lib_dnet_stub_dnet_ntoa=no
19659 fi
19660 rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19663 fi
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19665 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19666 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
19667 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19668 fi
19669
19670 fi
19671 fi
19672 rm -f core conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19674 LIBS="$ac_xsave_LIBS"
19675
19676 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
19677 # to get the SysV transport functions.
19678 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19679 # needs -lnsl.
19680 # The nsl library prevents programs from opening the X display
19681 # on Irix 5.2, according to T.E. Dickey.
19682 # The functions gethostbyname, getservbyname, and inet_addr are
19683 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19684 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19685 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19686
19687 fi
19688
19689 if test $ac_cv_func_gethostbyname = no; then
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19691 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19692 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19693 $as_echo_n "(cached) " >&6
19694 else
19695 ac_check_lib_save_LIBS=$LIBS
19696 LIBS="-lnsl $LIBS"
19697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698 /* end confdefs.h. */
19699
19700 /* Override any GCC internal prototype to avoid an error.
19701 Use char because int might match the return type of a GCC
19702 builtin and then its argument prototype would still apply. */
19703 #ifdef __cplusplus
19704 extern "C"
19705 #endif
19706 char gethostbyname ();
19707 int
19708 main ()
19709 {
19710 return gethostbyname ();
19711 ;
19712 return 0;
19713 }
19714 _ACEOF
19715 if ac_fn_c_try_link "$LINENO"; then :
19716 ac_cv_lib_nsl_gethostbyname=yes
19717 else
19718 ac_cv_lib_nsl_gethostbyname=no
19719 fi
19720 rm -f core conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19723 fi
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19725 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19726 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19728 fi
19729
19730 if test $ac_cv_lib_nsl_gethostbyname = no; then
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19732 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19733 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
19734 $as_echo_n "(cached) " >&6
19735 else
19736 ac_check_lib_save_LIBS=$LIBS
19737 LIBS="-lbsd $LIBS"
19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739 /* end confdefs.h. */
19740
19741 /* Override any GCC internal prototype to avoid an error.
19742 Use char because int might match the return type of a GCC
19743 builtin and then its argument prototype would still apply. */
19744 #ifdef __cplusplus
19745 extern "C"
19746 #endif
19747 char gethostbyname ();
19748 int
19749 main ()
19750 {
19751 return gethostbyname ();
19752 ;
19753 return 0;
19754 }
19755 _ACEOF
19756 if ac_fn_c_try_link "$LINENO"; then :
19757 ac_cv_lib_bsd_gethostbyname=yes
19758 else
19759 ac_cv_lib_bsd_gethostbyname=no
19760 fi
19761 rm -f core conftest.err conftest.$ac_objext \
19762 conftest$ac_exeext conftest.$ac_ext
19763 LIBS=$ac_check_lib_save_LIBS
19764 fi
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19766 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19767 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
19768 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19769 fi
19770
19771 fi
19772 fi
19773
19774 # [email protected] says without -lsocket,
19775 # socket/setsockopt and other routines are undefined under SCO ODT
19776 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19777 # on later versions), says Simon Leinen: it contains gethostby*
19778 # variants that don't use the name server (or something). -lsocket
19779 # must be given before -lnsl if both are needed. We assume that
19780 # if connect needs -lnsl, so does gethostbyname.
19781 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19782 if test "x$ac_cv_func_connect" = xyes; then :
19783
19784 fi
19785
19786 if test $ac_cv_func_connect = no; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19788 $as_echo_n "checking for connect in -lsocket... " >&6; }
19789 if ${ac_cv_lib_socket_connect+:} false; then :
19790 $as_echo_n "(cached) " >&6
19791 else
19792 ac_check_lib_save_LIBS=$LIBS
19793 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19795 /* end confdefs.h. */
19796
19797 /* Override any GCC internal prototype to avoid an error.
19798 Use char because int might match the return type of a GCC
19799 builtin and then its argument prototype would still apply. */
19800 #ifdef __cplusplus
19801 extern "C"
19802 #endif
19803 char connect ();
19804 int
19805 main ()
19806 {
19807 return connect ();
19808 ;
19809 return 0;
19810 }
19811 _ACEOF
19812 if ac_fn_c_try_link "$LINENO"; then :
19813 ac_cv_lib_socket_connect=yes
19814 else
19815 ac_cv_lib_socket_connect=no
19816 fi
19817 rm -f core conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext conftest.$ac_ext
19819 LIBS=$ac_check_lib_save_LIBS
19820 fi
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19822 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19823 if test "x$ac_cv_lib_socket_connect" = xyes; then :
19824 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19825 fi
19826
19827 fi
19828
19829 # Guillermo Gomez says -lposix is necessary on A/UX.
19830 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19831 if test "x$ac_cv_func_remove" = xyes; then :
19832
19833 fi
19834
19835 if test $ac_cv_func_remove = no; then
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19837 $as_echo_n "checking for remove in -lposix... " >&6; }
19838 if ${ac_cv_lib_posix_remove+:} false; then :
19839 $as_echo_n "(cached) " >&6
19840 else
19841 ac_check_lib_save_LIBS=$LIBS
19842 LIBS="-lposix $LIBS"
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19845
19846 /* Override any GCC internal prototype to avoid an error.
19847 Use char because int might match the return type of a GCC
19848 builtin and then its argument prototype would still apply. */
19849 #ifdef __cplusplus
19850 extern "C"
19851 #endif
19852 char remove ();
19853 int
19854 main ()
19855 {
19856 return remove ();
19857 ;
19858 return 0;
19859 }
19860 _ACEOF
19861 if ac_fn_c_try_link "$LINENO"; then :
19862 ac_cv_lib_posix_remove=yes
19863 else
19864 ac_cv_lib_posix_remove=no
19865 fi
19866 rm -f core conftest.err conftest.$ac_objext \
19867 conftest$ac_exeext conftest.$ac_ext
19868 LIBS=$ac_check_lib_save_LIBS
19869 fi
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19871 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19872 if test "x$ac_cv_lib_posix_remove" = xyes; then :
19873 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19874 fi
19875
19876 fi
19877
19878 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19879 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19880 if test "x$ac_cv_func_shmat" = xyes; then :
19881
19882 fi
19883
19884 if test $ac_cv_func_shmat = no; then
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19886 $as_echo_n "checking for shmat in -lipc... " >&6; }
19887 if ${ac_cv_lib_ipc_shmat+:} false; then :
19888 $as_echo_n "(cached) " >&6
19889 else
19890 ac_check_lib_save_LIBS=$LIBS
19891 LIBS="-lipc $LIBS"
19892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19893 /* end confdefs.h. */
19894
19895 /* Override any GCC internal prototype to avoid an error.
19896 Use char because int might match the return type of a GCC
19897 builtin and then its argument prototype would still apply. */
19898 #ifdef __cplusplus
19899 extern "C"
19900 #endif
19901 char shmat ();
19902 int
19903 main ()
19904 {
19905 return shmat ();
19906 ;
19907 return 0;
19908 }
19909 _ACEOF
19910 if ac_fn_c_try_link "$LINENO"; then :
19911 ac_cv_lib_ipc_shmat=yes
19912 else
19913 ac_cv_lib_ipc_shmat=no
19914 fi
19915 rm -f core conftest.err conftest.$ac_objext \
19916 conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19918 fi
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19920 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19921 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19922 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19923 fi
19924
19925 fi
19926 fi
19927
19928 # Check for libraries that X11R6 Xt/Xaw programs need.
19929 ac_save_LDFLAGS=$LDFLAGS
19930 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19931 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19932 # check for ICE first), but we must link in the order -lSM -lICE or
19933 # we get undefined symbols. So assume we have SM if we have ICE.
19934 # These have to be linked with before -lX11, unlike the other
19935 # libraries we check for below, so use a different variable.
19936 # John Interrante, Karl Berry
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19938 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19939 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19940 $as_echo_n "(cached) " >&6
19941 else
19942 ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19946
19947 /* Override any GCC internal prototype to avoid an error.
19948 Use char because int might match the return type of a GCC
19949 builtin and then its argument prototype would still apply. */
19950 #ifdef __cplusplus
19951 extern "C"
19952 #endif
19953 char IceConnectionNumber ();
19954 int
19955 main ()
19956 {
19957 return IceConnectionNumber ();
19958 ;
19959 return 0;
19960 }
19961 _ACEOF
19962 if ac_fn_c_try_link "$LINENO"; then :
19963 ac_cv_lib_ICE_IceConnectionNumber=yes
19964 else
19965 ac_cv_lib_ICE_IceConnectionNumber=no
19966 fi
19967 rm -f core conftest.err conftest.$ac_objext \
19968 conftest$ac_exeext conftest.$ac_ext
19969 LIBS=$ac_check_lib_save_LIBS
19970 fi
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19972 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19973 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19974 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19975 fi
19976
19977 LDFLAGS=$ac_save_LDFLAGS
19978
19979 fi
19980
19981
19982
19983
19984
19985 ac_ext=c
19986 ac_cpp='$CPP $CPPFLAGS'
19987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19990
19991 ax_pthread_ok=no
19992
19993
19994 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19995 save_CFLAGS="$CFLAGS"
19996 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19997 save_LIBS="$LIBS"
19998 LIBS="$PTHREAD_LIBS $LIBS"
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20000 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20003
20004 /* Override any GCC internal prototype to avoid an error.
20005 Use char because int might match the return type of a GCC
20006 builtin and then its argument prototype would still apply. */
20007 #ifdef __cplusplus
20008 extern "C"
20009 #endif
20010 char pthread_join ();
20011 int
20012 main ()
20013 {
20014 return pthread_join ();
20015 ;
20016 return 0;
20017 }
20018 _ACEOF
20019 if ac_fn_c_try_link "$LINENO"; then :
20020 ax_pthread_ok=yes
20021 fi
20022 rm -f core conftest.err conftest.$ac_objext \
20023 conftest$ac_exeext conftest.$ac_ext
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20025 $as_echo "$ax_pthread_ok" >&6; }
20026 if test x"$ax_pthread_ok" = xno; then
20027 PTHREAD_LIBS=""
20028 PTHREAD_CFLAGS=""
20029 fi
20030 LIBS="$save_LIBS"
20031 CFLAGS="$save_CFLAGS"
20032 fi
20033
20034
20035
20036 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20037
20038
20039
20040 case "${host_cpu}-${host_os}" in
20041 *solaris*)
20042
20043
20044 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
20045 ;;
20046
20047 *-darwin*)
20048 ax_pthread_flags="-pthread $ax_pthread_flags"
20049 ;;
20050 esac
20051
20052 if test x"$ax_pthread_ok" = xno; then
20053 for flag in $ax_pthread_flags; do
20054
20055 case $flag in
20056 none)
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20058 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20059 ;;
20060
20061 -*)
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20063 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20064 PTHREAD_CFLAGS="$flag"
20065 ;;
20066
20067 pthread-config)
20068 # Extract the first word of "pthread-config", so it can be a program name with args.
20069 set dummy pthread-config; ac_word=$2
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20071 $as_echo_n "checking for $ac_word... " >&6; }
20072 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20073 $as_echo_n "(cached) " >&6
20074 else
20075 if test -n "$ax_pthread_config"; then
20076 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20077 else
20078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20079 for as_dir in $PATH
20080 do
20081 IFS=$as_save_IFS
20082 test -z "$as_dir" && as_dir=.
20083 for ac_exec_ext in '' $ac_executable_extensions; do
20084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20085 ac_cv_prog_ax_pthread_config="yes"
20086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20087 break 2
20088 fi
20089 done
20090 done
20091 IFS=$as_save_IFS
20092
20093 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20094 fi
20095 fi
20096 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20097 if test -n "$ax_pthread_config"; then
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20099 $as_echo "$ax_pthread_config" >&6; }
20100 else
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20102 $as_echo "no" >&6; }
20103 fi
20104
20105
20106 if test x"$ax_pthread_config" = xno; then continue; fi
20107 PTHREAD_CFLAGS="`pthread-config --cflags`"
20108 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20109 ;;
20110
20111 *)
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20113 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20114 PTHREAD_LIBS="-l$flag"
20115 ;;
20116 esac
20117
20118 save_LIBS="$LIBS"
20119 save_CFLAGS="$CFLAGS"
20120 LIBS="$PTHREAD_LIBS $LIBS"
20121 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20122
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20125 #include <pthread.h>
20126 static void routine(void* a) {a=0;}
20127 static void* start_routine(void* a) {return a;}
20128 int
20129 main ()
20130 {
20131 pthread_t th; pthread_attr_t attr;
20132 pthread_create(&th,0,start_routine,0);
20133 pthread_join(th, 0);
20134 pthread_attr_init(&attr);
20135 pthread_cleanup_push(routine, 0);
20136 pthread_cleanup_pop(0);
20137 ;
20138 return 0;
20139 }
20140 _ACEOF
20141 if ac_fn_c_try_link "$LINENO"; then :
20142 ax_pthread_ok=yes
20143 fi
20144 rm -f core conftest.err conftest.$ac_objext \
20145 conftest$ac_exeext conftest.$ac_ext
20146
20147 LIBS="$save_LIBS"
20148 CFLAGS="$save_CFLAGS"
20149
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20151 $as_echo "$ax_pthread_ok" >&6; }
20152 if test "x$ax_pthread_ok" = xyes; then
20153 break;
20154 fi
20155
20156 PTHREAD_LIBS=""
20157 PTHREAD_CFLAGS=""
20158 done
20159 fi
20160
20161 if test "x$ax_pthread_ok" = xyes; then
20162 save_LIBS="$LIBS"
20163 LIBS="$PTHREAD_LIBS $LIBS"
20164 save_CFLAGS="$CFLAGS"
20165 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20166
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20168 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20169 attr_name=unknown
20170 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20173 #include <pthread.h>
20174 int
20175 main ()
20176 {
20177 int attr=$attr; return attr;
20178 ;
20179 return 0;
20180 }
20181 _ACEOF
20182 if ac_fn_c_try_link "$LINENO"; then :
20183 attr_name=$attr; break
20184 fi
20185 rm -f core conftest.err conftest.$ac_objext \
20186 conftest$ac_exeext conftest.$ac_ext
20187 done
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20189 $as_echo "$attr_name" >&6; }
20190 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20191
20192 cat >>confdefs.h <<_ACEOF
20193 #define PTHREAD_CREATE_JOINABLE $attr_name
20194 _ACEOF
20195
20196 fi
20197
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20199 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20200 flag=no
20201 case "${host_cpu}-${host_os}" in
20202 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20203 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20204 esac
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20206 $as_echo "${flag}" >&6; }
20207 if test "x$flag" != xno; then
20208 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20209 fi
20210
20211 LIBS="$save_LIBS"
20212 CFLAGS="$save_CFLAGS"
20213
20214 if test x"$GCC" != xyes; then
20215 for ac_prog in xlc_r cc_r
20216 do
20217 # Extract the first word of "$ac_prog", so it can be a program name with args.
20218 set dummy $ac_prog; ac_word=$2
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20220 $as_echo_n "checking for $ac_word... " >&6; }
20221 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20222 $as_echo_n "(cached) " >&6
20223 else
20224 if test -n "$PTHREAD_CC"; then
20225 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20226 else
20227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20228 for as_dir in $PATH
20229 do
20230 IFS=$as_save_IFS
20231 test -z "$as_dir" && as_dir=.
20232 for ac_exec_ext in '' $ac_executable_extensions; do
20233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20234 ac_cv_prog_PTHREAD_CC="$ac_prog"
20235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20236 break 2
20237 fi
20238 done
20239 done
20240 IFS=$as_save_IFS
20241
20242 fi
20243 fi
20244 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20245 if test -n "$PTHREAD_CC"; then
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20247 $as_echo "$PTHREAD_CC" >&6; }
20248 else
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20250 $as_echo "no" >&6; }
20251 fi
20252
20253
20254 test -n "$PTHREAD_CC" && break
20255 done
20256 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20257
20258 else
20259 PTHREAD_CC=$CC
20260 fi
20261 else
20262 PTHREAD_CC="$CC"
20263 fi
20264
20265
20266
20267
20268
20269 if test x"$ax_pthread_ok" = xyes; then
20270
20271 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20272
20273 :
20274 else
20275 ax_pthread_ok=no
20276
20277 fi
20278 ac_ext=c
20279 ac_cpp='$CPP $CPPFLAGS'
20280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20283
20284
20285
20286
20287 ac_ext=c
20288 ac_cpp='$CPP $CPPFLAGS'
20289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20292
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
20294 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
20295 if ${ax_cv_c_compiler_ms+:} false; then :
20296 $as_echo_n "(cached) " >&6
20297 else
20298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20299 /* end confdefs.h. */
20300
20301 int
20302 main ()
20303 {
20304 #ifndef _MSC_VER
20305 choke me
20306 #endif
20307
20308 ;
20309 return 0;
20310 }
20311 _ACEOF
20312 if ac_fn_c_try_compile "$LINENO"; then :
20313 ax_compiler_ms=yes
20314 else
20315 ax_compiler_ms=no
20316 fi
20317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20318 ax_cv_c_compiler_ms=$ax_compiler_ms
20319
20320 fi
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
20322 $as_echo "$ax_cv_c_compiler_ms" >&6; }
20323 if test X$ax_compiler_ms = Xno; then :
20324 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
20325 fi
20326
20327 if test "X$no_x" != "Xyes"; then :
20328 if test -n "$x_includes"; then :
20329 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
20330 fi
20331 if test -n "$x_libraries"; then :
20332 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
20333 fi
20334 fi
20335
20336 ax_save_CPPFLAGS="${CPPFLAGS}"
20337 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20338 for ac_header in GL/gl.h OpenGL/gl.h
20339 do :
20340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20343 cat >>confdefs.h <<_ACEOF
20344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20345 _ACEOF
20346
20347 fi
20348
20349 done
20350
20351 CPPFLAGS="${ax_save_CPPFLAGS}"
20352
20353 for ac_header in windows.h
20354 do :
20355 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
20356 if test "x$ac_cv_header_windows_h" = xyes; then :
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_WINDOWS_H 1
20359 _ACEOF
20360
20361 fi
20362
20363 done
20364
20365
20366
20367
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
20369 $as_echo_n "checking for OpenGL library... " >&6; }
20370 if ${ax_cv_check_gl_libgl+:} false; then :
20371 $as_echo_n "(cached) " >&6
20372 else
20373 ax_cv_check_gl_libgl="no"
20374 case $host_cpu in
20375 x86_64) ax_check_gl_libdir=lib64 ;;
20376 *) ax_check_gl_libdir=lib ;;
20377 esac
20378 ax_save_CPPFLAGS="${CPPFLAGS}"
20379 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20380 ax_save_LIBS="${LIBS}"
20381 LIBS=""
20382 ax_check_libs="-lopengl32 -lGL"
20383 for ax_lib in ${ax_check_libs}; do
20384 if test X$ax_compiler_ms = Xyes; then :
20385 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20386 else
20387 ax_try_lib="${ax_lib}"
20388 fi
20389 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
20390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h. */
20392
20393 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20394 # include <windows.h>
20395 # endif
20396 # ifdef HAVE_GL_GL_H
20397 # include <GL/gl.h>
20398 # elif defined(HAVE_OPENGL_GL_H)
20399 # include <OpenGL/gl.h>
20400 # else
20401 # error no gl.h
20402 # endif
20403 int
20404 main ()
20405 {
20406 glBegin(0)
20407 ;
20408 return 0;
20409 }
20410 _ACEOF
20411 if ac_fn_c_try_link "$LINENO"; then :
20412 ax_cv_check_gl_libgl="${ax_try_lib}"; break
20413 else
20414 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}"
20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416 /* end confdefs.h. */
20417
20418 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20419 # include <windows.h>
20420 # endif
20421 # ifdef HAVE_GL_GL_H
20422 # include <GL/gl.h>
20423 # elif defined(HAVE_OPENGL_GL_H)
20424 # include <OpenGL/gl.h>
20425 # else
20426 # error no gl.h
20427 # endif
20428 int
20429 main ()
20430 {
20431 glBegin(0)
20432 ;
20433 return 0;
20434 }
20435 _ACEOF
20436 if ac_fn_c_try_link "$LINENO"; then :
20437 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
20438 else
20439 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}"
20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h. */
20442
20443 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20444 # include <windows.h>
20445 # endif
20446 # ifdef HAVE_GL_GL_H
20447 # include <GL/gl.h>
20448 # elif defined(HAVE_OPENGL_GL_H)
20449 # include <OpenGL/gl.h>
20450 # else
20451 # error no gl.h
20452 # endif
20453 int
20454 main ()
20455 {
20456 glBegin(0)
20457 ;
20458 return 0;
20459 }
20460 _ACEOF
20461 if ac_fn_c_try_link "$LINENO"; then :
20462 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
20463 fi
20464 rm -f core conftest.err conftest.$ac_objext \
20465 conftest$ac_exeext conftest.$ac_ext
20466 fi
20467 rm -f core conftest.err conftest.$ac_objext \
20468 conftest$ac_exeext conftest.$ac_ext
20469 fi
20470 rm -f core conftest.err conftest.$ac_objext \
20471 conftest$ac_exeext conftest.$ac_ext
20472 done
20473
20474 if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
20475 LIBS='-framework OpenGL'
20476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20477 /* end confdefs.h. */
20478
20479 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20480 # include <windows.h>
20481 # endif
20482 # ifdef HAVE_GL_GL_H
20483 # include <GL/gl.h>
20484 # elif defined(HAVE_OPENGL_GL_H)
20485 # include <OpenGL/gl.h>
20486 # else
20487 # error no gl.h
20488 # endif
20489 int
20490 main ()
20491 {
20492 glBegin(0)
20493 ;
20494 return 0;
20495 }
20496 _ACEOF
20497 if ac_fn_c_try_link "$LINENO"; then :
20498 ax_cv_check_gl_libgl="$LIBS"
20499 fi
20500 rm -f core conftest.err conftest.$ac_objext \
20501 conftest$ac_exeext conftest.$ac_ext
20502 fi
20503
20504 LIBS=${ax_save_LIBS}
20505 CPPFLAGS=${ax_save_CPPFLAGS}
20506 fi
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
20508 $as_echo "$ax_cv_check_gl_libgl" >&6; }
20509
20510 if test "X$ax_cv_check_gl_libgl" = Xno; then :
20511 no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
20512 else
20513 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
20514 fi
20515 ac_ext=c
20516 ac_cpp='$CPP $CPPFLAGS'
20517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20520
20521
20522
20523
20524
20525
20526 GLU_CFLAGS="${GL_CFLAGS}"
20527
20528 ax_save_CPPFLAGS="${CPPFLAGS}"
20529 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20530 for ac_header in GL/glu.h OpenGL/glu.h
20531 do :
20532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20533 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20535 cat >>confdefs.h <<_ACEOF
20536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20537 _ACEOF
20538
20539 fi
20540
20541 done
20542
20543 CPPFLAGS="${ax_save_CPPFLAGS}"
20544
20545
20546
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
20548 $as_echo_n "checking for OpenGL Utility library... " >&6; }
20549 if ${ax_cv_check_glu_libglu+:} false; then :
20550 $as_echo_n "(cached) " >&6
20551 else
20552 ax_cv_check_glu_libglu="no"
20553 ax_save_CPPFLAGS="${CPPFLAGS}"
20554 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20555 ax_save_LIBS="${LIBS}"
20556
20557 LIBS="${GL_LIBS} ${ax_save_LIBS}"
20558 ac_ext=cpp
20559 ac_cpp='$CXXCPP $CPPFLAGS'
20560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20563
20564 if test X$ax_compiler_ms = Xyes; then :
20565 ac_ext=c
20566 ac_cpp='$CPP $CPPFLAGS'
20567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570
20571 fi
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574
20575 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20576 # include <windows.h>
20577 # endif
20578 # ifdef HAVE_GL_GLU_H
20579 # include <GL/glu.h>
20580 # elif defined(HAVE_OPENGL_GLU_H)
20581 # include <OpenGL/glu.h>
20582 # else
20583 # error no glu.h
20584 # endif
20585 int
20586 main ()
20587 {
20588 gluBeginCurve(0)
20589 ;
20590 return 0;
20591 }
20592 _ACEOF
20593 if ac_fn_c_try_link "$LINENO"; then :
20594 ax_cv_check_glu_libglu=yes
20595 else
20596 LIBS=""
20597 ax_check_libs="-lglu32 -lGLU"
20598 for ax_lib in ${ax_check_libs}; do
20599 if test X$ax_compiler_ms = Xyes; then :
20600 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20601 else
20602 ax_try_lib="${ax_lib}"
20603 fi
20604 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607
20608 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20609 # include <windows.h>
20610 # endif
20611 # ifdef HAVE_GL_GLU_H
20612 # include <GL/glu.h>
20613 # elif defined(HAVE_OPENGL_GLU_H)
20614 # include <OpenGL/glu.h>
20615 # else
20616 # error no glu.h
20617 # endif
20618 int
20619 main ()
20620 {
20621 gluBeginCurve(0)
20622 ;
20623 return 0;
20624 }
20625 _ACEOF
20626 if ac_fn_c_try_link "$LINENO"; then :
20627 ax_cv_check_glu_libglu="${ax_try_lib}"; break
20628 fi
20629 rm -f core conftest.err conftest.$ac_objext \
20630 conftest$ac_exeext conftest.$ac_ext
20631 done
20632
20633 fi
20634 rm -f core conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext conftest.$ac_ext
20636 if test X$ax_compiler_ms = Xyes; then :
20637 ac_ext=cpp
20638 ac_cpp='$CXXCPP $CPPFLAGS'
20639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20642
20643 fi
20644 ac_ext=c
20645 ac_cpp='$CPP $CPPFLAGS'
20646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20649
20650
20651 LIBS=${ax_save_LIBS}
20652 CPPFLAGS=${ax_save_CPPFLAGS}
20653 fi
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
20655 $as_echo "$ax_cv_check_glu_libglu" >&6; }
20656 if test "X$ax_cv_check_glu_libglu" = Xno; then :
20657 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
20658 else
20659 if test "X$ax_cv_check_glu_libglu" = Xyes; then :
20660 GLU_LIBS="$GL_LIBS"
20661 else
20662 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
20663 fi
20664 fi
20665
20666
20667
20668 if test "X$ax_cv_check_glu_libglu" != Xno; then :
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
20670 $as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
20671 if ${ax_cv_varargs_glu_tesscb+:} false; then :
20672 $as_echo_n "(cached) " >&6
20673 else
20674 ax_cv_varargs_glu_tesscb=no
20675 ax_save_CFLAGS="$CFLAGS"
20676 CFLAGS="$GL_CFLAGS $CFLAGS"
20677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20678 /* end confdefs.h. */
20679
20680 # ifdef HAVE_GL_GLU_H
20681 # include <GL/glu.h>
20682 # else
20683 # include <OpenGL/glu.h>
20684 # endif
20685 int
20686 main ()
20687 {
20688 GLvoid (*func)(...); gluTessCallback(0, 0, func)
20689 ;
20690 return 0;
20691 }
20692 _ACEOF
20693 if ac_fn_c_try_compile "$LINENO"; then :
20694 ax_cv_varargs_glu_tesscb=yes
20695 fi
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 CFLAGS="$ax_save_CFLAGS"
20698 fi
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
20700 $as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
20701 if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
20702
20703 $as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
20704
20705 fi
20706 fi
20707
20708
20709
20710 ax_save_CPPFLAGS="${CPPFLAGS}"
20711 CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
20712 for ac_header in GL/glut.h GLUT/glut.h
20713 do :
20714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20715 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20716 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20717 cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20719 _ACEOF
20720
20721 fi
20722
20723 done
20724
20725 CPPFLAGS="${ax_save_CPPFLAGS}"
20726
20727 GLUT_CFLAGS=${GLU_CFLAGS}
20728 GLUT_LIBS=${GLU_LIBS}
20729
20730
20731
20732 if test X$no_x != Xyes; then :
20733 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
20734 fi
20735
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
20737 $as_echo_n "checking for GLUT library... " >&6; }
20738 if ${ax_cv_check_glut_libglut+:} false; then :
20739 $as_echo_n "(cached) " >&6
20740 else
20741 ax_cv_check_glut_libglut="no"
20742 ac_ext=c
20743 ac_cpp='$CPP $CPPFLAGS'
20744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20747
20748 ax_save_CPPFLAGS="${CPPFLAGS}"
20749 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
20750 ax_save_LIBS="${LIBS}"
20751 LIBS=""
20752 ax_check_libs="-lglut32 -lglut"
20753 for ax_lib in ${ax_check_libs}; do
20754 if test X$ax_compiler_ms = Xyes; then :
20755 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20756 else
20757 ax_try_lib="${ax_lib}"
20758 fi
20759 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
20760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761 /* end confdefs.h. */
20762
20763 # if HAVE_WINDOWS_H && defined(_WIN32)
20764 # include <windows.h>
20765 # endif
20766 # ifdef HAVE_GL_GLUT_H
20767 # include <GL/glut.h>
20768 # elif defined(HAVE_GLUT_GLUT_H)
20769 # include <GLUT/glut.h>
20770 # else
20771 # error no glut.h
20772 # endif
20773 int
20774 main ()
20775 {
20776 glutMainLoop()
20777 ;
20778 return 0;
20779 }
20780 _ACEOF
20781 if ac_fn_c_try_link "$LINENO"; then :
20782 ax_cv_check_glut_libglut="${ax_try_lib}"; break
20783 fi
20784 rm -f core conftest.err conftest.$ac_objext \
20785 conftest$ac_exeext conftest.$ac_ext
20786 done
20787
20788 if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
20789 LIBS='-framework GLUT'
20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h. */
20792
20793 # if HAVE_WINDOWS_H && defined(_WIN32)
20794 # include <windows.h>
20795 # endif
20796 # ifdef HAVE_GL_GLUT_H
20797 # include <GL/glut.h>
20798 # elif defined(HAVE_GLUT_GLUT_H)
20799 # include <GLUT/glut.h>
20800 # else
20801 # error no glut.h
20802 # endif
20803 int
20804 main ()
20805 {
20806 glutMainLoop()
20807 ;
20808 return 0;
20809 }
20810 _ACEOF
20811 if ac_fn_c_try_link "$LINENO"; then :
20812 ax_cv_check_glut_libglut="$LIBS"
20813 fi
20814 rm -f core conftest.err conftest.$ac_objext \
20815 conftest$ac_exeext conftest.$ac_ext
20816 fi
20817
20818 CPPFLAGS="${ax_save_CPPFLAGS}"
20819 LIBS="${ax_save_LIBS}"
20820 ac_ext=c
20821 ac_cpp='$CPP $CPPFLAGS'
20822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20825
20826 fi
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
20828 $as_echo "$ax_cv_check_glut_libglut" >&6; }
20829
20830 if test "X$ax_cv_check_glut_libglut" = Xno; then :
20831 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
20832 else
20833 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
20834 fi
20835
20836
20837
20838
20839
20840 if test "$no_x" != "yes" -a "$no_gl" != "yes" \
20841 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
20842 HAVE_OPENGL=yes
20843 fi
20844 fi
20845
20846 if test "$HAVE_OPENGL" = "yes"; then
20847 HAVE_OPENGL_TRUE=
20848 HAVE_OPENGL_FALSE='#'
20849 else
20850 HAVE_OPENGL_TRUE='#'
20851 HAVE_OPENGL_FALSE=
20852 fi
20853
20854
20855
20856 # Check whether --enable-win32-io was given.
20857 if test "${enable_win32_io+set}" = set; then :
20858 enableval=$enable_win32_io;
20859 fi
20860
20861
20862 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
20863 if test "x$ac_cv_header_windows_h" = xyes; then :
20864
20865 fi
20866
20867
20868
20869 win32_io_ok=no
20870 case "${host_os}" in
20871 cygwin*)
20872 if test x"$ac_cv_header_windows_h" = xyes -a "x$enable_win32_io" = xyes ; then
20873 win32_io_ok=yes
20874 fi
20875 ;;
20876 *)
20877 if test x"$ac_cv_header_windows_h" = xyes -a ! "x$enable_win32_io" = xno ; then
20878 win32_io_ok=yes
20879 fi
20880 ;;
20881 esac
20882
20883 if test "$win32_io_ok" = "yes" ; then
20884
20885 $as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
20886
20887 fi
20888
20889 if test "$win32_io_ok" = yes; then
20890 WIN32_IO_TRUE=
20891 WIN32_IO_FALSE='#'
20892 else
20893 WIN32_IO_TRUE='#'
20894 WIN32_IO_FALSE=
20895 fi
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905 # Check whether --enable-strip-chopping was given.
20906 if test "${enable_strip_chopping+set}" = set; then :
20907 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
20908 else
20909 HAVE_STRIPCHOP=yes
20910 fi
20911
20912
20913 # Check whether --with-default-strip-size was given.
20914 if test "${with_default_strip_size+set}" = set; then :
20915 withval=$with_default_strip_size;
20916 fi
20917
20918
20919 if test "$HAVE_STRIPCHOP" = "yes" \
20920 -a "x$with_default_strip_size" != "xno"; then
20921
20922 $as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
20923
20924
20925 if test "x$with_default_strip_size" = "x" \
20926 -o "x$with_default_strip_size" = "xyes"; then
20927 with_default_strip_size="8192"
20928 fi
20929
20930
20931 cat >>confdefs.h <<_ACEOF
20932 #define STRIP_SIZE_DEFAULT $with_default_strip_size
20933 _ACEOF
20934
20935
20936 fi
20937
20938
20939
20940 # Check whether --with-max-dir-count was given.
20941 if test "${with_max_dir_count+set}" = set; then :
20942 withval=$with_max_dir_count;
20943 fi
20944
20945
20946 if test "x$with_max_dir_count" = "x" -o "x$with_max_dir_count" = "xyes"; then
20947 with_max_dir_count="1048576"
20948 fi
20949
20950
20951 cat >>confdefs.h <<_ACEOF
20952 #define TIFF_MAX_DIR_COUNT $with_max_dir_count
20953 _ACEOF
20954
20955
20956
20957 # Check whether --enable-defer-strile-load was given.
20958 if test "${enable_defer_strile_load+set}" = set; then :
20959 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
20960 else
20961 HAVE_DEFER_STRILE_LOAD=no
20962 fi
20963
20964
20965 if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
20966
20967 $as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
20968
20969
20970 fi
20971
20972
20973 # Check whether --enable-chunky-strip-read was given.
20974 if test "${enable_chunky_strip_read+set}" = set; then :
20975 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
20976 else
20977 HAVE_CHUNKY_STRIP_READ=no
20978 fi
20979
20980
20981 if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
20982
20983 $as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
20984
20985
20986 fi
20987
20988
20989 $as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
20990
20991
20992
20993 # Check whether --enable-extrasample-as-alpha was given.
20994 if test "${enable_extrasample_as_alpha+set}" = set; then :
20995 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
20996 else
20997 HAVE_EXTRASAMPLE_AS_ALPHA=yes
20998 fi
20999
21000
21001 if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
21002
21003 $as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
21004
21005 fi
21006
21007
21008 # Check whether --enable-check-ycbcr-subsampling was given.
21009 if test "${enable_check_ycbcr_subsampling+set}" = set; then :
21010 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
21011 else
21012 CHECK_JPEG_YCBCR_SUBSAMPLING=yes
21013 fi
21014
21015
21016 if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
21017
21018 $as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
21019
21020 fi
21021
21022 for python in python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python; do
21023 for ac_prog in $python
21024 do
21025 # Extract the first word of "$ac_prog", so it can be a program name with args.
21026 set dummy $ac_prog; ac_word=$2
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21028 $as_echo_n "checking for $ac_word... " >&6; }
21029 if ${ac_cv_prog_PYTHON_BIN+:} false; then :
21030 $as_echo_n "(cached) " >&6
21031 else
21032 if test -n "$PYTHON_BIN"; then
21033 ac_cv_prog_PYTHON_BIN="$PYTHON_BIN" # Let the user override the test.
21034 else
21035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21036 for as_dir in $PATH
21037 do
21038 IFS=$as_save_IFS
21039 test -z "$as_dir" && as_dir=.
21040 for ac_exec_ext in '' $ac_executable_extensions; do
21041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21042 ac_cv_prog_PYTHON_BIN="$ac_prog"
21043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21044 break 2
21045 fi
21046 done
21047 done
21048 IFS=$as_save_IFS
21049
21050 fi
21051 fi
21052 PYTHON_BIN=$ac_cv_prog_PYTHON_BIN
21053 if test -n "$PYTHON_BIN"; then
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_BIN" >&5
21055 $as_echo "$PYTHON_BIN" >&6; }
21056 else
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21058 $as_echo "no" >&6; }
21059 fi
21060
21061
21062 test -n "$PYTHON_BIN" && break
21063 done
21064
21065 if test "x$PYTHON_BIN" != "x"; then
21066 break
21067 fi
21068 done
21069
21070 # Check whether --enable-sphinx was given.
21071 if test "${enable_sphinx+set}" = set; then :
21072 enableval=$enable_sphinx; BUILD_SPHINX=$enableval
21073 else
21074 BUILD_SPHINX=yes
21075 fi
21076
21077
21078
21079
21080 # Extract the first word of "sphinx-build", so it can be a program name with args.
21081 set dummy sphinx-build; ac_word=$2
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21083 $as_echo_n "checking for $ac_word... " >&6; }
21084 if ${ac_cv_path_SPHINX_BUILD+:} false; then :
21085 $as_echo_n "(cached) " >&6
21086 else
21087 case $SPHINX_BUILD in
21088 [\\/]* | ?:[\\/]*)
21089 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
21090 ;;
21091 *)
21092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21093 for as_dir in $PATH
21094 do
21095 IFS=$as_save_IFS
21096 test -z "$as_dir" && as_dir=.
21097 for ac_exec_ext in '' $ac_executable_extensions; do
21098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21099 ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
21100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21101 break 2
21102 fi
21103 done
21104 done
21105 IFS=$as_save_IFS
21106
21107 test -z "$ac_cv_path_SPHINX_BUILD" && ac_cv_path_SPHINX_BUILD="no"
21108 ;;
21109 esac
21110 fi
21111 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
21112 if test -n "$SPHINX_BUILD"; then
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
21114 $as_echo "$SPHINX_BUILD" >&6; }
21115 else
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21117 $as_echo "no" >&6; }
21118 fi
21119
21120
21121
21122 if test "$BUILD_SPHINX" = yes -a "$SPHINX_BUILD" != no -a "x$PYTHON_BIN" != "x"; then
21123 SPHINX_TRUE=
21124 SPHINX_FALSE='#'
21125 else
21126 SPHINX_TRUE='#'
21127 SPHINX_FALSE=
21128 fi
21129
21130
21131 if test "x$PYTHON_BIN" != "x"; then
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated manual pages" >&5
21133 $as_echo_n "checking generated manual pages... " >&6; }
21134 TIFF_MAN1_GEN=$(echo $("$PYTHON_BIN" "${srcdir}/cmake/list-manpages.py" "${srcdir}/doc" man | grep "\.1$"))
21135 TIFF_MAN3_GEN=$(echo $("$PYTHON_BIN" "${srcdir}/cmake/list-manpages.py" "${srcdir}/doc" man | grep "\.3tiff$"))
21136 TIFF_MAN_RULES=$("$PYTHON_BIN" "${srcdir}/cmake/list-manpages.py" "${srcdir}/doc" man | sed -e 's;$;: all-local;')
21137
21138
21139
21140
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21142 $as_echo "done" >&6; }
21143 fi
21144
21145 if test -d "${srcdir}/doc/man-prebuilt"; then
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking prebuilt manual pages" >&5
21147 $as_echo_n "checking prebuilt manual pages... " >&6; }
21148 TIFF_MAN1_PREBUILT=$(echo $(cd "${srcdir}/doc" && ls -1 man-prebuilt/*.1))
21149 TIFF_MAN3_PREBUILT=$(echo $(cd "${srcdir}/doc" && ls -1 man-prebuilt/*.3tiff))
21150
21151
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21153 $as_echo "done" >&6; }
21154 fi
21155
21156
21157 CFLAGS="$SAVED_CFLAGS"
21158
21159
21160
21161 ac_config_headers="$ac_config_headers config/config.h libtiff/tif_config.h libtiff/tiffconf.h port/libport_config.h"
21162
21163
21164 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 doc/Makefile libtiff-4.pc libtiff/Makefile libtiff/tiffvers.h port/Makefile test/Makefile tools/Makefile"
21165
21166 cat >confcache <<\_ACEOF
21167 # This file is a shell script that caches the results of configure
21168 # tests run on this system so they can be shared between configure
21169 # scripts and configure runs, see configure's option --config-cache.
21170 # It is not useful on other systems. If it contains results you don't
21171 # want to keep, you may remove or edit it.
21172 #
21173 # config.status only pays attention to the cache file if you give it
21174 # the --recheck option to rerun configure.
21175 #
21176 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21177 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21178 # following values.
21179
21180 _ACEOF
21181
21182 # The following way of writing the cache mishandles newlines in values,
21183 # but we know of no workaround that is simple, portable, and efficient.
21184 # So, we kill variables containing newlines.
21185 # Ultrix sh set writes to stderr and can't be redirected directly,
21186 # and sets the high bit in the cache file unless we assign to the vars.
21187 (
21188 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21189 eval ac_val=\$$ac_var
21190 case $ac_val in #(
21191 *${as_nl}*)
21192 case $ac_var in #(
21193 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21194 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21195 esac
21196 case $ac_var in #(
21197 _ | IFS | as_nl) ;; #(
21198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21199 *) { eval $ac_var=; unset $ac_var;} ;;
21200 esac ;;
21201 esac
21202 done
21203
21204 (set) 2>&1 |
21205 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21206 *${as_nl}ac_space=\ *)
21207 # `set' does not quote correctly, so add quotes: double-quote
21208 # substitution turns \\\\ into \\, and sed turns \\ into \.
21209 sed -n \
21210 "s/'/'\\\\''/g;
21211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21212 ;; #(
21213 *)
21214 # `set' quotes correctly as required by POSIX, so do not add quotes.
21215 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21216 ;;
21217 esac |
21218 sort
21219 ) |
21220 sed '
21221 /^ac_cv_env_/b end
21222 t clear
21223 :clear
21224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21225 t end
21226 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21227 :end' >>confcache
21228 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21229 if test -w "$cache_file"; then
21230 if test "x$cache_file" != "x/dev/null"; then
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21232 $as_echo "$as_me: updating cache $cache_file" >&6;}
21233 if test ! -f "$cache_file" || test -h "$cache_file"; then
21234 cat confcache >"$cache_file"
21235 else
21236 case $cache_file in #(
21237 */* | ?:*)
21238 mv -f confcache "$cache_file"$$ &&
21239 mv -f "$cache_file"$$ "$cache_file" ;; #(
21240 *)
21241 mv -f confcache "$cache_file" ;;
21242 esac
21243 fi
21244 fi
21245 else
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21247 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21248 fi
21249 fi
21250 rm -f confcache
21251
21252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21253 # Let make expand exec_prefix.
21254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21255
21256 DEFS=-DHAVE_CONFIG_H
21257
21258 ac_libobjs=
21259 ac_ltlibobjs=
21260 U=
21261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21262 # 1. Remove the extension, and $U if already installed.
21263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21264 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21266 # will be set to the directory where LIBOBJS objects are built.
21267 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21268 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21269 done
21270 LIBOBJS=$ac_libobjs
21271
21272 LTLIBOBJS=$ac_ltlibobjs
21273
21274
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21276 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21277 if test -n "$am_sleep_pid"; then
21278 # Hide warnings about reused PIDs.
21279 wait $am_sleep_pid 2>/dev/null
21280 fi
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21282 $as_echo "done" >&6; }
21283 if test -n "$EXEEXT"; then
21284 am__EXEEXT_TRUE=
21285 am__EXEEXT_FALSE='#'
21286 else
21287 am__EXEEXT_TRUE='#'
21288 am__EXEEXT_FALSE=
21289 fi
21290
21291 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21292 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21294 fi
21295 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21296 as_fn_error $? "conditional \"AMDEP\" was never defined.
21297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21298 fi
21299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21300 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21302 fi
21303 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
21304 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
21305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21306 fi
21307 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21308 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21310 fi
21311 if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
21312 as_fn_error $? "conditional \"BUILD_STATIC\" was never defined.
21313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21314 fi
21315
21316 if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
21317 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
21318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21319 fi
21320 if test -z "${TIFF_TOOLS_TRUE}" && test -z "${TIFF_TOOLS_FALSE}"; then
21321 as_fn_error $? "conditional \"TIFF_TOOLS\" was never defined.
21322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21323 fi
21324 if test -z "${TIFF_TESTS_TRUE}" && test -z "${TIFF_TESTS_FALSE}"; then
21325 as_fn_error $? "conditional \"TIFF_TESTS\" was never defined.
21326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21327 fi
21328 if test -z "${TIFF_CONTRIB_TRUE}" && test -z "${TIFF_CONTRIB_FALSE}"; then
21329 as_fn_error $? "conditional \"TIFF_CONTRIB\" was never defined.
21330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21331 fi
21332 if test -z "${TIFF_DOCS_TRUE}" && test -z "${TIFF_DOCS_FALSE}"; then
21333 as_fn_error $? "conditional \"TIFF_DOCS\" was never defined.
21334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21335 fi
21336 if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then
21337 as_fn_error $? "conditional \"HAVE_JPEG\" was never defined.
21338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21339 fi
21340 if test -z "${HAVE_JPEGTURBO_DUAL_MODE_8_12_TRUE}" && test -z "${HAVE_JPEGTURBO_DUAL_MODE_8_12_FALSE}"; then
21341 as_fn_error $? "conditional \"HAVE_JPEGTURBO_DUAL_MODE_8_12\" was never defined.
21342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21343 fi
21344 if test -z "${HAVE_JBIG_TRUE}" && test -z "${HAVE_JBIG_FALSE}"; then
21345 as_fn_error $? "conditional \"HAVE_JBIG\" was never defined.
21346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21347 fi
21348 if test -z "${HAVE_LERC_TRUE}" && test -z "${HAVE_LERC_FALSE}"; then
21349 as_fn_error $? "conditional \"HAVE_LERC\" was never defined.
21350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21351 fi
21352 if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
21353 as_fn_error $? "conditional \"HAVE_LZMA\" was never defined.
21354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21355 fi
21356 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
21357 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
21358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21359 fi
21360 if test -z "${HAVE_WEBP_TRUE}" && test -z "${HAVE_WEBP_FALSE}"; then
21361 as_fn_error $? "conditional \"HAVE_WEBP\" was never defined.
21362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21363 fi
21364 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
21365 as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
21366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21367 fi
21368 if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
21369 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
21370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21371 fi
21372 if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
21373 as_fn_error $? "conditional \"WIN32_IO\" was never defined.
21374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21375 fi
21376 if test -z "${SPHINX_TRUE}" && test -z "${SPHINX_FALSE}"; then
21377 as_fn_error $? "conditional \"SPHINX\" was never defined.
21378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21379 fi
21380
21381 : "${CONFIG_STATUS=./config.status}"
21382 ac_write_fail=0
21383 ac_clean_files_save=$ac_clean_files
21384 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21386 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21387 as_write_fail=0
21388 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21389 #! $SHELL
21390 # Generated by $as_me.
21391 # Run this file to recreate the current configuration.
21392 # Compiler output produced by configure, useful for debugging
21393 # configure, is in config.log if it exists.
21394
21395 debug=false
21396 ac_cs_recheck=false
21397 ac_cs_silent=false
21398
21399 SHELL=\${CONFIG_SHELL-$SHELL}
21400 export SHELL
21401 _ASEOF
21402 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21403 ## -------------------- ##
21404 ## M4sh Initialization. ##
21405 ## -------------------- ##
21406
21407 # Be more Bourne compatible
21408 DUALCASE=1; export DUALCASE # for MKS sh
21409 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21410 emulate sh
21411 NULLCMD=:
21412 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21413 # is contrary to our usage. Disable this feature.
21414 alias -g '${1+"$@"}'='"$@"'
21415 setopt NO_GLOB_SUBST
21416 else
21417 case `(set -o) 2>/dev/null` in #(
21418 *posix*) :
21419 set -o posix ;; #(
21420 *) :
21421 ;;
21422 esac
21423 fi
21424
21425
21426 as_nl='
21427 '
21428 export as_nl
21429 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21430 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21433 # Prefer a ksh shell builtin over an external printf program on Solaris,
21434 # but without wasting forks for bash or zsh.
21435 if test -z "$BASH_VERSION$ZSH_VERSION" \
21436 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21437 as_echo='print -r --'
21438 as_echo_n='print -rn --'
21439 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21440 as_echo='printf %s\n'
21441 as_echo_n='printf %s'
21442 else
21443 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21444 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21445 as_echo_n='/usr/ucb/echo -n'
21446 else
21447 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21448 as_echo_n_body='eval
21449 arg=$1;
21450 case $arg in #(
21451 *"$as_nl"*)
21452 expr "X$arg" : "X\\(.*\\)$as_nl";
21453 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21454 esac;
21455 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21456 '
21457 export as_echo_n_body
21458 as_echo_n='sh -c $as_echo_n_body as_echo'
21459 fi
21460 export as_echo_body
21461 as_echo='sh -c $as_echo_body as_echo'
21462 fi
21463
21464 # The user is always right.
21465 if test "${PATH_SEPARATOR+set}" != set; then
21466 PATH_SEPARATOR=:
21467 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21468 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21469 PATH_SEPARATOR=';'
21470 }
21471 fi
21472
21473
21474 # IFS
21475 # We need space, tab and new line, in precisely that order. Quoting is
21476 # there to prevent editors from complaining about space-tab.
21477 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21478 # splitting by setting IFS to empty value.)
21479 IFS=" "" $as_nl"
21480
21481 # Find who we are. Look in the path if we contain no directory separator.
21482 as_myself=
21483 case $0 in #((
21484 *[\\/]* ) as_myself=$0 ;;
21485 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21486 for as_dir in $PATH
21487 do
21488 IFS=$as_save_IFS
21489 test -z "$as_dir" && as_dir=.
21490 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21491 done
21492 IFS=$as_save_IFS
21493
21494 ;;
21495 esac
21496 # We did not find ourselves, most probably we were run as `sh COMMAND'
21497 # in which case we are not to be found in the path.
21498 if test "x$as_myself" = x; then
21499 as_myself=$0
21500 fi
21501 if test ! -f "$as_myself"; then
21502 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21503 exit 1
21504 fi
21505
21506 # Unset variables that we do not need and which cause bugs (e.g. in
21507 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21508 # suppresses any "Segmentation fault" message there. '((' could
21509 # trigger a bug in pdksh 5.2.14.
21510 for as_var in BASH_ENV ENV MAIL MAILPATH
21511 do eval test x\${$as_var+set} = xset \
21512 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21513 done
21514 PS1='$ '
21515 PS2='> '
21516 PS4='+ '
21517
21518 # NLS nuisances.
21519 LC_ALL=C
21520 export LC_ALL
21521 LANGUAGE=C
21522 export LANGUAGE
21523
21524 # CDPATH.
21525 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21526
21527
21528 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21529 # ----------------------------------------
21530 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21531 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21532 # script with STATUS, using 1 if that was 0.
21533 as_fn_error ()
21534 {
21535 as_status=$1; test $as_status -eq 0 && as_status=1
21536 if test "$4"; then
21537 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21538 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21539 fi
21540 $as_echo "$as_me: error: $2" >&2
21541 as_fn_exit $as_status
21542 } # as_fn_error
21543
21544
21545 # as_fn_set_status STATUS
21546 # -----------------------
21547 # Set $? to STATUS, without forking.
21548 as_fn_set_status ()
21549 {
21550 return $1
21551 } # as_fn_set_status
21552
21553 # as_fn_exit STATUS
21554 # -----------------
21555 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21556 as_fn_exit ()
21557 {
21558 set +e
21559 as_fn_set_status $1
21560 exit $1
21561 } # as_fn_exit
21562
21563 # as_fn_unset VAR
21564 # ---------------
21565 # Portably unset VAR.
21566 as_fn_unset ()
21567 {
21568 { eval $1=; unset $1;}
21569 }
21570 as_unset=as_fn_unset
21571 # as_fn_append VAR VALUE
21572 # ----------------------
21573 # Append the text in VALUE to the end of the definition contained in VAR. Take
21574 # advantage of any shell optimizations that allow amortized linear growth over
21575 # repeated appends, instead of the typical quadratic growth present in naive
21576 # implementations.
21577 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21578 eval 'as_fn_append ()
21579 {
21580 eval $1+=\$2
21581 }'
21582 else
21583 as_fn_append ()
21584 {
21585 eval $1=\$$1\$2
21586 }
21587 fi # as_fn_append
21588
21589 # as_fn_arith ARG...
21590 # ------------------
21591 # Perform arithmetic evaluation on the ARGs, and store the result in the
21592 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21593 # must be portable across $(()) and expr.
21594 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21595 eval 'as_fn_arith ()
21596 {
21597 as_val=$(( $* ))
21598 }'
21599 else
21600 as_fn_arith ()
21601 {
21602 as_val=`expr "$@" || test $? -eq 1`
21603 }
21604 fi # as_fn_arith
21605
21606
21607 if expr a : '\(a\)' >/dev/null 2>&1 &&
21608 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21609 as_expr=expr
21610 else
21611 as_expr=false
21612 fi
21613
21614 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21615 as_basename=basename
21616 else
21617 as_basename=false
21618 fi
21619
21620 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21621 as_dirname=dirname
21622 else
21623 as_dirname=false
21624 fi
21625
21626 as_me=`$as_basename -- "$0" ||
21627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21628 X"$0" : 'X\(//\)$' \| \
21629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21630 $as_echo X/"$0" |
21631 sed '/^.*\/\([^/][^/]*\)\/*$/{
21632 s//\1/
21633 q
21634 }
21635 /^X\/\(\/\/\)$/{
21636 s//\1/
21637 q
21638 }
21639 /^X\/\(\/\).*/{
21640 s//\1/
21641 q
21642 }
21643 s/.*/./; q'`
21644
21645 # Avoid depending upon Character Ranges.
21646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21649 as_cr_digits='0123456789'
21650 as_cr_alnum=$as_cr_Letters$as_cr_digits
21651
21652 ECHO_C= ECHO_N= ECHO_T=
21653 case `echo -n x` in #(((((
21654 -n*)
21655 case `echo 'xy\c'` in
21656 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21657 xy) ECHO_C='\c';;
21658 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21659 ECHO_T=' ';;
21660 esac;;
21661 *)
21662 ECHO_N='-n';;
21663 esac
21664
21665 rm -f conf$$ conf$$.exe conf$$.file
21666 if test -d conf$$.dir; then
21667 rm -f conf$$.dir/conf$$.file
21668 else
21669 rm -f conf$$.dir
21670 mkdir conf$$.dir 2>/dev/null
21671 fi
21672 if (echo >conf$$.file) 2>/dev/null; then
21673 if ln -s conf$$.file conf$$ 2>/dev/null; then
21674 as_ln_s='ln -s'
21675 # ... but there are two gotchas:
21676 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21677 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21678 # In both cases, we have to default to `cp -pR'.
21679 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21680 as_ln_s='cp -pR'
21681 elif ln conf$$.file conf$$ 2>/dev/null; then
21682 as_ln_s=ln
21683 else
21684 as_ln_s='cp -pR'
21685 fi
21686 else
21687 as_ln_s='cp -pR'
21688 fi
21689 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21690 rmdir conf$$.dir 2>/dev/null
21691
21692
21693 # as_fn_mkdir_p
21694 # -------------
21695 # Create "$as_dir" as a directory, including parents if necessary.
21696 as_fn_mkdir_p ()
21697 {
21698
21699 case $as_dir in #(
21700 -*) as_dir=./$as_dir;;
21701 esac
21702 test -d "$as_dir" || eval $as_mkdir_p || {
21703 as_dirs=
21704 while :; do
21705 case $as_dir in #(
21706 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21707 *) as_qdir=$as_dir;;
21708 esac
21709 as_dirs="'$as_qdir' $as_dirs"
21710 as_dir=`$as_dirname -- "$as_dir" ||
21711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21712 X"$as_dir" : 'X\(//\)[^/]' \| \
21713 X"$as_dir" : 'X\(//\)$' \| \
21714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21715 $as_echo X"$as_dir" |
21716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21717 s//\1/
21718 q
21719 }
21720 /^X\(\/\/\)[^/].*/{
21721 s//\1/
21722 q
21723 }
21724 /^X\(\/\/\)$/{
21725 s//\1/
21726 q
21727 }
21728 /^X\(\/\).*/{
21729 s//\1/
21730 q
21731 }
21732 s/.*/./; q'`
21733 test -d "$as_dir" && break
21734 done
21735 test -z "$as_dirs" || eval "mkdir $as_dirs"
21736 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21737
21738
21739 } # as_fn_mkdir_p
21740 if mkdir -p . 2>/dev/null; then
21741 as_mkdir_p='mkdir -p "$as_dir"'
21742 else
21743 test -d ./-p && rmdir ./-p
21744 as_mkdir_p=false
21745 fi
21746
21747
21748 # as_fn_executable_p FILE
21749 # -----------------------
21750 # Test if FILE is an executable regular file.
21751 as_fn_executable_p ()
21752 {
21753 test -f "$1" && test -x "$1"
21754 } # as_fn_executable_p
21755 as_test_x='test -x'
21756 as_executable_p=as_fn_executable_p
21757
21758 # Sed expression to map a string onto a valid CPP name.
21759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21760
21761 # Sed expression to map a string onto a valid variable name.
21762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21763
21764
21765 exec 6>&1
21766 ## ----------------------------------- ##
21767 ## Main body of $CONFIG_STATUS script. ##
21768 ## ----------------------------------- ##
21769 _ASEOF
21770 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21771
21772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21773 # Save the log message, to keep $0 and so on meaningful, and to
21774 # report actual input values of CONFIG_FILES etc. instead of their
21775 # values after options handling.
21776 ac_log="
21777 This file was extended by LibTIFF Software $as_me 4.7.1, which was
21778 generated by GNU Autoconf 2.69. Invocation command line was
21779
21780 CONFIG_FILES = $CONFIG_FILES
21781 CONFIG_HEADERS = $CONFIG_HEADERS
21782 CONFIG_LINKS = $CONFIG_LINKS
21783 CONFIG_COMMANDS = $CONFIG_COMMANDS
21784 $ $0 $@
21785
21786 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21787 "
21788
21789 _ACEOF
21790
21791 case $ac_config_files in *"
21792 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21793 esac
21794
21795 case $ac_config_headers in *"
21796 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21797 esac
21798
21799
21800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21801 # Files that config.status was made for.
21802 config_files="$ac_config_files"
21803 config_headers="$ac_config_headers"
21804 config_commands="$ac_config_commands"
21805
21806 _ACEOF
21807
21808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21809 ac_cs_usage="\
21810 \`$as_me' instantiates files and other configuration actions
21811 from templates according to the current configuration. Unless the files
21812 and actions are specified as TAGs, all are instantiated by default.
21813
21814 Usage: $0 [OPTION]... [TAG]...
21815
21816 -h, --help print this help, then exit
21817 -V, --version print version number and configuration settings, then exit
21818 --config print configuration, then exit
21819 -q, --quiet, --silent
21820 do not print progress messages
21821 -d, --debug don't remove temporary files
21822 --recheck update $as_me by reconfiguring in the same conditions
21823 --file=FILE[:TEMPLATE]
21824 instantiate the configuration file FILE
21825 --header=FILE[:TEMPLATE]
21826 instantiate the configuration header FILE
21827
21828 Configuration files:
21829 $config_files
21830
21831 Configuration headers:
21832 $config_headers
21833
21834 Configuration commands:
21835 $config_commands
21836
21837 Report bugs to <[email protected]>."
21838
21839 _ACEOF
21840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21841 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21842 ac_cs_version="\\
21843 LibTIFF Software config.status 4.7.1
21844 configured by $0, generated by GNU Autoconf 2.69,
21845 with options \\"\$ac_cs_config\\"
21846
21847 Copyright (C) 2012 Free Software Foundation, Inc.
21848 This config.status script is free software; the Free Software Foundation
21849 gives unlimited permission to copy, distribute and modify it."
21850
21851 ac_pwd='$ac_pwd'
21852 srcdir='$srcdir'
21853 INSTALL='$INSTALL'
21854 MKDIR_P='$MKDIR_P'
21855 AWK='$AWK'
21856 test -n "\$AWK" || AWK=awk
21857 _ACEOF
21858
21859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21860 # The default lists apply if the user does not specify any file.
21861 ac_need_defaults=:
21862 while test $# != 0
21863 do
21864 case $1 in
21865 --*=?*)
21866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21867 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21868 ac_shift=:
21869 ;;
21870 --*=)
21871 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21872 ac_optarg=
21873 ac_shift=:
21874 ;;
21875 *)
21876 ac_option=$1
21877 ac_optarg=$2
21878 ac_shift=shift
21879 ;;
21880 esac
21881
21882 case $ac_option in
21883 # Handling of the options.
21884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21885 ac_cs_recheck=: ;;
21886 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21887 $as_echo "$ac_cs_version"; exit ;;
21888 --config | --confi | --conf | --con | --co | --c )
21889 $as_echo "$ac_cs_config"; exit ;;
21890 --debug | --debu | --deb | --de | --d | -d )
21891 debug=: ;;
21892 --file | --fil | --fi | --f )
21893 $ac_shift
21894 case $ac_optarg in
21895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21896 '') as_fn_error $? "missing file argument" ;;
21897 esac
21898 as_fn_append CONFIG_FILES " '$ac_optarg'"
21899 ac_need_defaults=false;;
21900 --header | --heade | --head | --hea )
21901 $ac_shift
21902 case $ac_optarg in
21903 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21904 esac
21905 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21906 ac_need_defaults=false;;
21907 --he | --h)
21908 # Conflict between --help and --header
21909 as_fn_error $? "ambiguous option: \`$1'
21910 Try \`$0 --help' for more information.";;
21911 --help | --hel | -h )
21912 $as_echo "$ac_cs_usage"; exit ;;
21913 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21914 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21915 ac_cs_silent=: ;;
21916
21917 # This is an error.
21918 -*) as_fn_error $? "unrecognized option: \`$1'
21919 Try \`$0 --help' for more information." ;;
21920
21921 *) as_fn_append ac_config_targets " $1"
21922 ac_need_defaults=false ;;
21923
21924 esac
21925 shift
21926 done
21927
21928 ac_configure_extra_args=
21929
21930 if $ac_cs_silent; then
21931 exec 6>/dev/null
21932 ac_configure_extra_args="$ac_configure_extra_args --silent"
21933 fi
21934
21935 _ACEOF
21936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21937 if \$ac_cs_recheck; then
21938 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21939 shift
21940 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21941 CONFIG_SHELL='$SHELL'
21942 export CONFIG_SHELL
21943 exec "\$@"
21944 fi
21945
21946 _ACEOF
21947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21948 exec 5>>config.log
21949 {
21950 echo
21951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21952 ## Running $as_me. ##
21953 _ASBOX
21954 $as_echo "$ac_log"
21955 } >&5
21956
21957 _ACEOF
21958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21959 #
21960 # INIT-COMMANDS
21961 #
21962 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21963
21964
21965 # The HP-UX ksh and POSIX shell print the target directory to stdout
21966 # if CDPATH is set.
21967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21968
21969 sed_quote_subst='$sed_quote_subst'
21970 double_quote_subst='$double_quote_subst'
21971 delay_variable_subst='$delay_variable_subst'
21972 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21973 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21974 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21975 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21976 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21977 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21978 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21979 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21980 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21981 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21982 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21983 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21984 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21985 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21986 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21987 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21988 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21989 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21990 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21991 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21992 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21993 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21994 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21995 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21996 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21997 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21998 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21999 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22000 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22001 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22002 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22003 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22004 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22005 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22006 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22007 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22008 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22009 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22010 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22011 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22012 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22013 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22014 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22015 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22016 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22017 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22018 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22019 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22020 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22021 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22022 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22023 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22024 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22025 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22026 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22027 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22028 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22029 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22030 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22031 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"`'
22032 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22033 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22034 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22035 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22039 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22040 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22044 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22045 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22046 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22047 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22048 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22049 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22050 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22051 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22052 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22053 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22054 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22055 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22056 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22057 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22058 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22059 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22060 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22061 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22062 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22063 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22064 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22065 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22066 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22067 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22068 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22069 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22070 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22071 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22072 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22073 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22074 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22075 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22076 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22077 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22078 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22079 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22080 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22081 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22082 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22083 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22084 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22085 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22086 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22087 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22088 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22089 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22090 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22091 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22092 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22093 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22094 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22095 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22096 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22097 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22098 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22099 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22100 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22101 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22102 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22103 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22104 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22105 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22106 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22107 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22108 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22109 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22110 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22111 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22112 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22113 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22114 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22115 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22116 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22117 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22118 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22119 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22120 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22121 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22122 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22123 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22124 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22125 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22126 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22127 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22128 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22129 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22130 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22131 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22132 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22133 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22134 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22135 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22136 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22137 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22138 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22139 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22140 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22141 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22142 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22143 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22144 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22145 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22146 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22147 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22148 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22149 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22150 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22151 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22152 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22153 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22154 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22155 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22156 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22157 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22158 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22159 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22160 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22161 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22162
22163 LTCC='$LTCC'
22164 LTCFLAGS='$LTCFLAGS'
22165 compiler='$compiler_DEFAULT'
22166
22167 # A function that is used when there is no print builtin or printf.
22168 func_fallback_echo ()
22169 {
22170 eval 'cat <<_LTECHO_EOF
22171 \$1
22172 _LTECHO_EOF'
22173 }
22174
22175 # Quote evaled strings.
22176 for var in AS \
22177 DLLTOOL \
22178 OBJDUMP \
22179 SHELL \
22180 ECHO \
22181 PATH_SEPARATOR \
22182 SED \
22183 GREP \
22184 EGREP \
22185 FGREP \
22186 LD \
22187 NM \
22188 LN_S \
22189 lt_SP2NL \
22190 lt_NL2SP \
22191 reload_flag \
22192 deplibs_check_method \
22193 file_magic_cmd \
22194 file_magic_glob \
22195 want_nocaseglob \
22196 sharedlib_from_linklib_cmd \
22197 AR \
22198 AR_FLAGS \
22199 archiver_list_spec \
22200 STRIP \
22201 RANLIB \
22202 CC \
22203 CFLAGS \
22204 compiler \
22205 lt_cv_sys_global_symbol_pipe \
22206 lt_cv_sys_global_symbol_to_cdecl \
22207 lt_cv_sys_global_symbol_to_import \
22208 lt_cv_sys_global_symbol_to_c_name_address \
22209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22210 lt_cv_nm_interface \
22211 nm_file_list_spec \
22212 lt_cv_truncate_bin \
22213 lt_prog_compiler_no_builtin_flag \
22214 lt_prog_compiler_pic \
22215 lt_prog_compiler_wl \
22216 lt_prog_compiler_static \
22217 lt_cv_prog_compiler_c_o \
22218 need_locks \
22219 MANIFEST_TOOL \
22220 DSYMUTIL \
22221 NMEDIT \
22222 LIPO \
22223 OTOOL \
22224 OTOOL64 \
22225 shrext_cmds \
22226 export_dynamic_flag_spec \
22227 whole_archive_flag_spec \
22228 compiler_needs_object \
22229 with_gnu_ld \
22230 allow_undefined_flag \
22231 no_undefined_flag \
22232 hardcode_libdir_flag_spec \
22233 hardcode_libdir_separator \
22234 exclude_expsyms \
22235 include_expsyms \
22236 file_list_spec \
22237 variables_saved_for_relink \
22238 libname_spec \
22239 library_names_spec \
22240 soname_spec \
22241 install_override_mode \
22242 finish_eval \
22243 old_striplib \
22244 striplib \
22245 compiler_lib_search_dirs \
22246 predep_objects \
22247 postdep_objects \
22248 predeps \
22249 postdeps \
22250 compiler_lib_search_path \
22251 LD_CXX \
22252 reload_flag_CXX \
22253 compiler_CXX \
22254 lt_prog_compiler_no_builtin_flag_CXX \
22255 lt_prog_compiler_pic_CXX \
22256 lt_prog_compiler_wl_CXX \
22257 lt_prog_compiler_static_CXX \
22258 lt_cv_prog_compiler_c_o_CXX \
22259 export_dynamic_flag_spec_CXX \
22260 whole_archive_flag_spec_CXX \
22261 compiler_needs_object_CXX \
22262 with_gnu_ld_CXX \
22263 allow_undefined_flag_CXX \
22264 no_undefined_flag_CXX \
22265 hardcode_libdir_flag_spec_CXX \
22266 hardcode_libdir_separator_CXX \
22267 exclude_expsyms_CXX \
22268 include_expsyms_CXX \
22269 file_list_spec_CXX \
22270 compiler_lib_search_dirs_CXX \
22271 predep_objects_CXX \
22272 postdep_objects_CXX \
22273 predeps_CXX \
22274 postdeps_CXX \
22275 compiler_lib_search_path_CXX; do
22276 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22277 *[\\\\\\\`\\"\\\$]*)
22278 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22279 ;;
22280 *)
22281 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22282 ;;
22283 esac
22284 done
22285
22286 # Double-quote double-evaled strings.
22287 for var in reload_cmds \
22288 old_postinstall_cmds \
22289 old_postuninstall_cmds \
22290 old_archive_cmds \
22291 extract_expsyms_cmds \
22292 old_archive_from_new_cmds \
22293 old_archive_from_expsyms_cmds \
22294 archive_cmds \
22295 archive_expsym_cmds \
22296 module_cmds \
22297 module_expsym_cmds \
22298 export_symbols_cmds \
22299 prelink_cmds \
22300 postlink_cmds \
22301 postinstall_cmds \
22302 postuninstall_cmds \
22303 finish_cmds \
22304 sys_lib_search_path_spec \
22305 configure_time_dlsearch_path \
22306 configure_time_lt_sys_library_path \
22307 reload_cmds_CXX \
22308 old_archive_cmds_CXX \
22309 old_archive_from_new_cmds_CXX \
22310 old_archive_from_expsyms_cmds_CXX \
22311 archive_cmds_CXX \
22312 archive_expsym_cmds_CXX \
22313 module_cmds_CXX \
22314 module_expsym_cmds_CXX \
22315 export_symbols_cmds_CXX \
22316 prelink_cmds_CXX \
22317 postlink_cmds_CXX; do
22318 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22319 *[\\\\\\\`\\"\\\$]*)
22320 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22321 ;;
22322 *)
22323 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22324 ;;
22325 esac
22326 done
22327
22328 ac_aux_dir='$ac_aux_dir'
22329
22330 # See if we are running on zsh, and set the options that allow our
22331 # commands through without removal of \ escapes INIT.
22332 if test -n "\${ZSH_VERSION+set}"; then
22333 setopt NO_GLOB_SUBST
22334 fi
22335
22336
22337 PACKAGE='$PACKAGE'
22338 VERSION='$VERSION'
22339 RM='$RM'
22340 ofile='$ofile'
22341
22342
22343
22344
22345
22346
22347 _ACEOF
22348
22349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22350
22351 # Handling of arguments.
22352 for ac_config_target in $ac_config_targets
22353 do
22354 case $ac_config_target in
22355 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22356 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22357 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
22358 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
22359 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
22360 "port/libport_config.h") CONFIG_HEADERS="$CONFIG_HEADERS port/libport_config.h" ;;
22361 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22362 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
22363 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
22364 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
22365 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
22366 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
22367 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
22368 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
22369 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
22370 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
22371 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
22372 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
22373 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
22374 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22375 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
22376 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
22377 "libtiff/tiffvers.h") CONFIG_FILES="$CONFIG_FILES libtiff/tiffvers.h" ;;
22378 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
22379 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22380 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22381
22382 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22383 esac
22384 done
22385
22386
22387 # If the user did not use the arguments to specify the items to instantiate,
22388 # then the envvar interface is used. Set only those that are not.
22389 # We use the long form for the default assignment because of an extremely
22390 # bizarre bug on SunOS 4.1.3.
22391 if $ac_need_defaults; then
22392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22395 fi
22396
22397 # Have a temporary directory for convenience. Make it in the build tree
22398 # simply because there is no reason against having it here, and in addition,
22399 # creating and moving files from /tmp can sometimes cause problems.
22400 # Hook for its removal unless debugging.
22401 # Note that there is a small window in which the directory will not be cleaned:
22402 # after its creation but before its name has been assigned to `$tmp'.
22403 $debug ||
22404 {
22405 tmp= ac_tmp=
22406 trap 'exit_status=$?
22407 : "${ac_tmp:=$tmp}"
22408 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22409 ' 0
22410 trap 'as_fn_exit 1' 1 2 13 15
22411 }
22412 # Create a (secure) tmp directory for tmp files.
22413
22414 {
22415 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22416 test -d "$tmp"
22417 } ||
22418 {
22419 tmp=./conf$$-$RANDOM
22420 (umask 077 && mkdir "$tmp")
22421 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22422 ac_tmp=$tmp
22423
22424 # Set up the scripts for CONFIG_FILES section.
22425 # No need to generate them if there are no CONFIG_FILES.
22426 # This happens for instance with `./config.status config.h'.
22427 if test -n "$CONFIG_FILES"; then
22428
22429
22430 ac_cr=`echo X | tr X '\015'`
22431 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22432 # But we know of no other shell where ac_cr would be empty at this
22433 # point, so we can use a bashism as a fallback.
22434 if test "x$ac_cr" = x; then
22435 eval ac_cr=\$\'\\r\'
22436 fi
22437 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22438 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22439 ac_cs_awk_cr='\\r'
22440 else
22441 ac_cs_awk_cr=$ac_cr
22442 fi
22443
22444 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22445 _ACEOF
22446
22447
22448 {
22449 echo "cat >conf$$subs.awk <<_ACEOF" &&
22450 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22451 echo "_ACEOF"
22452 } >conf$$subs.sh ||
22453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22454 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22455 ac_delim='%!_!# '
22456 for ac_last_try in false false false false false :; do
22457 . ./conf$$subs.sh ||
22458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22459
22460 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22461 if test $ac_delim_n = $ac_delim_num; then
22462 break
22463 elif $ac_last_try; then
22464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22465 else
22466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22467 fi
22468 done
22469 rm -f conf$$subs.sh
22470
22471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22472 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22473 _ACEOF
22474 sed -n '
22475 h
22476 s/^/S["/; s/!.*/"]=/
22477 p
22478 g
22479 s/^[^!]*!//
22480 :repl
22481 t repl
22482 s/'"$ac_delim"'$//
22483 t delim
22484 :nl
22485 h
22486 s/\(.\{148\}\)..*/\1/
22487 t more1
22488 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22489 p
22490 n
22491 b repl
22492 :more1
22493 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22494 p
22495 g
22496 s/.\{148\}//
22497 t nl
22498 :delim
22499 h
22500 s/\(.\{148\}\)..*/\1/
22501 t more2
22502 s/["\\]/\\&/g; s/^/"/; s/$/"/
22503 p
22504 b
22505 :more2
22506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22507 p
22508 g
22509 s/.\{148\}//
22510 t delim
22511 ' <conf$$subs.awk | sed '
22512 /^[^""]/{
22513 N
22514 s/\n//
22515 }
22516 ' >>$CONFIG_STATUS || ac_write_fail=1
22517 rm -f conf$$subs.awk
22518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22519 _ACAWK
22520 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22521 for (key in S) S_is_set[key] = 1
22522 FS = ""
22523
22524 }
22525 {
22526 line = $ 0
22527 nfields = split(line, field, "@")
22528 substed = 0
22529 len = length(field[1])
22530 for (i = 2; i < nfields; i++) {
22531 key = field[i]
22532 keylen = length(key)
22533 if (S_is_set[key]) {
22534 value = S[key]
22535 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22536 len += length(value) + length(field[++i])
22537 substed = 1
22538 } else
22539 len += 1 + keylen
22540 }
22541
22542 print line
22543 }
22544
22545 _ACAWK
22546 _ACEOF
22547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22548 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22549 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22550 else
22551 cat
22552 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22553 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22554 _ACEOF
22555
22556 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22557 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22558 # trailing colons and then remove the whole line if VPATH becomes empty
22559 # (actually we leave an empty line to preserve line numbers).
22560 if test "x$srcdir" = x.; then
22561 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22562 h
22563 s///
22564 s/^/:/
22565 s/[ ]*$/:/
22566 s/:\$(srcdir):/:/g
22567 s/:\${srcdir}:/:/g
22568 s/:@srcdir@:/:/g
22569 s/^:*//
22570 s/:*$//
22571 x
22572 s/\(=[ ]*\).*/\1/
22573 G
22574 s/\n//
22575 s/^[^=]*=[ ]*$//
22576 }'
22577 fi
22578
22579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22580 fi # test -n "$CONFIG_FILES"
22581
22582 # Set up the scripts for CONFIG_HEADERS section.
22583 # No need to generate them if there are no CONFIG_HEADERS.
22584 # This happens for instance with `./config.status Makefile'.
22585 if test -n "$CONFIG_HEADERS"; then
22586 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22587 BEGIN {
22588 _ACEOF
22589
22590 # Transform confdefs.h into an awk script `defines.awk', embedded as
22591 # here-document in config.status, that substitutes the proper values into
22592 # config.h.in to produce config.h.
22593
22594 # Create a delimiter string that does not exist in confdefs.h, to ease
22595 # handling of long lines.
22596 ac_delim='%!_!# '
22597 for ac_last_try in false false :; do
22598 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22599 if test -z "$ac_tt"; then
22600 break
22601 elif $ac_last_try; then
22602 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22603 else
22604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22605 fi
22606 done
22607
22608 # For the awk script, D is an array of macro values keyed by name,
22609 # likewise P contains macro parameters if any. Preserve backslash
22610 # newline sequences.
22611
22612 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22613 sed -n '
22614 s/.\{148\}/&'"$ac_delim"'/g
22615 t rset
22616 :rset
22617 s/^[ ]*#[ ]*define[ ][ ]*/ /
22618 t def
22619 d
22620 :def
22621 s/\\$//
22622 t bsnl
22623 s/["\\]/\\&/g
22624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22625 D["\1"]=" \3"/p
22626 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22627 d
22628 :bsnl
22629 s/["\\]/\\&/g
22630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22631 D["\1"]=" \3\\\\\\n"\\/p
22632 t cont
22633 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22634 t cont
22635 d
22636 :cont
22637 n
22638 s/.\{148\}/&'"$ac_delim"'/g
22639 t clear
22640 :clear
22641 s/\\$//
22642 t bsnlc
22643 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22644 d
22645 :bsnlc
22646 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22647 b cont
22648 ' <confdefs.h | sed '
22649 s/'"$ac_delim"'/"\\\
22650 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22651
22652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22653 for (key in D) D_is_set[key] = 1
22654 FS = ""
22655 }
22656 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22657 line = \$ 0
22658 split(line, arg, " ")
22659 if (arg[1] == "#") {
22660 defundef = arg[2]
22661 mac1 = arg[3]
22662 } else {
22663 defundef = substr(arg[1], 2)
22664 mac1 = arg[2]
22665 }
22666 split(mac1, mac2, "(") #)
22667 macro = mac2[1]
22668 prefix = substr(line, 1, index(line, defundef) - 1)
22669 if (D_is_set[macro]) {
22670 # Preserve the white space surrounding the "#".
22671 print prefix "define", macro P[macro] D[macro]
22672 next
22673 } else {
22674 # Replace #undef with comments. This is necessary, for example,
22675 # in the case of _POSIX_SOURCE, which is predefined and required
22676 # on some systems where configure will not decide to define it.
22677 if (defundef == "undef") {
22678 print "/*", prefix defundef, macro, "*/"
22679 next
22680 }
22681 }
22682 }
22683 { print }
22684 _ACAWK
22685 _ACEOF
22686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22687 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22688 fi # test -n "$CONFIG_HEADERS"
22689
22690
22691 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22692 shift
22693 for ac_tag
22694 do
22695 case $ac_tag in
22696 :[FHLC]) ac_mode=$ac_tag; continue;;
22697 esac
22698 case $ac_mode$ac_tag in
22699 :[FHL]*:*);;
22700 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22701 :[FH]-) ac_tag=-:-;;
22702 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22703 esac
22704 ac_save_IFS=$IFS
22705 IFS=:
22706 set x $ac_tag
22707 IFS=$ac_save_IFS
22708 shift
22709 ac_file=$1
22710 shift
22711
22712 case $ac_mode in
22713 :L) ac_source=$1;;
22714 :[FH])
22715 ac_file_inputs=
22716 for ac_f
22717 do
22718 case $ac_f in
22719 -) ac_f="$ac_tmp/stdin";;
22720 *) # Look for the file first in the build tree, then in the source tree
22721 # (if the path is not absolute). The absolute path cannot be DOS-style,
22722 # because $ac_f cannot contain `:'.
22723 test -f "$ac_f" ||
22724 case $ac_f in
22725 [\\/$]*) false;;
22726 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22727 esac ||
22728 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22729 esac
22730 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22731 as_fn_append ac_file_inputs " '$ac_f'"
22732 done
22733
22734 # Let's still pretend it is `configure' which instantiates (i.e., don't
22735 # use $as_me), people would be surprised to read:
22736 # /* config.h. Generated by config.status. */
22737 configure_input='Generated from '`
22738 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22739 `' by configure.'
22740 if test x"$ac_file" != x-; then
22741 configure_input="$ac_file. $configure_input"
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22743 $as_echo "$as_me: creating $ac_file" >&6;}
22744 fi
22745 # Neutralize special characters interpreted by sed in replacement strings.
22746 case $configure_input in #(
22747 *\&* | *\|* | *\\* )
22748 ac_sed_conf_input=`$as_echo "$configure_input" |
22749 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22750 *) ac_sed_conf_input=$configure_input;;
22751 esac
22752
22753 case $ac_tag in
22754 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22756 esac
22757 ;;
22758 esac
22759
22760 ac_dir=`$as_dirname -- "$ac_file" ||
22761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22762 X"$ac_file" : 'X\(//\)[^/]' \| \
22763 X"$ac_file" : 'X\(//\)$' \| \
22764 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22765 $as_echo X"$ac_file" |
22766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22767 s//\1/
22768 q
22769 }
22770 /^X\(\/\/\)[^/].*/{
22771 s//\1/
22772 q
22773 }
22774 /^X\(\/\/\)$/{
22775 s//\1/
22776 q
22777 }
22778 /^X\(\/\).*/{
22779 s//\1/
22780 q
22781 }
22782 s/.*/./; q'`
22783 as_dir="$ac_dir"; as_fn_mkdir_p
22784 ac_builddir=.
22785
22786 case "$ac_dir" in
22787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22788 *)
22789 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22790 # A ".." for each directory in $ac_dir_suffix.
22791 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22792 case $ac_top_builddir_sub in
22793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22795 esac ;;
22796 esac
22797 ac_abs_top_builddir=$ac_pwd
22798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22799 # for backward compatibility:
22800 ac_top_builddir=$ac_top_build_prefix
22801
22802 case $srcdir in
22803 .) # We are building in place.
22804 ac_srcdir=.
22805 ac_top_srcdir=$ac_top_builddir_sub
22806 ac_abs_top_srcdir=$ac_pwd ;;
22807 [\\/]* | ?:[\\/]* ) # Absolute name.
22808 ac_srcdir=$srcdir$ac_dir_suffix;
22809 ac_top_srcdir=$srcdir
22810 ac_abs_top_srcdir=$srcdir ;;
22811 *) # Relative name.
22812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22813 ac_top_srcdir=$ac_top_build_prefix$srcdir
22814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22815 esac
22816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22817
22818
22819 case $ac_mode in
22820 :F)
22821 #
22822 # CONFIG_FILE
22823 #
22824
22825 case $INSTALL in
22826 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22827 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22828 esac
22829 ac_MKDIR_P=$MKDIR_P
22830 case $MKDIR_P in
22831 [\\/$]* | ?:[\\/]* ) ;;
22832 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22833 esac
22834 _ACEOF
22835
22836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22837 # If the template does not know about datarootdir, expand it.
22838 # FIXME: This hack should be removed a few years after 2.60.
22839 ac_datarootdir_hack=; ac_datarootdir_seen=
22840 ac_sed_dataroot='
22841 /datarootdir/ {
22842 p
22843 q
22844 }
22845 /@datadir@/p
22846 /@docdir@/p
22847 /@infodir@/p
22848 /@localedir@/p
22849 /@mandir@/p'
22850 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22851 *datarootdir*) ac_datarootdir_seen=yes;;
22852 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22854 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22855 _ACEOF
22856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22857 ac_datarootdir_hack='
22858 s&@datadir@&$datadir&g
22859 s&@docdir@&$docdir&g
22860 s&@infodir@&$infodir&g
22861 s&@localedir@&$localedir&g
22862 s&@mandir@&$mandir&g
22863 s&\\\${datarootdir}&$datarootdir&g' ;;
22864 esac
22865 _ACEOF
22866
22867 # Neutralize VPATH when `$srcdir' = `.'.
22868 # Shell code in configure.ac might set extrasub.
22869 # FIXME: do we really want to maintain this feature?
22870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22871 ac_sed_extra="$ac_vpsub
22872 $extrasub
22873 _ACEOF
22874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22875 :t
22876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22877 s|@configure_input@|$ac_sed_conf_input|;t t
22878 s&@top_builddir@&$ac_top_builddir_sub&;t t
22879 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22880 s&@srcdir@&$ac_srcdir&;t t
22881 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22882 s&@top_srcdir@&$ac_top_srcdir&;t t
22883 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22884 s&@builddir@&$ac_builddir&;t t
22885 s&@abs_builddir@&$ac_abs_builddir&;t t
22886 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22887 s&@INSTALL@&$ac_INSTALL&;t t
22888 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22889 $ac_datarootdir_hack
22890 "
22891 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22892 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22893
22894 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22895 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22897 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22899 which seems to be undefined. Please make sure it is defined" >&5
22900 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22901 which seems to be undefined. Please make sure it is defined" >&2;}
22902
22903 rm -f "$ac_tmp/stdin"
22904 case $ac_file in
22905 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22906 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22907 esac \
22908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22909 ;;
22910 :H)
22911 #
22912 # CONFIG_HEADER
22913 #
22914 if test x"$ac_file" != x-; then
22915 {
22916 $as_echo "/* $configure_input */" \
22917 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22918 } >"$ac_tmp/config.h" \
22919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22920 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22922 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22923 else
22924 rm -f "$ac_file"
22925 mv "$ac_tmp/config.h" "$ac_file" \
22926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22927 fi
22928 else
22929 $as_echo "/* $configure_input */" \
22930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22931 || as_fn_error $? "could not create -" "$LINENO" 5
22932 fi
22933 # Compute "$ac_file"'s index in $config_headers.
22934 _am_arg="$ac_file"
22935 _am_stamp_count=1
22936 for _am_header in $config_headers :; do
22937 case $_am_header in
22938 $_am_arg | $_am_arg:* )
22939 break ;;
22940 * )
22941 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22942 esac
22943 done
22944 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22945 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22946 X"$_am_arg" : 'X\(//\)[^/]' \| \
22947 X"$_am_arg" : 'X\(//\)$' \| \
22948 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22949 $as_echo X"$_am_arg" |
22950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22951 s//\1/
22952 q
22953 }
22954 /^X\(\/\/\)[^/].*/{
22955 s//\1/
22956 q
22957 }
22958 /^X\(\/\/\)$/{
22959 s//\1/
22960 q
22961 }
22962 /^X\(\/\).*/{
22963 s//\1/
22964 q
22965 }
22966 s/.*/./; q'`/stamp-h$_am_stamp_count
22967 ;;
22968
22969 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22970 $as_echo "$as_me: executing $ac_file commands" >&6;}
22971 ;;
22972 esac
22973
22974
22975 case $ac_file$ac_mode in
22976 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22977 # Older Autoconf quotes --file arguments for eval, but not when files
22978 # are listed without --file. Let's play safe and only enable the eval
22979 # if we detect the quoting.
22980 # TODO: see whether this extra hack can be removed once we start
22981 # requiring Autoconf 2.70 or later.
22982 case $CONFIG_FILES in #(
22983 *\'*) :
22984 eval set x "$CONFIG_FILES" ;; #(
22985 *) :
22986 set x $CONFIG_FILES ;; #(
22987 *) :
22988 ;;
22989 esac
22990 shift
22991 # Used to flag and report bootstrapping failures.
22992 am_rc=0
22993 for am_mf
22994 do
22995 # Strip MF so we end up with the name of the file.
22996 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22997 # Check whether this is an Automake generated Makefile which includes
22998 # dependency-tracking related rules and includes.
22999 # Grep'ing the whole file directly is not great: AIX grep has a line
23000 # limit of 2048, but all sed's we know have understand at least 4000.
23001 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23002 || continue
23003 am_dirpart=`$as_dirname -- "$am_mf" ||
23004 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23005 X"$am_mf" : 'X\(//\)[^/]' \| \
23006 X"$am_mf" : 'X\(//\)$' \| \
23007 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23008 $as_echo X"$am_mf" |
23009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23010 s//\1/
23011 q
23012 }
23013 /^X\(\/\/\)[^/].*/{
23014 s//\1/
23015 q
23016 }
23017 /^X\(\/\/\)$/{
23018 s//\1/
23019 q
23020 }
23021 /^X\(\/\).*/{
23022 s//\1/
23023 q
23024 }
23025 s/.*/./; q'`
23026 am_filepart=`$as_basename -- "$am_mf" ||
23027 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23028 X"$am_mf" : 'X\(//\)$' \| \
23029 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23030 $as_echo X/"$am_mf" |
23031 sed '/^.*\/\([^/][^/]*\)\/*$/{
23032 s//\1/
23033 q
23034 }
23035 /^X\/\(\/\/\)$/{
23036 s//\1/
23037 q
23038 }
23039 /^X\/\(\/\).*/{
23040 s//\1/
23041 q
23042 }
23043 s/.*/./; q'`
23044 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23045 && sed -e '/# am--include-marker/d' "$am_filepart" \
23046 | $MAKE -f - am--depfiles" >&5
23047 (cd "$am_dirpart" \
23048 && sed -e '/# am--include-marker/d' "$am_filepart" \
23049 | $MAKE -f - am--depfiles) >&5 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } || am_rc=$?
23053 done
23054 if test $am_rc -ne 0; then
23055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23057 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23058 for automatic dependency tracking. Try re-running configure with the
23059 '--disable-dependency-tracking' option to at least be able to build
23060 the package (albeit without support for automatic dependency tracking).
23061 See \`config.log' for more details" "$LINENO" 5; }
23062 fi
23063 { am_dirpart=; unset am_dirpart;}
23064 { am_filepart=; unset am_filepart;}
23065 { am_mf=; unset am_mf;}
23066 { am_rc=; unset am_rc;}
23067 rm -f conftest-deps.mk
23068 }
23069 ;;
23070 "libtool":C)
23071
23072 # See if we are running on zsh, and set the options that allow our
23073 # commands through without removal of \ escapes.
23074 if test -n "${ZSH_VERSION+set}"; then
23075 setopt NO_GLOB_SUBST
23076 fi
23077
23078 cfgfile=${ofile}T
23079 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23080 $RM "$cfgfile"
23081
23082 cat <<_LT_EOF >> "$cfgfile"
23083 #! $SHELL
23084 # Generated automatically by $as_me ($PACKAGE) $VERSION
23085 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23086
23087 # Provide generalized library-building support services.
23088 # Written by Gordon Matzigkeit, 1996
23089
23090 # Copyright (C) 2014 Free Software Foundation, Inc.
23091 # This is free software; see the source for copying conditions. There is NO
23092 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23093
23094 # GNU Libtool is free software; you can redistribute it and/or modify
23095 # it under the terms of the GNU General Public License as published by
23096 # the Free Software Foundation; either version 2 of of the License, or
23097 # (at your option) any later version.
23098 #
23099 # As a special exception to the GNU General Public License, if you
23100 # distribute this file as part of a program or library that is built
23101 # using GNU Libtool, you may include this file under the same
23102 # distribution terms that you use for the rest of that program.
23103 #
23104 # GNU Libtool is distributed in the hope that it will be useful, but
23105 # WITHOUT ANY WARRANTY; without even the implied warranty of
23106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23107 # GNU General Public License for more details.
23108 #
23109 # You should have received a copy of the GNU General Public License
23110 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23111
23112
23113 # The names of the tagged configurations supported by this script.
23114 available_tags='CXX '
23115
23116 # Configured defaults for sys_lib_dlsearch_path munging.
23117 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23118
23119 # ### BEGIN LIBTOOL CONFIG
23120
23121 # Which release of libtool.m4 was used?
23122 macro_version=$macro_version
23123 macro_revision=$macro_revision
23124
23125 # Assembler program.
23126 AS=$lt_AS
23127
23128 # DLL creation program.
23129 DLLTOOL=$lt_DLLTOOL
23130
23131 # Object dumper program.
23132 OBJDUMP=$lt_OBJDUMP
23133
23134 # Whether or not to build shared libraries.
23135 build_libtool_libs=$enable_shared
23136
23137 # Whether or not to build static libraries.
23138 build_old_libs=$enable_static
23139
23140 # What type of objects to build.
23141 pic_mode=$pic_mode
23142
23143 # Whether or not to optimize for fast installation.
23144 fast_install=$enable_fast_install
23145
23146 # Shared archive member basename,for filename based shared library versioning on AIX.
23147 shared_archive_member_spec=$shared_archive_member_spec
23148
23149 # Shell to use when invoking shell scripts.
23150 SHELL=$lt_SHELL
23151
23152 # An echo program that protects backslashes.
23153 ECHO=$lt_ECHO
23154
23155 # The PATH separator for the build system.
23156 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23157
23158 # The host system.
23159 host_alias=$host_alias
23160 host=$host
23161 host_os=$host_os
23162
23163 # The build system.
23164 build_alias=$build_alias
23165 build=$build
23166 build_os=$build_os
23167
23168 # A sed program that does not truncate output.
23169 SED=$lt_SED
23170
23171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23172 Xsed="\$SED -e 1s/^X//"
23173
23174 # A grep program that handles long lines.
23175 GREP=$lt_GREP
23176
23177 # An ERE matcher.
23178 EGREP=$lt_EGREP
23179
23180 # A literal string matcher.
23181 FGREP=$lt_FGREP
23182
23183 # A BSD- or MS-compatible name lister.
23184 NM=$lt_NM
23185
23186 # Whether we need soft or hard links.
23187 LN_S=$lt_LN_S
23188
23189 # What is the maximum length of a command?
23190 max_cmd_len=$max_cmd_len
23191
23192 # Object file suffix (normally "o").
23193 objext=$ac_objext
23194
23195 # Executable file suffix (normally "").
23196 exeext=$exeext
23197
23198 # whether the shell understands "unset".
23199 lt_unset=$lt_unset
23200
23201 # turn spaces into newlines.
23202 SP2NL=$lt_lt_SP2NL
23203
23204 # turn newlines into spaces.
23205 NL2SP=$lt_lt_NL2SP
23206
23207 # convert \$build file names to \$host format.
23208 to_host_file_cmd=$lt_cv_to_host_file_cmd
23209
23210 # convert \$build files to toolchain format.
23211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23212
23213 # Method to check whether dependent libraries are shared objects.
23214 deplibs_check_method=$lt_deplibs_check_method
23215
23216 # Command to use when deplibs_check_method = "file_magic".
23217 file_magic_cmd=$lt_file_magic_cmd
23218
23219 # How to find potential files when deplibs_check_method = "file_magic".
23220 file_magic_glob=$lt_file_magic_glob
23221
23222 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23223 want_nocaseglob=$lt_want_nocaseglob
23224
23225 # Command to associate shared and link libraries.
23226 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23227
23228 # The archiver.
23229 AR=$lt_AR
23230
23231 # Flags to create an archive.
23232 AR_FLAGS=$lt_AR_FLAGS
23233
23234 # How to feed a file listing to the archiver.
23235 archiver_list_spec=$lt_archiver_list_spec
23236
23237 # A symbol stripping program.
23238 STRIP=$lt_STRIP
23239
23240 # Commands used to install an old-style archive.
23241 RANLIB=$lt_RANLIB
23242 old_postinstall_cmds=$lt_old_postinstall_cmds
23243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23244
23245 # Whether to use a lock for old archive extraction.
23246 lock_old_archive_extraction=$lock_old_archive_extraction
23247
23248 # A C compiler.
23249 LTCC=$lt_CC
23250
23251 # LTCC compiler flags.
23252 LTCFLAGS=$lt_CFLAGS
23253
23254 # Take the output of nm and produce a listing of raw symbols and C names.
23255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23256
23257 # Transform the output of nm in a proper C declaration.
23258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23259
23260 # Transform the output of nm into a list of symbols to manually relocate.
23261 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23262
23263 # Transform the output of nm in a C name address pair.
23264 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23265
23266 # Transform the output of nm in a C name address pair when lib prefix is needed.
23267 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23268
23269 # The name lister interface.
23270 nm_interface=$lt_lt_cv_nm_interface
23271
23272 # Specify filename containing input files for \$NM.
23273 nm_file_list_spec=$lt_nm_file_list_spec
23274
23275 # The root where to search for dependent libraries,and where our libraries should be installed.
23276 lt_sysroot=$lt_sysroot
23277
23278 # Command to truncate a binary pipe.
23279 lt_truncate_bin=$lt_lt_cv_truncate_bin
23280
23281 # The name of the directory that contains temporary libtool files.
23282 objdir=$objdir
23283
23284 # Used to examine libraries when file_magic_cmd begins with "file".
23285 MAGIC_CMD=$MAGIC_CMD
23286
23287 # Must we lock files when doing compilation?
23288 need_locks=$lt_need_locks
23289
23290 # Manifest tool.
23291 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23292
23293 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23294 DSYMUTIL=$lt_DSYMUTIL
23295
23296 # Tool to change global to local symbols on Mac OS X.
23297 NMEDIT=$lt_NMEDIT
23298
23299 # Tool to manipulate fat objects and archives on Mac OS X.
23300 LIPO=$lt_LIPO
23301
23302 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23303 OTOOL=$lt_OTOOL
23304
23305 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23306 OTOOL64=$lt_OTOOL64
23307
23308 # Old archive suffix (normally "a").
23309 libext=$libext
23310
23311 # Shared library suffix (normally ".so").
23312 shrext_cmds=$lt_shrext_cmds
23313
23314 # The commands to extract the exported symbol list from a shared archive.
23315 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23316
23317 # Variables whose values should be saved in libtool wrapper scripts and
23318 # restored at link time.
23319 variables_saved_for_relink=$lt_variables_saved_for_relink
23320
23321 # Do we need the "lib" prefix for modules?
23322 need_lib_prefix=$need_lib_prefix
23323
23324 # Do we need a version for libraries?
23325 need_version=$need_version
23326
23327 # Library versioning type.
23328 version_type=$version_type
23329
23330 # Shared library runtime path variable.
23331 runpath_var=$runpath_var
23332
23333 # Shared library path variable.
23334 shlibpath_var=$shlibpath_var
23335
23336 # Is shlibpath searched before the hard-coded library search path?
23337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23338
23339 # Format of library name prefix.
23340 libname_spec=$lt_libname_spec
23341
23342 # List of archive names. First name is the real one, the rest are links.
23343 # The last name is the one that the linker finds with -lNAME
23344 library_names_spec=$lt_library_names_spec
23345
23346 # The coded name of the library, if different from the real name.
23347 soname_spec=$lt_soname_spec
23348
23349 # Permission mode override for installation of shared libraries.
23350 install_override_mode=$lt_install_override_mode
23351
23352 # Command to use after installation of a shared archive.
23353 postinstall_cmds=$lt_postinstall_cmds
23354
23355 # Command to use after uninstallation of a shared archive.
23356 postuninstall_cmds=$lt_postuninstall_cmds
23357
23358 # Commands used to finish a libtool library installation in a directory.
23359 finish_cmds=$lt_finish_cmds
23360
23361 # As "finish_cmds", except a single script fragment to be evaled but
23362 # not shown.
23363 finish_eval=$lt_finish_eval
23364
23365 # Whether we should hardcode library paths into libraries.
23366 hardcode_into_libs=$hardcode_into_libs
23367
23368 # Compile-time system search path for libraries.
23369 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23370
23371 # Detected run-time system search path for libraries.
23372 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23373
23374 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23375 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23376
23377 # Whether dlopen is supported.
23378 dlopen_support=$enable_dlopen
23379
23380 # Whether dlopen of programs is supported.
23381 dlopen_self=$enable_dlopen_self
23382
23383 # Whether dlopen of statically linked programs is supported.
23384 dlopen_self_static=$enable_dlopen_self_static
23385
23386 # Commands to strip libraries.
23387 old_striplib=$lt_old_striplib
23388 striplib=$lt_striplib
23389
23390
23391 # The linker used to build libraries.
23392 LD=$lt_LD
23393
23394 # How to create reloadable object files.
23395 reload_flag=$lt_reload_flag
23396 reload_cmds=$lt_reload_cmds
23397
23398 # Commands used to build an old-style archive.
23399 old_archive_cmds=$lt_old_archive_cmds
23400
23401 # A language specific compiler.
23402 CC=$lt_compiler
23403
23404 # Is the compiler the GNU compiler?
23405 with_gcc=$GCC
23406
23407 # Compiler flag to turn off builtin functions.
23408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23409
23410 # Additional compiler flags for building library objects.
23411 pic_flag=$lt_lt_prog_compiler_pic
23412
23413 # How to pass a linker flag through the compiler.
23414 wl=$lt_lt_prog_compiler_wl
23415
23416 # Compiler flag to prevent dynamic linking.
23417 link_static_flag=$lt_lt_prog_compiler_static
23418
23419 # Does compiler simultaneously support -c and -o options?
23420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23421
23422 # Whether or not to add -lc for building shared libraries.
23423 build_libtool_need_lc=$archive_cmds_need_lc
23424
23425 # Whether or not to disallow shared libs when runtime libs are static.
23426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23427
23428 # Compiler flag to allow reflexive dlopens.
23429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23430
23431 # Compiler flag to generate shared objects directly from archives.
23432 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23433
23434 # Whether the compiler copes with passing no objects directly.
23435 compiler_needs_object=$lt_compiler_needs_object
23436
23437 # Create an old-style archive from a shared archive.
23438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23439
23440 # Create a temporary old-style archive to link instead of a shared archive.
23441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23442
23443 # Commands used to build a shared archive.
23444 archive_cmds=$lt_archive_cmds
23445 archive_expsym_cmds=$lt_archive_expsym_cmds
23446
23447 # Commands used to build a loadable module if different from building
23448 # a shared archive.
23449 module_cmds=$lt_module_cmds
23450 module_expsym_cmds=$lt_module_expsym_cmds
23451
23452 # Whether we are building with GNU ld or not.
23453 with_gnu_ld=$lt_with_gnu_ld
23454
23455 # Flag that allows shared libraries with undefined symbols to be built.
23456 allow_undefined_flag=$lt_allow_undefined_flag
23457
23458 # Flag that enforces no undefined symbols.
23459 no_undefined_flag=$lt_no_undefined_flag
23460
23461 # Flag to hardcode \$libdir into a binary during linking.
23462 # This must work even if \$libdir does not exist
23463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23464
23465 # Whether we need a single "-rpath" flag with a separated argument.
23466 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23467
23468 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23469 # DIR into the resulting binary.
23470 hardcode_direct=$hardcode_direct
23471
23472 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23473 # DIR into the resulting binary and the resulting library dependency is
23474 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23475 # library is relocated.
23476 hardcode_direct_absolute=$hardcode_direct_absolute
23477
23478 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23479 # into the resulting binary.
23480 hardcode_minus_L=$hardcode_minus_L
23481
23482 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23483 # into the resulting binary.
23484 hardcode_shlibpath_var=$hardcode_shlibpath_var
23485
23486 # Set to "yes" if building a shared library automatically hardcodes DIR
23487 # into the library and all subsequent libraries and executables linked
23488 # against it.
23489 hardcode_automatic=$hardcode_automatic
23490
23491 # Set to yes if linker adds runtime paths of dependent libraries
23492 # to runtime path list.
23493 inherit_rpath=$inherit_rpath
23494
23495 # Whether libtool must link a program against all its dependency libraries.
23496 link_all_deplibs=$link_all_deplibs
23497
23498 # Set to "yes" if exported symbols are required.
23499 always_export_symbols=$always_export_symbols
23500
23501 # The commands to list exported symbols.
23502 export_symbols_cmds=$lt_export_symbols_cmds
23503
23504 # Symbols that should not be listed in the preloaded symbols.
23505 exclude_expsyms=$lt_exclude_expsyms
23506
23507 # Symbols that must always be exported.
23508 include_expsyms=$lt_include_expsyms
23509
23510 # Commands necessary for linking programs (against libraries) with templates.
23511 prelink_cmds=$lt_prelink_cmds
23512
23513 # Commands necessary for finishing linking programs.
23514 postlink_cmds=$lt_postlink_cmds
23515
23516 # Specify filename containing input files.
23517 file_list_spec=$lt_file_list_spec
23518
23519 # How to hardcode a shared library path into an executable.
23520 hardcode_action=$hardcode_action
23521
23522 # The directories searched by this compiler when creating a shared library.
23523 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23524
23525 # Dependencies to place before and after the objects being linked to
23526 # create a shared library.
23527 predep_objects=$lt_predep_objects
23528 postdep_objects=$lt_postdep_objects
23529 predeps=$lt_predeps
23530 postdeps=$lt_postdeps
23531
23532 # The library search path used internally by the compiler when linking
23533 # a shared library.
23534 compiler_lib_search_path=$lt_compiler_lib_search_path
23535
23536 # ### END LIBTOOL CONFIG
23537
23538 _LT_EOF
23539
23540 cat <<'_LT_EOF' >> "$cfgfile"
23541
23542 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23543
23544 # func_munge_path_list VARIABLE PATH
23545 # -----------------------------------
23546 # VARIABLE is name of variable containing _space_ separated list of
23547 # directories to be munged by the contents of PATH, which is string
23548 # having a format:
23549 # "DIR[:DIR]:"
23550 # string "DIR[ DIR]" will be prepended to VARIABLE
23551 # ":DIR[:DIR]"
23552 # string "DIR[ DIR]" will be appended to VARIABLE
23553 # "DIRP[:DIRP]::[DIRA:]DIRA"
23554 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23555 # "DIRA[ DIRA]" will be appended to VARIABLE
23556 # "DIR[:DIR]"
23557 # VARIABLE will be replaced by "DIR[ DIR]"
23558 func_munge_path_list ()
23559 {
23560 case x$2 in
23561 x)
23562 ;;
23563 *:)
23564 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23565 ;;
23566 x:*)
23567 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23568 ;;
23569 *::*)
23570 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23571 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23572 ;;
23573 *)
23574 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23575 ;;
23576 esac
23577 }
23578
23579
23580 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23581 func_cc_basename ()
23582 {
23583 for cc_temp in $*""; do
23584 case $cc_temp in
23585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23587 \-*) ;;
23588 *) break;;
23589 esac
23590 done
23591 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23592 }
23593
23594
23595 # ### END FUNCTIONS SHARED WITH CONFIGURE
23596
23597 _LT_EOF
23598
23599 case $host_os in
23600 aix3*)
23601 cat <<\_LT_EOF >> "$cfgfile"
23602 # AIX sometimes has problems with the GCC collect2 program. For some
23603 # reason, if we set the COLLECT_NAMES environment variable, the problems
23604 # vanish in a puff of smoke.
23605 if test set != "${COLLECT_NAMES+set}"; then
23606 COLLECT_NAMES=
23607 export COLLECT_NAMES
23608 fi
23609 _LT_EOF
23610 ;;
23611 esac
23612
23613
23614 ltmain=$ac_aux_dir/ltmain.sh
23615
23616
23617 # We use sed instead of cat because bash on DJGPP gets confused if
23618 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23619 # text mode, it properly converts lines to CR/LF. This bash problem
23620 # is reportedly fixed, but why not run on old versions too?
23621 sed '$q' "$ltmain" >> "$cfgfile" \
23622 || (rm -f "$cfgfile"; exit 1)
23623
23624 mv -f "$cfgfile" "$ofile" ||
23625 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23626 chmod +x "$ofile"
23627
23628
23629 cat <<_LT_EOF >> "$ofile"
23630
23631 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23632
23633 # The linker used to build libraries.
23634 LD=$lt_LD_CXX
23635
23636 # How to create reloadable object files.
23637 reload_flag=$lt_reload_flag_CXX
23638 reload_cmds=$lt_reload_cmds_CXX
23639
23640 # Commands used to build an old-style archive.
23641 old_archive_cmds=$lt_old_archive_cmds_CXX
23642
23643 # A language specific compiler.
23644 CC=$lt_compiler_CXX
23645
23646 # Is the compiler the GNU compiler?
23647 with_gcc=$GCC_CXX
23648
23649 # Compiler flag to turn off builtin functions.
23650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23651
23652 # Additional compiler flags for building library objects.
23653 pic_flag=$lt_lt_prog_compiler_pic_CXX
23654
23655 # How to pass a linker flag through the compiler.
23656 wl=$lt_lt_prog_compiler_wl_CXX
23657
23658 # Compiler flag to prevent dynamic linking.
23659 link_static_flag=$lt_lt_prog_compiler_static_CXX
23660
23661 # Does compiler simultaneously support -c and -o options?
23662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23663
23664 # Whether or not to add -lc for building shared libraries.
23665 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23666
23667 # Whether or not to disallow shared libs when runtime libs are static.
23668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23669
23670 # Compiler flag to allow reflexive dlopens.
23671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23672
23673 # Compiler flag to generate shared objects directly from archives.
23674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23675
23676 # Whether the compiler copes with passing no objects directly.
23677 compiler_needs_object=$lt_compiler_needs_object_CXX
23678
23679 # Create an old-style archive from a shared archive.
23680 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23681
23682 # Create a temporary old-style archive to link instead of a shared archive.
23683 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23684
23685 # Commands used to build a shared archive.
23686 archive_cmds=$lt_archive_cmds_CXX
23687 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23688
23689 # Commands used to build a loadable module if different from building
23690 # a shared archive.
23691 module_cmds=$lt_module_cmds_CXX
23692 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23693
23694 # Whether we are building with GNU ld or not.
23695 with_gnu_ld=$lt_with_gnu_ld_CXX
23696
23697 # Flag that allows shared libraries with undefined symbols to be built.
23698 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23699
23700 # Flag that enforces no undefined symbols.
23701 no_undefined_flag=$lt_no_undefined_flag_CXX
23702
23703 # Flag to hardcode \$libdir into a binary during linking.
23704 # This must work even if \$libdir does not exist
23705 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23706
23707 # Whether we need a single "-rpath" flag with a separated argument.
23708 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23709
23710 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23711 # DIR into the resulting binary.
23712 hardcode_direct=$hardcode_direct_CXX
23713
23714 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23715 # DIR into the resulting binary and the resulting library dependency is
23716 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23717 # library is relocated.
23718 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23719
23720 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23721 # into the resulting binary.
23722 hardcode_minus_L=$hardcode_minus_L_CXX
23723
23724 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23725 # into the resulting binary.
23726 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23727
23728 # Set to "yes" if building a shared library automatically hardcodes DIR
23729 # into the library and all subsequent libraries and executables linked
23730 # against it.
23731 hardcode_automatic=$hardcode_automatic_CXX
23732
23733 # Set to yes if linker adds runtime paths of dependent libraries
23734 # to runtime path list.
23735 inherit_rpath=$inherit_rpath_CXX
23736
23737 # Whether libtool must link a program against all its dependency libraries.
23738 link_all_deplibs=$link_all_deplibs_CXX
23739
23740 # Set to "yes" if exported symbols are required.
23741 always_export_symbols=$always_export_symbols_CXX
23742
23743 # The commands to list exported symbols.
23744 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23745
23746 # Symbols that should not be listed in the preloaded symbols.
23747 exclude_expsyms=$lt_exclude_expsyms_CXX
23748
23749 # Symbols that must always be exported.
23750 include_expsyms=$lt_include_expsyms_CXX
23751
23752 # Commands necessary for linking programs (against libraries) with templates.
23753 prelink_cmds=$lt_prelink_cmds_CXX
23754
23755 # Commands necessary for finishing linking programs.
23756 postlink_cmds=$lt_postlink_cmds_CXX
23757
23758 # Specify filename containing input files.
23759 file_list_spec=$lt_file_list_spec_CXX
23760
23761 # How to hardcode a shared library path into an executable.
23762 hardcode_action=$hardcode_action_CXX
23763
23764 # The directories searched by this compiler when creating a shared library.
23765 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23766
23767 # Dependencies to place before and after the objects being linked to
23768 # create a shared library.
23769 predep_objects=$lt_predep_objects_CXX
23770 postdep_objects=$lt_postdep_objects_CXX
23771 predeps=$lt_predeps_CXX
23772 postdeps=$lt_postdeps_CXX
23773
23774 # The library search path used internally by the compiler when linking
23775 # a shared library.
23776 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23777
23778 # ### END LIBTOOL TAG CONFIG: CXX
23779 _LT_EOF
23780
23781 ;;
23782
23783 esac
23784 done # for ac_tag
23785
23786
23787 as_fn_exit 0
23788 _ACEOF
23789 ac_clean_files=$ac_clean_files_save
23790
23791 test $ac_write_fail = 0 ||
23792 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23793
23794
23795 # configure is writing to config.log, and then calls config.status.
23796 # config.status does its own redirection, appending to config.log.
23797 # Unfortunately, on DOS this fails, as config.log is still kept open
23798 # by configure, so config.status won't be able to write to it; its
23799 # output is simply discarded. So we exec the FD to /dev/null,
23800 # effectively closing config.log, so it can be properly (re)opened and
23801 # appended to by config.status. When coming back to configure, we
23802 # need to make the FD available again.
23803 if test "$no_create" != yes; then
23804 ac_cs_success=:
23805 ac_config_status_args=
23806 test "$silent" = yes &&
23807 ac_config_status_args="$ac_config_status_args --quiet"
23808 exec 5>/dev/null
23809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23810 exec 5>>config.log
23811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23812 # would make configure fail if this is the last instruction.
23813 $ac_cs_success || as_fn_exit 1
23814 fi
23815 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23817 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23818 fi
23819
23820
23821
23822 echo ""
23823 echo "Libtiff is now configured for ${host}"
23824 echo ""
23825 echo " Libtiff build version: ${LIBTIFF_VERSION}"
23826 echo " Libtiff library version: ${LIBTIFF_VERSION_INFO}"
23827 echo " Libtiff release date: ${LIBTIFF_RELEASE_DATE}"
23828 echo ""
23829 echo " Installation directory: ${prefix}"
23830 echo " Documentation directory: ${LIBTIFF_DOCDIR}"
23831 echo " C compiler: ${CC} ${CFLAGS}"
23832 echo " C++ compiler: ${CXX} ${CXXFLAGS}"
23833 echo " Build tools: ${TIFF_TOOLS}"
23834 echo " Build tests: ${TIFF_TESTS}"
23835 echo " Build contrib: ${TIFF_CONTRIB}"
23836 echo " Build docs: ${TIFF_DOCS}"
23837 echo " Build deprecated features: ${enable_deprecated}"
23838 echo " Enable runtime linker paths: ${HAVE_RPATH}"
23839 echo " Enable linker symbol versioning: ${have_ld_version_script}"
23840 echo " Support Microsoft Document Imaging: ${HAVE_MDI}"
23841 echo " Use Win32 IO: ${win32_io_ok}"
23842 echo ""
23843 echo " Support for internal codecs:"
23844 echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}"
23845 echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}"
23846 echo " LZW algorithm: ${HAVE_LZW}"
23847 echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}"
23848 echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}"
23849 echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
23850 echo ""
23851 echo " Support for external codecs:"
23852 echo " ZLIB support: ${HAVE_ZLIB}"
23853 echo " libdeflate support: ${HAVE_LIBDEFLATE}"
23854 echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}"
23855 echo " JPEG support: ${HAVE_JPEG}"
23856 echo " Old JPEG support: ${HAVE_OJPEG}"
23857 if test "$HAVE_JPEGTURBO_DUAL_MODE_8_12" = "yes"; then
23858 echo " JPEG 8/12 bit dual mode: ${HAVE_JPEGTURBO_DUAL_MODE_8_12} (libjpeg turbo >= 3.0 dual mode)"
23859 else
23860 echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}"
23861 fi
23862 echo " ISO JBIG support: ${HAVE_JBIG}"
23863 echo " LERC support: ${HAVE_LERC}"
23864 echo " LZMA2 support: ${HAVE_LZMA}"
23865 echo " ZSTD support: ${HAVE_ZSTD}"
23866 echo " WEBP support: ${HAVE_WEBP}"
23867 echo ""
23868 echo " C++ support: ${HAVE_CXX}"
23869 echo ""
23870 echo " OpenGL support: ${HAVE_OPENGL}"
23871 echo ""
23872