Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenSlide 3.4.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 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='OpenSlide'
592 PACKAGE_TARNAME='openslide'
593 PACKAGE_VERSION='3.4.1'
594 PACKAGE_STRING='OpenSlide 3.4.1'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='http://openslide.org'
597
598 ac_unique_file="src"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 FEATURE_FLAGS
640 AM_CFLAGS
641 CFLAG_MS_FORMAT
642 CYGWIN_CROSS_TEST_FALSE
643 CYGWIN_CROSS_TEST_TRUE
644 CYGWIN_CROSS_TEST
645 HAVE_VISIBILITY
646 CFLAG_VISIBILITY
647 VALGRIND_LIBS
648 VALGRIND_CFLAGS
649 SQLITE3_LIBS
650 SQLITE3_CFLAGS
651 LIBXML2_LIBS
652 LIBXML2_CFLAGS
653 GDKPIXBUF_LIBS
654 GDKPIXBUF_CFLAGS
655 LIBPNG_LIBS
656 LIBPNG_CFLAGS
657 CAIRO_LIBS
658 CAIRO_CFLAGS
659 GLIB2_LIBS
660 GLIB2_CFLAGS
661 LIBTIFF_LIBS
662 LIBTIFF_CFLAGS
663 OPENJPEG_LIBS
664 OPENJPEG_CFLAGS
665 OPENJPEG2_LIBS
666 OPENJPEG2_CFLAGS
667 ZLIB_LIBS
668 ZLIB_CFLAGS
669 PKG_CONFIG_LIBDIR
670 PKG_CONFIG_PATH
671 PKG_CONFIG
672 SUFFIXED_VERSION
673 WINDOWS_VERSIONINFO
674 WINDOWS_RESOURCES_FALSE
675 WINDOWS_RESOURCES_TRUE
676 RC
677 OTOOL64
678 OTOOL
679 LIPO
680 NMEDIT
681 DSYMUTIL
682 MANIFEST_TOOL
683 RANLIB
684 ac_ct_AR
685 AR
686 LN_S
687 NM
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LD
691 FGREP
692 SED
693 LIBTOOL
694 OBJDUMP
695 DLLTOOL
696 AS
697 EGREP
698 GREP
699 CPP
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 AM_BACKSLASH
726 AM_DEFAULT_VERBOSITY
727 AM_DEFAULT_V
728 AM_V
729 am__untar
730 am__tar
731 AMTAR
732 am__leading_dot
733 SET_MAKE
734 AWK
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 MAKEINFO
741 AUTOHEADER
742 AUTOMAKE
743 AUTOCONF
744 ACLOCAL
745 VERSION
746 PACKAGE
747 CYGPATH_W
748 am__isrc
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_dependency_tracking
795 enable_largefile
796 enable_static
797 enable_shared
798 with_pic
799 enable_fast_install
800 with_gnu_ld
801 with_sysroot
802 enable_libtool_lock
803 with_version_suffix
804 '
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 CPP
814 PKG_CONFIG
815 PKG_CONFIG_PATH
816 PKG_CONFIG_LIBDIR
817 ZLIB_CFLAGS
818 ZLIB_LIBS
819 OPENJPEG2_CFLAGS
820 OPENJPEG2_LIBS
821 OPENJPEG_CFLAGS
822 OPENJPEG_LIBS
823 LIBTIFF_CFLAGS
824 LIBTIFF_LIBS
825 GLIB2_CFLAGS
826 GLIB2_LIBS
827 CAIRO_CFLAGS
828 CAIRO_LIBS
829 LIBPNG_CFLAGS
830 LIBPNG_LIBS
831 GDKPIXBUF_CFLAGS
832 GDKPIXBUF_LIBS
833 LIBXML2_CFLAGS
834 LIBXML2_LIBS
835 SQLITE3_CFLAGS
836 SQLITE3_LIBS
837 VALGRIND_CFLAGS
838 VALGRIND_LIBS'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 # Accept the important Cygnus configure options, so we can diagnose typos.
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1189
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1223
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1226 ;;
1227
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1237
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 ;;
1245
1246 esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1267 do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures OpenSlide 3.4.1 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/openslide]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1433
1434 cat <<\_ACEOF
1435
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of OpenSlide 3.4.1:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-dependency-tracking
1460 do not reject slow dependency extractors
1461 --disable-dependency-tracking
1462 speeds up one-time build
1463 --disable-largefile omit support for large files
1464 --enable-static[=PKGS] build static libraries [default=no]
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1474 both]
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-sysroot=DIR Search for dependent libraries within DIR
1477 (or the compiler's sysroot if not specified).
1478 --with-version-suffix=STRING
1479 suffix to append to the package version string
1480
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
1490 PKG_CONFIG path to pkg-config utility
1491 PKG_CONFIG_PATH
1492 directories to add to pkg-config's search path
1493 PKG_CONFIG_LIBDIR
1494 path overriding pkg-config's built-in search path
1495 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1496 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1497 OPENJPEG2_CFLAGS
1498 C compiler flags for OPENJPEG2, overriding pkg-config
1499 OPENJPEG2_LIBS
1500 linker flags for OPENJPEG2, overriding pkg-config
1501 OPENJPEG_CFLAGS
1502 C compiler flags for OPENJPEG, overriding pkg-config
1503 OPENJPEG_LIBS
1504 linker flags for OPENJPEG, overriding pkg-config
1505 LIBTIFF_CFLAGS
1506 C compiler flags for LIBTIFF, overriding pkg-config
1507 LIBTIFF_LIBS
1508 linker flags for LIBTIFF, overriding pkg-config
1509 GLIB2_CFLAGS
1510 C compiler flags for GLIB2, overriding pkg-config
1511 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config
1512 CAIRO_CFLAGS
1513 C compiler flags for CAIRO, overriding pkg-config
1514 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1515 LIBPNG_CFLAGS
1516 C compiler flags for LIBPNG, overriding pkg-config
1517 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1518 GDKPIXBUF_CFLAGS
1519 C compiler flags for GDKPIXBUF, overriding pkg-config
1520 GDKPIXBUF_LIBS
1521 linker flags for GDKPIXBUF, overriding pkg-config
1522 LIBXML2_CFLAGS
1523 C compiler flags for LIBXML2, overriding pkg-config
1524 LIBXML2_LIBS
1525 linker flags for LIBXML2, overriding pkg-config
1526 SQLITE3_CFLAGS
1527 C compiler flags for SQLITE3, overriding pkg-config
1528 SQLITE3_LIBS
1529 linker flags for SQLITE3, overriding pkg-config
1530 VALGRIND_CFLAGS
1531 C compiler flags for VALGRIND, overriding pkg-config
1532 VALGRIND_LIBS
1533 linker flags for VALGRIND, overriding pkg-config
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <[email protected]>.
1539 OpenSlide home page: <http://openslide.org>.
1540 _ACEOF
1541 ac_status=$?
1542 fi
1543
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 continue
1550 ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569 .) # We are building in place.
1570 ac_srcdir=.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 OpenSlide configure 3.4.1
1603 generated by GNU Autoconf 2.69
1604
1605 Copyright (C) 2012 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609 exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_compile
1653
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_link ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_link
1699
1700 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1701 # -------------------------------------------
1702 # Tests whether TYPE exists after having included INCLUDES, setting cache
1703 # variable VAR accordingly.
1704 ac_fn_c_check_type ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1711 else
1712 eval "$3=no"
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 $4
1716 int
1717 main ()
1718 {
1719 if (sizeof ($2))
1720 return 0;
1721 ;
1722 return 0;
1723 }
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 $4
1729 int
1730 main ()
1731 {
1732 if (sizeof (($2)))
1733 return 0;
1734 ;
1735 return 0;
1736 }
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"; then :
1739
1740 else
1741 eval "$3=yes"
1742 fi
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 fi
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752 } # ac_fn_c_check_type
1753
1754 # ac_fn_c_try_cpp LINENO
1755 # ----------------------
1756 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_cpp ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } > conftest.i && {
1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_cpp
1790
1791 # ac_fn_c_try_run LINENO
1792 # ----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794 # that executables *can* be run.
1795 ac_fn_c_try_run ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>&5
1806 ac_status=$?
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809 { { case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_try") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; }; }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: program exited with status $ac_status" >&5
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=$ac_status
1826 fi
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_run
1832
1833 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1834 # -------------------------------------------------------
1835 # Tests whether HEADER exists and can be compiled using the include files in
1836 # INCLUDES, setting the cache variable VAR accordingly.
1837 ac_fn_c_check_header_compile ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 $4
1848 #include <$2>
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 eval "$3=yes"
1852 else
1853 eval "$3=no"
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_header_compile
1863
1864 # ac_fn_c_check_func LINENO FUNC VAR
1865 # ----------------------------------
1866 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1867 ac_fn_c_check_func ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1879 #define $2 innocuous_$2
1880
1881 /* System header to define __stub macros and hopefully few prototypes,
1882 which can conflict with char $2 (); below.
1883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1884 <limits.h> exists even on freestanding compilers. */
1885
1886 #ifdef __STDC__
1887 # include <limits.h>
1888 #else
1889 # include <assert.h>
1890 #endif
1891
1892 #undef $2
1893
1894 /* Override any GCC internal prototype to avoid an error.
1895 Use char because int might match the return type of a GCC
1896 builtin and then its argument prototype would still apply. */
1897 #ifdef __cplusplus
1898 extern "C"
1899 #endif
1900 char $2 ();
1901 /* The GNU C library defines this for functions which it implements
1902 to always fail with ENOSYS. Some functions are actually named
1903 something starting with __ and the normal name is an alias. */
1904 #if defined __stub_$2 || defined __stub___$2
1905 choke me
1906 #endif
1907
1908 int
1909 main ()
1910 {
1911 return $2 ();
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_link "$LINENO"; then :
1917 eval "$3=yes"
1918 else
1919 eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext \
1922 conftest$ac_exeext conftest.$ac_ext
1923 fi
1924 eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_c_check_func
1930 cat >config.log <<_ACEOF
1931 This file contains any messages produced by compilers while
1932 running configure, to aid debugging if configure makes a mistake.
1933
1934 It was created by OpenSlide $as_me 3.4.1, which was
1935 generated by GNU Autoconf 2.69. Invocation command line was
1936
1937 $ $0 $@
1938
1939 _ACEOF
1940 exec 5>>config.log
1941 {
1942 cat <<_ASUNAME
1943 ## --------- ##
1944 ## Platform. ##
1945 ## --------- ##
1946
1947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1952
1953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1954 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1955
1956 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1957 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1959 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1960 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1961 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1962 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1963
1964 _ASUNAME
1965
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 $as_echo "PATH: $as_dir"
1972 done
1973 IFS=$as_save_IFS
1974
1975 } >&5
1976
1977 cat >&5 <<_ACEOF
1978
1979
1980 ## ----------- ##
1981 ## Core tests. ##
1982 ## ----------- ##
1983
1984 _ACEOF
1985
1986
1987 # Keep a trace of the command line.
1988 # Strip out --no-create and --no-recursion so they do not pile up.
1989 # Strip out --silent because we don't want to record it for future runs.
1990 # Also quote any args containing shell meta-characters.
1991 # Make two passes to allow for proper duplicate-argument suppression.
1992 ac_configure_args=
1993 ac_configure_args0=
1994 ac_configure_args1=
1995 ac_must_keep_next=false
1996 for ac_pass in 1 2
1997 do
1998 for ac_arg
1999 do
2000 case $ac_arg in
2001 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2003 | -silent | --silent | --silen | --sile | --sil)
2004 continue ;;
2005 *\'*)
2006 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 esac
2008 case $ac_pass in
2009 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2010 2)
2011 as_fn_append ac_configure_args1 " '$ac_arg'"
2012 if test $ac_must_keep_next = true; then
2013 ac_must_keep_next=false # Got value, back to normal.
2014 else
2015 case $ac_arg in
2016 *=* | --config-cache | -C | -disable-* | --disable-* \
2017 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2018 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2019 | -with-* | --with-* | -without-* | --without-* | --x)
2020 case "$ac_configure_args0 " in
2021 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2022 esac
2023 ;;
2024 -* ) ac_must_keep_next=true ;;
2025 esac
2026 fi
2027 as_fn_append ac_configure_args " '$ac_arg'"
2028 ;;
2029 esac
2030 done
2031 done
2032 { ac_configure_args0=; unset ac_configure_args0;}
2033 { ac_configure_args1=; unset ac_configure_args1;}
2034
2035 # When interrupted or exit'd, cleanup temporary files, and complete
2036 # config.log. We remove comments because anyway the quotes in there
2037 # would cause problems or look ugly.
2038 # WARNING: Use '\'' to represent an apostrophe within the trap.
2039 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2040 trap 'exit_status=$?
2041 # Save into config.log some information that might help in debugging.
2042 {
2043 echo
2044
2045 $as_echo "## ---------------- ##
2046 ## Cache variables. ##
2047 ## ---------------- ##"
2048 echo
2049 # The following way of writing the cache mishandles newlines in values,
2050 (
2051 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in #(
2054 *${as_nl}*)
2055 case $ac_var in #(
2056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2058 esac
2059 case $ac_var in #(
2060 _ | IFS | as_nl) ;; #(
2061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2062 *) { eval $ac_var=; unset $ac_var;} ;;
2063 esac ;;
2064 esac
2065 done
2066 (set) 2>&1 |
2067 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2068 *${as_nl}ac_space=\ *)
2069 sed -n \
2070 "s/'\''/'\''\\\\'\'''\''/g;
2071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2072 ;; #(
2073 *)
2074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2075 ;;
2076 esac |
2077 sort
2078 )
2079 echo
2080
2081 $as_echo "## ----------------- ##
2082 ## Output variables. ##
2083 ## ----------------- ##"
2084 echo
2085 for ac_var in $ac_subst_vars
2086 do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in
2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 esac
2091 $as_echo "$ac_var='\''$ac_val'\''"
2092 done | sort
2093 echo
2094
2095 if test -n "$ac_subst_files"; then
2096 $as_echo "## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##"
2099 echo
2100 for ac_var in $ac_subst_files
2101 do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in
2104 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 esac
2106 $as_echo "$ac_var='\''$ac_val'\''"
2107 done | sort
2108 echo
2109 fi
2110
2111 if test -s confdefs.h; then
2112 $as_echo "## ----------- ##
2113 ## confdefs.h. ##
2114 ## ----------- ##"
2115 echo
2116 cat confdefs.h
2117 echo
2118 fi
2119 test "$ac_signal" != 0 &&
2120 $as_echo "$as_me: caught signal $ac_signal"
2121 $as_echo "$as_me: exit $exit_status"
2122 } >&5
2123 rm -f core *.core core.conftest.* &&
2124 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2125 exit $exit_status
2126 ' 0
2127 for ac_signal in 1 2 13 15; do
2128 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2129 done
2130 ac_signal=0
2131
2132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2133 rm -f -r conftest* confdefs.h
2134
2135 $as_echo "/* confdefs.h */" > confdefs.h
2136
2137 # Predefined preprocessor variables.
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_NAME "$PACKAGE_NAME"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_STRING "$PACKAGE_STRING"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_URL "$PACKAGE_URL"
2161 _ACEOF
2162
2163
2164 # Let the site file select an alternate cache file if it wants to.
2165 # Prefer an explicitly selected file to automatically selected ones.
2166 ac_site_file1=NONE
2167 ac_site_file2=NONE
2168 if test -n "$CONFIG_SITE"; then
2169 # We do not want a PATH search for config.site.
2170 case $CONFIG_SITE in #((
2171 -*) ac_site_file1=./$CONFIG_SITE;;
2172 */*) ac_site_file1=$CONFIG_SITE;;
2173 *) ac_site_file1=./$CONFIG_SITE;;
2174 esac
2175 elif test "x$prefix" != xNONE; then
2176 ac_site_file1=$prefix/share/config.site
2177 ac_site_file2=$prefix/etc/config.site
2178 else
2179 ac_site_file1=$ac_default_prefix/share/config.site
2180 ac_site_file2=$ac_default_prefix/etc/config.site
2181 fi
2182 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2183 do
2184 test "x$ac_site_file" = xNONE && continue
2185 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2187 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2188 sed 's/^/| /' "$ac_site_file" >&5
2189 . "$ac_site_file" \
2190 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 as_fn_error $? "failed to load site script $ac_site_file
2193 See \`config.log' for more details" "$LINENO" 5; }
2194 fi
2195 done
2196
2197 if test -r "$cache_file"; then
2198 # Some versions of bash will fail to source /dev/null (special files
2199 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2200 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2202 $as_echo "$as_me: loading cache $cache_file" >&6;}
2203 case $cache_file in
2204 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2205 *) . "./$cache_file";;
2206 esac
2207 fi
2208 else
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2210 $as_echo "$as_me: creating cache $cache_file" >&6;}
2211 >$cache_file
2212 fi
2213
2214 # Check that the precious variables saved in the cache have kept the same
2215 # value.
2216 ac_cache_corrupted=false
2217 for ac_var in $ac_precious_vars; do
2218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2219 eval ac_new_set=\$ac_env_${ac_var}_set
2220 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2221 eval ac_new_val=\$ac_env_${ac_var}_value
2222 case $ac_old_set,$ac_new_set in
2223 set,)
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2225 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2226 ac_cache_corrupted=: ;;
2227 ,set)
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2229 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2230 ac_cache_corrupted=: ;;
2231 ,);;
2232 *)
2233 if test "x$ac_old_val" != "x$ac_new_val"; then
2234 # differences in whitespace do not lead to failure.
2235 ac_old_val_w=`echo x $ac_old_val`
2236 ac_new_val_w=`echo x $ac_new_val`
2237 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2239 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2240 ac_cache_corrupted=:
2241 else
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2243 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2244 eval $ac_var=\$ac_old_val
2245 fi
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2247 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2249 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2250 fi;;
2251 esac
2252 # Pass precious variables to config.status.
2253 if test "$ac_new_set" = set; then
2254 case $ac_new_val in
2255 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2256 *) ac_arg=$ac_var=$ac_new_val ;;
2257 esac
2258 case " $ac_configure_args " in
2259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2260 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2261 esac
2262 fi
2263 done
2264 if $ac_cache_corrupted; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2268 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2269 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2270 fi
2271 ## -------------------- ##
2272 ## Main body of script. ##
2273 ## -------------------- ##
2274
2275 ac_ext=c
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2280
2281
2282
2283 ac_config_headers="$ac_config_headers config.h"
2284
2285 am__api_version='1.14'
2286
2287 ac_aux_dir=
2288 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2289 if test -f "$ac_dir/install-sh"; then
2290 ac_aux_dir=$ac_dir
2291 ac_install_sh="$ac_aux_dir/install-sh -c"
2292 break
2293 elif test -f "$ac_dir/install.sh"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/install.sh -c"
2296 break
2297 elif test -f "$ac_dir/shtool"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/shtool install -c"
2300 break
2301 fi
2302 done
2303 if test -z "$ac_aux_dir"; then
2304 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2305 fi
2306
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
2315
2316 # Find a good install program. We prefer a C program (faster),
2317 # so one script is as good as another. But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2322 # AIX /bin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # OS/2's system install, which has a completely different semantic
2328 # ./install, which can be erroneously created by make from ./install.sh.
2329 # Reject install programs that cannot install multiple files.
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2332 if test -z "$INSTALL"; then
2333 if ${ac_cv_path_install+:} false; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 # Account for people who put trailing slashes in PATH elements.
2342 case $as_dir/ in #((
2343 ./ | .// | /[cC]/* | \
2344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2346 /usr/ucb/* ) ;;
2347 *)
2348 # OSF1 and SCO ODT 3.0 have their own names for install.
2349 # Don't use installbsd from OSF since it installs stuff as root
2350 # by default.
2351 for ac_prog in ginstall scoinst install; do
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354 if test $ac_prog = install &&
2355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356 # AIX install. It has an incompatible calling convention.
2357 :
2358 elif test $ac_prog = install &&
2359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # program-specific install script used by HP pwplus--don't use.
2361 :
2362 else
2363 rm -rf conftest.one conftest.two conftest.dir
2364 echo one > conftest.one
2365 echo two > conftest.two
2366 mkdir conftest.dir
2367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368 test -s conftest.one && test -s conftest.two &&
2369 test -s conftest.dir/conftest.one &&
2370 test -s conftest.dir/conftest.two
2371 then
2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373 break 3
2374 fi
2375 fi
2376 fi
2377 done
2378 done
2379 ;;
2380 esac
2381
2382 done
2383 IFS=$as_save_IFS
2384
2385 rm -rf conftest.one conftest.two conftest.dir
2386
2387 fi
2388 if test "${ac_cv_path_install+set}" = set; then
2389 INSTALL=$ac_cv_path_install
2390 else
2391 # As a last resort, use the slow shell script. Don't cache a
2392 # value for INSTALL within a source directory, because that will
2393 # break other packages using the cache if that directory is
2394 # removed, or if the value is a relative name.
2395 INSTALL=$ac_install_sh
2396 fi
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399 $as_echo "$INSTALL" >&6; }
2400
2401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402 # It thinks the first close brace ends the variable substitution.
2403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404
2405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406
2407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410 $as_echo_n "checking whether build environment is sane... " >&6; }
2411 # Reject unsafe characters in $srcdir or the absolute working directory
2412 # name. Accept space and tab only in the latter.
2413 am_lf='
2414 '
2415 case `pwd` in
2416 *[\\\"\#\$\&\'\`$am_lf]*)
2417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2418 esac
2419 case $srcdir in
2420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2422 esac
2423
2424 # Do 'set' in a subshell so we don't clobber the current shell's
2425 # arguments. Must try -L first in case configure is actually a
2426 # symlink; some systems play weird games with the mod time of symlinks
2427 # (eg FreeBSD returns the mod time of the symlink's containing
2428 # directory).
2429 if (
2430 am_has_slept=no
2431 for am_try in 1 2; do
2432 echo "timestamp, slept: $am_has_slept" > conftest.file
2433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434 if test "$*" = "X"; then
2435 # -L didn't work.
2436 set X `ls -t "$srcdir/configure" conftest.file`
2437 fi
2438 if test "$*" != "X $srcdir/configure conftest.file" \
2439 && test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441 # If neither matched, then we have a broken ls. This can happen
2442 # if, for instance, CONFIG_SHELL is bash and it inherits a
2443 # broken ls alias from the environment. This has actually
2444 # happened. Such a system could not be considered "sane".
2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2447 fi
2448 if test "$2" = conftest.file || test $am_try -eq 2; then
2449 break
2450 fi
2451 # Just in case.
2452 sleep 1
2453 am_has_slept=yes
2454 done
2455 test "$2" = conftest.file
2456 )
2457 then
2458 # Ok.
2459 :
2460 else
2461 as_fn_error $? "newly created file is older than distributed files!
2462 Check your system clock" "$LINENO" 5
2463 fi
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2466 # If we didn't sleep, we still need to ensure time stamps of config.status and
2467 # generated files are strictly newer.
2468 am_sleep_pid=
2469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2470 ( sleep 1 ) &
2471 am_sleep_pid=$!
2472 fi
2473
2474 rm -f conftest.file
2475
2476 test "$program_prefix" != NONE &&
2477 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478 # Use a double $ so make ignores it.
2479 test "$program_suffix" != NONE &&
2480 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481 # Double any \ or $.
2482 # By default was `s,x,x', remove it if useless.
2483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2485
2486 # expand $ac_aux_dir to an absolute path
2487 am_aux_dir=`cd $ac_aux_dir && pwd`
2488
2489 if test x"${MISSING+set}" != xset; then
2490 case $am_aux_dir in
2491 *\ * | *\ *)
2492 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2493 *)
2494 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2495 esac
2496 fi
2497 # Use eval to expand $SHELL
2498 if eval "$MISSING --is-lightweight"; then
2499 am_missing_run="$MISSING "
2500 else
2501 am_missing_run=
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2503 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2504 fi
2505
2506 if test x"${install_sh}" != xset; then
2507 case $am_aux_dir in
2508 *\ * | *\ *)
2509 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2510 *)
2511 install_sh="\${SHELL} $am_aux_dir/install-sh"
2512 esac
2513 fi
2514
2515 # Installed binaries are usually stripped using 'strip' when the user
2516 # run "make install-strip". However 'strip' might not be the right
2517 # tool to use in cross-compilation environments, therefore Automake
2518 # will honor the 'STRIP' environment variable to overrule this program.
2519 if test "$cross_compiling" != no; then
2520 if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}strip; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_STRIP+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 if test -n "$STRIP"; then
2529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542 done
2543 done
2544 IFS=$as_save_IFS
2545
2546 fi
2547 fi
2548 STRIP=$ac_cv_prog_STRIP
2549 if test -n "$STRIP"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551 $as_echo "$STRIP" >&6; }
2552 else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2555 fi
2556
2557
2558 fi
2559 if test -z "$ac_cv_prog_STRIP"; then
2560 ac_ct_STRIP=$STRIP
2561 # Extract the first word of "strip", so it can be a program name with args.
2562 set dummy strip; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$ac_ct_STRIP"; then
2569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570 else
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 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_ac_ct_STRIP="strip"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589 if test -n "$ac_ct_STRIP"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591 $as_echo "$ac_ct_STRIP" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597 if test "x$ac_ct_STRIP" = x; then
2598 STRIP=":"
2599 else
2600 case $cross_compiling:$ac_tool_warned in
2601 yes:)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604 ac_tool_warned=yes ;;
2605 esac
2606 STRIP=$ac_ct_STRIP
2607 fi
2608 else
2609 STRIP="$ac_cv_prog_STRIP"
2610 fi
2611
2612 fi
2613 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2614
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617 if test -z "$MKDIR_P"; then
2618 if ${ac_cv_path_mkdir+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_prog in mkdir gmkdir; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630 'mkdir (GNU coreutils) '* | \
2631 'mkdir (coreutils) '* | \
2632 'mkdir (fileutils) '4.1*)
2633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2634 break 3;;
2635 esac
2636 done
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642
2643 test -d ./--version && rmdir ./--version
2644 if test "${ac_cv_path_mkdir+set}" = set; then
2645 MKDIR_P="$ac_cv_path_mkdir -p"
2646 else
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for MKDIR_P within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 MKDIR_P="$ac_install_sh -d"
2652 fi
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655 $as_echo "$MKDIR_P" >&6; }
2656
2657 for ac_prog in gawk mawk nawk awk
2658 do
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_AWK+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$AWK"; then
2667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_AWK="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 AWK=$ac_cv_prog_AWK
2687 if test -n "$AWK"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689 $as_echo "$AWK" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 test -n "$AWK" && break
2697 done
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2701 set x ${MAKE-make}
2702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat >conftest.make <<\_ACEOF
2707 SHELL = /bin/sh
2708 all:
2709 @echo '@@@%%%=$(MAKE)=@@@%%%'
2710 _ACEOF
2711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2713 *@@@%%%=?*=@@@%%%*)
2714 eval ac_cv_prog_make_${ac_make}_set=yes;;
2715 *)
2716 eval ac_cv_prog_make_${ac_make}_set=no;;
2717 esac
2718 rm -f conftest.make
2719 fi
2720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 SET_MAKE=
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 SET_MAKE="MAKE=${MAKE-make}"
2728 fi
2729
2730 rm -rf .tst 2>/dev/null
2731 mkdir .tst 2>/dev/null
2732 if test -d .tst; then
2733 am__leading_dot=.
2734 else
2735 am__leading_dot=_
2736 fi
2737 rmdir .tst 2>/dev/null
2738
2739 # Check whether --enable-silent-rules was given.
2740 if test "${enable_silent_rules+set}" = set; then :
2741 enableval=$enable_silent_rules;
2742 fi
2743
2744 case $enable_silent_rules in # (((
2745 yes) AM_DEFAULT_VERBOSITY=0;;
2746 no) AM_DEFAULT_VERBOSITY=1;;
2747 *) AM_DEFAULT_VERBOSITY=1;;
2748 esac
2749 am_make=${MAKE-make}
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2751 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2752 if ${am_cv_make_support_nested_variables+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if $as_echo 'TRUE=$(BAR$(V))
2756 BAR0=false
2757 BAR1=true
2758 V=1
2759 am__doit:
2760 @$(TRUE)
2761 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2762 am_cv_make_support_nested_variables=yes
2763 else
2764 am_cv_make_support_nested_variables=no
2765 fi
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2768 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2769 if test $am_cv_make_support_nested_variables = yes; then
2770 AM_V='$(V)'
2771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2772 else
2773 AM_V=$AM_DEFAULT_VERBOSITY
2774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2775 fi
2776 AM_BACKSLASH='\'
2777
2778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780 # is not polluted with repeated "-I."
2781 am__isrc=' -I$(srcdir)'
2782 # test to see if srcdir already configured
2783 if test -f $srcdir/config.status; then
2784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785 fi
2786 fi
2787
2788 # test whether we have cygpath
2789 if test -z "$CYGPATH_W"; then
2790 if (cygpath --version) >/dev/null 2>/dev/null; then
2791 CYGPATH_W='cygpath -w'
2792 else
2793 CYGPATH_W=echo
2794 fi
2795 fi
2796
2797
2798 # Define the identity of the package.
2799 PACKAGE='openslide'
2800 VERSION='3.4.1'
2801
2802
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE "$PACKAGE"
2805 _ACEOF
2806
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define VERSION "$VERSION"
2810 _ACEOF
2811
2812 # Some tools Automake needs.
2813
2814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815
2816
2817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818
2819
2820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821
2822
2823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824
2825
2826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827
2828 # For better backward compatibility. To be removed once Automake 1.9.x
2829 # dies out for good. For more background, see:
2830 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2831 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2832 mkdir_p='$(MKDIR_P)'
2833
2834 # We need awk for the "check" target. The system "awk" is bad on
2835 # some platforms.
2836 # Always define AMTAR for backward compatibility. Yes, it's still used
2837 # in the wild :-( We should find a proper way to deprecate it ...
2838 AMTAR='$${TAR-tar}'
2839
2840
2841 # We'll loop over all known methods to create a tar archive until one works.
2842 _am_tools='gnutar pax cpio none'
2843
2844 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2845
2846
2847
2848
2849
2850
2851 # POSIX will say in a future version that running "rm -f" with no argument
2852 # is OK; and we want to be able to make that assumption in our Makefile
2853 # recipes. So use an aggressive probe to check that the usage we want is
2854 # actually supported "in the wild" to an acceptable degree.
2855 # See automake bug#10828.
2856 # To make any issue more visible, cause the running configure to be aborted
2857 # by default if the 'rm' program in use doesn't match our expectations; the
2858 # user can still override this though.
2859 if rm -f && rm -fr && rm -rf; then : OK; else
2860 cat >&2 <<'END'
2861 Oops!
2862
2863 Your 'rm' program seems unable to run without file operands specified
2864 on the command line, even when the '-f' option is present. This is contrary
2865 to the behaviour of most rm programs out there, and not conforming with
2866 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2867
2868 Please tell [email protected] about your system, including the value
2869 of your $PATH and any error possibly output before this message. This
2870 can help us improve future automake versions.
2871
2872 END
2873 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2874 echo 'Configuration will proceed anyway, since you have set the' >&2
2875 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2876 echo >&2
2877 else
2878 cat >&2 <<'END'
2879 Aborting the configuration process, to ensure you take notice of the issue.
2880
2881 You can download and install GNU coreutils to get an 'rm' implementation
2882 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2883
2884 If you want to complete the configuration process using your problematic
2885 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2886 to "yes", and re-run configure.
2887
2888 END
2889 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2890 fi
2891 fi
2892 # Check whether --enable-silent-rules was given.
2893 if test "${enable_silent_rules+set}" = set; then :
2894 enableval=$enable_silent_rules;
2895 fi
2896
2897 case $enable_silent_rules in # (((
2898 yes) AM_DEFAULT_VERBOSITY=0;;
2899 no) AM_DEFAULT_VERBOSITY=1;;
2900 *) AM_DEFAULT_VERBOSITY=0;;
2901 esac
2902 am_make=${MAKE-make}
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2904 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2905 if ${am_cv_make_support_nested_variables+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if $as_echo 'TRUE=$(BAR$(V))
2909 BAR0=false
2910 BAR1=true
2911 V=1
2912 am__doit:
2913 @$(TRUE)
2914 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2915 am_cv_make_support_nested_variables=yes
2916 else
2917 am_cv_make_support_nested_variables=no
2918 fi
2919 fi
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2921 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2922 if test $am_cv_make_support_nested_variables = yes; then
2923 AM_V='$(V)'
2924 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2925 else
2926 AM_V=$AM_DEFAULT_VERBOSITY
2927 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2928 fi
2929 AM_BACKSLASH='\'
2930
2931
2932
2933 # Check for cross build
2934 # Make sure we can run config.sub.
2935 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2936 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2937
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2939 $as_echo_n "checking build system type... " >&6; }
2940 if ${ac_cv_build+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 ac_build_alias=$build_alias
2944 test "x$ac_build_alias" = x &&
2945 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2946 test "x$ac_build_alias" = x &&
2947 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2948 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2949 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2950
2951 fi
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2953 $as_echo "$ac_cv_build" >&6; }
2954 case $ac_cv_build in
2955 *-*-*) ;;
2956 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2957 esac
2958 build=$ac_cv_build
2959 ac_save_IFS=$IFS; IFS='-'
2960 set x $ac_cv_build
2961 shift
2962 build_cpu=$1
2963 build_vendor=$2
2964 shift; shift
2965 # Remember, the first character of IFS is used to create $*,
2966 # except with old shells:
2967 build_os=$*
2968 IFS=$ac_save_IFS
2969 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2970
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2973 $as_echo_n "checking host system type... " >&6; }
2974 if ${ac_cv_host+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test "x$host_alias" = x; then
2978 ac_cv_host=$ac_cv_build
2979 else
2980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2982 fi
2983
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2986 $as_echo "$ac_cv_host" >&6; }
2987 case $ac_cv_host in
2988 *-*-*) ;;
2989 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2990 esac
2991 host=$ac_cv_host
2992 ac_save_IFS=$IFS; IFS='-'
2993 set x $ac_cv_host
2994 shift
2995 host_cpu=$1
2996 host_vendor=$2
2997 shift; shift
2998 # Remember, the first character of IFS is used to create $*,
2999 # except with old shells:
3000 host_os=$*
3001 IFS=$ac_save_IFS
3002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3003
3004
3005
3006 # Checks for programs.
3007 DEPDIR="${am__leading_dot}deps"
3008
3009 ac_config_commands="$ac_config_commands depfiles"
3010
3011
3012 am_make=${MAKE-make}
3013 cat > confinc << 'END'
3014 am__doit:
3015 @echo this is the am__doit target
3016 .PHONY: am__doit
3017 END
3018 # If we don't find an include directive, just comment out the code.
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3020 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3021 am__include="#"
3022 am__quote=
3023 _am_result=none
3024 # First try GNU make style include.
3025 echo "include confinc" > confmf
3026 # Ignore all kinds of additional output from 'make'.
3027 case `$am_make -s -f confmf 2> /dev/null` in #(
3028 *the\ am__doit\ target*)
3029 am__include=include
3030 am__quote=
3031 _am_result=GNU
3032 ;;
3033 esac
3034 # Now try BSD make style include.
3035 if test "$am__include" = "#"; then
3036 echo '.include "confinc"' > confmf
3037 case `$am_make -s -f confmf 2> /dev/null` in #(
3038 *the\ am__doit\ target*)
3039 am__include=.include
3040 am__quote="\""
3041 _am_result=BSD
3042 ;;
3043 esac
3044 fi
3045
3046
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3048 $as_echo "$_am_result" >&6; }
3049 rm -f confinc confmf
3050
3051 # Check whether --enable-dependency-tracking was given.
3052 if test "${enable_dependency_tracking+set}" = set; then :
3053 enableval=$enable_dependency_tracking;
3054 fi
3055
3056 if test "x$enable_dependency_tracking" != xno; then
3057 am_depcomp="$ac_aux_dir/depcomp"
3058 AMDEPBACKSLASH='\'
3059 am__nodep='_no'
3060 fi
3061 if test "x$enable_dependency_tracking" != xno; then
3062 AMDEP_TRUE=
3063 AMDEP_FALSE='#'
3064 else
3065 AMDEP_TRUE='#'
3066 AMDEP_FALSE=
3067 fi
3068
3069
3070 ac_ext=c
3071 ac_cpp='$CPP $CPPFLAGS'
3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075 if test -n "$ac_tool_prefix"; then
3076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3077 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113 fi
3114 if test -z "$ac_cv_prog_CC"; then
3115 ac_ct_CC=$CC
3116 # Extract the first word of "gcc", so it can be a program name with args.
3117 set dummy gcc; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$ac_ct_CC"; then
3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_ac_ct_CC="gcc"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144 if test -n "$ac_ct_CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3146 $as_echo "$ac_ct_CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152 if test "x$ac_ct_CC" = x; then
3153 CC=""
3154 else
3155 case $cross_compiling:$ac_tool_warned in
3156 yes:)
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3159 ac_tool_warned=yes ;;
3160 esac
3161 CC=$ac_ct_CC
3162 fi
3163 else
3164 CC="$ac_cv_prog_CC"
3165 fi
3166
3167 if test -z "$CC"; then
3168 if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3170 set dummy ${ac_tool_prefix}cc; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_CC="${ac_tool_prefix}cc"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190 done
3191 done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206 fi
3207 fi
3208 if test -z "$CC"; then
3209 # Extract the first word of "cc", so it can be a program name with args.
3210 set dummy cc; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 ac_prog_rejected=no
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3228 ac_prog_rejected=yes
3229 continue
3230 fi
3231 ac_cv_prog_CC="cc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 if test $ac_prog_rejected = yes; then
3240 # We found a bogon in the path, so make sure we never use it.
3241 set dummy $ac_cv_prog_CC
3242 shift
3243 if test $# != 0; then
3244 # We chose a different compiler from the bogus one.
3245 # However, it has the same basename, so the bogon will be chosen
3246 # first if we set CC to just the basename; use the full file name.
3247 shift
3248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3249 fi
3250 fi
3251 fi
3252 fi
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 fi
3261
3262
3263 fi
3264 if test -z "$CC"; then
3265 if test -n "$ac_tool_prefix"; then
3266 for ac_prog in cl.exe
3267 do
3268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_CC+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298 $as_echo "$CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305 test -n "$CC" && break
3306 done
3307 fi
3308 if test -z "$CC"; then
3309 ac_ct_CC=$CC
3310 for ac_prog in cl.exe
3311 do
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_CC="$ac_prog"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342 $as_echo "$ac_ct_CC" >&6; }
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348
3349 test -n "$ac_ct_CC" && break
3350 done
3351
3352 if test "x$ac_ct_CC" = x; then
3353 CC=""
3354 else
3355 case $cross_compiling:$ac_tool_warned in
3356 yes:)
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359 ac_tool_warned=yes ;;
3360 esac
3361 CC=$ac_ct_CC
3362 fi
3363 fi
3364
3365 fi
3366
3367
3368 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error $? "no acceptable C compiler found in \$PATH
3371 See \`config.log' for more details" "$LINENO" 5; }
3372
3373 # Provide some information about the compiler.
3374 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3375 set X $ac_compile
3376 ac_compiler=$2
3377 for ac_option in --version -v -V -qversion; do
3378 { { ac_try="$ac_compiler $ac_option >&5"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3386 ac_status=$?
3387 if test -s conftest.err; then
3388 sed '10a\
3389 ... rest of stderr output deleted ...
3390 10q' conftest.err >conftest.er1
3391 cat conftest.er1 >&5
3392 fi
3393 rm -f conftest.er1 conftest.err
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396 done
3397
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 ac_clean_files_save=$ac_clean_files
3410 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3411 # Try to create an executable without -o first, disregard a.out.
3412 # It will help us diagnose broken compilers, and finding out an intuition
3413 # of exeext.
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3415 $as_echo_n "checking whether the C compiler works... " >&6; }
3416 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3417
3418 # The possible output files:
3419 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3420
3421 ac_rmfiles=
3422 for ac_file in $ac_files
3423 do
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3427 esac
3428 done
3429 rm -f $ac_rmfiles
3430
3431 if { { ac_try="$ac_link_default"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_link_default") 2>&5
3439 ac_status=$?
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; then :
3442 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3443 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3444 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3445 # so that the user can short-circuit this test for compilers unknown to
3446 # Autoconf.
3447 for ac_file in $ac_files ''
3448 do
3449 test -f "$ac_file" || continue
3450 case $ac_file in
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3452 ;;
3453 [ab].out )
3454 # We found the default executable, but exeext='' is most
3455 # certainly right.
3456 break;;
3457 *.* )
3458 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3459 then :; else
3460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3461 fi
3462 # We set ac_cv_exeext here because the later test for it is not
3463 # safe: cross compilers may not add the suffix if given an `-o'
3464 # argument, so we may need to know it at that point already.
3465 # Even if this section looks crufty: it has the advantage of
3466 # actually working.
3467 break;;
3468 * )
3469 break;;
3470 esac
3471 done
3472 test "$ac_cv_exeext" = no && ac_cv_exeext=
3473
3474 else
3475 ac_file=''
3476 fi
3477 if test -z "$ac_file"; then :
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error 77 "C compiler cannot create executables
3486 See \`config.log' for more details" "$LINENO" 5; }
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3489 $as_echo "yes" >&6; }
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3492 $as_echo_n "checking for C compiler default output file name... " >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3494 $as_echo "$ac_file" >&6; }
3495 ac_exeext=$ac_cv_exeext
3496
3497 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3498 ac_clean_files=$ac_clean_files_save
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3500 $as_echo_n "checking for suffix of executables... " >&6; }
3501 if { { ac_try="$ac_link"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link") 2>&5
3509 ac_status=$?
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3513 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3514 # work properly (i.e., refer to `conftest.exe'), while it won't with
3515 # `rm'.
3516 for ac_file in conftest.exe conftest conftest.*; do
3517 test -f "$ac_file" || continue
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3521 break;;
3522 * ) break;;
3523 esac
3524 done
3525 else
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3529 See \`config.log' for more details" "$LINENO" 5; }
3530 fi
3531 rm -f conftest conftest$ac_cv_exeext
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3533 $as_echo "$ac_cv_exeext" >&6; }
3534
3535 rm -f conftest.$ac_ext
3536 EXEEXT=$ac_cv_exeext
3537 ac_exeext=$EXEEXT
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540 #include <stdio.h>
3541 int
3542 main ()
3543 {
3544 FILE *f = fopen ("conftest.out", "w");
3545 return ferror (f) || fclose (f) != 0;
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 ac_clean_files="$ac_clean_files conftest.out"
3552 # Check that the compiler produces executables we can run. If not, either
3553 # the compiler is broken, or we cross compile.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3555 $as_echo_n "checking whether we are cross compiling... " >&6; }
3556 if test "$cross_compiling" != yes; then
3557 { { ac_try="$ac_link"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563 $as_echo "$ac_try_echo"; } >&5
3564 (eval "$ac_link") 2>&5
3565 ac_status=$?
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }
3568 if { ac_try='./conftest$ac_cv_exeext'
3569 { { case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_try") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }; }; then
3579 cross_compiling=no
3580 else
3581 if test "$cross_compiling" = maybe; then
3582 cross_compiling=yes
3583 else
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error $? "cannot run C compiled programs.
3587 If you meant to cross compile, use \`--host'.
3588 See \`config.log' for more details" "$LINENO" 5; }
3589 fi
3590 fi
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3593 $as_echo "$cross_compiling" >&6; }
3594
3595 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3596 ac_clean_files=$ac_clean_files_save
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3598 $as_echo_n "checking for suffix of object files... " >&6; }
3599 if ${ac_cv_objext+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604
3605 int
3606 main ()
3607 {
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.o conftest.obj
3614 if { { ac_try="$ac_compile"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621 (eval "$ac_compile") 2>&5
3622 ac_status=$?
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }; then :
3625 for ac_file in conftest.o conftest.obj conftest.*; do
3626 test -f "$ac_file" || continue;
3627 case $ac_file in
3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3629 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3630 break;;
3631 esac
3632 done
3633 else
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error $? "cannot compute suffix of object files: cannot compile
3640 See \`config.log' for more details" "$LINENO" 5; }
3641 fi
3642 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3645 $as_echo "$ac_cv_objext" >&6; }
3646 OBJEXT=$ac_cv_objext
3647 ac_objext=$OBJEXT
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3649 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3650 if ${ac_cv_c_compiler_gnu+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655
3656 int
3657 main ()
3658 {
3659 #ifndef __GNUC__
3660 choke me
3661 #endif
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_compiler_gnu=yes
3669 else
3670 ac_compiler_gnu=no
3671 fi
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3677 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3678 if test $ac_compiler_gnu = yes; then
3679 GCC=yes
3680 else
3681 GCC=
3682 fi
3683 ac_test_CFLAGS=${CFLAGS+set}
3684 ac_save_CFLAGS=$CFLAGS
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3686 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3687 if ${ac_cv_prog_cc_g+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 ac_save_c_werror_flag=$ac_c_werror_flag
3691 ac_c_werror_flag=yes
3692 ac_cv_prog_cc_g=no
3693 CFLAGS="-g"
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696
3697 int
3698 main ()
3699 {
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_prog_cc_g=yes
3707 else
3708 CFLAGS=""
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711
3712 int
3713 main ()
3714 {
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721
3722 else
3723 ac_c_werror_flag=$ac_save_c_werror_flag
3724 CFLAGS="-g"
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727
3728 int
3729 main ()
3730 {
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_cv_prog_cc_g=yes
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 ac_c_werror_flag=$ac_save_c_werror_flag
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3747 $as_echo "$ac_cv_prog_cc_g" >&6; }
3748 if test "$ac_test_CFLAGS" = set; then
3749 CFLAGS=$ac_save_CFLAGS
3750 elif test $ac_cv_prog_cc_g = yes; then
3751 if test "$GCC" = yes; then
3752 CFLAGS="-g -O2"
3753 else
3754 CFLAGS="-g"
3755 fi
3756 else
3757 if test "$GCC" = yes; then
3758 CFLAGS="-O2"
3759 else
3760 CFLAGS=
3761 fi
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3764 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3765 if ${ac_cv_prog_cc_c89+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 ac_cv_prog_cc_c89=no
3769 ac_save_CC=$CC
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772 #include <stdarg.h>
3773 #include <stdio.h>
3774 struct stat;
3775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3776 struct buf { int x; };
3777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3778 static char *e (p, i)
3779 char **p;
3780 int i;
3781 {
3782 return p[i];
3783 }
3784 static char *f (char * (*g) (char **, int), char **p, ...)
3785 {
3786 char *s;
3787 va_list v;
3788 va_start (v,p);
3789 s = g (p, va_arg (v,int));
3790 va_end (v);
3791 return s;
3792 }
3793
3794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3795 function prototypes and stuff, but not '\xHH' hex character constants.
3796 These don't provoke an error unfortunately, instead are silently treated
3797 as 'x'. The following induces an error, until -std is added to get
3798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3799 array size at least. It's necessary to write '\x00'==0 to get something
3800 that's true only with -std. */
3801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802
3803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3804 inside strings and character constants. */
3805 #define FOO(x) 'x'
3806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807
3808 int test (int i, double x);
3809 struct s1 {int (*f) (int a);};
3810 struct s2 {int (*f) (double a);};
3811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812 int argc;
3813 char **argv;
3814 int
3815 main ()
3816 {
3817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 do
3825 CC="$ac_save_CC $ac_arg"
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_c89=$ac_arg
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext
3830 test "x$ac_cv_prog_cc_c89" != "xno" && break
3831 done
3832 rm -f conftest.$ac_ext
3833 CC=$ac_save_CC
3834
3835 fi
3836 # AC_CACHE_VAL
3837 case "x$ac_cv_prog_cc_c89" in
3838 x)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840 $as_echo "none needed" >&6; } ;;
3841 xno)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843 $as_echo "unsupported" >&6; } ;;
3844 *)
3845 CC="$CC $ac_cv_prog_cc_c89"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3848 esac
3849 if test "x$ac_cv_prog_cc_c89" != xno; then :
3850
3851 fi
3852
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3865 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3866 if ${am_cv_prog_cc_c_o+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871
3872 int
3873 main ()
3874 {
3875
3876 ;
3877 return 0;
3878 }
3879 _ACEOF
3880 # Make sure it works both with $CC and with simple cc.
3881 # Following AC_PROG_CC_C_O, we do the test twice because some
3882 # compilers refuse to overwrite an existing .o file with -o,
3883 # though they will create one.
3884 am_cv_prog_cc_c_o=yes
3885 for am_i in 1 2; do
3886 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3887 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } \
3891 && test -f conftest2.$ac_objext; then
3892 : OK
3893 else
3894 am_cv_prog_cc_c_o=no
3895 break
3896 fi
3897 done
3898 rm -f core conftest*
3899 unset am_i
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3902 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3903 if test "$am_cv_prog_cc_c_o" != yes; then
3904 # Losing compiler, so override with the script.
3905 # FIXME: It is wrong to rewrite CC.
3906 # But if we don't then we get into trouble of one sort or another.
3907 # A longer-term fix would be to have automake use am__CC in this case,
3908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3909 CC="$am_aux_dir/compile $CC"
3910 fi
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917
3918 depcc="$CC" am_compiler_list=
3919
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3921 $as_echo_n "checking dependency style of $depcc... " >&6; }
3922 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926 # We make a subdir and do the tests there. Otherwise we can end up
3927 # making bogus files that we don't know about and never remove. For
3928 # instance it was reported that on HP-UX the gcc test will end up
3929 # making a dummy file named 'D' -- because '-MD' means "put the output
3930 # in D".
3931 rm -rf conftest.dir
3932 mkdir conftest.dir
3933 # Copy depcomp to subdir because otherwise we won't find it if we're
3934 # using a relative directory.
3935 cp "$am_depcomp" conftest.dir
3936 cd conftest.dir
3937 # We will build objects and dependencies in a subdirectory because
3938 # it helps to detect inapplicable dependency modes. For instance
3939 # both Tru64's cc and ICC support -MD to output dependencies as a
3940 # side effect of compilation, but ICC will put the dependencies in
3941 # the current directory while Tru64 will put them in the object
3942 # directory.
3943 mkdir sub
3944
3945 am_cv_CC_dependencies_compiler_type=none
3946 if test "$am_compiler_list" = ""; then
3947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3948 fi
3949 am__universal=false
3950 case " $depcc " in #(
3951 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3952 esac
3953
3954 for depmode in $am_compiler_list; do
3955 # Setup a source with many dependencies, because some compilers
3956 # like to wrap large dependency lists on column 80 (with \), and
3957 # we should not choose a depcomp mode which is confused by this.
3958 #
3959 # We need to recreate these files for each test, as the compiler may
3960 # overwrite some of them when testing with obscure command lines.
3961 # This happens at least with the AIX C compiler.
3962 : > sub/conftest.c
3963 for i in 1 2 3 4 5 6; do
3964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3966 # Solaris 10 /bin/sh.
3967 echo '/* dummy */' > sub/conftst$i.h
3968 done
3969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3970
3971 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3972 # mode. It turns out that the SunPro C++ compiler does not properly
3973 # handle '-M -o', and we need to detect this. Also, some Intel
3974 # versions had trouble with output in subdirs.
3975 am__obj=sub/conftest.${OBJEXT-o}
3976 am__minus_obj="-o $am__obj"
3977 case $depmode in
3978 gcc)
3979 # This depmode causes a compiler race in universal mode.
3980 test "$am__universal" = false || continue
3981 ;;
3982 nosideeffect)
3983 # After this tag, mechanisms are not by side-effect, so they'll
3984 # only be used when explicitly requested.
3985 if test "x$enable_dependency_tracking" = xyes; then
3986 continue
3987 else
3988 break
3989 fi
3990 ;;
3991 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3992 # This compiler won't grok '-c -o', but also, the minuso test has
3993 # not run yet. These depmodes are late enough in the game, and
3994 # so weak that their functioning should not be impacted.
3995 am__obj=conftest.${OBJEXT-o}
3996 am__minus_obj=
3997 ;;
3998 none) break ;;
3999 esac
4000 if depmode=$depmode \
4001 source=sub/conftest.c object=$am__obj \
4002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4004 >/dev/null 2>conftest.err &&
4005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4009 # icc doesn't choke on unknown options, it will just issue warnings
4010 # or remarks (even with -Werror). So we grep stderr for any message
4011 # that says an option was ignored or not supported.
4012 # When given -MP, icc 7.0 and 7.1 complain thusly:
4013 # icc: Command line warning: ignoring option '-M'; no argument required
4014 # The diagnosis changed in icc 8.0:
4015 # icc: Command line remark: option '-MP' not supported
4016 if (grep 'ignoring option' conftest.err ||
4017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4018 am_cv_CC_dependencies_compiler_type=$depmode
4019 break
4020 fi
4021 fi
4022 done
4023
4024 cd ..
4025 rm -rf conftest.dir
4026 else
4027 am_cv_CC_dependencies_compiler_type=none
4028 fi
4029
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4032 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4033 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4034
4035 if
4036 test "x$enable_dependency_tracking" != xno \
4037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4038 am__fastdepCC_TRUE=
4039 am__fastdepCC_FALSE='#'
4040 else
4041 am__fastdepCC_TRUE='#'
4042 am__fastdepCC_FALSE=
4043 fi
4044
4045
4046
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4048 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4049 if ${ac_cv_prog_cc_c99+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 ac_cv_prog_cc_c99=no
4053 ac_save_CC=$CC
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <stdarg.h>
4057 #include <stdbool.h>
4058 #include <stdlib.h>
4059 #include <wchar.h>
4060 #include <stdio.h>
4061
4062 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4063 #define debug(...) fprintf (stderr, __VA_ARGS__)
4064 #define showlist(...) puts (#__VA_ARGS__)
4065 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4066 static void
4067 test_varargs_macros (void)
4068 {
4069 int x = 1234;
4070 int y = 5678;
4071 debug ("Flag");
4072 debug ("X = %d\n", x);
4073 showlist (The first, second, and third items.);
4074 report (x>y, "x is %d but y is %d", x, y);
4075 }
4076
4077 // Check long long types.
4078 #define BIG64 18446744073709551615ull
4079 #define BIG32 4294967295ul
4080 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4081 #if !BIG_OK
4082 your preprocessor is broken;
4083 #endif
4084 #if BIG_OK
4085 #else
4086 your preprocessor is broken;
4087 #endif
4088 static long long int bignum = -9223372036854775807LL;
4089 static unsigned long long int ubignum = BIG64;
4090
4091 struct incomplete_array
4092 {
4093 int datasize;
4094 double data[];
4095 };
4096
4097 struct named_init {
4098 int number;
4099 const wchar_t *name;
4100 double average;
4101 };
4102
4103 typedef const char *ccp;
4104
4105 static inline int
4106 test_restrict (ccp restrict text)
4107 {
4108 // See if C++-style comments work.
4109 // Iterate through items via the restricted pointer.
4110 // Also check for declarations in for loops.
4111 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4112 continue;
4113 return 0;
4114 }
4115
4116 // Check varargs and va_copy.
4117 static void
4118 test_varargs (const char *format, ...)
4119 {
4120 va_list args;
4121 va_start (args, format);
4122 va_list args_copy;
4123 va_copy (args_copy, args);
4124
4125 const char *str;
4126 int number;
4127 float fnumber;
4128
4129 while (*format)
4130 {
4131 switch (*format++)
4132 {
4133 case 's': // string
4134 str = va_arg (args_copy, const char *);
4135 break;
4136 case 'd': // int
4137 number = va_arg (args_copy, int);
4138 break;
4139 case 'f': // float
4140 fnumber = va_arg (args_copy, double);
4141 break;
4142 default:
4143 break;
4144 }
4145 }
4146 va_end (args_copy);
4147 va_end (args);
4148 }
4149
4150 int
4151 main ()
4152 {
4153
4154 // Check bool.
4155 _Bool success = false;
4156
4157 // Check restrict.
4158 if (test_restrict ("String literal") == 0)
4159 success = true;
4160 char *restrict newvar = "Another string";
4161
4162 // Check varargs.
4163 test_varargs ("s, d' f .", "string", 65, 34.234);
4164 test_varargs_macros ();
4165
4166 // Check flexible array members.
4167 struct incomplete_array *ia =
4168 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4169 ia->datasize = 10;
4170 for (int i = 0; i < ia->datasize; ++i)
4171 ia->data[i] = i * 1.234;
4172
4173 // Check named initializers.
4174 struct named_init ni = {
4175 .number = 34,
4176 .name = L"Test wide string",
4177 .average = 543.34343,
4178 };
4179
4180 ni.number = 58;
4181
4182 int dynamic_array[ni.number];
4183 dynamic_array[ni.number - 1] = 543;
4184
4185 // work around unused variable warnings
4186 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4187 || dynamic_array[ni.number - 1] != 543);
4188
4189 ;
4190 return 0;
4191 }
4192 _ACEOF
4193 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4194 do
4195 CC="$ac_save_CC $ac_arg"
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_prog_cc_c99=$ac_arg
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext
4200 test "x$ac_cv_prog_cc_c99" != "xno" && break
4201 done
4202 rm -f conftest.$ac_ext
4203 CC=$ac_save_CC
4204
4205 fi
4206 # AC_CACHE_VAL
4207 case "x$ac_cv_prog_cc_c99" in
4208 x)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4210 $as_echo "none needed" >&6; } ;;
4211 xno)
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4213 $as_echo "unsupported" >&6; } ;;
4214 *)
4215 CC="$CC $ac_cv_prog_cc_c99"
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4217 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4218 esac
4219 if test "x$ac_cv_prog_cc_c99" != xno; then :
4220
4221 fi
4222
4223
4224
4225 # Largefile
4226
4227 # Check whether --enable-largefile was given.
4228 if test "${enable_largefile+set}" = set; then :
4229 enableval=$enable_largefile;
4230 fi
4231
4232 if test "$enable_largefile" != no; then
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4235 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4236 if ${ac_cv_sys_largefile_CC+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 ac_cv_sys_largefile_CC=no
4240 if test "$GCC" != yes; then
4241 ac_save_CC=$CC
4242 while :; do
4243 # IRIX 6.2 and later do not support large files by default,
4244 # so use the C compiler's -n32 option if that helps.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <sys/types.h>
4248 /* Check that off_t can represent 2**63 - 1 correctly.
4249 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4250 since some C++ compilers masquerading as C compilers
4251 incorrectly reject 9223372036854775807. */
4252 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4254 && LARGE_OFF_T % 2147483647 == 1)
4255 ? 1 : -1];
4256 int
4257 main ()
4258 {
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 break
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext
4268 CC="$CC -n32"
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 ac_cv_sys_largefile_CC=' -n32'; break
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext
4273 break
4274 done
4275 CC=$ac_save_CC
4276 rm -f conftest.$ac_ext
4277 fi
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4280 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4281 if test "$ac_cv_sys_largefile_CC" != no; then
4282 CC=$CC$ac_cv_sys_largefile_CC
4283 fi
4284
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4286 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4287 if ${ac_cv_sys_file_offset_bits+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 while :; do
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <sys/types.h>
4294 /* Check that off_t can represent 2**63 - 1 correctly.
4295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4296 since some C++ compilers masquerading as C compilers
4297 incorrectly reject 9223372036854775807. */
4298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4300 && LARGE_OFF_T % 2147483647 == 1)
4301 ? 1 : -1];
4302 int
4303 main ()
4304 {
4305
4306 ;
4307 return 0;
4308 }
4309 _ACEOF
4310 if ac_fn_c_try_compile "$LINENO"; then :
4311 ac_cv_sys_file_offset_bits=no; break
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #define _FILE_OFFSET_BITS 64
4317 #include <sys/types.h>
4318 /* Check that off_t can represent 2**63 - 1 correctly.
4319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4320 since some C++ compilers masquerading as C compilers
4321 incorrectly reject 9223372036854775807. */
4322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4324 && LARGE_OFF_T % 2147483647 == 1)
4325 ? 1 : -1];
4326 int
4327 main ()
4328 {
4329
4330 ;
4331 return 0;
4332 }
4333 _ACEOF
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_sys_file_offset_bits=64; break
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_sys_file_offset_bits=unknown
4339 break
4340 done
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4343 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4344 case $ac_cv_sys_file_offset_bits in #(
4345 no | unknown) ;;
4346 *)
4347 cat >>confdefs.h <<_ACEOF
4348 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4349 _ACEOF
4350 ;;
4351 esac
4352 rm -rf conftest*
4353 if test $ac_cv_sys_file_offset_bits = unknown; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4355 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4356 if ${ac_cv_sys_large_files+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 while :; do
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362 #include <sys/types.h>
4363 /* Check that off_t can represent 2**63 - 1 correctly.
4364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4365 since some C++ compilers masquerading as C compilers
4366 incorrectly reject 9223372036854775807. */
4367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4369 && LARGE_OFF_T % 2147483647 == 1)
4370 ? 1 : -1];
4371 int
4372 main ()
4373 {
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_sys_large_files=no; break
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #define _LARGE_FILES 1
4386 #include <sys/types.h>
4387 /* Check that off_t can represent 2**63 - 1 correctly.
4388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4389 since some C++ compilers masquerading as C compilers
4390 incorrectly reject 9223372036854775807. */
4391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4393 && LARGE_OFF_T % 2147483647 == 1)
4394 ? 1 : -1];
4395 int
4396 main ()
4397 {
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_sys_large_files=1; break
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 ac_cv_sys_large_files=unknown
4408 break
4409 done
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4412 $as_echo "$ac_cv_sys_large_files" >&6; }
4413 case $ac_cv_sys_large_files in #(
4414 no | unknown) ;;
4415 *)
4416 cat >>confdefs.h <<_ACEOF
4417 #define _LARGE_FILES $ac_cv_sys_large_files
4418 _ACEOF
4419 ;;
4420 esac
4421 rm -rf conftest*
4422 fi
4423
4424
4425 fi
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4428 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4429 if ${ac_cv_sys_largefile_source+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 while :; do
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #include <sys/types.h> /* for off_t */
4436 #include <stdio.h>
4437 int
4438 main ()
4439 {
4440 int (*fp) (FILE *, off_t, int) = fseeko;
4441 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_c_try_link "$LINENO"; then :
4447 ac_cv_sys_largefile_source=no; break
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext \
4450 conftest$ac_exeext conftest.$ac_ext
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453 #define _LARGEFILE_SOURCE 1
4454 #include <sys/types.h> /* for off_t */
4455 #include <stdio.h>
4456 int
4457 main ()
4458 {
4459 int (*fp) (FILE *, off_t, int) = fseeko;
4460 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_c_try_link "$LINENO"; then :
4466 ac_cv_sys_largefile_source=1; break
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext \
4469 conftest$ac_exeext conftest.$ac_ext
4470 ac_cv_sys_largefile_source=unknown
4471 break
4472 done
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4475 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4476 case $ac_cv_sys_largefile_source in #(
4477 no | unknown) ;;
4478 *)
4479 cat >>confdefs.h <<_ACEOF
4480 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4481 _ACEOF
4482 ;;
4483 esac
4484 rm -rf conftest*
4485
4486 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4487 # in glibc 2.1.3, but that breaks too many other things.
4488 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4489 if test $ac_cv_sys_largefile_source != unknown; then
4490
4491 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4492
4493 fi
4494
4495
4496 # Optional in C99
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4503 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4504 # On Suns, sometimes $CPP names a directory.
4505 if test -n "$CPP" && test -d "$CPP"; then
4506 CPP=
4507 fi
4508 if test -z "$CPP"; then
4509 if ${ac_cv_prog_CPP+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 # Double quotes because CPP needs to be expanded
4513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4514 do
4515 ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4517 do
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #ifdef __STDC__
4527 # include <limits.h>
4528 #else
4529 # include <assert.h>
4530 #endif
4531 Syntax error
4532 _ACEOF
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4534
4535 else
4536 # Broken: fails on valid input.
4537 continue
4538 fi
4539 rm -f conftest.err conftest.i conftest.$ac_ext
4540
4541 # OK, works on sane cases. Now check whether nonexistent headers
4542 # can be detected and how.
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <ac_nonexistent.h>
4546 _ACEOF
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4548 # Broken: success on invalid input.
4549 continue
4550 else
4551 # Passes both tests.
4552 ac_preproc_ok=:
4553 break
4554 fi
4555 rm -f conftest.err conftest.i conftest.$ac_ext
4556
4557 done
4558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559 rm -f conftest.i conftest.err conftest.$ac_ext
4560 if $ac_preproc_ok; then :
4561 break
4562 fi
4563
4564 done
4565 ac_cv_prog_CPP=$CPP
4566
4567 fi
4568 CPP=$ac_cv_prog_CPP
4569 else
4570 ac_cv_prog_CPP=$CPP
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4573 $as_echo "$CPP" >&6; }
4574 ac_preproc_ok=false
4575 for ac_c_preproc_warn_flag in '' yes
4576 do
4577 # Use a header file that comes with gcc, so configuring glibc
4578 # with a fresh cross-compiler works.
4579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4580 # <limits.h> exists even on freestanding compilers.
4581 # On the NeXT, cc -E runs the code through the compiler's parser,
4582 # not just through cpp. "Syntax error" is here to catch this case.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #ifdef __STDC__
4586 # include <limits.h>
4587 #else
4588 # include <assert.h>
4589 #endif
4590 Syntax error
4591 _ACEOF
4592 if ac_fn_c_try_cpp "$LINENO"; then :
4593
4594 else
4595 # Broken: fails on valid input.
4596 continue
4597 fi
4598 rm -f conftest.err conftest.i conftest.$ac_ext
4599
4600 # OK, works on sane cases. Now check whether nonexistent headers
4601 # can be detected and how.
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 #include <ac_nonexistent.h>
4605 _ACEOF
4606 if ac_fn_c_try_cpp "$LINENO"; then :
4607 # Broken: success on invalid input.
4608 continue
4609 else
4610 # Passes both tests.
4611 ac_preproc_ok=:
4612 break
4613 fi
4614 rm -f conftest.err conftest.i conftest.$ac_ext
4615
4616 done
4617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4618 rm -f conftest.i conftest.err conftest.$ac_ext
4619 if $ac_preproc_ok; then :
4620
4621 else
4622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4624 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4625 See \`config.log' for more details" "$LINENO" 5; }
4626 fi
4627
4628 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4636 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4637 if ${ac_cv_path_GREP+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -z "$GREP"; then
4641 ac_path_GREP_found=false
4642 # Loop through the user's path and test for each of PROGNAME-LIST
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_prog in grep ggrep; do
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4651 as_fn_executable_p "$ac_path_GREP" || continue
4652 # Check for GNU ac_path_GREP and select it if it is found.
4653 # Check for GNU $ac_path_GREP
4654 case `"$ac_path_GREP" --version 2>&1` in
4655 *GNU*)
4656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4657 *)
4658 ac_count=0
4659 $as_echo_n 0123456789 >"conftest.in"
4660 while :
4661 do
4662 cat "conftest.in" "conftest.in" >"conftest.tmp"
4663 mv "conftest.tmp" "conftest.in"
4664 cp "conftest.in" "conftest.nl"
4665 $as_echo 'GREP' >> "conftest.nl"
4666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668 as_fn_arith $ac_count + 1 && ac_count=$as_val
4669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4670 # Best one so far, save it but keep looking for a better one
4671 ac_cv_path_GREP="$ac_path_GREP"
4672 ac_path_GREP_max=$ac_count
4673 fi
4674 # 10*(2^10) chars as input seems more than enough
4675 test $ac_count -gt 10 && break
4676 done
4677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678 esac
4679
4680 $ac_path_GREP_found && break 3
4681 done
4682 done
4683 done
4684 IFS=$as_save_IFS
4685 if test -z "$ac_cv_path_GREP"; then
4686 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687 fi
4688 else
4689 ac_cv_path_GREP=$GREP
4690 fi
4691
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4694 $as_echo "$ac_cv_path_GREP" >&6; }
4695 GREP="$ac_cv_path_GREP"
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4699 $as_echo_n "checking for egrep... " >&6; }
4700 if ${ac_cv_path_EGREP+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4704 then ac_cv_path_EGREP="$GREP -E"
4705 else
4706 if test -z "$EGREP"; then
4707 ac_path_EGREP_found=false
4708 # Loop through the user's path and test for each of PROGNAME-LIST
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711 do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_prog in egrep; do
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4717 as_fn_executable_p "$ac_path_EGREP" || continue
4718 # Check for GNU ac_path_EGREP and select it if it is found.
4719 # Check for GNU $ac_path_EGREP
4720 case `"$ac_path_EGREP" --version 2>&1` in
4721 *GNU*)
4722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4723 *)
4724 ac_count=0
4725 $as_echo_n 0123456789 >"conftest.in"
4726 while :
4727 do
4728 cat "conftest.in" "conftest.in" >"conftest.tmp"
4729 mv "conftest.tmp" "conftest.in"
4730 cp "conftest.in" "conftest.nl"
4731 $as_echo 'EGREP' >> "conftest.nl"
4732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4734 as_fn_arith $ac_count + 1 && ac_count=$as_val
4735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4736 # Best one so far, save it but keep looking for a better one
4737 ac_cv_path_EGREP="$ac_path_EGREP"
4738 ac_path_EGREP_max=$ac_count
4739 fi
4740 # 10*(2^10) chars as input seems more than enough
4741 test $ac_count -gt 10 && break
4742 done
4743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 esac
4745
4746 $ac_path_EGREP_found && break 3
4747 done
4748 done
4749 done
4750 IFS=$as_save_IFS
4751 if test -z "$ac_cv_path_EGREP"; then
4752 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753 fi
4754 else
4755 ac_cv_path_EGREP=$EGREP
4756 fi
4757
4758 fi
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4761 $as_echo "$ac_cv_path_EGREP" >&6; }
4762 EGREP="$ac_cv_path_EGREP"
4763
4764
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4766 $as_echo_n "checking for ANSI C header files... " >&6; }
4767 if ${ac_cv_header_stdc+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <stdlib.h>
4773 #include <stdarg.h>
4774 #include <string.h>
4775 #include <float.h>
4776
4777 int
4778 main ()
4779 {
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_cv_header_stdc=yes
4787 else
4788 ac_cv_header_stdc=no
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791
4792 if test $ac_cv_header_stdc = yes; then
4793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <string.h>
4797
4798 _ACEOF
4799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4800 $EGREP "memchr" >/dev/null 2>&1; then :
4801
4802 else
4803 ac_cv_header_stdc=no
4804 fi
4805 rm -f conftest*
4806
4807 fi
4808
4809 if test $ac_cv_header_stdc = yes; then
4810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 #include <stdlib.h>
4814
4815 _ACEOF
4816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4817 $EGREP "free" >/dev/null 2>&1; then :
4818
4819 else
4820 ac_cv_header_stdc=no
4821 fi
4822 rm -f conftest*
4823
4824 fi
4825
4826 if test $ac_cv_header_stdc = yes; then
4827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4828 if test "$cross_compiling" = yes; then :
4829 :
4830 else
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #include <ctype.h>
4834 #include <stdlib.h>
4835 #if ((' ' & 0x0FF) == 0x020)
4836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4838 #else
4839 # define ISLOWER(c) \
4840 (('a' <= (c) && (c) <= 'i') \
4841 || ('j' <= (c) && (c) <= 'r') \
4842 || ('s' <= (c) && (c) <= 'z'))
4843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4844 #endif
4845
4846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4847 int
4848 main ()
4849 {
4850 int i;
4851 for (i = 0; i < 256; i++)
4852 if (XOR (islower (i), ISLOWER (i))
4853 || toupper (i) != TOUPPER (i))
4854 return 2;
4855 return 0;
4856 }
4857 _ACEOF
4858 if ac_fn_c_try_run "$LINENO"; then :
4859
4860 else
4861 ac_cv_header_stdc=no
4862 fi
4863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4864 conftest.$ac_objext conftest.beam conftest.$ac_ext
4865 fi
4866
4867 fi
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4870 $as_echo "$ac_cv_header_stdc" >&6; }
4871 if test $ac_cv_header_stdc = yes; then
4872
4873 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4874
4875 fi
4876
4877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4878 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4879 inttypes.h stdint.h unistd.h
4880 do :
4881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4882 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4883 "
4884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4885 cat >>confdefs.h <<_ACEOF
4886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4887 _ACEOF
4888
4889 fi
4890
4891 done
4892
4893
4894
4895 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
4896 if test "x$ac_cv_type_uintptr_t" = xyes; then :
4897
4898 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
4899
4900 else
4901 for ac_type in 'unsigned int' 'unsigned long int' \
4902 'unsigned long long int'; do
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 $ac_includes_default
4906 int
4907 main ()
4908 {
4909 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
4910 test_array [0] = 0;
4911 return test_array [0];
4912
4913 ;
4914 return 0;
4915 }
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918
4919 cat >>confdefs.h <<_ACEOF
4920 #define uintptr_t $ac_type
4921 _ACEOF
4922
4923 ac_type=
4924 fi
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 test -z "$ac_type" && break
4927 done
4928 fi
4929
4930
4931
4932
4933 case `pwd` in
4934 *\ * | *\ *)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4936 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4937 esac
4938
4939
4940
4941 macro_version='2.4.2'
4942 macro_revision='1.3337'
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 ltmain="$ac_aux_dir/ltmain.sh"
4957
4958 # Backslashify metacharacters that are still active within
4959 # double-quoted strings.
4960 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4961
4962 # Same as above, but do not quote variable references.
4963 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4964
4965 # Sed substitution to delay expansion of an escaped shell variable in a
4966 # double_quote_subst'ed string.
4967 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4968
4969 # Sed substitution to delay expansion of an escaped single quote.
4970 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4971
4972 # Sed substitution to avoid accidental globbing in evaled expressions
4973 no_glob_subst='s/\*/\\\*/g'
4974
4975 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4976 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4977 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4980 $as_echo_n "checking how to print strings... " >&6; }
4981 # Test print first, because it will be a builtin if present.
4982 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4983 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4984 ECHO='print -r --'
4985 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4986 ECHO='printf %s\n'
4987 else
4988 # Use this function as a fallback that always works.
4989 func_fallback_echo ()
4990 {
4991 eval 'cat <<_LTECHO_EOF
4992 $1
4993 _LTECHO_EOF'
4994 }
4995 ECHO='func_fallback_echo'
4996 fi
4997
4998 # func_echo_all arg...
4999 # Invoke $ECHO with all args, space-separated.
5000 func_echo_all ()
5001 {
5002 $ECHO ""
5003 }
5004
5005 case "$ECHO" in
5006 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5007 $as_echo "printf" >&6; } ;;
5008 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5009 $as_echo "print -r" >&6; } ;;
5010 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5011 $as_echo "cat" >&6; } ;;
5012 esac
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5028 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5029 if ${ac_cv_path_SED+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5033 for ac_i in 1 2 3 4 5 6 7; do
5034 ac_script="$ac_script$as_nl$ac_script"
5035 done
5036 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5037 { ac_script=; unset ac_script;}
5038 if test -z "$SED"; then
5039 ac_path_SED_found=false
5040 # Loop through the user's path and test for each of PROGNAME-LIST
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_prog in sed gsed; do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5049 as_fn_executable_p "$ac_path_SED" || continue
5050 # Check for GNU ac_path_SED and select it if it is found.
5051 # Check for GNU $ac_path_SED
5052 case `"$ac_path_SED" --version 2>&1` in
5053 *GNU*)
5054 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5055 *)
5056 ac_count=0
5057 $as_echo_n 0123456789 >"conftest.in"
5058 while :
5059 do
5060 cat "conftest.in" "conftest.in" >"conftest.tmp"
5061 mv "conftest.tmp" "conftest.in"
5062 cp "conftest.in" "conftest.nl"
5063 $as_echo '' >> "conftest.nl"
5064 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5066 as_fn_arith $ac_count + 1 && ac_count=$as_val
5067 if test $ac_count -gt ${ac_path_SED_max-0}; then
5068 # Best one so far, save it but keep looking for a better one
5069 ac_cv_path_SED="$ac_path_SED"
5070 ac_path_SED_max=$ac_count
5071 fi
5072 # 10*(2^10) chars as input seems more than enough
5073 test $ac_count -gt 10 && break
5074 done
5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076 esac
5077
5078 $ac_path_SED_found && break 3
5079 done
5080 done
5081 done
5082 IFS=$as_save_IFS
5083 if test -z "$ac_cv_path_SED"; then
5084 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5085 fi
5086 else
5087 ac_cv_path_SED=$SED
5088 fi
5089
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5092 $as_echo "$ac_cv_path_SED" >&6; }
5093 SED="$ac_cv_path_SED"
5094 rm -f conftest.sed
5095
5096 test -z "$SED" && SED=sed
5097 Xsed="$SED -e 1s/^X//"
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5110 $as_echo_n "checking for fgrep... " >&6; }
5111 if ${ac_cv_path_FGREP+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5115 then ac_cv_path_FGREP="$GREP -F"
5116 else
5117 if test -z "$FGREP"; then
5118 ac_path_FGREP_found=false
5119 # Loop through the user's path and test for each of PROGNAME-LIST
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_prog in fgrep; do
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5128 as_fn_executable_p "$ac_path_FGREP" || continue
5129 # Check for GNU ac_path_FGREP and select it if it is found.
5130 # Check for GNU $ac_path_FGREP
5131 case `"$ac_path_FGREP" --version 2>&1` in
5132 *GNU*)
5133 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5134 *)
5135 ac_count=0
5136 $as_echo_n 0123456789 >"conftest.in"
5137 while :
5138 do
5139 cat "conftest.in" "conftest.in" >"conftest.tmp"
5140 mv "conftest.tmp" "conftest.in"
5141 cp "conftest.in" "conftest.nl"
5142 $as_echo 'FGREP' >> "conftest.nl"
5143 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5145 as_fn_arith $ac_count + 1 && ac_count=$as_val
5146 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5147 # Best one so far, save it but keep looking for a better one
5148 ac_cv_path_FGREP="$ac_path_FGREP"
5149 ac_path_FGREP_max=$ac_count
5150 fi
5151 # 10*(2^10) chars as input seems more than enough
5152 test $ac_count -gt 10 && break
5153 done
5154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5155 esac
5156
5157 $ac_path_FGREP_found && break 3
5158 done
5159 done
5160 done
5161 IFS=$as_save_IFS
5162 if test -z "$ac_cv_path_FGREP"; then
5163 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5164 fi
5165 else
5166 ac_cv_path_FGREP=$FGREP
5167 fi
5168
5169 fi
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5172 $as_echo "$ac_cv_path_FGREP" >&6; }
5173 FGREP="$ac_cv_path_FGREP"
5174
5175
5176 test -z "$GREP" && GREP=grep
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 # Check whether --with-gnu-ld was given.
5197 if test "${with_gnu_ld+set}" = set; then :
5198 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5199 else
5200 with_gnu_ld=no
5201 fi
5202
5203 ac_prog=ld
5204 if test "$GCC" = yes; then
5205 # Check if gcc -print-prog-name=ld gives a path.
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5207 $as_echo_n "checking for ld used by $CC... " >&6; }
5208 case $host in
5209 *-*-mingw*)
5210 # gcc leaves a trailing carriage return which upsets mingw
5211 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5212 *)
5213 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5214 esac
5215 case $ac_prog in
5216 # Accept absolute paths.
5217 [\\/]* | ?:[\\/]*)
5218 re_direlt='/[^/][^/]*/\.\./'
5219 # Canonicalize the pathname of ld
5220 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5221 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5222 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5223 done
5224 test -z "$LD" && LD="$ac_prog"
5225 ;;
5226 "")
5227 # If it fails, then pretend we aren't using GCC.
5228 ac_prog=ld
5229 ;;
5230 *)
5231 # If it is relative, then search for the first ld in PATH.
5232 with_gnu_ld=unknown
5233 ;;
5234 esac
5235 elif test "$with_gnu_ld" = yes; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5237 $as_echo_n "checking for GNU ld... " >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5240 $as_echo_n "checking for non-GNU ld... " >&6; }
5241 fi
5242 if ${lt_cv_path_LD+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -z "$LD"; then
5246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5247 for ac_dir in $PATH; do
5248 IFS="$lt_save_ifs"
5249 test -z "$ac_dir" && ac_dir=.
5250 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5251 lt_cv_path_LD="$ac_dir/$ac_prog"
5252 # Check to see if the program is GNU ld. I'd rather use --version,
5253 # but apparently some variants of GNU ld only accept -v.
5254 # Break only if it was the GNU/non-GNU ld that we prefer.
5255 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5256 *GNU* | *'with BFD'*)
5257 test "$with_gnu_ld" != no && break
5258 ;;
5259 *)
5260 test "$with_gnu_ld" != yes && break
5261 ;;
5262 esac
5263 fi
5264 done
5265 IFS="$lt_save_ifs"
5266 else
5267 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5268 fi
5269 fi
5270
5271 LD="$lt_cv_path_LD"
5272 if test -n "$LD"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5274 $as_echo "$LD" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5281 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5282 if ${lt_cv_prog_gnu_ld+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5286 case `$LD -v 2>&1 </dev/null` in
5287 *GNU* | *'with BFD'*)
5288 lt_cv_prog_gnu_ld=yes
5289 ;;
5290 *)
5291 lt_cv_prog_gnu_ld=no
5292 ;;
5293 esac
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5296 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5297 with_gnu_ld=$lt_cv_prog_gnu_ld
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5308 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5309 if ${lt_cv_path_NM+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$NM"; then
5313 # Let the user override the test.
5314 lt_cv_path_NM="$NM"
5315 else
5316 lt_nm_to_check="${ac_tool_prefix}nm"
5317 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5318 lt_nm_to_check="$lt_nm_to_check nm"
5319 fi
5320 for lt_tmp_nm in $lt_nm_to_check; do
5321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5322 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5323 IFS="$lt_save_ifs"
5324 test -z "$ac_dir" && ac_dir=.
5325 tmp_nm="$ac_dir/$lt_tmp_nm"
5326 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5327 # Check to see if the nm accepts a BSD-compat flag.
5328 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5329 # nm: unknown option "B" ignored
5330 # Tru64's nm complains that /dev/null is an invalid object file
5331 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5332 */dev/null* | *'Invalid file or object type'*)
5333 lt_cv_path_NM="$tmp_nm -B"
5334 break
5335 ;;
5336 *)
5337 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5338 */dev/null*)
5339 lt_cv_path_NM="$tmp_nm -p"
5340 break
5341 ;;
5342 *)
5343 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5344 continue # so that we can try to find one that supports BSD flags
5345 ;;
5346 esac
5347 ;;
5348 esac
5349 fi
5350 done
5351 IFS="$lt_save_ifs"
5352 done
5353 : ${lt_cv_path_NM=no}
5354 fi
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5357 $as_echo "$lt_cv_path_NM" >&6; }
5358 if test "$lt_cv_path_NM" != "no"; then
5359 NM="$lt_cv_path_NM"
5360 else
5361 # Didn't find any BSD compatible name lister, look for dumpbin.
5362 if test -n "$DUMPBIN"; then :
5363 # Let the user override the test.
5364 else
5365 if test -n "$ac_tool_prefix"; then
5366 for ac_prog in dumpbin "link -dump"
5367 do
5368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_DUMPBIN+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$DUMPBIN"; then
5376 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 DUMPBIN=$ac_cv_prog_DUMPBIN
5396 if test -n "$DUMPBIN"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5398 $as_echo "$DUMPBIN" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405 test -n "$DUMPBIN" && break
5406 done
5407 fi
5408 if test -z "$DUMPBIN"; then
5409 ac_ct_DUMPBIN=$DUMPBIN
5410 for ac_prog in dumpbin "link -dump"
5411 do
5412 # Extract the first word of "$ac_prog", so it can be a program name with args.
5413 set dummy $ac_prog; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$ac_ct_DUMPBIN"; then
5420 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5432 fi
5433 done
5434 done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5440 if test -n "$ac_ct_DUMPBIN"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5442 $as_echo "$ac_ct_DUMPBIN" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448
5449 test -n "$ac_ct_DUMPBIN" && break
5450 done
5451
5452 if test "x$ac_ct_DUMPBIN" = x; then
5453 DUMPBIN=":"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456 yes:)
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459 ac_tool_warned=yes ;;
5460 esac
5461 DUMPBIN=$ac_ct_DUMPBIN
5462 fi
5463 fi
5464
5465 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5466 *COFF*)
5467 DUMPBIN="$DUMPBIN -symbols"
5468 ;;
5469 *)
5470 DUMPBIN=:
5471 ;;
5472 esac
5473 fi
5474
5475 if test "$DUMPBIN" != ":"; then
5476 NM="$DUMPBIN"
5477 fi
5478 fi
5479 test -z "$NM" && NM=nm
5480
5481
5482
5483
5484
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5487 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5488 if ${lt_cv_nm_interface+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 lt_cv_nm_interface="BSD nm"
5492 echo "int some_variable = 0;" > conftest.$ac_ext
5493 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5494 (eval "$ac_compile" 2>conftest.err)
5495 cat conftest.err >&5
5496 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5497 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5498 cat conftest.err >&5
5499 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5500 cat conftest.out >&5
5501 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5502 lt_cv_nm_interface="MS dumpbin"
5503 fi
5504 rm -f conftest*
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5507 $as_echo "$lt_cv_nm_interface" >&6; }
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5510 $as_echo_n "checking whether ln -s works... " >&6; }
5511 LN_S=$as_ln_s
5512 if test "$LN_S" = "ln -s"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5517 $as_echo "no, using $LN_S" >&6; }
5518 fi
5519
5520 # find the maximum length of command line arguments
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5522 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5523 if ${lt_cv_sys_max_cmd_len+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 i=0
5527 teststring="ABCD"
5528
5529 case $build_os in
5530 msdosdjgpp*)
5531 # On DJGPP, this test can blow up pretty badly due to problems in libc
5532 # (any single argument exceeding 2000 bytes causes a buffer overrun
5533 # during glob expansion). Even if it were fixed, the result of this
5534 # check would be larger than it should be.
5535 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5536 ;;
5537
5538 gnu*)
5539 # Under GNU Hurd, this test is not required because there is
5540 # no limit to the length of command line arguments.
5541 # Libtool will interpret -1 as no limit whatsoever
5542 lt_cv_sys_max_cmd_len=-1;
5543 ;;
5544
5545 cygwin* | mingw* | cegcc*)
5546 # On Win9x/ME, this test blows up -- it succeeds, but takes
5547 # about 5 minutes as the teststring grows exponentially.
5548 # Worse, since 9x/ME are not pre-emptively multitasking,
5549 # you end up with a "frozen" computer, even though with patience
5550 # the test eventually succeeds (with a max line length of 256k).
5551 # Instead, let's just punt: use the minimum linelength reported by
5552 # all of the supported platforms: 8192 (on NT/2K/XP).
5553 lt_cv_sys_max_cmd_len=8192;
5554 ;;
5555
5556 mint*)
5557 # On MiNT this can take a long time and run out of memory.
5558 lt_cv_sys_max_cmd_len=8192;
5559 ;;
5560
5561 amigaos*)
5562 # On AmigaOS with pdksh, this test takes hours, literally.
5563 # So we just punt and use a minimum line length of 8192.
5564 lt_cv_sys_max_cmd_len=8192;
5565 ;;
5566
5567 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5568 # This has been around since 386BSD, at least. Likely further.
5569 if test -x /sbin/sysctl; then
5570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5571 elif test -x /usr/sbin/sysctl; then
5572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5573 else
5574 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5575 fi
5576 # And add a safety zone
5577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5579 ;;
5580
5581 interix*)
5582 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5583 lt_cv_sys_max_cmd_len=196608
5584 ;;
5585
5586 os2*)
5587 # The test takes a long time on OS/2.
5588 lt_cv_sys_max_cmd_len=8192
5589 ;;
5590
5591 osf*)
5592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5594 # nice to cause kernel panics so lets avoid the loop below.
5595 # First set a reasonable default.
5596 lt_cv_sys_max_cmd_len=16384
5597 #
5598 if test -x /sbin/sysconfig; then
5599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5601 esac
5602 fi
5603 ;;
5604 sco3.2v5*)
5605 lt_cv_sys_max_cmd_len=102400
5606 ;;
5607 sysv5* | sco5v6* | sysv4.2uw2*)
5608 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5609 if test -n "$kargmax"; then
5610 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5611 else
5612 lt_cv_sys_max_cmd_len=32768
5613 fi
5614 ;;
5615 *)
5616 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5617 if test -n "$lt_cv_sys_max_cmd_len"; then
5618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5620 else
5621 # Make teststring a little bigger before we do anything with it.
5622 # a 1K string should be a reasonable start.
5623 for i in 1 2 3 4 5 6 7 8 ; do
5624 teststring=$teststring$teststring
5625 done
5626 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5627 # If test is not a shell built-in, we'll probably end up computing a
5628 # maximum length that is only half of the actual maximum length, but
5629 # we can't tell.
5630 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5631 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5632 test $i != 17 # 1/2 MB should be enough
5633 do
5634 i=`expr $i + 1`
5635 teststring=$teststring$teststring
5636 done
5637 # Only check the string length outside the loop.
5638 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5639 teststring=
5640 # Add a significant safety factor because C++ compilers can tack on
5641 # massive amounts of additional arguments before passing them to the
5642 # linker. It appears as though 1/2 is a usable value.
5643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5644 fi
5645 ;;
5646 esac
5647
5648 fi
5649
5650 if test -n $lt_cv_sys_max_cmd_len ; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5652 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5655 $as_echo "none" >&6; }
5656 fi
5657 max_cmd_len=$lt_cv_sys_max_cmd_len
5658
5659
5660
5661
5662
5663
5664 : ${CP="cp -f"}
5665 : ${MV="mv -f"}
5666 : ${RM="rm -f"}
5667
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5669 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5670 # Try some XSI features
5671 xsi_shell=no
5672 ( _lt_dummy="a/b/c"
5673 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5674 = c,a/b,b/c, \
5675 && eval 'test $(( 1 + 1 )) -eq 2 \
5676 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5677 && xsi_shell=yes
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5679 $as_echo "$xsi_shell" >&6; }
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5683 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5684 lt_shell_append=no
5685 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5686 >/dev/null 2>&1 \
5687 && lt_shell_append=yes
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5689 $as_echo "$lt_shell_append" >&6; }
5690
5691
5692 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5693 lt_unset=unset
5694 else
5695 lt_unset=false
5696 fi
5697
5698
5699
5700
5701
5702 # test EBCDIC or ASCII
5703 case `echo X|tr X '\101'` in
5704 A) # ASCII based system
5705 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5706 lt_SP2NL='tr \040 \012'
5707 lt_NL2SP='tr \015\012 \040\040'
5708 ;;
5709 *) # EBCDIC based system
5710 lt_SP2NL='tr \100 \n'
5711 lt_NL2SP='tr \r\n \100\100'
5712 ;;
5713 esac
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5724 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5725 if ${lt_cv_to_host_file_cmd+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 case $host in
5729 *-*-mingw* )
5730 case $build in
5731 *-*-mingw* ) # actually msys
5732 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5733 ;;
5734 *-*-cygwin* )
5735 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5736 ;;
5737 * ) # otherwise, assume *nix
5738 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5739 ;;
5740 esac
5741 ;;
5742 *-*-cygwin* )
5743 case $build in
5744 *-*-mingw* ) # actually msys
5745 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5746 ;;
5747 *-*-cygwin* )
5748 lt_cv_to_host_file_cmd=func_convert_file_noop
5749 ;;
5750 * ) # otherwise, assume *nix
5751 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5752 ;;
5753 esac
5754 ;;
5755 * ) # unhandled hosts (and "normal" native builds)
5756 lt_cv_to_host_file_cmd=func_convert_file_noop
5757 ;;
5758 esac
5759
5760 fi
5761
5762 to_host_file_cmd=$lt_cv_to_host_file_cmd
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5764 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5765
5766
5767
5768
5769
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5771 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5772 if ${lt_cv_to_tool_file_cmd+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 #assume ordinary cross tools, or native build.
5776 lt_cv_to_tool_file_cmd=func_convert_file_noop
5777 case $host in
5778 *-*-mingw* )
5779 case $build in
5780 *-*-mingw* ) # actually msys
5781 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5782 ;;
5783 esac
5784 ;;
5785 esac
5786
5787 fi
5788
5789 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5791 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5792
5793
5794
5795
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5798 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5799 if ${lt_cv_ld_reload_flag+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 lt_cv_ld_reload_flag='-r'
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5805 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5806 reload_flag=$lt_cv_ld_reload_flag
5807 case $reload_flag in
5808 "" | " "*) ;;
5809 *) reload_flag=" $reload_flag" ;;
5810 esac
5811 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5812 case $host_os in
5813 cygwin* | mingw* | pw32* | cegcc*)
5814 if test "$GCC" != yes; then
5815 reload_cmds=false
5816 fi
5817 ;;
5818 darwin*)
5819 if test "$GCC" = yes; then
5820 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5821 else
5822 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5823 fi
5824 ;;
5825 esac
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835 if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5837 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_prog_OBJDUMP+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if test -n "$OBJDUMP"; then
5844 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 OBJDUMP=$ac_cv_prog_OBJDUMP
5864 if test -n "$OBJDUMP"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5866 $as_echo "$OBJDUMP" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872
5873 fi
5874 if test -z "$ac_cv_prog_OBJDUMP"; then
5875 ac_ct_OBJDUMP=$OBJDUMP
5876 # Extract the first word of "objdump", so it can be a program name with args.
5877 set dummy objdump; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 if test -n "$ac_ct_OBJDUMP"; then
5884 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901 fi
5902 fi
5903 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5904 if test -n "$ac_ct_OBJDUMP"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5906 $as_echo "$ac_ct_OBJDUMP" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912 if test "x$ac_ct_OBJDUMP" = x; then
5913 OBJDUMP="false"
5914 else
5915 case $cross_compiling:$ac_tool_warned in
5916 yes:)
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5919 ac_tool_warned=yes ;;
5920 esac
5921 OBJDUMP=$ac_ct_OBJDUMP
5922 fi
5923 else
5924 OBJDUMP="$ac_cv_prog_OBJDUMP"
5925 fi
5926
5927 test -z "$OBJDUMP" && OBJDUMP=objdump
5928
5929
5930
5931
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5935 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5936 if ${lt_cv_deplibs_check_method+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 lt_cv_file_magic_cmd='$MAGIC_CMD'
5940 lt_cv_file_magic_test_file=
5941 lt_cv_deplibs_check_method='unknown'
5942 # Need to set the preceding variable on all platforms that support
5943 # interlibrary dependencies.
5944 # 'none' -- dependencies not supported.
5945 # `unknown' -- same as none, but documents that we really don't know.
5946 # 'pass_all' -- all dependencies passed with no checks.
5947 # 'test_compile' -- check by making test program.
5948 # 'file_magic [[regex]]' -- check by looking for files in library path
5949 # which responds to the $file_magic_cmd with a given extended regex.
5950 # If you have `file' or equivalent on your system and you're not sure
5951 # whether `pass_all' will *always* work, you probably want this one.
5952
5953 case $host_os in
5954 aix[4-9]*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
5957
5958 beos*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962 bsdi[45]*)
5963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5964 lt_cv_file_magic_cmd='/usr/bin/file -L'
5965 lt_cv_file_magic_test_file=/shlib/libc.so
5966 ;;
5967
5968 cygwin*)
5969 # func_win32_libid is a shell function defined in ltmain.sh
5970 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5971 lt_cv_file_magic_cmd='func_win32_libid'
5972 ;;
5973
5974 mingw* | pw32*)
5975 # Base MSYS/MinGW do not provide the 'file' command needed by
5976 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5977 # unless we find 'file', for example because we are cross-compiling.
5978 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5979 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5981 lt_cv_file_magic_cmd='func_win32_libid'
5982 else
5983 # Keep this pattern in sync with the one in func_win32_libid.
5984 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5985 lt_cv_file_magic_cmd='$OBJDUMP -f'
5986 fi
5987 ;;
5988
5989 cegcc*)
5990 # use the weaker test based on 'objdump'. See mingw*.
5991 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5992 lt_cv_file_magic_cmd='$OBJDUMP -f'
5993 ;;
5994
5995 darwin* | rhapsody*)
5996 lt_cv_deplibs_check_method=pass_all
5997 ;;
5998
5999 freebsd* | dragonfly*)
6000 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6001 case $host_cpu in
6002 i*86 )
6003 # Not sure whether the presence of OpenBSD here was a mistake.
6004 # Let's accept both of them until this is cleared up.
6005 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6006 lt_cv_file_magic_cmd=/usr/bin/file
6007 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6008 ;;
6009 esac
6010 else
6011 lt_cv_deplibs_check_method=pass_all
6012 fi
6013 ;;
6014
6015 gnu*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018
6019 haiku*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023 hpux10.20* | hpux11*)
6024 lt_cv_file_magic_cmd=/usr/bin/file
6025 case $host_cpu in
6026 ia64*)
6027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6028 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6029 ;;
6030 hppa*64*)
6031 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]'
6032 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6033 ;;
6034 *)
6035 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6036 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6037 ;;
6038 esac
6039 ;;
6040
6041 interix[3-9]*)
6042 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6044 ;;
6045
6046 irix5* | irix6* | nonstopux*)
6047 case $LD in
6048 *-32|*"-32 ") libmagic=32-bit;;
6049 *-n32|*"-n32 ") libmagic=N32;;
6050 *-64|*"-64 ") libmagic=64-bit;;
6051 *) libmagic=never-match;;
6052 esac
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055
6056 # This must be glibc/ELF.
6057 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
6060
6061 netbsd*)
6062 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6064 else
6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6066 fi
6067 ;;
6068
6069 newos6*)
6070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6071 lt_cv_file_magic_cmd=/usr/bin/file
6072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6073 ;;
6074
6075 *nto* | *qnx*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079 openbsd*)
6080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6082 else
6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6084 fi
6085 ;;
6086
6087 osf3* | osf4* | osf5*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090
6091 rdos*)
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095 solaris*)
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
6098
6099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6100 lt_cv_deplibs_check_method=pass_all
6101 ;;
6102
6103 sysv4 | sysv4.3*)
6104 case $host_vendor in
6105 motorola)
6106 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]'
6107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6108 ;;
6109 ncr)
6110 lt_cv_deplibs_check_method=pass_all
6111 ;;
6112 sequent)
6113 lt_cv_file_magic_cmd='/bin/file'
6114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6115 ;;
6116 sni)
6117 lt_cv_file_magic_cmd='/bin/file'
6118 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6119 lt_cv_file_magic_test_file=/lib/libc.so
6120 ;;
6121 siemens)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124 pc)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127 esac
6128 ;;
6129
6130 tpf*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133 esac
6134
6135 fi
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6137 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6138
6139 file_magic_glob=
6140 want_nocaseglob=no
6141 if test "$build" = "$host"; then
6142 case $host_os in
6143 mingw* | pw32*)
6144 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6145 want_nocaseglob=yes
6146 else
6147 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6148 fi
6149 ;;
6150 esac
6151 fi
6152
6153 file_magic_cmd=$lt_cv_file_magic_cmd
6154 deplibs_check_method=$lt_cv_deplibs_check_method
6155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178 if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6180 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_DLLTOOL+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$DLLTOOL"; then
6187 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 DLLTOOL=$ac_cv_prog_DLLTOOL
6207 if test -n "$DLLTOOL"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6209 $as_echo "$DLLTOOL" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215
6216 fi
6217 if test -z "$ac_cv_prog_DLLTOOL"; then
6218 ac_ct_DLLTOOL=$DLLTOOL
6219 # Extract the first word of "dlltool", so it can be a program name with args.
6220 set dummy dlltool; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 if test -n "$ac_ct_DLLTOOL"; then
6227 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240 done
6241 done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6247 if test -n "$ac_ct_DLLTOOL"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6249 $as_echo "$ac_ct_DLLTOOL" >&6; }
6250 else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255 if test "x$ac_ct_DLLTOOL" = x; then
6256 DLLTOOL="false"
6257 else
6258 case $cross_compiling:$ac_tool_warned in
6259 yes:)
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262 ac_tool_warned=yes ;;
6263 esac
6264 DLLTOOL=$ac_ct_DLLTOOL
6265 fi
6266 else
6267 DLLTOOL="$ac_cv_prog_DLLTOOL"
6268 fi
6269
6270 test -z "$DLLTOOL" && DLLTOOL=dlltool
6271
6272
6273
6274
6275
6276
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6279 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6280 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 lt_cv_sharedlib_from_linklib_cmd='unknown'
6284
6285 case $host_os in
6286 cygwin* | mingw* | pw32* | cegcc*)
6287 # two different shell functions defined in ltmain.sh
6288 # decide which to use based on capabilities of $DLLTOOL
6289 case `$DLLTOOL --help 2>&1` in
6290 *--identify-strict*)
6291 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6292 ;;
6293 *)
6294 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6295 ;;
6296 esac
6297 ;;
6298 *)
6299 # fallback: assume linklib IS sharedlib
6300 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6301 ;;
6302 esac
6303
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6306 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6307 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6308 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6309
6310
6311
6312
6313
6314
6315
6316 if test -n "$ac_tool_prefix"; then
6317 for ac_prog in ar
6318 do
6319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_prog_AR+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$AR"; then
6327 ac_cv_prog_AR="$AR" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 AR=$ac_cv_prog_AR
6347 if test -n "$AR"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6349 $as_echo "$AR" >&6; }
6350 else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6353 fi
6354
6355
6356 test -n "$AR" && break
6357 done
6358 fi
6359 if test -z "$AR"; then
6360 ac_ct_AR=$AR
6361 for ac_prog in ar
6362 do
6363 # Extract the first word of "$ac_prog", so it can be a program name with args.
6364 set dummy $ac_prog; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 if test -n "$ac_ct_AR"; then
6371 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380 ac_cv_prog_ac_ct_AR="$ac_prog"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6383 fi
6384 done
6385 done
6386 IFS=$as_save_IFS
6387
6388 fi
6389 fi
6390 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6391 if test -n "$ac_ct_AR"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6393 $as_echo "$ac_ct_AR" >&6; }
6394 else
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6397 fi
6398
6399
6400 test -n "$ac_ct_AR" && break
6401 done
6402
6403 if test "x$ac_ct_AR" = x; then
6404 AR="false"
6405 else
6406 case $cross_compiling:$ac_tool_warned in
6407 yes:)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410 ac_tool_warned=yes ;;
6411 esac
6412 AR=$ac_ct_AR
6413 fi
6414 fi
6415
6416 : ${AR=ar}
6417 : ${AR_FLAGS=cru}
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6430 $as_echo_n "checking for archiver @FILE support... " >&6; }
6431 if ${lt_cv_ar_at_file+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 lt_cv_ar_at_file=no
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437
6438 int
6439 main ()
6440 {
6441
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"; then :
6447 echo conftest.$ac_objext > conftest.lst
6448 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6450 (eval $lt_ar_try) 2>&5
6451 ac_status=$?
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; }
6454 if test "$ac_status" -eq 0; then
6455 # Ensure the archiver fails upon bogus file names.
6456 rm -f conftest.$ac_objext libconftest.a
6457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6458 (eval $lt_ar_try) 2>&5
6459 ac_status=$?
6460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461 test $ac_status = 0; }
6462 if test "$ac_status" -ne 0; then
6463 lt_cv_ar_at_file=@
6464 fi
6465 fi
6466 rm -f conftest.* libconftest.a
6467
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6473 $as_echo "$lt_cv_ar_at_file" >&6; }
6474
6475 if test "x$lt_cv_ar_at_file" = xno; then
6476 archiver_list_spec=
6477 else
6478 archiver_list_spec=$lt_cv_ar_at_file
6479 fi
6480
6481
6482
6483
6484
6485
6486
6487 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}strip; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_STRIP+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$STRIP"; then
6496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 STRIP=$ac_cv_prog_STRIP
6516 if test -n "$STRIP"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6518 $as_echo "$STRIP" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524
6525 fi
6526 if test -z "$ac_cv_prog_STRIP"; then
6527 ac_ct_STRIP=$STRIP
6528 # Extract the first word of "strip", so it can be a program name with args.
6529 set dummy strip; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$ac_ct_STRIP"; then
6536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_ac_ct_STRIP="strip"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6556 if test -n "$ac_ct_STRIP"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6558 $as_echo "$ac_ct_STRIP" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564 if test "x$ac_ct_STRIP" = x; then
6565 STRIP=":"
6566 else
6567 case $cross_compiling:$ac_tool_warned in
6568 yes:)
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573 STRIP=$ac_ct_STRIP
6574 fi
6575 else
6576 STRIP="$ac_cv_prog_STRIP"
6577 fi
6578
6579 test -z "$STRIP" && STRIP=:
6580
6581
6582
6583
6584
6585
6586 if test -n "$ac_tool_prefix"; then
6587 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_RANLIB+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if test -n "$RANLIB"; then
6595 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 RANLIB=$ac_cv_prog_RANLIB
6615 if test -n "$RANLIB"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6617 $as_echo "$RANLIB" >&6; }
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624 fi
6625 if test -z "$ac_cv_prog_RANLIB"; then
6626 ac_ct_RANLIB=$RANLIB
6627 # Extract the first word of "ranlib", so it can be a program name with args.
6628 set dummy ranlib; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$ac_ct_RANLIB"; then
6635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_ac_ct_RANLIB="ranlib"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6655 if test -n "$ac_ct_RANLIB"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6657 $as_echo "$ac_ct_RANLIB" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663 if test "x$ac_ct_RANLIB" = x; then
6664 RANLIB=":"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670 ac_tool_warned=yes ;;
6671 esac
6672 RANLIB=$ac_ct_RANLIB
6673 fi
6674 else
6675 RANLIB="$ac_cv_prog_RANLIB"
6676 fi
6677
6678 test -z "$RANLIB" && RANLIB=:
6679
6680
6681
6682
6683
6684
6685 # Determine commands to create old-style static archives.
6686 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6687 old_postinstall_cmds='chmod 644 $oldlib'
6688 old_postuninstall_cmds=
6689
6690 if test -n "$RANLIB"; then
6691 case $host_os in
6692 openbsd*)
6693 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6694 ;;
6695 *)
6696 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6697 ;;
6698 esac
6699 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6700 fi
6701
6702 case $host_os in
6703 darwin*)
6704 lock_old_archive_extraction=yes ;;
6705 *)
6706 lock_old_archive_extraction=no ;;
6707 esac
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747 # If no C compiler was specified, use CC.
6748 LTCC=${LTCC-"$CC"}
6749
6750 # If no C compiler flags were specified, use CFLAGS.
6751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6752
6753 # Allow CC to be a program name with arguments.
6754 compiler=$CC
6755
6756
6757 # Check for command to grab the raw symbol name followed by C symbol from nm.
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6759 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6760 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763
6764 # These are sane defaults that work on at least a few old systems.
6765 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6766
6767 # Character class describing NM global symbol codes.
6768 symcode='[BCDEGRST]'
6769
6770 # Regexp to match symbols that can be accessed directly from C.
6771 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6772
6773 # Define system-specific variables.
6774 case $host_os in
6775 aix*)
6776 symcode='[BCDT]'
6777 ;;
6778 cygwin* | mingw* | pw32* | cegcc*)
6779 symcode='[ABCDGISTW]'
6780 ;;
6781 hpux*)
6782 if test "$host_cpu" = ia64; then
6783 symcode='[ABCDEGRST]'
6784 fi
6785 ;;
6786 irix* | nonstopux*)
6787 symcode='[BCDEGRST]'
6788 ;;
6789 osf*)
6790 symcode='[BCDEGQRST]'
6791 ;;
6792 solaris*)
6793 symcode='[BDRT]'
6794 ;;
6795 sco3.2v5*)
6796 symcode='[DT]'
6797 ;;
6798 sysv4.2uw2*)
6799 symcode='[DT]'
6800 ;;
6801 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6802 symcode='[ABDT]'
6803 ;;
6804 sysv4)
6805 symcode='[DFNSTU]'
6806 ;;
6807 esac
6808
6809 # If we're using GNU nm, then use its standard symbol codes.
6810 case `$NM -V 2>&1` in
6811 *GNU* | *'with BFD'*)
6812 symcode='[ABCDGIRSTW]' ;;
6813 esac
6814
6815 # Transform an extracted symbol line into a proper C declaration.
6816 # Some systems (esp. on ia64) link data and code symbols differently,
6817 # so use this general approach.
6818 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6819
6820 # Transform an extracted symbol line into symbol name and symbol address
6821 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6823
6824 # Handle CRLF in mingw tool chain
6825 opt_cr=
6826 case $build_os in
6827 mingw*)
6828 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6829 ;;
6830 esac
6831
6832 # Try without a prefix underscore, then with it.
6833 for ac_symprfx in "" "_"; do
6834
6835 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6836 symxfrm="\\1 $ac_symprfx\\2 \\2"
6837
6838 # Write the raw and C identifiers.
6839 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6840 # Fake it for dumpbin and say T for any non-static function
6841 # and D for any global variable.
6842 # Also find C++ and __fastcall symbols from MSVC++,
6843 # which start with @ or ?.
6844 lt_cv_sys_global_symbol_pipe="$AWK '"\
6845 " {last_section=section; section=\$ 3};"\
6846 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6847 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6848 " \$ 0!~/External *\|/{next};"\
6849 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6850 " {if(hide[section]) next};"\
6851 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6852 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6853 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6854 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6855 " ' prfx=^$ac_symprfx"
6856 else
6857 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6858 fi
6859 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6860
6861 # Check to see that the pipe works correctly.
6862 pipe_works=no
6863
6864 rm -f conftest*
6865 cat > conftest.$ac_ext <<_LT_EOF
6866 #ifdef __cplusplus
6867 extern "C" {
6868 #endif
6869 char nm_test_var;
6870 void nm_test_func(void);
6871 void nm_test_func(void){}
6872 #ifdef __cplusplus
6873 }
6874 #endif
6875 int main(){nm_test_var='a';nm_test_func();return(0);}
6876 _LT_EOF
6877
6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6879 (eval $ac_compile) 2>&5
6880 ac_status=$?
6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; }; then
6883 # Now try to grab the symbols.
6884 nlist=conftest.nm
6885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6886 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6887 ac_status=$?
6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889 test $ac_status = 0; } && test -s "$nlist"; then
6890 # Try sorting and uniquifying the output.
6891 if sort "$nlist" | uniq > "$nlist"T; then
6892 mv -f "$nlist"T "$nlist"
6893 else
6894 rm -f "$nlist"T
6895 fi
6896
6897 # Make sure that we snagged all the symbols we need.
6898 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6899 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6900 cat <<_LT_EOF > conftest.$ac_ext
6901 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6902 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6903 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6904 relocations are performed -- see ld's documentation on pseudo-relocs. */
6905 # define LT_DLSYM_CONST
6906 #elif defined(__osf__)
6907 /* This system does not cope well with relocations in const data. */
6908 # define LT_DLSYM_CONST
6909 #else
6910 # define LT_DLSYM_CONST const
6911 #endif
6912
6913 #ifdef __cplusplus
6914 extern "C" {
6915 #endif
6916
6917 _LT_EOF
6918 # Now generate the symbol file.
6919 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6920
6921 cat <<_LT_EOF >> conftest.$ac_ext
6922
6923 /* The mapping between symbol names and symbols. */
6924 LT_DLSYM_CONST struct {
6925 const char *name;
6926 void *address;
6927 }
6928 lt__PROGRAM__LTX_preloaded_symbols[] =
6929 {
6930 { "@PROGRAM@", (void *) 0 },
6931 _LT_EOF
6932 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6933 cat <<\_LT_EOF >> conftest.$ac_ext
6934 {0, (void *) 0}
6935 };
6936
6937 /* This works around a problem in FreeBSD linker */
6938 #ifdef FREEBSD_WORKAROUND
6939 static const void *lt_preloaded_setup() {
6940 return lt__PROGRAM__LTX_preloaded_symbols;
6941 }
6942 #endif
6943
6944 #ifdef __cplusplus
6945 }
6946 #endif
6947 _LT_EOF
6948 # Now try linking the two files.
6949 mv conftest.$ac_objext conftstm.$ac_objext
6950 lt_globsym_save_LIBS=$LIBS
6951 lt_globsym_save_CFLAGS=$CFLAGS
6952 LIBS="conftstm.$ac_objext"
6953 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6955 (eval $ac_link) 2>&5
6956 ac_status=$?
6957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6958 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6959 pipe_works=yes
6960 fi
6961 LIBS=$lt_globsym_save_LIBS
6962 CFLAGS=$lt_globsym_save_CFLAGS
6963 else
6964 echo "cannot find nm_test_func in $nlist" >&5
6965 fi
6966 else
6967 echo "cannot find nm_test_var in $nlist" >&5
6968 fi
6969 else
6970 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6971 fi
6972 else
6973 echo "$progname: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6975 fi
6976 rm -rf conftest* conftst*
6977
6978 # Do not use the global_symbol_pipe unless it works.
6979 if test "$pipe_works" = yes; then
6980 break
6981 else
6982 lt_cv_sys_global_symbol_pipe=
6983 fi
6984 done
6985
6986 fi
6987
6988 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6989 lt_cv_sys_global_symbol_to_cdecl=
6990 fi
6991 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6993 $as_echo "failed" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6996 $as_echo "ok" >&6; }
6997 fi
6998
6999 # Response file support.
7000 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7001 nm_file_list_spec='@'
7002 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7003 nm_file_list_spec='@'
7004 fi
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7033 $as_echo_n "checking for sysroot... " >&6; }
7034
7035 # Check whether --with-sysroot was given.
7036 if test "${with_sysroot+set}" = set; then :
7037 withval=$with_sysroot;
7038 else
7039 with_sysroot=no
7040 fi
7041
7042
7043 lt_sysroot=
7044 case ${with_sysroot} in #(
7045 yes)
7046 if test "$GCC" = yes; then
7047 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7048 fi
7049 ;; #(
7050 /*)
7051 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7052 ;; #(
7053 no|'')
7054 ;; #(
7055 *)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7057 $as_echo "${with_sysroot}" >&6; }
7058 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7059 ;;
7060 esac
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7063 $as_echo "${lt_sysroot:-no}" >&6; }
7064
7065
7066
7067
7068
7069 # Check whether --enable-libtool-lock was given.
7070 if test "${enable_libtool_lock+set}" = set; then :
7071 enableval=$enable_libtool_lock;
7072 fi
7073
7074 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7075
7076 # Some flags need to be propagated to the compiler or linker for good
7077 # libtool support.
7078 case $host in
7079 ia64-*-hpux*)
7080 # Find out which ABI we are using.
7081 echo 'int i;' > conftest.$ac_ext
7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083 (eval $ac_compile) 2>&5
7084 ac_status=$?
7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; }; then
7087 case `/usr/bin/file conftest.$ac_objext` in
7088 *ELF-32*)
7089 HPUX_IA64_MODE="32"
7090 ;;
7091 *ELF-64*)
7092 HPUX_IA64_MODE="64"
7093 ;;
7094 esac
7095 fi
7096 rm -rf conftest*
7097 ;;
7098 *-*-irix6*)
7099 # Find out which ABI we are using.
7100 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 if test "$lt_cv_prog_gnu_ld" = yes; then
7107 case `/usr/bin/file conftest.$ac_objext` in
7108 *32-bit*)
7109 LD="${LD-ld} -melf32bsmip"
7110 ;;
7111 *N32*)
7112 LD="${LD-ld} -melf32bmipn32"
7113 ;;
7114 *64-bit*)
7115 LD="${LD-ld} -melf64bmip"
7116 ;;
7117 esac
7118 else
7119 case `/usr/bin/file conftest.$ac_objext` in
7120 *32-bit*)
7121 LD="${LD-ld} -32"
7122 ;;
7123 *N32*)
7124 LD="${LD-ld} -n32"
7125 ;;
7126 *64-bit*)
7127 LD="${LD-ld} -64"
7128 ;;
7129 esac
7130 fi
7131 fi
7132 rm -rf conftest*
7133 ;;
7134
7135 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7136 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7137 # Find out which ABI we are using.
7138 echo 'int i;' > conftest.$ac_ext
7139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7140 (eval $ac_compile) 2>&5
7141 ac_status=$?
7142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143 test $ac_status = 0; }; then
7144 case `/usr/bin/file conftest.o` in
7145 *32-bit*)
7146 case $host in
7147 x86_64-*kfreebsd*-gnu)
7148 LD="${LD-ld} -m elf_i386_fbsd"
7149 ;;
7150 x86_64-*linux*)
7151 LD="${LD-ld} -m elf_i386"
7152 ;;
7153 powerpc64le-*linux*)
7154 LD="${LD-ld} -m elf32lppclinux"
7155 ;;
7156 powerpc64-*linux*)
7157 LD="${LD-ld} -m elf32ppclinux"
7158 ;;
7159 s390x-*linux*)
7160 LD="${LD-ld} -m elf_s390"
7161 ;;
7162 sparc64-*linux*)
7163 LD="${LD-ld} -m elf32_sparc"
7164 ;;
7165 esac
7166 ;;
7167 *64-bit*)
7168 case $host in
7169 x86_64-*kfreebsd*-gnu)
7170 LD="${LD-ld} -m elf_x86_64_fbsd"
7171 ;;
7172 x86_64-*linux*)
7173 LD="${LD-ld} -m elf_x86_64"
7174 ;;
7175 powerpcle-*linux*)
7176 LD="${LD-ld} -m elf64lppc"
7177 ;;
7178 powerpc-*linux*)
7179 LD="${LD-ld} -m elf64ppc"
7180 ;;
7181 s390*-*linux*|s390*-*tpf*)
7182 LD="${LD-ld} -m elf64_s390"
7183 ;;
7184 sparc*-*linux*)
7185 LD="${LD-ld} -m elf64_sparc"
7186 ;;
7187 esac
7188 ;;
7189 esac
7190 fi
7191 rm -rf conftest*
7192 ;;
7193
7194 *-*-sco3.2v5*)
7195 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7196 SAVE_CFLAGS="$CFLAGS"
7197 CFLAGS="$CFLAGS -belf"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7199 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7200 if ${lt_cv_cc_needs_belf+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 ac_ext=c
7204 ac_cpp='$CPP $CPPFLAGS'
7205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7208
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211
7212 int
7213 main ()
7214 {
7215
7216 ;
7217 return 0;
7218 }
7219 _ACEOF
7220 if ac_fn_c_try_link "$LINENO"; then :
7221 lt_cv_cc_needs_belf=yes
7222 else
7223 lt_cv_cc_needs_belf=no
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext \
7226 conftest$ac_exeext conftest.$ac_ext
7227 ac_ext=c
7228 ac_cpp='$CPP $CPPFLAGS'
7229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7232
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7235 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7236 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7237 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7238 CFLAGS="$SAVE_CFLAGS"
7239 fi
7240 ;;
7241 *-*solaris*)
7242 # Find out which ABI we are using.
7243 echo 'int i;' > conftest.$ac_ext
7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245 (eval $ac_compile) 2>&5
7246 ac_status=$?
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; }; then
7249 case `/usr/bin/file conftest.o` in
7250 *64-bit*)
7251 case $lt_cv_prog_gnu_ld in
7252 yes*)
7253 case $host in
7254 i?86-*-solaris*)
7255 LD="${LD-ld} -m elf_x86_64"
7256 ;;
7257 sparc*-*-solaris*)
7258 LD="${LD-ld} -m elf64_sparc"
7259 ;;
7260 esac
7261 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7262 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7263 LD="${LD-ld}_sol2"
7264 fi
7265 ;;
7266 *)
7267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7268 LD="${LD-ld} -64"
7269 fi
7270 ;;
7271 esac
7272 ;;
7273 esac
7274 fi
7275 rm -rf conftest*
7276 ;;
7277 esac
7278
7279 need_locks="$enable_libtool_lock"
7280
7281 if test -n "$ac_tool_prefix"; then
7282 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7283 set dummy ${ac_tool_prefix}mt; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$MANIFEST_TOOL"; then
7290 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7310 if test -n "$MANIFEST_TOOL"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7312 $as_echo "$MANIFEST_TOOL" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7316 fi
7317
7318
7319 fi
7320 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7321 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7322 # Extract the first word of "mt", so it can be a program name with args.
7323 set dummy mt; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test -n "$ac_ct_MANIFEST_TOOL"; then
7330 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347 fi
7348 fi
7349 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7350 if test -n "$ac_ct_MANIFEST_TOOL"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7352 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7353 else
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357
7358 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7359 MANIFEST_TOOL=":"
7360 else
7361 case $cross_compiling:$ac_tool_warned in
7362 yes:)
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7365 ac_tool_warned=yes ;;
7366 esac
7367 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7368 fi
7369 else
7370 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7371 fi
7372
7373 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7375 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7376 if ${lt_cv_path_mainfest_tool+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 lt_cv_path_mainfest_tool=no
7380 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7381 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7382 cat conftest.err >&5
7383 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7384 lt_cv_path_mainfest_tool=yes
7385 fi
7386 rm -f conftest*
7387 fi
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7389 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7390 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7391 MANIFEST_TOOL=:
7392 fi
7393
7394
7395
7396
7397
7398
7399 case $host_os in
7400 rhapsody* | darwin*)
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$DSYMUTIL"; then
7410 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7430 if test -n "$DSYMUTIL"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7432 $as_echo "$DSYMUTIL" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_DSYMUTIL"; then
7441 ac_ct_DSYMUTIL=$DSYMUTIL
7442 # Extract the first word of "dsymutil", so it can be a program name with args.
7443 set dummy dsymutil; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_DSYMUTIL"; then
7450 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7470 if test -n "$ac_ct_DSYMUTIL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7472 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478 if test "x$ac_ct_DSYMUTIL" = x; then
7479 DSYMUTIL=":"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 DSYMUTIL=$ac_ct_DSYMUTIL
7488 fi
7489 else
7490 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7491 fi
7492
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_NMEDIT+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$NMEDIT"; then
7502 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 NMEDIT=$ac_cv_prog_NMEDIT
7522 if test -n "$NMEDIT"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7524 $as_echo "$NMEDIT" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_NMEDIT"; then
7533 ac_ct_NMEDIT=$NMEDIT
7534 # Extract the first word of "nmedit", so it can be a program name with args.
7535 set dummy nmedit; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 if test -n "$ac_ct_NMEDIT"; then
7542 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7562 if test -n "$ac_ct_NMEDIT"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7564 $as_echo "$ac_ct_NMEDIT" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570 if test "x$ac_ct_NMEDIT" = x; then
7571 NMEDIT=":"
7572 else
7573 case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579 NMEDIT=$ac_ct_NMEDIT
7580 fi
7581 else
7582 NMEDIT="$ac_cv_prog_NMEDIT"
7583 fi
7584
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_LIPO+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$LIPO"; then
7594 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 LIPO=$ac_cv_prog_LIPO
7614 if test -n "$LIPO"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7616 $as_echo "$LIPO" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if test -z "$ac_cv_prog_LIPO"; then
7625 ac_ct_LIPO=$LIPO
7626 # Extract the first word of "lipo", so it can be a program name with args.
7627 set dummy lipo; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$ac_ct_LIPO"; then
7634 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_ac_ct_LIPO="lipo"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7654 if test -n "$ac_ct_LIPO"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7656 $as_echo "$ac_ct_LIPO" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662 if test "x$ac_ct_LIPO" = x; then
7663 LIPO=":"
7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669 ac_tool_warned=yes ;;
7670 esac
7671 LIPO=$ac_ct_LIPO
7672 fi
7673 else
7674 LIPO="$ac_cv_prog_LIPO"
7675 fi
7676
7677 if test -n "$ac_tool_prefix"; then
7678 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7679 set dummy ${ac_tool_prefix}otool; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_prog_OTOOL+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 if test -n "$OTOOL"; then
7686 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 OTOOL=$ac_cv_prog_OTOOL
7706 if test -n "$OTOOL"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7708 $as_echo "$OTOOL" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714
7715 fi
7716 if test -z "$ac_cv_prog_OTOOL"; then
7717 ac_ct_OTOOL=$OTOOL
7718 # Extract the first word of "otool", so it can be a program name with args.
7719 set dummy otool; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$ac_ct_OTOOL"; then
7726 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735 ac_cv_prog_ac_ct_OTOOL="otool"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7746 if test -n "$ac_ct_OTOOL"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7748 $as_echo "$ac_ct_OTOOL" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754 if test "x$ac_ct_OTOOL" = x; then
7755 OTOOL=":"
7756 else
7757 case $cross_compiling:$ac_tool_warned in
7758 yes:)
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7761 ac_tool_warned=yes ;;
7762 esac
7763 OTOOL=$ac_ct_OTOOL
7764 fi
7765 else
7766 OTOOL="$ac_cv_prog_OTOOL"
7767 fi
7768
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_OTOOL64+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$OTOOL64"; then
7778 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 OTOOL64=$ac_cv_prog_OTOOL64
7798 if test -n "$OTOOL64"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7800 $as_echo "$OTOOL64" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806
7807 fi
7808 if test -z "$ac_cv_prog_OTOOL64"; then
7809 ac_ct_OTOOL64=$OTOOL64
7810 # Extract the first word of "otool64", so it can be a program name with args.
7811 set dummy otool64; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test -n "$ac_ct_OTOOL64"; then
7818 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_ac_ct_OTOOL64="otool64"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7838 if test -n "$ac_ct_OTOOL64"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7840 $as_echo "$ac_ct_OTOOL64" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845
7846 if test "x$ac_ct_OTOOL64" = x; then
7847 OTOOL64=":"
7848 else
7849 case $cross_compiling:$ac_tool_warned in
7850 yes:)
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853 ac_tool_warned=yes ;;
7854 esac
7855 OTOOL64=$ac_ct_OTOOL64
7856 fi
7857 else
7858 OTOOL64="$ac_cv_prog_OTOOL64"
7859 fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7888 $as_echo_n "checking for -single_module linker flag... " >&6; }
7889 if ${lt_cv_apple_cc_single_mod+:} false; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 lt_cv_apple_cc_single_mod=no
7893 if test -z "${LT_MULTI_MODULE}"; then
7894 # By default we will add the -single_module flag. You can override
7895 # by either setting the environment variable LT_MULTI_MODULE
7896 # non-empty at configure time, or by adding -multi_module to the
7897 # link flags.
7898 rm -rf libconftest.dylib*
7899 echo "int foo(void){return 1;}" > conftest.c
7900 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7901 -dynamiclib -Wl,-single_module conftest.c" >&5
7902 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7903 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7904 _lt_result=$?
7905 # If there is a non-empty error log, and "single_module"
7906 # appears in it, assume the flag caused a linker warning
7907 if test -s conftest.err && $GREP single_module conftest.err; then
7908 cat conftest.err >&5
7909 # Otherwise, if the output was created with a 0 exit code from
7910 # the compiler, it worked.
7911 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7912 lt_cv_apple_cc_single_mod=yes
7913 else
7914 cat conftest.err >&5
7915 fi
7916 rm -rf libconftest.dylib*
7917 rm -f conftest.*
7918 fi
7919 fi
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7921 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7922
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7924 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7925 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 lt_cv_ld_exported_symbols_list=no
7929 save_LDFLAGS=$LDFLAGS
7930 echo "_main" > conftest.sym
7931 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934
7935 int
7936 main ()
7937 {
7938
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"; then :
7944 lt_cv_ld_exported_symbols_list=yes
7945 else
7946 lt_cv_ld_exported_symbols_list=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950 LDFLAGS="$save_LDFLAGS"
7951
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7954 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7957 $as_echo_n "checking for -force_load linker flag... " >&6; }
7958 if ${lt_cv_ld_force_load+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 lt_cv_ld_force_load=no
7962 cat > conftest.c << _LT_EOF
7963 int forced_loaded() { return 2;}
7964 _LT_EOF
7965 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7966 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7967 echo "$AR cru libconftest.a conftest.o" >&5
7968 $AR cru libconftest.a conftest.o 2>&5
7969 echo "$RANLIB libconftest.a" >&5
7970 $RANLIB libconftest.a 2>&5
7971 cat > conftest.c << _LT_EOF
7972 int main() { return 0;}
7973 _LT_EOF
7974 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7975 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7976 _lt_result=$?
7977 if test -s conftest.err && $GREP force_load conftest.err; then
7978 cat conftest.err >&5
7979 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7980 lt_cv_ld_force_load=yes
7981 else
7982 cat conftest.err >&5
7983 fi
7984 rm -f conftest.err libconftest.a conftest conftest.c
7985 rm -rf conftest.dSYM
7986
7987 fi
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7989 $as_echo "$lt_cv_ld_force_load" >&6; }
7990 case $host_os in
7991 rhapsody* | darwin1.[012])
7992 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7993 darwin1.*)
7994 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7995 darwin*) # darwin 5.x on
7996 # if running on 10.5 or later, the deployment target defaults
7997 # to the OS version, if on x86, and 10.4, the deployment
7998 # target defaults to 10.4. Don't you love it?
7999 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8000 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8001 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8002 10.[012]*)
8003 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8004 10.*)
8005 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8006 esac
8007 ;;
8008 esac
8009 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8010 _lt_dar_single_mod='$single_module'
8011 fi
8012 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8013 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8014 else
8015 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8016 fi
8017 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8018 _lt_dsymutil='~$DSYMUTIL $lib || :'
8019 else
8020 _lt_dsymutil=
8021 fi
8022 ;;
8023 esac
8024
8025 for ac_header in dlfcn.h
8026 do :
8027 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8028 "
8029 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8030 cat >>confdefs.h <<_ACEOF
8031 #define HAVE_DLFCN_H 1
8032 _ACEOF
8033
8034 fi
8035
8036 done
8037
8038
8039
8040
8041
8042 # Set options
8043 enable_win32_dll=yes
8044
8045 case $host in
8046 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8047 if test -n "$ac_tool_prefix"; then
8048 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8049 set dummy ${ac_tool_prefix}as; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if ${ac_cv_prog_AS+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 if test -n "$AS"; then
8056 ac_cv_prog_AS="$AS" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065 ac_cv_prog_AS="${ac_tool_prefix}as"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069 done
8070 done
8071 IFS=$as_save_IFS
8072
8073 fi
8074 fi
8075 AS=$ac_cv_prog_AS
8076 if test -n "$AS"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8078 $as_echo "$AS" >&6; }
8079 else
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084
8085 fi
8086 if test -z "$ac_cv_prog_AS"; then
8087 ac_ct_AS=$AS
8088 # Extract the first word of "as", so it can be a program name with args.
8089 set dummy as; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 if test -n "$ac_ct_AS"; then
8096 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105 ac_cv_prog_ac_ct_AS="as"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109 done
8110 done
8111 IFS=$as_save_IFS
8112
8113 fi
8114 fi
8115 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8116 if test -n "$ac_ct_AS"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8118 $as_echo "$ac_ct_AS" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8122 fi
8123
8124 if test "x$ac_ct_AS" = x; then
8125 AS="false"
8126 else
8127 case $cross_compiling:$ac_tool_warned in
8128 yes:)
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8131 ac_tool_warned=yes ;;
8132 esac
8133 AS=$ac_ct_AS
8134 fi
8135 else
8136 AS="$ac_cv_prog_AS"
8137 fi
8138
8139 if test -n "$ac_tool_prefix"; then
8140 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8141 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if ${ac_cv_prog_DLLTOOL+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 if test -n "$DLLTOOL"; then
8148 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161 done
8162 done
8163 IFS=$as_save_IFS
8164
8165 fi
8166 fi
8167 DLLTOOL=$ac_cv_prog_DLLTOOL
8168 if test -n "$DLLTOOL"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8170 $as_echo "$DLLTOOL" >&6; }
8171 else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176
8177 fi
8178 if test -z "$ac_cv_prog_DLLTOOL"; then
8179 ac_ct_DLLTOOL=$DLLTOOL
8180 # Extract the first word of "dlltool", so it can be a program name with args.
8181 set dummy dlltool; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 if test -n "$ac_ct_DLLTOOL"; then
8188 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8189 else
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8192 do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8200 fi
8201 done
8202 done
8203 IFS=$as_save_IFS
8204
8205 fi
8206 fi
8207 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8208 if test -n "$ac_ct_DLLTOOL"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8210 $as_echo "$ac_ct_DLLTOOL" >&6; }
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8214 fi
8215
8216 if test "x$ac_ct_DLLTOOL" = x; then
8217 DLLTOOL="false"
8218 else
8219 case $cross_compiling:$ac_tool_warned in
8220 yes:)
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8223 ac_tool_warned=yes ;;
8224 esac
8225 DLLTOOL=$ac_ct_DLLTOOL
8226 fi
8227 else
8228 DLLTOOL="$ac_cv_prog_DLLTOOL"
8229 fi
8230
8231 if test -n "$ac_tool_prefix"; then
8232 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8233 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_prog_OBJDUMP+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 if test -n "$OBJDUMP"; then
8240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8252 fi
8253 done
8254 done
8255 IFS=$as_save_IFS
8256
8257 fi
8258 fi
8259 OBJDUMP=$ac_cv_prog_OBJDUMP
8260 if test -n "$OBJDUMP"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8262 $as_echo "$OBJDUMP" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268
8269 fi
8270 if test -z "$ac_cv_prog_OBJDUMP"; then
8271 ac_ct_OBJDUMP=$OBJDUMP
8272 # Extract the first word of "objdump", so it can be a program name with args.
8273 set dummy objdump; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 if test -n "$ac_ct_OBJDUMP"; then
8280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8284 do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8292 fi
8293 done
8294 done
8295 IFS=$as_save_IFS
8296
8297 fi
8298 fi
8299 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8300 if test -n "$ac_ct_OBJDUMP"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8302 $as_echo "$ac_ct_OBJDUMP" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307
8308 if test "x$ac_ct_OBJDUMP" = x; then
8309 OBJDUMP="false"
8310 else
8311 case $cross_compiling:$ac_tool_warned in
8312 yes:)
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8316 esac
8317 OBJDUMP=$ac_ct_OBJDUMP
8318 fi
8319 else
8320 OBJDUMP="$ac_cv_prog_OBJDUMP"
8321 fi
8322
8323 ;;
8324 esac
8325
8326 test -z "$AS" && AS=as
8327
8328
8329
8330
8331
8332 test -z "$DLLTOOL" && DLLTOOL=dlltool
8333
8334
8335
8336
8337
8338 test -z "$OBJDUMP" && OBJDUMP=objdump
8339
8340
8341
8342
8343 # Check whether --enable-static was given.
8344 if test "${enable_static+set}" = set; then :
8345 enableval=$enable_static; p=${PACKAGE-default}
8346 case $enableval in
8347 yes) enable_static=yes ;;
8348 no) enable_static=no ;;
8349 *)
8350 enable_static=no
8351 # Look at the argument we got. We use all the common list separators.
8352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8353 for pkg in $enableval; do
8354 IFS="$lt_save_ifs"
8355 if test "X$pkg" = "X$p"; then
8356 enable_static=yes
8357 fi
8358 done
8359 IFS="$lt_save_ifs"
8360 ;;
8361 esac
8362 else
8363 enable_static=no
8364 fi
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375 enable_dlopen=no
8376
8377
8378
8379 # Check whether --enable-shared was given.
8380 if test "${enable_shared+set}" = set; then :
8381 enableval=$enable_shared; p=${PACKAGE-default}
8382 case $enableval in
8383 yes) enable_shared=yes ;;
8384 no) enable_shared=no ;;
8385 *)
8386 enable_shared=no
8387 # Look at the argument we got. We use all the common list separators.
8388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8389 for pkg in $enableval; do
8390 IFS="$lt_save_ifs"
8391 if test "X$pkg" = "X$p"; then
8392 enable_shared=yes
8393 fi
8394 done
8395 IFS="$lt_save_ifs"
8396 ;;
8397 esac
8398 else
8399 enable_shared=yes
8400 fi
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412 # Check whether --with-pic was given.
8413 if test "${with_pic+set}" = set; then :
8414 withval=$with_pic; lt_p=${PACKAGE-default}
8415 case $withval in
8416 yes|no) pic_mode=$withval ;;
8417 *)
8418 pic_mode=default
8419 # Look at the argument we got. We use all the common list separators.
8420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8421 for lt_pkg in $withval; do
8422 IFS="$lt_save_ifs"
8423 if test "X$lt_pkg" = "X$lt_p"; then
8424 pic_mode=yes
8425 fi
8426 done
8427 IFS="$lt_save_ifs"
8428 ;;
8429 esac
8430 else
8431 pic_mode=default
8432 fi
8433
8434
8435 test -z "$pic_mode" && pic_mode=default
8436
8437
8438
8439
8440
8441
8442
8443 # Check whether --enable-fast-install was given.
8444 if test "${enable_fast_install+set}" = set; then :
8445 enableval=$enable_fast_install; p=${PACKAGE-default}
8446 case $enableval in
8447 yes) enable_fast_install=yes ;;
8448 no) enable_fast_install=no ;;
8449 *)
8450 enable_fast_install=no
8451 # Look at the argument we got. We use all the common list separators.
8452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8453 for pkg in $enableval; do
8454 IFS="$lt_save_ifs"
8455 if test "X$pkg" = "X$p"; then
8456 enable_fast_install=yes
8457 fi
8458 done
8459 IFS="$lt_save_ifs"
8460 ;;
8461 esac
8462 else
8463 enable_fast_install=yes
8464 fi
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476 # This can be used to rebuild libtool when needed
8477 LIBTOOL_DEPS="$ltmain"
8478
8479 # Always use our own libtool.
8480 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511 test -z "$LN_S" && LN_S="ln -s"
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 if test -n "${ZSH_VERSION+set}" ; then
8527 setopt NO_GLOB_SUBST
8528 fi
8529
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8531 $as_echo_n "checking for objdir... " >&6; }
8532 if ${lt_cv_objdir+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 rm -f .libs 2>/dev/null
8536 mkdir .libs 2>/dev/null
8537 if test -d .libs; then
8538 lt_cv_objdir=.libs
8539 else
8540 # MS-DOS does not allow filenames that begin with a dot.
8541 lt_cv_objdir=_libs
8542 fi
8543 rmdir .libs 2>/dev/null
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8546 $as_echo "$lt_cv_objdir" >&6; }
8547 objdir=$lt_cv_objdir
8548
8549
8550
8551
8552
8553 cat >>confdefs.h <<_ACEOF
8554 #define LT_OBJDIR "$lt_cv_objdir/"
8555 _ACEOF
8556
8557
8558
8559
8560 case $host_os in
8561 aix3*)
8562 # AIX sometimes has problems with the GCC collect2 program. For some
8563 # reason, if we set the COLLECT_NAMES environment variable, the problems
8564 # vanish in a puff of smoke.
8565 if test "X${COLLECT_NAMES+set}" != Xset; then
8566 COLLECT_NAMES=
8567 export COLLECT_NAMES
8568 fi
8569 ;;
8570 esac
8571
8572 # Global variables:
8573 ofile=libtool
8574 can_build_shared=yes
8575
8576 # All known linkers require a `.a' archive for static linking (except MSVC,
8577 # which needs '.lib').
8578 libext=a
8579
8580 with_gnu_ld="$lt_cv_prog_gnu_ld"
8581
8582 old_CC="$CC"
8583 old_CFLAGS="$CFLAGS"
8584
8585 # Set sane defaults for various variables
8586 test -z "$CC" && CC=cc
8587 test -z "$LTCC" && LTCC=$CC
8588 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8589 test -z "$LD" && LD=ld
8590 test -z "$ac_objext" && ac_objext=o
8591
8592 for cc_temp in $compiler""; do
8593 case $cc_temp in
8594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8596 \-*) ;;
8597 *) break;;
8598 esac
8599 done
8600 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8601
8602
8603 # Only perform the check for file, if the check method requires it
8604 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8605 case $deplibs_check_method in
8606 file_magic*)
8607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8609 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8610 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 case $MAGIC_CMD in
8614 [\\/*] | ?:[\\/]*)
8615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8616 ;;
8617 *)
8618 lt_save_MAGIC_CMD="$MAGIC_CMD"
8619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8621 for ac_dir in $ac_dummy; do
8622 IFS="$lt_save_ifs"
8623 test -z "$ac_dir" && ac_dir=.
8624 if test -f $ac_dir/${ac_tool_prefix}file; then
8625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8626 if test -n "$file_magic_test_file"; then
8627 case $deplibs_check_method in
8628 "file_magic "*)
8629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8632 $EGREP "$file_magic_regex" > /dev/null; then
8633 :
8634 else
8635 cat <<_LT_EOF 1>&2
8636
8637 *** Warning: the command libtool uses to detect shared libraries,
8638 *** $file_magic_cmd, produces output that libtool cannot recognize.
8639 *** The result is that libtool may fail to recognize shared libraries
8640 *** as such. This will affect the creation of libtool libraries that
8641 *** depend on shared libraries, but programs linked with such libtool
8642 *** libraries will work regardless of this problem. Nevertheless, you
8643 *** may want to report the problem to your system manager and/or to
8644 *** [email protected]
8645
8646 _LT_EOF
8647 fi ;;
8648 esac
8649 fi
8650 break
8651 fi
8652 done
8653 IFS="$lt_save_ifs"
8654 MAGIC_CMD="$lt_save_MAGIC_CMD"
8655 ;;
8656 esac
8657 fi
8658
8659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8660 if test -n "$MAGIC_CMD"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8662 $as_echo "$MAGIC_CMD" >&6; }
8663 else
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666 fi
8667
8668
8669
8670
8671
8672 if test -z "$lt_cv_path_MAGIC_CMD"; then
8673 if test -n "$ac_tool_prefix"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8675 $as_echo_n "checking for file... " >&6; }
8676 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 case $MAGIC_CMD in
8680 [\\/*] | ?:[\\/]*)
8681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8682 ;;
8683 *)
8684 lt_save_MAGIC_CMD="$MAGIC_CMD"
8685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8687 for ac_dir in $ac_dummy; do
8688 IFS="$lt_save_ifs"
8689 test -z "$ac_dir" && ac_dir=.
8690 if test -f $ac_dir/file; then
8691 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8692 if test -n "$file_magic_test_file"; then
8693 case $deplibs_check_method in
8694 "file_magic "*)
8695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8698 $EGREP "$file_magic_regex" > /dev/null; then
8699 :
8700 else
8701 cat <<_LT_EOF 1>&2
8702
8703 *** Warning: the command libtool uses to detect shared libraries,
8704 *** $file_magic_cmd, produces output that libtool cannot recognize.
8705 *** The result is that libtool may fail to recognize shared libraries
8706 *** as such. This will affect the creation of libtool libraries that
8707 *** depend on shared libraries, but programs linked with such libtool
8708 *** libraries will work regardless of this problem. Nevertheless, you
8709 *** may want to report the problem to your system manager and/or to
8710 *** [email protected]
8711
8712 _LT_EOF
8713 fi ;;
8714 esac
8715 fi
8716 break
8717 fi
8718 done
8719 IFS="$lt_save_ifs"
8720 MAGIC_CMD="$lt_save_MAGIC_CMD"
8721 ;;
8722 esac
8723 fi
8724
8725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8726 if test -n "$MAGIC_CMD"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8728 $as_echo "$MAGIC_CMD" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733
8734
8735 else
8736 MAGIC_CMD=:
8737 fi
8738 fi
8739
8740 fi
8741 ;;
8742 esac
8743
8744 # Use C for the default configuration in the libtool script
8745
8746 lt_save_CC="$CC"
8747 ac_ext=c
8748 ac_cpp='$CPP $CPPFLAGS'
8749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8752
8753
8754 # Source file extension for C test sources.
8755 ac_ext=c
8756
8757 # Object file extension for compiled C test sources.
8758 objext=o
8759 objext=$objext
8760
8761 # Code to be used in simple compile tests
8762 lt_simple_compile_test_code="int some_variable = 0;"
8763
8764 # Code to be used in simple link tests
8765 lt_simple_link_test_code='int main(){return(0);}'
8766
8767
8768
8769
8770
8771
8772
8773 # If no C compiler was specified, use CC.
8774 LTCC=${LTCC-"$CC"}
8775
8776 # If no C compiler flags were specified, use CFLAGS.
8777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8778
8779 # Allow CC to be a program name with arguments.
8780 compiler=$CC
8781
8782 # Save the default compiler, since it gets overwritten when the other
8783 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8784 compiler_DEFAULT=$CC
8785
8786 # save warnings/boilerplate of simple test code
8787 ac_outfile=conftest.$ac_objext
8788 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8789 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8790 _lt_compiler_boilerplate=`cat conftest.err`
8791 $RM conftest*
8792
8793 ac_outfile=conftest.$ac_objext
8794 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8795 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8796 _lt_linker_boilerplate=`cat conftest.err`
8797 $RM -r conftest*
8798
8799
8800 ## CAVEAT EMPTOR:
8801 ## There is no encapsulation within the following macros, do not change
8802 ## the running order or otherwise move them around unless you know exactly
8803 ## what you are doing...
8804 if test -n "$compiler"; then
8805
8806 lt_prog_compiler_no_builtin_flag=
8807
8808 if test "$GCC" = yes; then
8809 case $cc_basename in
8810 nvcc*)
8811 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8812 *)
8813 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8814 esac
8815
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8817 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8818 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 lt_cv_prog_compiler_rtti_exceptions=no
8822 ac_outfile=conftest.$ac_objext
8823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8824 lt_compiler_flag="-fno-rtti -fno-exceptions"
8825 # Insert the option either (1) after the last *FLAGS variable, or
8826 # (2) before a word containing "conftest.", or (3) at the end.
8827 # Note that $ac_compile itself does not contain backslashes and begins
8828 # with a dollar sign (not a hyphen), so the echo should work correctly.
8829 # The option is referenced via a variable to avoid confusing sed.
8830 lt_compile=`echo "$ac_compile" | $SED \
8831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8833 -e 's:$: $lt_compiler_flag:'`
8834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8835 (eval "$lt_compile" 2>conftest.err)
8836 ac_status=$?
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 if (exit $ac_status) && test -s "$ac_outfile"; then
8840 # The compiler can only warn and ignore the option if not recognized
8841 # So say no if there are warnings other than the usual output.
8842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8845 lt_cv_prog_compiler_rtti_exceptions=yes
8846 fi
8847 fi
8848 $RM conftest*
8849
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8852 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8853
8854 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8856 else
8857 :
8858 fi
8859
8860 fi
8861
8862
8863
8864
8865
8866
8867 lt_prog_compiler_wl=
8868 lt_prog_compiler_pic=
8869 lt_prog_compiler_static=
8870
8871
8872 if test "$GCC" = yes; then
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_static='-static'
8875
8876 case $host_os in
8877 aix*)
8878 # All AIX code is PIC.
8879 if test "$host_cpu" = ia64; then
8880 # AIX 5 now supports IA64 processor
8881 lt_prog_compiler_static='-Bstatic'
8882 fi
8883 ;;
8884
8885 amigaos*)
8886 case $host_cpu in
8887 powerpc)
8888 # see comment about AmigaOS4 .so support
8889 lt_prog_compiler_pic='-fPIC'
8890 ;;
8891 m68k)
8892 # FIXME: we need at least 68020 code to build shared libraries, but
8893 # adding the `-m68020' flag to GCC prevents building anything better,
8894 # like `-m68040'.
8895 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8896 ;;
8897 esac
8898 ;;
8899
8900 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8901 # PIC is the default for these OSes.
8902 ;;
8903
8904 mingw* | cygwin* | pw32* | os2* | cegcc*)
8905 # This hack is so that the source file can tell whether it is being
8906 # built for inclusion in a dll (and should export symbols for example).
8907 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8908 # (--disable-auto-import) libraries
8909 lt_prog_compiler_pic='-DDLL_EXPORT'
8910 ;;
8911
8912 darwin* | rhapsody*)
8913 # PIC is the default on this platform
8914 # Common symbols not allowed in MH_DYLIB files
8915 lt_prog_compiler_pic='-fno-common'
8916 ;;
8917
8918 haiku*)
8919 # PIC is the default for Haiku.
8920 # The "-static" flag exists, but is broken.
8921 lt_prog_compiler_static=
8922 ;;
8923
8924 hpux*)
8925 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8926 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8927 # sets the default TLS model and affects inlining.
8928 case $host_cpu in
8929 hppa*64*)
8930 # +Z the default
8931 ;;
8932 *)
8933 lt_prog_compiler_pic='-fPIC'
8934 ;;
8935 esac
8936 ;;
8937
8938 interix[3-9]*)
8939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8940 # Instead, we relocate shared libraries at runtime.
8941 ;;
8942
8943 msdosdjgpp*)
8944 # Just because we use GCC doesn't mean we suddenly get shared libraries
8945 # on systems that don't support them.
8946 lt_prog_compiler_can_build_shared=no
8947 enable_shared=no
8948 ;;
8949
8950 *nto* | *qnx*)
8951 # QNX uses GNU C++, but need to define -shared option too, otherwise
8952 # it will coredump.
8953 lt_prog_compiler_pic='-fPIC -shared'
8954 ;;
8955
8956 sysv4*MP*)
8957 if test -d /usr/nec; then
8958 lt_prog_compiler_pic=-Kconform_pic
8959 fi
8960 ;;
8961
8962 *)
8963 lt_prog_compiler_pic='-fPIC'
8964 ;;
8965 esac
8966
8967 case $cc_basename in
8968 nvcc*) # Cuda Compiler Driver 2.2
8969 lt_prog_compiler_wl='-Xlinker '
8970 if test -n "$lt_prog_compiler_pic"; then
8971 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8972 fi
8973 ;;
8974 esac
8975 else
8976 # PORTME Check for flag to pass linker flags through the system compiler.
8977 case $host_os in
8978 aix*)
8979 lt_prog_compiler_wl='-Wl,'
8980 if test "$host_cpu" = ia64; then
8981 # AIX 5 now supports IA64 processor
8982 lt_prog_compiler_static='-Bstatic'
8983 else
8984 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8985 fi
8986 ;;
8987
8988 mingw* | cygwin* | pw32* | os2* | cegcc*)
8989 # This hack is so that the source file can tell whether it is being
8990 # built for inclusion in a dll (and should export symbols for example).
8991 lt_prog_compiler_pic='-DDLL_EXPORT'
8992 ;;
8993
8994 hpux9* | hpux10* | hpux11*)
8995 lt_prog_compiler_wl='-Wl,'
8996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8997 # not for PA HP-UX.
8998 case $host_cpu in
8999 hppa*64*|ia64*)
9000 # +Z the default
9001 ;;
9002 *)
9003 lt_prog_compiler_pic='+Z'
9004 ;;
9005 esac
9006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9007 lt_prog_compiler_static='${wl}-a ${wl}archive'
9008 ;;
9009
9010 irix5* | irix6* | nonstopux*)
9011 lt_prog_compiler_wl='-Wl,'
9012 # PIC (with -KPIC) is the default.
9013 lt_prog_compiler_static='-non_shared'
9014 ;;
9015
9016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9017 case $cc_basename in
9018 # old Intel for x86_64 which still supported -KPIC.
9019 ecc*)
9020 lt_prog_compiler_wl='-Wl,'
9021 lt_prog_compiler_pic='-KPIC'
9022 lt_prog_compiler_static='-static'
9023 ;;
9024 # icc used to be incompatible with GCC.
9025 # ICC 10 doesn't accept -KPIC any more.
9026 icc* | ifort*)
9027 lt_prog_compiler_wl='-Wl,'
9028 lt_prog_compiler_pic='-fPIC'
9029 lt_prog_compiler_static='-static'
9030 ;;
9031 # Lahey Fortran 8.1.
9032 lf95*)
9033 lt_prog_compiler_wl='-Wl,'
9034 lt_prog_compiler_pic='--shared'
9035 lt_prog_compiler_static='--static'
9036 ;;
9037 nagfor*)
9038 # NAG Fortran compiler
9039 lt_prog_compiler_wl='-Wl,-Wl,,'
9040 lt_prog_compiler_pic='-PIC'
9041 lt_prog_compiler_static='-Bstatic'
9042 ;;
9043 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9044 # Portland Group compilers (*not* the Pentium gcc compiler,
9045 # which looks to be a dead project)
9046 lt_prog_compiler_wl='-Wl,'
9047 lt_prog_compiler_pic='-fpic'
9048 lt_prog_compiler_static='-Bstatic'
9049 ;;
9050 ccc*)
9051 lt_prog_compiler_wl='-Wl,'
9052 # All Alpha code is PIC.
9053 lt_prog_compiler_static='-non_shared'
9054 ;;
9055 xl* | bgxl* | bgf* | mpixl*)
9056 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9057 lt_prog_compiler_wl='-Wl,'
9058 lt_prog_compiler_pic='-qpic'
9059 lt_prog_compiler_static='-qstaticlink'
9060 ;;
9061 *)
9062 case `$CC -V 2>&1 | sed 5q` in
9063 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9064 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-Bstatic'
9067 lt_prog_compiler_wl=''
9068 ;;
9069 *Sun\ F* | *Sun*Fortran*)
9070 lt_prog_compiler_pic='-KPIC'
9071 lt_prog_compiler_static='-Bstatic'
9072 lt_prog_compiler_wl='-Qoption ld '
9073 ;;
9074 *Sun\ C*)
9075 # Sun C 5.9
9076 lt_prog_compiler_pic='-KPIC'
9077 lt_prog_compiler_static='-Bstatic'
9078 lt_prog_compiler_wl='-Wl,'
9079 ;;
9080 *Intel*\ [CF]*Compiler*)
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_pic='-fPIC'
9083 lt_prog_compiler_static='-static'
9084 ;;
9085 *Portland\ Group*)
9086 lt_prog_compiler_wl='-Wl,'
9087 lt_prog_compiler_pic='-fpic'
9088 lt_prog_compiler_static='-Bstatic'
9089 ;;
9090 esac
9091 ;;
9092 esac
9093 ;;
9094
9095 newsos6)
9096 lt_prog_compiler_pic='-KPIC'
9097 lt_prog_compiler_static='-Bstatic'
9098 ;;
9099
9100 *nto* | *qnx*)
9101 # QNX uses GNU C++, but need to define -shared option too, otherwise
9102 # it will coredump.
9103 lt_prog_compiler_pic='-fPIC -shared'
9104 ;;
9105
9106 osf3* | osf4* | osf5*)
9107 lt_prog_compiler_wl='-Wl,'
9108 # All OSF/1 code is PIC.
9109 lt_prog_compiler_static='-non_shared'
9110 ;;
9111
9112 rdos*)
9113 lt_prog_compiler_static='-non_shared'
9114 ;;
9115
9116 solaris*)
9117 lt_prog_compiler_pic='-KPIC'
9118 lt_prog_compiler_static='-Bstatic'
9119 case $cc_basename in
9120 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9121 lt_prog_compiler_wl='-Qoption ld ';;
9122 *)
9123 lt_prog_compiler_wl='-Wl,';;
9124 esac
9125 ;;
9126
9127 sunos4*)
9128 lt_prog_compiler_wl='-Qoption ld '
9129 lt_prog_compiler_pic='-PIC'
9130 lt_prog_compiler_static='-Bstatic'
9131 ;;
9132
9133 sysv4 | sysv4.2uw2* | sysv4.3*)
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-KPIC'
9136 lt_prog_compiler_static='-Bstatic'
9137 ;;
9138
9139 sysv4*MP*)
9140 if test -d /usr/nec ;then
9141 lt_prog_compiler_pic='-Kconform_pic'
9142 lt_prog_compiler_static='-Bstatic'
9143 fi
9144 ;;
9145
9146 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_pic='-KPIC'
9149 lt_prog_compiler_static='-Bstatic'
9150 ;;
9151
9152 unicos*)
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_can_build_shared=no
9155 ;;
9156
9157 uts4*)
9158 lt_prog_compiler_pic='-pic'
9159 lt_prog_compiler_static='-Bstatic'
9160 ;;
9161
9162 *)
9163 lt_prog_compiler_can_build_shared=no
9164 ;;
9165 esac
9166 fi
9167
9168 case $host_os in
9169 # For platforms which do not support PIC, -DPIC is meaningless:
9170 *djgpp*)
9171 lt_prog_compiler_pic=
9172 ;;
9173 *)
9174 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9175 ;;
9176 esac
9177
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9179 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9180 if ${lt_cv_prog_compiler_pic+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9184 fi
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9186 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9187 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9188
9189 #
9190 # Check to make sure the PIC flag actually works.
9191 #
9192 if test -n "$lt_prog_compiler_pic"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9194 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9195 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 lt_cv_prog_compiler_pic_works=no
9199 ac_outfile=conftest.$ac_objext
9200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9201 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9202 # Insert the option either (1) after the last *FLAGS variable, or
9203 # (2) before a word containing "conftest.", or (3) at the end.
9204 # Note that $ac_compile itself does not contain backslashes and begins
9205 # with a dollar sign (not a hyphen), so the echo should work correctly.
9206 # The option is referenced via a variable to avoid confusing sed.
9207 lt_compile=`echo "$ac_compile" | $SED \
9208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9210 -e 's:$: $lt_compiler_flag:'`
9211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9212 (eval "$lt_compile" 2>conftest.err)
9213 ac_status=$?
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 if (exit $ac_status) && test -s "$ac_outfile"; then
9217 # The compiler can only warn and ignore the option if not recognized
9218 # So say no if there are warnings other than the usual output.
9219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9222 lt_cv_prog_compiler_pic_works=yes
9223 fi
9224 fi
9225 $RM conftest*
9226
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9229 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9230
9231 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9232 case $lt_prog_compiler_pic in
9233 "" | " "*) ;;
9234 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9235 esac
9236 else
9237 lt_prog_compiler_pic=
9238 lt_prog_compiler_can_build_shared=no
9239 fi
9240
9241 fi
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253 #
9254 # Check to make sure the static flag actually works.
9255 #
9256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9258 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9259 if ${lt_cv_prog_compiler_static_works+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 lt_cv_prog_compiler_static_works=no
9263 save_LDFLAGS="$LDFLAGS"
9264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9265 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9267 # The linker can only warn and ignore the option if not recognized
9268 # So say no if there are warnings
9269 if test -s conftest.err; then
9270 # Append any errors to the config.log.
9271 cat conftest.err 1>&5
9272 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9274 if diff conftest.exp conftest.er2 >/dev/null; then
9275 lt_cv_prog_compiler_static_works=yes
9276 fi
9277 else
9278 lt_cv_prog_compiler_static_works=yes
9279 fi
9280 fi
9281 $RM -r conftest*
9282 LDFLAGS="$save_LDFLAGS"
9283
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9286 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9287
9288 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9289 :
9290 else
9291 lt_prog_compiler_static=
9292 fi
9293
9294
9295
9296
9297
9298
9299
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9302 if ${lt_cv_prog_compiler_c_o+:} false; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 lt_cv_prog_compiler_c_o=no
9306 $RM -r conftest 2>/dev/null
9307 mkdir conftest
9308 cd conftest
9309 mkdir out
9310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9311
9312 lt_compiler_flag="-o out/conftest2.$ac_objext"
9313 # Insert the option either (1) after the last *FLAGS variable, or
9314 # (2) before a word containing "conftest.", or (3) at the end.
9315 # Note that $ac_compile itself does not contain backslashes and begins
9316 # with a dollar sign (not a hyphen), so the echo should work correctly.
9317 lt_compile=`echo "$ac_compile" | $SED \
9318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9320 -e 's:$: $lt_compiler_flag:'`
9321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9322 (eval "$lt_compile" 2>out/conftest.err)
9323 ac_status=$?
9324 cat out/conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9327 then
9328 # The compiler can only warn and ignore the option if not recognized
9329 # So say no if there are warnings
9330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9333 lt_cv_prog_compiler_c_o=yes
9334 fi
9335 fi
9336 chmod u+w . 2>&5
9337 $RM conftest*
9338 # SGI C++ compiler will create directory out/ii_files/ for
9339 # template instantiation
9340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9341 $RM out/* && rmdir out
9342 cd ..
9343 $RM -r conftest
9344 $RM conftest*
9345
9346 fi
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9348 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9349
9350
9351
9352
9353
9354
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9357 if ${lt_cv_prog_compiler_c_o+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 lt_cv_prog_compiler_c_o=no
9361 $RM -r conftest 2>/dev/null
9362 mkdir conftest
9363 cd conftest
9364 mkdir out
9365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366
9367 lt_compiler_flag="-o out/conftest2.$ac_objext"
9368 # Insert the option either (1) after the last *FLAGS variable, or
9369 # (2) before a word containing "conftest.", or (3) at the end.
9370 # Note that $ac_compile itself does not contain backslashes and begins
9371 # with a dollar sign (not a hyphen), so the echo should work correctly.
9372 lt_compile=`echo "$ac_compile" | $SED \
9373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375 -e 's:$: $lt_compiler_flag:'`
9376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9377 (eval "$lt_compile" 2>out/conftest.err)
9378 ac_status=$?
9379 cat out/conftest.err >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9382 then
9383 # The compiler can only warn and ignore the option if not recognized
9384 # So say no if there are warnings
9385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9388 lt_cv_prog_compiler_c_o=yes
9389 fi
9390 fi
9391 chmod u+w . 2>&5
9392 $RM conftest*
9393 # SGI C++ compiler will create directory out/ii_files/ for
9394 # template instantiation
9395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9396 $RM out/* && rmdir out
9397 cd ..
9398 $RM -r conftest
9399 $RM conftest*
9400
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9404
9405
9406
9407
9408 hard_links="nottested"
9409 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9410 # do not overwrite the value of need_locks provided by the user
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9412 $as_echo_n "checking if we can lock with hard links... " >&6; }
9413 hard_links=yes
9414 $RM conftest*
9415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9416 touch conftest.a
9417 ln conftest.a conftest.b 2>&5 || hard_links=no
9418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9420 $as_echo "$hard_links" >&6; }
9421 if test "$hard_links" = no; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9423 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9424 need_locks=warn
9425 fi
9426 else
9427 need_locks=no
9428 fi
9429
9430
9431
9432
9433
9434
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9437
9438 runpath_var=
9439 allow_undefined_flag=
9440 always_export_symbols=no
9441 archive_cmds=
9442 archive_expsym_cmds=
9443 compiler_needs_object=no
9444 enable_shared_with_static_runtimes=no
9445 export_dynamic_flag_spec=
9446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9447 hardcode_automatic=no
9448 hardcode_direct=no
9449 hardcode_direct_absolute=no
9450 hardcode_libdir_flag_spec=
9451 hardcode_libdir_separator=
9452 hardcode_minus_L=no
9453 hardcode_shlibpath_var=unsupported
9454 inherit_rpath=no
9455 link_all_deplibs=unknown
9456 module_cmds=
9457 module_expsym_cmds=
9458 old_archive_from_new_cmds=
9459 old_archive_from_expsyms_cmds=
9460 thread_safe_flag_spec=
9461 whole_archive_flag_spec=
9462 # include_expsyms should be a list of space-separated symbols to be *always*
9463 # included in the symbol list
9464 include_expsyms=
9465 # exclude_expsyms can be an extended regexp of symbols to exclude
9466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9468 # as well as any symbol that contains `d'.
9469 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9471 # platforms (ab)use it in PIC code, but their linkers get confused if
9472 # the symbol is explicitly referenced. Since portable code cannot
9473 # rely on this symbol name, it's probably fine to never include it in
9474 # preloaded symbol tables.
9475 # Exclude shared library initialization/finalization symbols.
9476 extract_expsyms_cmds=
9477
9478 case $host_os in
9479 cygwin* | mingw* | pw32* | cegcc*)
9480 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9481 # When not using gcc, we currently assume that we are using
9482 # Microsoft Visual C++.
9483 if test "$GCC" != yes; then
9484 with_gnu_ld=no
9485 fi
9486 ;;
9487 interix*)
9488 # we just hope/assume this is gcc and not c89 (= MSVC++)
9489 with_gnu_ld=yes
9490 ;;
9491 openbsd*)
9492 with_gnu_ld=no
9493 ;;
9494 esac
9495
9496 ld_shlibs=yes
9497
9498 # On some targets, GNU ld is compatible enough with the native linker
9499 # that we're better off using the native interface for both.
9500 lt_use_gnu_ld_interface=no
9501 if test "$with_gnu_ld" = yes; then
9502 case $host_os in
9503 aix*)
9504 # The AIX port of GNU ld has always aspired to compatibility
9505 # with the native linker. However, as the warning in the GNU ld
9506 # block says, versions before 2.19.5* couldn't really create working
9507 # shared libraries, regardless of the interface used.
9508 case `$LD -v 2>&1` in
9509 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9510 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9511 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9512 *)
9513 lt_use_gnu_ld_interface=yes
9514 ;;
9515 esac
9516 ;;
9517 *)
9518 lt_use_gnu_ld_interface=yes
9519 ;;
9520 esac
9521 fi
9522
9523 if test "$lt_use_gnu_ld_interface" = yes; then
9524 # If archive_cmds runs LD, not CC, wlarc should be empty
9525 wlarc='${wl}'
9526
9527 # Set some defaults for GNU ld with shared library support. These
9528 # are reset later if shared libraries are not supported. Putting them
9529 # here allows them to be overridden if necessary.
9530 runpath_var=LD_RUN_PATH
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 export_dynamic_flag_spec='${wl}--export-dynamic'
9533 # ancient GNU ld didn't support --whole-archive et. al.
9534 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9535 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9536 else
9537 whole_archive_flag_spec=
9538 fi
9539 supports_anon_versioning=no
9540 case `$LD -v 2>&1` in
9541 *GNU\ gold*) supports_anon_versioning=yes ;;
9542 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9543 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9544 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9545 *\ 2.11.*) ;; # other 2.11 versions
9546 *) supports_anon_versioning=yes ;;
9547 esac
9548
9549 # See if GNU ld supports shared libraries.
9550 case $host_os in
9551 aix[3-9]*)
9552 # On AIX/PPC, the GNU linker is very broken
9553 if test "$host_cpu" != ia64; then
9554 ld_shlibs=no
9555 cat <<_LT_EOF 1>&2
9556
9557 *** Warning: the GNU linker, at least up to release 2.19, is reported
9558 *** to be unable to reliably create shared libraries on AIX.
9559 *** Therefore, libtool is disabling shared libraries support. If you
9560 *** really care for shared libraries, you may want to install binutils
9561 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9562 *** You will then need to restart the configuration process.
9563
9564 _LT_EOF
9565 fi
9566 ;;
9567
9568 amigaos*)
9569 case $host_cpu in
9570 powerpc)
9571 # see comment about AmigaOS4 .so support
9572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 archive_expsym_cmds=''
9574 ;;
9575 m68k)
9576 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)'
9577 hardcode_libdir_flag_spec='-L$libdir'
9578 hardcode_minus_L=yes
9579 ;;
9580 esac
9581 ;;
9582
9583 beos*)
9584 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9585 allow_undefined_flag=unsupported
9586 # Joseph Beckenbach <[email protected]> says some releases of gcc
9587 # support --undefined. This deserves some investigation. FIXME
9588 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9589 else
9590 ld_shlibs=no
9591 fi
9592 ;;
9593
9594 cygwin* | mingw* | pw32* | cegcc*)
9595 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9596 # as there is no search path for DLLs.
9597 hardcode_libdir_flag_spec='-L$libdir'
9598 export_dynamic_flag_spec='${wl}--export-all-symbols'
9599 allow_undefined_flag=unsupported
9600 always_export_symbols=no
9601 enable_shared_with_static_runtimes=yes
9602 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'
9603 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9604
9605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9607 # If the export-symbols file already is a .def file (1st line
9608 # is EXPORTS), use it as is; otherwise, prepend...
9609 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9610 cp $export_symbols $output_objdir/$soname.def;
9611 else
9612 echo EXPORTS > $output_objdir/$soname.def;
9613 cat $export_symbols >> $output_objdir/$soname.def;
9614 fi~
9615 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9616 else
9617 ld_shlibs=no
9618 fi
9619 ;;
9620
9621 haiku*)
9622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623 link_all_deplibs=yes
9624 ;;
9625
9626 interix[3-9]*)
9627 hardcode_direct=no
9628 hardcode_shlibpath_var=no
9629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9630 export_dynamic_flag_spec='${wl}-E'
9631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9632 # Instead, shared libraries are loaded at an image base (0x10000000 by
9633 # default) and relocated if they conflict, which is a slow very memory
9634 # consuming and fragmenting process. To avoid this, we pick a random,
9635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9638 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'
9639 ;;
9640
9641 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9642 tmp_diet=no
9643 if test "$host_os" = linux-dietlibc; then
9644 case $cc_basename in
9645 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9646 esac
9647 fi
9648 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9649 && test "$tmp_diet" = no
9650 then
9651 tmp_addflag=' $pic_flag'
9652 tmp_sharedflag='-shared'
9653 case $cc_basename,$host_cpu in
9654 pgcc*) # Portland Group C compiler
9655 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'
9656 tmp_addflag=' $pic_flag'
9657 ;;
9658 pgf77* | pgf90* | pgf95* | pgfortran*)
9659 # Portland Group f77 and f90 compilers
9660 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'
9661 tmp_addflag=' $pic_flag -Mnomain' ;;
9662 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9663 tmp_addflag=' -i_dynamic' ;;
9664 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9665 tmp_addflag=' -i_dynamic -nofor_main' ;;
9666 ifc* | ifort*) # Intel Fortran compiler
9667 tmp_addflag=' -nofor_main' ;;
9668 lf95*) # Lahey Fortran 8.1
9669 whole_archive_flag_spec=
9670 tmp_sharedflag='--shared' ;;
9671 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9672 tmp_sharedflag='-qmkshrobj'
9673 tmp_addflag= ;;
9674 nvcc*) # Cuda Compiler Driver 2.2
9675 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'
9676 compiler_needs_object=yes
9677 ;;
9678 esac
9679 case `$CC -V 2>&1 | sed 5q` in
9680 *Sun\ C*) # Sun C 5.9
9681 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'
9682 compiler_needs_object=yes
9683 tmp_sharedflag='-G' ;;
9684 *Sun\ F*) # Sun Fortran 8.3
9685 tmp_sharedflag='-G' ;;
9686 esac
9687 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9688
9689 if test "x$supports_anon_versioning" = xyes; then
9690 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9692 echo "local: *; };" >> $output_objdir/$libname.ver~
9693 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9694 fi
9695
9696 case $cc_basename in
9697 xlf* | bgf* | bgxlf* | mpixlf*)
9698 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9699 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9702 if test "x$supports_anon_versioning" = xyes; then
9703 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9704 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9705 echo "local: *; };" >> $output_objdir/$libname.ver~
9706 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9707 fi
9708 ;;
9709 esac
9710 else
9711 ld_shlibs=no
9712 fi
9713 ;;
9714
9715 netbsd*)
9716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9717 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9718 wlarc=
9719 else
9720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9721 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9722 fi
9723 ;;
9724
9725 solaris*)
9726 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9727 ld_shlibs=no
9728 cat <<_LT_EOF 1>&2
9729
9730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9731 *** create shared libraries on Solaris systems. Therefore, libtool
9732 *** is disabling shared libraries support. We urge you to upgrade GNU
9733 *** binutils to release 2.9.1 or newer. Another option is to modify
9734 *** your PATH or compiler configuration so that the native linker is
9735 *** used, and then restart.
9736
9737 _LT_EOF
9738 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9741 else
9742 ld_shlibs=no
9743 fi
9744 ;;
9745
9746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9747 case `$LD -v 2>&1` in
9748 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9749 ld_shlibs=no
9750 cat <<_LT_EOF 1>&2
9751
9752 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9753 *** reliably create shared libraries on SCO systems. Therefore, libtool
9754 *** is disabling shared libraries support. We urge you to upgrade GNU
9755 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9756 *** your PATH or compiler configuration so that the native linker is
9757 *** used, and then restart.
9758
9759 _LT_EOF
9760 ;;
9761 *)
9762 # For security reasons, it is highly recommended that you always
9763 # use absolute paths for naming shared libraries, and exclude the
9764 # DT_RUNPATH tag from executables and libraries. But doing so
9765 # requires that you compile everything twice, which is a pain.
9766 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9770 else
9771 ld_shlibs=no
9772 fi
9773 ;;
9774 esac
9775 ;;
9776
9777 sunos4*)
9778 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9779 wlarc=
9780 hardcode_direct=yes
9781 hardcode_shlibpath_var=no
9782 ;;
9783
9784 *)
9785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9788 else
9789 ld_shlibs=no
9790 fi
9791 ;;
9792 esac
9793
9794 if test "$ld_shlibs" = no; then
9795 runpath_var=
9796 hardcode_libdir_flag_spec=
9797 export_dynamic_flag_spec=
9798 whole_archive_flag_spec=
9799 fi
9800 else
9801 # PORTME fill in a description of your system's linker (not GNU ld)
9802 case $host_os in
9803 aix3*)
9804 allow_undefined_flag=unsupported
9805 always_export_symbols=yes
9806 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'
9807 # Note: this linker hardcodes the directories in LIBPATH if there
9808 # are no directories specified by -L.
9809 hardcode_minus_L=yes
9810 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9811 # Neither direct hardcoding nor static linking is supported with a
9812 # broken collect2.
9813 hardcode_direct=unsupported
9814 fi
9815 ;;
9816
9817 aix[4-9]*)
9818 if test "$host_cpu" = ia64; then
9819 # On IA64, the linker does run time linking by default, so we don't
9820 # have to do anything special.
9821 aix_use_runtimelinking=no
9822 exp_sym_flag='-Bexport'
9823 no_entry_flag=""
9824 else
9825 # If we're using GNU nm, then we don't want the "-C" option.
9826 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9827 # Also, AIX nm treats weak defined symbols like other global
9828 # defined symbols, whereas GNU nm marks them as "W".
9829 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9830 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9831 else
9832 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9833 fi
9834 aix_use_runtimelinking=no
9835
9836 # Test if we are trying to use run time linking or normal
9837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9838 # need to do runtime linking.
9839 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9840 for ld_flag in $LDFLAGS; do
9841 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9842 aix_use_runtimelinking=yes
9843 break
9844 fi
9845 done
9846 ;;
9847 esac
9848
9849 exp_sym_flag='-bexport'
9850 no_entry_flag='-bnoentry'
9851 fi
9852
9853 # When large executables or shared objects are built, AIX ld can
9854 # have problems creating the table of contents. If linking a library
9855 # or program results in "error TOC overflow" add -mminimal-toc to
9856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9858
9859 archive_cmds=''
9860 hardcode_direct=yes
9861 hardcode_direct_absolute=yes
9862 hardcode_libdir_separator=':'
9863 link_all_deplibs=yes
9864 file_list_spec='${wl}-f,'
9865
9866 if test "$GCC" = yes; then
9867 case $host_os in aix4.[012]|aix4.[012].*)
9868 # We only want to do this on AIX 4.2 and lower, the check
9869 # below for broken collect2 doesn't work under 4.3+
9870 collect2name=`${CC} -print-prog-name=collect2`
9871 if test -f "$collect2name" &&
9872 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9873 then
9874 # We have reworked collect2
9875 :
9876 else
9877 # We have old collect2
9878 hardcode_direct=unsupported
9879 # It fails to find uninstalled libraries when the uninstalled
9880 # path is not listed in the libpath. Setting hardcode_minus_L
9881 # to unsupported forces relinking
9882 hardcode_minus_L=yes
9883 hardcode_libdir_flag_spec='-L$libdir'
9884 hardcode_libdir_separator=
9885 fi
9886 ;;
9887 esac
9888 shared_flag='-shared'
9889 if test "$aix_use_runtimelinking" = yes; then
9890 shared_flag="$shared_flag "'${wl}-G'
9891 fi
9892 else
9893 # not using gcc
9894 if test "$host_cpu" = ia64; then
9895 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9896 # chokes on -Wl,-G. The following line is correct:
9897 shared_flag='-G'
9898 else
9899 if test "$aix_use_runtimelinking" = yes; then
9900 shared_flag='${wl}-G'
9901 else
9902 shared_flag='${wl}-bM:SRE'
9903 fi
9904 fi
9905 fi
9906
9907 export_dynamic_flag_spec='${wl}-bexpall'
9908 # It seems that -bexpall does not export symbols beginning with
9909 # underscore (_), so it is better to generate a list of symbols to export.
9910 always_export_symbols=yes
9911 if test "$aix_use_runtimelinking" = yes; then
9912 # Warning - without using the other runtime loading flags (-brtl),
9913 # -berok will link without error, but may produce a broken library.
9914 allow_undefined_flag='-berok'
9915 # Determine the default libpath from the value encoded in an
9916 # empty executable.
9917 if test "${lt_cv_aix_libpath+set}" = set; then
9918 aix_libpath=$lt_cv_aix_libpath
9919 else
9920 if ${lt_cv_aix_libpath_+:} false; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925
9926 int
9927 main ()
9928 {
9929
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 if ac_fn_c_try_link "$LINENO"; then :
9935
9936 lt_aix_libpath_sed='
9937 /Import File Strings/,/^$/ {
9938 /^0/ {
9939 s/^0 *\([^ ]*\) *$/\1/
9940 p
9941 }
9942 }'
9943 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9944 # Check for a 64-bit object if we didn't find anything.
9945 if test -z "$lt_cv_aix_libpath_"; then
9946 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9947 fi
9948 fi
9949 rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 if test -z "$lt_cv_aix_libpath_"; then
9952 lt_cv_aix_libpath_="/usr/lib:/lib"
9953 fi
9954
9955 fi
9956
9957 aix_libpath=$lt_cv_aix_libpath_
9958 fi
9959
9960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9961 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9962 else
9963 if test "$host_cpu" = ia64; then
9964 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9965 allow_undefined_flag="-z nodefs"
9966 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"
9967 else
9968 # Determine the default libpath from the value encoded in an
9969 # empty executable.
9970 if test "${lt_cv_aix_libpath+set}" = set; then
9971 aix_libpath=$lt_cv_aix_libpath
9972 else
9973 if ${lt_cv_aix_libpath_+:} false; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9978
9979 int
9980 main ()
9981 {
9982
9983 ;
9984 return 0;
9985 }
9986 _ACEOF
9987 if ac_fn_c_try_link "$LINENO"; then :
9988
9989 lt_aix_libpath_sed='
9990 /Import File Strings/,/^$/ {
9991 /^0/ {
9992 s/^0 *\([^ ]*\) *$/\1/
9993 p
9994 }
9995 }'
9996 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9997 # Check for a 64-bit object if we didn't find anything.
9998 if test -z "$lt_cv_aix_libpath_"; then
9999 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10000 fi
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 if test -z "$lt_cv_aix_libpath_"; then
10005 lt_cv_aix_libpath_="/usr/lib:/lib"
10006 fi
10007
10008 fi
10009
10010 aix_libpath=$lt_cv_aix_libpath_
10011 fi
10012
10013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10014 # Warning - without using the other run time loading flags,
10015 # -berok will link without error, but may produce a broken library.
10016 no_undefined_flag=' ${wl}-bernotok'
10017 allow_undefined_flag=' ${wl}-berok'
10018 if test "$with_gnu_ld" = yes; then
10019 # We only use this code for GNU lds that support --whole-archive.
10020 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10021 else
10022 # Exported symbols can be pulled into shared objects from archives
10023 whole_archive_flag_spec='$convenience'
10024 fi
10025 archive_cmds_need_lc=yes
10026 # This is similar to how AIX traditionally builds its shared libraries.
10027 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10028 fi
10029 fi
10030 ;;
10031
10032 amigaos*)
10033 case $host_cpu in
10034 powerpc)
10035 # see comment about AmigaOS4 .so support
10036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10037 archive_expsym_cmds=''
10038 ;;
10039 m68k)
10040 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)'
10041 hardcode_libdir_flag_spec='-L$libdir'
10042 hardcode_minus_L=yes
10043 ;;
10044 esac
10045 ;;
10046
10047 bsdi[45]*)
10048 export_dynamic_flag_spec=-rdynamic
10049 ;;
10050
10051 cygwin* | mingw* | pw32* | cegcc*)
10052 # When not using gcc, we currently assume that we are using
10053 # Microsoft Visual C++.
10054 # hardcode_libdir_flag_spec is actually meaningless, as there is
10055 # no search path for DLLs.
10056 case $cc_basename in
10057 cl*)
10058 # Native MSVC
10059 hardcode_libdir_flag_spec=' '
10060 allow_undefined_flag=unsupported
10061 always_export_symbols=yes
10062 file_list_spec='@'
10063 # Tell ltmain to make .lib files, not .a files.
10064 libext=lib
10065 # Tell ltmain to make .dll files, not .so files.
10066 shrext_cmds=".dll"
10067 # FIXME: Setting linknames here is a bad hack.
10068 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10069 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10070 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10071 else
10072 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10073 fi~
10074 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10075 linknames='
10076 # The linker will not automatically build a static lib if we build a DLL.
10077 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10078 enable_shared_with_static_runtimes=yes
10079 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10081 # Don't use ranlib
10082 old_postinstall_cmds='chmod 644 $oldlib'
10083 postlink_cmds='lt_outputfile="@OUTPUT@"~
10084 lt_tool_outputfile="@TOOL_OUTPUT@"~
10085 case $lt_outputfile in
10086 *.exe|*.EXE) ;;
10087 *)
10088 lt_outputfile="$lt_outputfile.exe"
10089 lt_tool_outputfile="$lt_tool_outputfile.exe"
10090 ;;
10091 esac~
10092 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10093 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10094 $RM "$lt_outputfile.manifest";
10095 fi'
10096 ;;
10097 *)
10098 # Assume MSVC wrapper
10099 hardcode_libdir_flag_spec=' '
10100 allow_undefined_flag=unsupported
10101 # Tell ltmain to make .lib files, not .a files.
10102 libext=lib
10103 # Tell ltmain to make .dll files, not .so files.
10104 shrext_cmds=".dll"
10105 # FIXME: Setting linknames here is a bad hack.
10106 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10107 # The linker will automatically build a .lib file if we build a DLL.
10108 old_archive_from_new_cmds='true'
10109 # FIXME: Should let the user specify the lib program.
10110 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10111 enable_shared_with_static_runtimes=yes
10112 ;;
10113 esac
10114 ;;
10115
10116 darwin* | rhapsody*)
10117
10118
10119 archive_cmds_need_lc=no
10120 hardcode_direct=no
10121 hardcode_automatic=yes
10122 hardcode_shlibpath_var=unsupported
10123 if test "$lt_cv_ld_force_load" = "yes"; then
10124 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\"`'
10125
10126 else
10127 whole_archive_flag_spec=''
10128 fi
10129 link_all_deplibs=yes
10130 allow_undefined_flag="$_lt_dar_allow_undefined"
10131 case $cc_basename in
10132 ifort*) _lt_dar_can_shared=yes ;;
10133 *) _lt_dar_can_shared=$GCC ;;
10134 esac
10135 if test "$_lt_dar_can_shared" = "yes"; then
10136 output_verbose_link_cmd=func_echo_all
10137 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10138 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10139 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}"
10140 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}"
10141
10142 else
10143 ld_shlibs=no
10144 fi
10145
10146 ;;
10147
10148 dgux*)
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_libdir_flag_spec='-L$libdir'
10151 hardcode_shlibpath_var=no
10152 ;;
10153
10154 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10155 # support. Future versions do this automatically, but an explicit c++rt0.o
10156 # does not break anything, and helps significantly (at the cost of a little
10157 # extra space).
10158 freebsd2.2*)
10159 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10160 hardcode_libdir_flag_spec='-R$libdir'
10161 hardcode_direct=yes
10162 hardcode_shlibpath_var=no
10163 ;;
10164
10165 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10166 freebsd2.*)
10167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10168 hardcode_direct=yes
10169 hardcode_minus_L=yes
10170 hardcode_shlibpath_var=no
10171 ;;
10172
10173 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10174 freebsd* | dragonfly*)
10175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10176 hardcode_libdir_flag_spec='-R$libdir'
10177 hardcode_direct=yes
10178 hardcode_shlibpath_var=no
10179 ;;
10180
10181 hpux9*)
10182 if test "$GCC" = yes; then
10183 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10184 else
10185 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10186 fi
10187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10188 hardcode_libdir_separator=:
10189 hardcode_direct=yes
10190
10191 # hardcode_minus_L: Not really in the search PATH,
10192 # but as the default location of the library.
10193 hardcode_minus_L=yes
10194 export_dynamic_flag_spec='${wl}-E'
10195 ;;
10196
10197 hpux10*)
10198 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10199 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200 else
10201 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10202 fi
10203 if test "$with_gnu_ld" = no; then
10204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10205 hardcode_libdir_separator=:
10206 hardcode_direct=yes
10207 hardcode_direct_absolute=yes
10208 export_dynamic_flag_spec='${wl}-E'
10209 # hardcode_minus_L: Not really in the search PATH,
10210 # but as the default location of the library.
10211 hardcode_minus_L=yes
10212 fi
10213 ;;
10214
10215 hpux11*)
10216 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10217 case $host_cpu in
10218 hppa*64*)
10219 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 ;;
10221 ia64*)
10222 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10223 ;;
10224 *)
10225 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226 ;;
10227 esac
10228 else
10229 case $host_cpu in
10230 hppa*64*)
10231 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 ;;
10233 ia64*)
10234 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10235 ;;
10236 *)
10237
10238 # Older versions of the 11.00 compiler do not understand -b yet
10239 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10241 $as_echo_n "checking if $CC understands -b... " >&6; }
10242 if ${lt_cv_prog_compiler__b+:} false; then :
10243 $as_echo_n "(cached) " >&6
10244 else
10245 lt_cv_prog_compiler__b=no
10246 save_LDFLAGS="$LDFLAGS"
10247 LDFLAGS="$LDFLAGS -b"
10248 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10250 # The linker can only warn and ignore the option if not recognized
10251 # So say no if there are warnings
10252 if test -s conftest.err; then
10253 # Append any errors to the config.log.
10254 cat conftest.err 1>&5
10255 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10257 if diff conftest.exp conftest.er2 >/dev/null; then
10258 lt_cv_prog_compiler__b=yes
10259 fi
10260 else
10261 lt_cv_prog_compiler__b=yes
10262 fi
10263 fi
10264 $RM -r conftest*
10265 LDFLAGS="$save_LDFLAGS"
10266
10267 fi
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10269 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10270
10271 if test x"$lt_cv_prog_compiler__b" = xyes; then
10272 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10273 else
10274 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10275 fi
10276
10277 ;;
10278 esac
10279 fi
10280 if test "$with_gnu_ld" = no; then
10281 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10282 hardcode_libdir_separator=:
10283
10284 case $host_cpu in
10285 hppa*64*|ia64*)
10286 hardcode_direct=no
10287 hardcode_shlibpath_var=no
10288 ;;
10289 *)
10290 hardcode_direct=yes
10291 hardcode_direct_absolute=yes
10292 export_dynamic_flag_spec='${wl}-E'
10293
10294 # hardcode_minus_L: Not really in the search PATH,
10295 # but as the default location of the library.
10296 hardcode_minus_L=yes
10297 ;;
10298 esac
10299 fi
10300 ;;
10301
10302 irix5* | irix6* | nonstopux*)
10303 if test "$GCC" = yes; then
10304 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'
10305 # Try to use the -exported_symbol ld option, if it does not
10306 # work, assume that -exports_file does not work either and
10307 # implicitly export all symbols.
10308 # This should be the same for all languages, so no per-tag cache variable.
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10310 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10311 if ${lt_cv_irix_exported_symbol+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 save_LDFLAGS="$LDFLAGS"
10315 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318 int foo (void) { return 0; }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 lt_cv_irix_exported_symbol=yes
10322 else
10323 lt_cv_irix_exported_symbol=no
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 LDFLAGS="$save_LDFLAGS"
10328 fi
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10330 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10331 if test "$lt_cv_irix_exported_symbol" = yes; then
10332 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'
10333 fi
10334 else
10335 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'
10336 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'
10337 fi
10338 archive_cmds_need_lc='no'
10339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10340 hardcode_libdir_separator=:
10341 inherit_rpath=yes
10342 link_all_deplibs=yes
10343 ;;
10344
10345 netbsd*)
10346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10348 else
10349 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10350 fi
10351 hardcode_libdir_flag_spec='-R$libdir'
10352 hardcode_direct=yes
10353 hardcode_shlibpath_var=no
10354 ;;
10355
10356 newsos6)
10357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10358 hardcode_direct=yes
10359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10360 hardcode_libdir_separator=:
10361 hardcode_shlibpath_var=no
10362 ;;
10363
10364 *nto* | *qnx*)
10365 ;;
10366
10367 openbsd*)
10368 if test -f /usr/libexec/ld.so; then
10369 hardcode_direct=yes
10370 hardcode_shlibpath_var=no
10371 hardcode_direct_absolute=yes
10372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10374 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10376 export_dynamic_flag_spec='${wl}-E'
10377 else
10378 case $host_os in
10379 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_libdir_flag_spec='-R$libdir'
10382 ;;
10383 *)
10384 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10385 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10386 ;;
10387 esac
10388 fi
10389 else
10390 ld_shlibs=no
10391 fi
10392 ;;
10393
10394 os2*)
10395 hardcode_libdir_flag_spec='-L$libdir'
10396 hardcode_minus_L=yes
10397 allow_undefined_flag=unsupported
10398 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10399 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10400 ;;
10401
10402 osf3*)
10403 if test "$GCC" = yes; then
10404 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10405 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'
10406 else
10407 allow_undefined_flag=' -expect_unresolved \*'
10408 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'
10409 fi
10410 archive_cmds_need_lc='no'
10411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10412 hardcode_libdir_separator=:
10413 ;;
10414
10415 osf4* | osf5*) # as osf3* with the addition of -msym flag
10416 if test "$GCC" = yes; then
10417 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10418 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'
10419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10420 else
10421 allow_undefined_flag=' -expect_unresolved \*'
10422 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'
10423 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~
10424 $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'
10425
10426 # Both c and cxx compiler support -rpath directly
10427 hardcode_libdir_flag_spec='-rpath $libdir'
10428 fi
10429 archive_cmds_need_lc='no'
10430 hardcode_libdir_separator=:
10431 ;;
10432
10433 solaris*)
10434 no_undefined_flag=' -z defs'
10435 if test "$GCC" = yes; then
10436 wlarc='${wl}'
10437 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10439 $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'
10440 else
10441 case `$CC -V 2>&1` in
10442 *"Compilers 5.0"*)
10443 wlarc=''
10444 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10447 ;;
10448 *)
10449 wlarc='${wl}'
10450 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10452 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10453 ;;
10454 esac
10455 fi
10456 hardcode_libdir_flag_spec='-R$libdir'
10457 hardcode_shlibpath_var=no
10458 case $host_os in
10459 solaris2.[0-5] | solaris2.[0-5].*) ;;
10460 *)
10461 # The compiler driver will combine and reorder linker options,
10462 # but understands `-z linker_flag'. GCC discards it without `$wl',
10463 # but is careful enough not to reorder.
10464 # Supported since Solaris 2.6 (maybe 2.5.1?)
10465 if test "$GCC" = yes; then
10466 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10467 else
10468 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10469 fi
10470 ;;
10471 esac
10472 link_all_deplibs=yes
10473 ;;
10474
10475 sunos4*)
10476 if test "x$host_vendor" = xsequent; then
10477 # Use $CC to link under sequent, because it throws in some extra .o
10478 # files that make .init and .fini sections work.
10479 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10480 else
10481 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10482 fi
10483 hardcode_libdir_flag_spec='-L$libdir'
10484 hardcode_direct=yes
10485 hardcode_minus_L=yes
10486 hardcode_shlibpath_var=no
10487 ;;
10488
10489 sysv4)
10490 case $host_vendor in
10491 sni)
10492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493 hardcode_direct=yes # is this really true???
10494 ;;
10495 siemens)
10496 ## LD is ld it makes a PLAMLIB
10497 ## CC just makes a GrossModule.
10498 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10499 reload_cmds='$CC -r -o $output$reload_objs'
10500 hardcode_direct=no
10501 ;;
10502 motorola)
10503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10504 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10505 ;;
10506 esac
10507 runpath_var='LD_RUN_PATH'
10508 hardcode_shlibpath_var=no
10509 ;;
10510
10511 sysv4.3*)
10512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513 hardcode_shlibpath_var=no
10514 export_dynamic_flag_spec='-Bexport'
10515 ;;
10516
10517 sysv4*MP*)
10518 if test -d /usr/nec; then
10519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10520 hardcode_shlibpath_var=no
10521 runpath_var=LD_RUN_PATH
10522 hardcode_runpath_var=yes
10523 ld_shlibs=yes
10524 fi
10525 ;;
10526
10527 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10528 no_undefined_flag='${wl}-z,text'
10529 archive_cmds_need_lc=no
10530 hardcode_shlibpath_var=no
10531 runpath_var='LD_RUN_PATH'
10532
10533 if test "$GCC" = yes; then
10534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10535 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10536 else
10537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10538 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10539 fi
10540 ;;
10541
10542 sysv5* | sco3.2v5* | sco5v6*)
10543 # Note: We can NOT use -z defs as we might desire, because we do not
10544 # link with -lc, and that would cause any symbols used from libc to
10545 # always be unresolved, which means just about no library would
10546 # ever link correctly. If we're not using GNU ld we use -z text
10547 # though, which does catch some bad symbols but isn't as heavy-handed
10548 # as -z defs.
10549 no_undefined_flag='${wl}-z,text'
10550 allow_undefined_flag='${wl}-z,nodefs'
10551 archive_cmds_need_lc=no
10552 hardcode_shlibpath_var=no
10553 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10554 hardcode_libdir_separator=':'
10555 link_all_deplibs=yes
10556 export_dynamic_flag_spec='${wl}-Bexport'
10557 runpath_var='LD_RUN_PATH'
10558
10559 if test "$GCC" = yes; then
10560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10562 else
10563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10565 fi
10566 ;;
10567
10568 uts4*)
10569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10570 hardcode_libdir_flag_spec='-L$libdir'
10571 hardcode_shlibpath_var=no
10572 ;;
10573
10574 *)
10575 ld_shlibs=no
10576 ;;
10577 esac
10578
10579 if test x$host_vendor = xsni; then
10580 case $host in
10581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10582 export_dynamic_flag_spec='${wl}-Blargedynsym'
10583 ;;
10584 esac
10585 fi
10586 fi
10587
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10589 $as_echo "$ld_shlibs" >&6; }
10590 test "$ld_shlibs" = no && can_build_shared=no
10591
10592 with_gnu_ld=$with_gnu_ld
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608 #
10609 # Do we need to explicitly link libc?
10610 #
10611 case "x$archive_cmds_need_lc" in
10612 x|xyes)
10613 # Assume -lc should be added
10614 archive_cmds_need_lc=yes
10615
10616 if test "$enable_shared" = yes && test "$GCC" = yes; then
10617 case $archive_cmds in
10618 *'~'*)
10619 # FIXME: we may have to deal with multi-command sequences.
10620 ;;
10621 '$CC '*)
10622 # Test whether the compiler implicitly links with -lc since on some
10623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10624 # to ld, don't add -lc before -lgcc.
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10626 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10627 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 $RM conftest*
10631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10632
10633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10634 (eval $ac_compile) 2>&5
10635 ac_status=$?
10636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10637 test $ac_status = 0; } 2>conftest.err; then
10638 soname=conftest
10639 lib=conftest
10640 libobjs=conftest.$ac_objext
10641 deplibs=
10642 wl=$lt_prog_compiler_wl
10643 pic_flag=$lt_prog_compiler_pic
10644 compiler_flags=-v
10645 linker_flags=-v
10646 verstring=
10647 output_objdir=.
10648 libname=conftest
10649 lt_save_allow_undefined_flag=$allow_undefined_flag
10650 allow_undefined_flag=
10651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10652 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10653 ac_status=$?
10654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10655 test $ac_status = 0; }
10656 then
10657 lt_cv_archive_cmds_need_lc=no
10658 else
10659 lt_cv_archive_cmds_need_lc=yes
10660 fi
10661 allow_undefined_flag=$lt_save_allow_undefined_flag
10662 else
10663 cat conftest.err 1>&5
10664 fi
10665 $RM conftest*
10666
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10669 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10670 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10671 ;;
10672 esac
10673 fi
10674 ;;
10675 esac
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10829 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10830
10831 if test "$GCC" = yes; then
10832 case $host_os in
10833 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10834 *) lt_awk_arg="/^libraries:/" ;;
10835 esac
10836 case $host_os in
10837 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10838 *) lt_sed_strip_eq="s,=/,/,g" ;;
10839 esac
10840 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10841 case $lt_search_path_spec in
10842 *\;*)
10843 # if the path contains ";" then we assume it to be the separator
10844 # otherwise default to the standard path separator (i.e. ":") - it is
10845 # assumed that no part of a normal pathname contains ";" but that should
10846 # okay in the real world where ";" in dirpaths is itself problematic.
10847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10848 ;;
10849 *)
10850 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10851 ;;
10852 esac
10853 # Ok, now we have the path, separated by spaces, we can step through it
10854 # and add multilib dir if necessary.
10855 lt_tmp_lt_search_path_spec=
10856 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10857 for lt_sys_path in $lt_search_path_spec; do
10858 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10859 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10860 else
10861 test -d "$lt_sys_path" && \
10862 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10863 fi
10864 done
10865 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10866 BEGIN {RS=" "; FS="/|\n";} {
10867 lt_foo="";
10868 lt_count=0;
10869 for (lt_i = NF; lt_i > 0; lt_i--) {
10870 if ($lt_i != "" && $lt_i != ".") {
10871 if ($lt_i == "..") {
10872 lt_count++;
10873 } else {
10874 if (lt_count == 0) {
10875 lt_foo="/" $lt_i lt_foo;
10876 } else {
10877 lt_count--;
10878 }
10879 }
10880 }
10881 }
10882 if (lt_foo != "") { lt_freq[lt_foo]++; }
10883 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10884 }'`
10885 # AWK program above erroneously prepends '/' to C:/dos/paths
10886 # for these hosts.
10887 case $host_os in
10888 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10889 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10890 esac
10891 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10892 else
10893 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10894 fi
10895 library_names_spec=
10896 libname_spec='lib$name'
10897 soname_spec=
10898 shrext_cmds=".so"
10899 postinstall_cmds=
10900 postuninstall_cmds=
10901 finish_cmds=
10902 finish_eval=
10903 shlibpath_var=
10904 shlibpath_overrides_runpath=unknown
10905 version_type=none
10906 dynamic_linker="$host_os ld.so"
10907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10908 need_lib_prefix=unknown
10909 hardcode_into_libs=no
10910
10911 # when you set need_version to no, make sure it does not cause -set_version
10912 # flags to be left without arguments
10913 need_version=unknown
10914
10915 case $host_os in
10916 aix3*)
10917 version_type=linux # correct to gnu/linux during the next big refactor
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10919 shlibpath_var=LIBPATH
10920
10921 # AIX 3 has no versioning support, so we append a major version to the name.
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 ;;
10924
10925 aix[4-9]*)
10926 version_type=linux # correct to gnu/linux during the next big refactor
10927 need_lib_prefix=no
10928 need_version=no
10929 hardcode_into_libs=yes
10930 if test "$host_cpu" = ia64; then
10931 # AIX 5 supports IA64
10932 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 else
10935 # With GCC up to 2.95.x, collect2 would create an import file
10936 # for dependence libraries. The import file would start with
10937 # the line `#! .'. This would cause the generated library to
10938 # depend on `.', always an invalid library. This was fixed in
10939 # development snapshots of GCC prior to 3.0.
10940 case $host_os in
10941 aix4 | aix4.[01] | aix4.[01].*)
10942 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10943 echo ' yes '
10944 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10945 :
10946 else
10947 can_build_shared=no
10948 fi
10949 ;;
10950 esac
10951 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10952 # soname into executable. Probably we can add versioning support to
10953 # collect2, so additional links can be useful in future.
10954 if test "$aix_use_runtimelinking" = yes; then
10955 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10956 # instead of lib<name>.a to let people know that these are not
10957 # typical AIX shared libraries.
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 else
10960 # We preserve .a as extension for shared libraries through AIX4.2
10961 # and later when we are not doing run time linking.
10962 library_names_spec='${libname}${release}.a $libname.a'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 fi
10965 shlibpath_var=LIBPATH
10966 fi
10967 ;;
10968
10969 amigaos*)
10970 case $host_cpu in
10971 powerpc)
10972 # Since July 2007 AmigaOS4 officially supports .so libraries.
10973 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 ;;
10976 m68k)
10977 library_names_spec='$libname.ixlibrary $libname.a'
10978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10979 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10980 ;;
10981 esac
10982 ;;
10983
10984 beos*)
10985 library_names_spec='${libname}${shared_ext}'
10986 dynamic_linker="$host_os ld.so"
10987 shlibpath_var=LIBRARY_PATH
10988 ;;
10989
10990 bsdi[45]*)
10991 version_type=linux # correct to gnu/linux during the next big refactor
10992 need_version=no
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10998 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10999 # the default ld.so.conf also contains /usr/contrib/lib and
11000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11001 # libtool to hard-code these into programs
11002 ;;
11003
11004 cygwin* | mingw* | pw32* | cegcc*)
11005 version_type=windows
11006 shrext_cmds=".dll"
11007 need_version=no
11008 need_lib_prefix=no
11009
11010 case $GCC,$cc_basename in
11011 yes,*)
11012 # gcc
11013 library_names_spec='$libname.dll.a'
11014 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11015 postinstall_cmds='base_file=`basename \${file}`~
11016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11017 dldir=$destdir/`dirname \$dlpath`~
11018 test -d \$dldir || mkdir -p \$dldir~
11019 $install_prog $dir/$dlname \$dldir/$dlname~
11020 chmod a+x \$dldir/$dlname~
11021 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11022 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11023 fi'
11024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11025 dlpath=$dir/\$dldll~
11026 $RM \$dlpath'
11027 shlibpath_overrides_runpath=yes
11028
11029 case $host_os in
11030 cygwin*)
11031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11032 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11033
11034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11035 ;;
11036 mingw* | cegcc*)
11037 # MinGW DLLs use traditional 'lib' prefix
11038 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11039 ;;
11040 pw32*)
11041 # pw32 DLLs use 'pw' prefix rather than 'lib'
11042 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11043 ;;
11044 esac
11045 dynamic_linker='Win32 ld.exe'
11046 ;;
11047
11048 *,cl*)
11049 # Native MSVC
11050 libname_spec='$name'
11051 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11052 library_names_spec='${libname}.dll.lib'
11053
11054 case $build_os in
11055 mingw*)
11056 sys_lib_search_path_spec=
11057 lt_save_ifs=$IFS
11058 IFS=';'
11059 for lt_path in $LIB
11060 do
11061 IFS=$lt_save_ifs
11062 # Let DOS variable expansion print the short 8.3 style file name.
11063 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11064 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11065 done
11066 IFS=$lt_save_ifs
11067 # Convert to MSYS style.
11068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11069 ;;
11070 cygwin*)
11071 # Convert to unix form, then to dos form, then back to unix form
11072 # but this time dos style (no spaces!) so that the unix form looks
11073 # like /cygdrive/c/PROGRA~1:/cygdr...
11074 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11075 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11076 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11077 ;;
11078 *)
11079 sys_lib_search_path_spec="$LIB"
11080 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11081 # It is most probably a Windows format PATH.
11082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11083 else
11084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11085 fi
11086 # FIXME: find the short name or the path components, as spaces are
11087 # common. (e.g. "Program Files" -> "PROGRA~1")
11088 ;;
11089 esac
11090
11091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11092 postinstall_cmds='base_file=`basename \${file}`~
11093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11094 dldir=$destdir/`dirname \$dlpath`~
11095 test -d \$dldir || mkdir -p \$dldir~
11096 $install_prog $dir/$dlname \$dldir/$dlname'
11097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11098 dlpath=$dir/\$dldll~
11099 $RM \$dlpath'
11100 shlibpath_overrides_runpath=yes
11101 dynamic_linker='Win32 link.exe'
11102 ;;
11103
11104 *)
11105 # Assume MSVC wrapper
11106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11107 dynamic_linker='Win32 ld.exe'
11108 ;;
11109 esac
11110 # FIXME: first we should search . and the directory the executable is in
11111 shlibpath_var=PATH
11112 ;;
11113
11114 darwin* | rhapsody*)
11115 dynamic_linker="$host_os dyld"
11116 version_type=darwin
11117 need_lib_prefix=no
11118 need_version=no
11119 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11120 soname_spec='${libname}${release}${major}$shared_ext'
11121 shlibpath_overrides_runpath=yes
11122 shlibpath_var=DYLD_LIBRARY_PATH
11123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11124
11125 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11127 ;;
11128
11129 dgux*)
11130 version_type=linux # correct to gnu/linux during the next big refactor
11131 need_lib_prefix=no
11132 need_version=no
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 ;;
11137
11138 freebsd* | dragonfly*)
11139 # DragonFly does not have aout. When/if they implement a new
11140 # versioning mechanism, adjust this.
11141 if test -x /usr/bin/objformat; then
11142 objformat=`/usr/bin/objformat`
11143 else
11144 case $host_os in
11145 freebsd[23].*) objformat=aout ;;
11146 *) objformat=elf ;;
11147 esac
11148 fi
11149 version_type=freebsd-$objformat
11150 case $version_type in
11151 freebsd-elf*)
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11153 need_version=no
11154 need_lib_prefix=no
11155 ;;
11156 freebsd-*)
11157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11158 need_version=yes
11159 ;;
11160 esac
11161 shlibpath_var=LD_LIBRARY_PATH
11162 case $host_os in
11163 freebsd2.*)
11164 shlibpath_overrides_runpath=yes
11165 ;;
11166 freebsd3.[01]* | freebsdelf3.[01]*)
11167 shlibpath_overrides_runpath=yes
11168 hardcode_into_libs=yes
11169 ;;
11170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11172 shlibpath_overrides_runpath=no
11173 hardcode_into_libs=yes
11174 ;;
11175 *) # from 4.6 on, and DragonFly
11176 shlibpath_overrides_runpath=yes
11177 hardcode_into_libs=yes
11178 ;;
11179 esac
11180 ;;
11181
11182 gnu*)
11183 version_type=linux # correct to gnu/linux during the next big refactor
11184 need_lib_prefix=no
11185 need_version=no
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=no
11190 hardcode_into_libs=yes
11191 ;;
11192
11193 haiku*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 need_lib_prefix=no
11196 need_version=no
11197 dynamic_linker="$host_os runtime_loader"
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 shlibpath_var=LIBRARY_PATH
11201 shlibpath_overrides_runpath=yes
11202 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11203 hardcode_into_libs=yes
11204 ;;
11205
11206 hpux9* | hpux10* | hpux11*)
11207 # Give a soname corresponding to the major version so that dld.sl refuses to
11208 # link against other versions.
11209 version_type=sunos
11210 need_lib_prefix=no
11211 need_version=no
11212 case $host_cpu in
11213 ia64*)
11214 shrext_cmds='.so'
11215 hardcode_into_libs=yes
11216 dynamic_linker="$host_os dld.so"
11217 shlibpath_var=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 if test "X$HPUX_IA64_MODE" = X32; then
11222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11223 else
11224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11225 fi
11226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11227 ;;
11228 hppa*64*)
11229 shrext_cmds='.sl'
11230 hardcode_into_libs=yes
11231 dynamic_linker="$host_os dld.sl"
11232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235 soname_spec='${libname}${release}${shared_ext}$major'
11236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11238 ;;
11239 *)
11240 shrext_cmds='.sl'
11241 dynamic_linker="$host_os dld.sl"
11242 shlibpath_var=SHLIB_PATH
11243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 ;;
11247 esac
11248 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11249 postinstall_cmds='chmod 555 $lib'
11250 # or fails outright, so override atomically:
11251 install_override_mode=555
11252 ;;
11253
11254 interix[3-9]*)
11255 version_type=linux # correct to gnu/linux during the next big refactor
11256 need_lib_prefix=no
11257 need_version=no
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 shlibpath_overrides_runpath=no
11263 hardcode_into_libs=yes
11264 ;;
11265
11266 irix5* | irix6* | nonstopux*)
11267 case $host_os in
11268 nonstopux*) version_type=nonstopux ;;
11269 *)
11270 if test "$lt_cv_prog_gnu_ld" = yes; then
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 else
11273 version_type=irix
11274 fi ;;
11275 esac
11276 need_lib_prefix=no
11277 need_version=no
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11280 case $host_os in
11281 irix5* | nonstopux*)
11282 libsuff= shlibsuff=
11283 ;;
11284 *)
11285 case $LD in # libtool.m4 will add one of these switches to LD
11286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11287 libsuff= shlibsuff= libmagic=32-bit;;
11288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11289 libsuff=32 shlibsuff=N32 libmagic=N32;;
11290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11292 *) libsuff= shlibsuff= libmagic=never-match;;
11293 esac
11294 ;;
11295 esac
11296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11297 shlibpath_overrides_runpath=no
11298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11300 hardcode_into_libs=yes
11301 ;;
11302
11303 # No shared lib support for Linux oldld, aout, or coff.
11304 linux*oldld* | linux*aout* | linux*coff*)
11305 dynamic_linker=no
11306 ;;
11307
11308 # This must be glibc/ELF.
11309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11310 version_type=linux # correct to gnu/linux during the next big refactor
11311 need_lib_prefix=no
11312 need_version=no
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=no
11318
11319 # Some binutils ld are patched to set DT_RUNPATH
11320 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 lt_cv_shlibpath_overrides_runpath=no
11324 save_LDFLAGS=$LDFLAGS
11325 save_libdir=$libdir
11326 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11327 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330
11331 int
11332 main ()
11333 {
11334
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11341 lt_cv_shlibpath_overrides_runpath=yes
11342 fi
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LDFLAGS=$save_LDFLAGS
11347 libdir=$save_libdir
11348
11349 fi
11350
11351 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11352
11353 # This implies no fast_install, which is unacceptable.
11354 # Some rework will be needed to allow for fast_install
11355 # before this can be enabled.
11356 hardcode_into_libs=yes
11357
11358 # Add ABI-specific directories to the system library path.
11359 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11360
11361 # Append ld.so.conf contents to the search path
11362 if test -f /etc/ld.so.conf; then
11363 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' ' '`
11364 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11365
11366 fi
11367
11368 # We used to test for /lib/ld.so.1 and disable shared libraries on
11369 # powerpc, because MkLinux only supported shared libraries with the
11370 # GNU dynamic linker. Since this was broken with cross compilers,
11371 # most powerpc-linux boxes support dynamic linking these days and
11372 # people can always --disable-shared, the test was removed, and we
11373 # assume the GNU/Linux dynamic linker is in use.
11374 dynamic_linker='GNU/Linux ld.so'
11375 ;;
11376
11377 netbsd*)
11378 version_type=sunos
11379 need_lib_prefix=no
11380 need_version=no
11381 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384 dynamic_linker='NetBSD (a.out) ld.so'
11385 else
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 dynamic_linker='NetBSD ld.elf_so'
11389 fi
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=yes
11392 hardcode_into_libs=yes
11393 ;;
11394
11395 newsos6)
11396 version_type=linux # correct to gnu/linux during the next big refactor
11397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=yes
11400 ;;
11401
11402 *nto* | *qnx*)
11403 version_type=qnx
11404 need_lib_prefix=no
11405 need_version=no
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=no
11410 hardcode_into_libs=yes
11411 dynamic_linker='ldqnx.so'
11412 ;;
11413
11414 openbsd*)
11415 version_type=sunos
11416 sys_lib_dlsearch_path_spec="/usr/lib"
11417 need_lib_prefix=no
11418 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11419 case $host_os in
11420 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11421 *) need_version=no ;;
11422 esac
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11427 case $host_os in
11428 openbsd2.[89] | openbsd2.[89].*)
11429 shlibpath_overrides_runpath=no
11430 ;;
11431 *)
11432 shlibpath_overrides_runpath=yes
11433 ;;
11434 esac
11435 else
11436 shlibpath_overrides_runpath=yes
11437 fi
11438 ;;
11439
11440 os2*)
11441 libname_spec='$name'
11442 shrext_cmds=".dll"
11443 need_lib_prefix=no
11444 library_names_spec='$libname${shared_ext} $libname.a'
11445 dynamic_linker='OS/2 ld.exe'
11446 shlibpath_var=LIBPATH
11447 ;;
11448
11449 osf3* | osf4* | osf5*)
11450 version_type=osf
11451 need_lib_prefix=no
11452 need_version=no
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11458 ;;
11459
11460 rdos*)
11461 dynamic_linker=no
11462 ;;
11463
11464 solaris*)
11465 version_type=linux # correct to gnu/linux during the next big refactor
11466 need_lib_prefix=no
11467 need_version=no
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=yes
11472 hardcode_into_libs=yes
11473 # ldd complains unless libraries are executable
11474 postinstall_cmds='chmod +x $lib'
11475 ;;
11476
11477 sunos4*)
11478 version_type=sunos
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 shlibpath_overrides_runpath=yes
11483 if test "$with_gnu_ld" = yes; then
11484 need_lib_prefix=no
11485 fi
11486 need_version=yes
11487 ;;
11488
11489 sysv4 | sysv4.3*)
11490 version_type=linux # correct to gnu/linux during the next big refactor
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 case $host_vendor in
11495 sni)
11496 shlibpath_overrides_runpath=no
11497 need_lib_prefix=no
11498 runpath_var=LD_RUN_PATH
11499 ;;
11500 siemens)
11501 need_lib_prefix=no
11502 ;;
11503 motorola)
11504 need_lib_prefix=no
11505 need_version=no
11506 shlibpath_overrides_runpath=no
11507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11508 ;;
11509 esac
11510 ;;
11511
11512 sysv4*MP*)
11513 if test -d /usr/nec ;then
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11516 soname_spec='$libname${shared_ext}.$major'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 fi
11519 ;;
11520
11521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11522 version_type=freebsd-elf
11523 need_lib_prefix=no
11524 need_version=no
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11530 if test "$with_gnu_ld" = yes; then
11531 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11532 else
11533 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11534 case $host_os in
11535 sco3.2v5*)
11536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11537 ;;
11538 esac
11539 fi
11540 sys_lib_dlsearch_path_spec='/usr/lib'
11541 ;;
11542
11543 tpf*)
11544 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11545 version_type=linux # correct to gnu/linux during the next big refactor
11546 need_lib_prefix=no
11547 need_version=no
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=no
11551 hardcode_into_libs=yes
11552 ;;
11553
11554 uts4*)
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 ;;
11560
11561 *)
11562 dynamic_linker=no
11563 ;;
11564 esac
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11566 $as_echo "$dynamic_linker" >&6; }
11567 test "$dynamic_linker" = no && can_build_shared=no
11568
11569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11570 if test "$GCC" = yes; then
11571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11572 fi
11573
11574 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11575 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11576 fi
11577 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11578 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11579 fi
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
11669
11670
11671
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11673 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11674 hardcode_action=
11675 if test -n "$hardcode_libdir_flag_spec" ||
11676 test -n "$runpath_var" ||
11677 test "X$hardcode_automatic" = "Xyes" ; then
11678
11679 # We can hardcode non-existent directories.
11680 if test "$hardcode_direct" != no &&
11681 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11682 # have to relink, otherwise we might link with an installed library
11683 # when we should be linking with a yet-to-be-installed one
11684 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11685 test "$hardcode_minus_L" != no; then
11686 # Linking always hardcodes the temporary library directory.
11687 hardcode_action=relink
11688 else
11689 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11690 hardcode_action=immediate
11691 fi
11692 else
11693 # We cannot hardcode anything, or else we can only hardcode existing
11694 # directories.
11695 hardcode_action=unsupported
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11698 $as_echo "$hardcode_action" >&6; }
11699
11700 if test "$hardcode_action" = relink ||
11701 test "$inherit_rpath" = yes; then
11702 # Fast installation is not supported
11703 enable_fast_install=no
11704 elif test "$shlibpath_overrides_runpath" = yes ||
11705 test "$enable_shared" = no; then
11706 # Fast installation is not necessary
11707 enable_fast_install=needless
11708 fi
11709
11710
11711
11712
11713
11714
11715 if test "x$enable_dlopen" != xyes; then
11716 enable_dlopen=unknown
11717 enable_dlopen_self=unknown
11718 enable_dlopen_self_static=unknown
11719 else
11720 lt_cv_dlopen=no
11721 lt_cv_dlopen_libs=
11722
11723 case $host_os in
11724 beos*)
11725 lt_cv_dlopen="load_add_on"
11726 lt_cv_dlopen_libs=
11727 lt_cv_dlopen_self=yes
11728 ;;
11729
11730 mingw* | pw32* | cegcc*)
11731 lt_cv_dlopen="LoadLibrary"
11732 lt_cv_dlopen_libs=
11733 ;;
11734
11735 cygwin*)
11736 lt_cv_dlopen="dlopen"
11737 lt_cv_dlopen_libs=
11738 ;;
11739
11740 darwin*)
11741 # if libdl is installed we need to link against it
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11743 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11744 if ${ac_cv_lib_dl_dlopen+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 ac_check_lib_save_LIBS=$LIBS
11748 LIBS="-ldl $LIBS"
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751
11752 /* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 char dlopen ();
11759 int
11760 main ()
11761 {
11762 return dlopen ();
11763 ;
11764 return 0;
11765 }
11766 _ACEOF
11767 if ac_fn_c_try_link "$LINENO"; then :
11768 ac_cv_lib_dl_dlopen=yes
11769 else
11770 ac_cv_lib_dl_dlopen=no
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774 LIBS=$ac_check_lib_save_LIBS
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11777 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11778 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11780 else
11781
11782 lt_cv_dlopen="dyld"
11783 lt_cv_dlopen_libs=
11784 lt_cv_dlopen_self=yes
11785
11786 fi
11787
11788 ;;
11789
11790 *)
11791 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11792 if test "x$ac_cv_func_shl_load" = xyes; then :
11793 lt_cv_dlopen="shl_load"
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11796 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11797 if ${ac_cv_lib_dld_shl_load+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 ac_check_lib_save_LIBS=$LIBS
11801 LIBS="-ldld $LIBS"
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11804
11805 /* Override any GCC internal prototype to avoid an error.
11806 Use char because int might match the return type of a GCC
11807 builtin and then its argument prototype would still apply. */
11808 #ifdef __cplusplus
11809 extern "C"
11810 #endif
11811 char shl_load ();
11812 int
11813 main ()
11814 {
11815 return shl_load ();
11816 ;
11817 return 0;
11818 }
11819 _ACEOF
11820 if ac_fn_c_try_link "$LINENO"; then :
11821 ac_cv_lib_dld_shl_load=yes
11822 else
11823 ac_cv_lib_dld_shl_load=no
11824 fi
11825 rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 LIBS=$ac_check_lib_save_LIBS
11828 fi
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11830 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11831 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11832 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11833 else
11834 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11835 if test "x$ac_cv_func_dlopen" = xyes; then :
11836 lt_cv_dlopen="dlopen"
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11839 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11840 if ${ac_cv_lib_dl_dlopen+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 ac_check_lib_save_LIBS=$LIBS
11844 LIBS="-ldl $LIBS"
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847
11848 /* Override any GCC internal prototype to avoid an error.
11849 Use char because int might match the return type of a GCC
11850 builtin and then its argument prototype would still apply. */
11851 #ifdef __cplusplus
11852 extern "C"
11853 #endif
11854 char dlopen ();
11855 int
11856 main ()
11857 {
11858 return dlopen ();
11859 ;
11860 return 0;
11861 }
11862 _ACEOF
11863 if ac_fn_c_try_link "$LINENO"; then :
11864 ac_cv_lib_dl_dlopen=yes
11865 else
11866 ac_cv_lib_dl_dlopen=no
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11871 fi
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11873 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11874 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11878 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11879 if ${ac_cv_lib_svld_dlopen+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-lsvld $LIBS"
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 char dlopen ();
11894 int
11895 main ()
11896 {
11897 return dlopen ();
11898 ;
11899 return 0;
11900 }
11901 _ACEOF
11902 if ac_fn_c_try_link "$LINENO"; then :
11903 ac_cv_lib_svld_dlopen=yes
11904 else
11905 ac_cv_lib_svld_dlopen=no
11906 fi
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11912 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11913 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11917 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11918 if ${ac_cv_lib_dld_dld_link+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 ac_check_lib_save_LIBS=$LIBS
11922 LIBS="-ldld $LIBS"
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char dld_link ();
11933 int
11934 main ()
11935 {
11936 return dld_link ();
11937 ;
11938 return 0;
11939 }
11940 _ACEOF
11941 if ac_fn_c_try_link "$LINENO"; then :
11942 ac_cv_lib_dld_dld_link=yes
11943 else
11944 ac_cv_lib_dld_dld_link=no
11945 fi
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11951 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11952 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11953 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11954 fi
11955
11956
11957 fi
11958
11959
11960 fi
11961
11962
11963 fi
11964
11965
11966 fi
11967
11968
11969 fi
11970
11971 ;;
11972 esac
11973
11974 if test "x$lt_cv_dlopen" != xno; then
11975 enable_dlopen=yes
11976 else
11977 enable_dlopen=no
11978 fi
11979
11980 case $lt_cv_dlopen in
11981 dlopen)
11982 save_CPPFLAGS="$CPPFLAGS"
11983 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11984
11985 save_LDFLAGS="$LDFLAGS"
11986 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11987
11988 save_LIBS="$LIBS"
11989 LIBS="$lt_cv_dlopen_libs $LIBS"
11990
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11992 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11993 if ${lt_cv_dlopen_self+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 if test "$cross_compiling" = yes; then :
11997 lt_cv_dlopen_self=cross
11998 else
11999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12000 lt_status=$lt_dlunknown
12001 cat > conftest.$ac_ext <<_LT_EOF
12002 #line $LINENO "configure"
12003 #include "confdefs.h"
12004
12005 #if HAVE_DLFCN_H
12006 #include <dlfcn.h>
12007 #endif
12008
12009 #include <stdio.h>
12010
12011 #ifdef RTLD_GLOBAL
12012 # define LT_DLGLOBAL RTLD_GLOBAL
12013 #else
12014 # ifdef DL_GLOBAL
12015 # define LT_DLGLOBAL DL_GLOBAL
12016 # else
12017 # define LT_DLGLOBAL 0
12018 # endif
12019 #endif
12020
12021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12022 find out it does not work in some platform. */
12023 #ifndef LT_DLLAZY_OR_NOW
12024 # ifdef RTLD_LAZY
12025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12026 # else
12027 # ifdef DL_LAZY
12028 # define LT_DLLAZY_OR_NOW DL_LAZY
12029 # else
12030 # ifdef RTLD_NOW
12031 # define LT_DLLAZY_OR_NOW RTLD_NOW
12032 # else
12033 # ifdef DL_NOW
12034 # define LT_DLLAZY_OR_NOW DL_NOW
12035 # else
12036 # define LT_DLLAZY_OR_NOW 0
12037 # endif
12038 # endif
12039 # endif
12040 # endif
12041 #endif
12042
12043 /* When -fvisbility=hidden is used, assume the code has been annotated
12044 correspondingly for the symbols needed. */
12045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12046 int fnord () __attribute__((visibility("default")));
12047 #endif
12048
12049 int fnord () { return 42; }
12050 int main ()
12051 {
12052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12053 int status = $lt_dlunknown;
12054
12055 if (self)
12056 {
12057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12058 else
12059 {
12060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12061 else puts (dlerror ());
12062 }
12063 /* dlclose (self); */
12064 }
12065 else
12066 puts (dlerror ());
12067
12068 return status;
12069 }
12070 _LT_EOF
12071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12072 (eval $ac_link) 2>&5
12073 ac_status=$?
12074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12076 (./conftest; exit; ) >&5 2>/dev/null
12077 lt_status=$?
12078 case x$lt_status in
12079 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12080 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12081 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12082 esac
12083 else :
12084 # compilation failed
12085 lt_cv_dlopen_self=no
12086 fi
12087 fi
12088 rm -fr conftest*
12089
12090
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12093 $as_echo "$lt_cv_dlopen_self" >&6; }
12094
12095 if test "x$lt_cv_dlopen_self" = xyes; then
12096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12098 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12099 if ${lt_cv_dlopen_self_static+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test "$cross_compiling" = yes; then :
12103 lt_cv_dlopen_self_static=cross
12104 else
12105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12106 lt_status=$lt_dlunknown
12107 cat > conftest.$ac_ext <<_LT_EOF
12108 #line $LINENO "configure"
12109 #include "confdefs.h"
12110
12111 #if HAVE_DLFCN_H
12112 #include <dlfcn.h>
12113 #endif
12114
12115 #include <stdio.h>
12116
12117 #ifdef RTLD_GLOBAL
12118 # define LT_DLGLOBAL RTLD_GLOBAL
12119 #else
12120 # ifdef DL_GLOBAL
12121 # define LT_DLGLOBAL DL_GLOBAL
12122 # else
12123 # define LT_DLGLOBAL 0
12124 # endif
12125 #endif
12126
12127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12128 find out it does not work in some platform. */
12129 #ifndef LT_DLLAZY_OR_NOW
12130 # ifdef RTLD_LAZY
12131 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12132 # else
12133 # ifdef DL_LAZY
12134 # define LT_DLLAZY_OR_NOW DL_LAZY
12135 # else
12136 # ifdef RTLD_NOW
12137 # define LT_DLLAZY_OR_NOW RTLD_NOW
12138 # else
12139 # ifdef DL_NOW
12140 # define LT_DLLAZY_OR_NOW DL_NOW
12141 # else
12142 # define LT_DLLAZY_OR_NOW 0
12143 # endif
12144 # endif
12145 # endif
12146 # endif
12147 #endif
12148
12149 /* When -fvisbility=hidden is used, assume the code has been annotated
12150 correspondingly for the symbols needed. */
12151 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12152 int fnord () __attribute__((visibility("default")));
12153 #endif
12154
12155 int fnord () { return 42; }
12156 int main ()
12157 {
12158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12159 int status = $lt_dlunknown;
12160
12161 if (self)
12162 {
12163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12164 else
12165 {
12166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12167 else puts (dlerror ());
12168 }
12169 /* dlclose (self); */
12170 }
12171 else
12172 puts (dlerror ());
12173
12174 return status;
12175 }
12176 _LT_EOF
12177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12178 (eval $ac_link) 2>&5
12179 ac_status=$?
12180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12181 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12182 (./conftest; exit; ) >&5 2>/dev/null
12183 lt_status=$?
12184 case x$lt_status in
12185 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12186 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12187 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12188 esac
12189 else :
12190 # compilation failed
12191 lt_cv_dlopen_self_static=no
12192 fi
12193 fi
12194 rm -fr conftest*
12195
12196
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12199 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12200 fi
12201
12202 CPPFLAGS="$save_CPPFLAGS"
12203 LDFLAGS="$save_LDFLAGS"
12204 LIBS="$save_LIBS"
12205 ;;
12206 esac
12207
12208 case $lt_cv_dlopen_self in
12209 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12210 *) enable_dlopen_self=unknown ;;
12211 esac
12212
12213 case $lt_cv_dlopen_self_static in
12214 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12215 *) enable_dlopen_self_static=unknown ;;
12216 esac
12217 fi
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235 striplib=
12236 old_striplib=
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12238 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12239 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12240 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12241 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12243 $as_echo "yes" >&6; }
12244 else
12245 # FIXME - insert some real tests, host_os isn't really good enough
12246 case $host_os in
12247 darwin*)
12248 if test -n "$STRIP" ; then
12249 striplib="$STRIP -x"
12250 old_striplib="$STRIP -S"
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12252 $as_echo "yes" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 fi
12257 ;;
12258 *)
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261 ;;
12262 esac
12263 fi
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276 # Report which library types will actually be built
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12278 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12280 $as_echo "$can_build_shared" >&6; }
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12283 $as_echo_n "checking whether to build shared libraries... " >&6; }
12284 test "$can_build_shared" = "no" && enable_shared=no
12285
12286 # On AIX, shared libraries and static libraries use the same namespace, and
12287 # are all built from PIC.
12288 case $host_os in
12289 aix3*)
12290 test "$enable_shared" = yes && enable_static=no
12291 if test -n "$RANLIB"; then
12292 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12293 postinstall_cmds='$RANLIB $lib'
12294 fi
12295 ;;
12296
12297 aix[4-9]*)
12298 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12299 test "$enable_shared" = yes && enable_static=no
12300 fi
12301 ;;
12302 esac
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12304 $as_echo "$enable_shared" >&6; }
12305
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12307 $as_echo_n "checking whether to build static libraries... " >&6; }
12308 # Make sure either enable_shared or enable_static is yes.
12309 test "$enable_shared" = yes || enable_static=yes
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12311 $as_echo "$enable_static" >&6; }
12312
12313
12314
12315
12316 fi
12317 ac_ext=c
12318 ac_cpp='$CPP $CPPFLAGS'
12319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322
12323 CC="$lt_save_CC"
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339 ac_config_commands="$ac_config_commands libtool"
12340
12341
12342
12343
12344 # Only expand once:
12345
12346
12347 if test -n "$ac_tool_prefix"; then
12348 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12349 set dummy ${ac_tool_prefix}windres; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351 $as_echo_n "checking for $ac_word... " >&6; }
12352 if ${ac_cv_prog_RC+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if test -n "$RC"; then
12356 ac_cv_prog_RC="$RC" # Let the user override the test.
12357 else
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12360 do
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365 ac_cv_prog_RC="${ac_tool_prefix}windres"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12368 fi
12369 done
12370 done
12371 IFS=$as_save_IFS
12372
12373 fi
12374 fi
12375 RC=$ac_cv_prog_RC
12376 if test -n "$RC"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12378 $as_echo "$RC" >&6; }
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382 fi
12383
12384
12385 fi
12386 if test -z "$ac_cv_prog_RC"; then
12387 ac_ct_RC=$RC
12388 # Extract the first word of "windres", so it can be a program name with args.
12389 set dummy windres; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 if test -n "$ac_ct_RC"; then
12396 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12397 else
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12400 do
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12405 ac_cv_prog_ac_ct_RC="windres"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 break 2
12408 fi
12409 done
12410 done
12411 IFS=$as_save_IFS
12412
12413 fi
12414 fi
12415 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12416 if test -n "$ac_ct_RC"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12418 $as_echo "$ac_ct_RC" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12422 fi
12423
12424 if test "x$ac_ct_RC" = x; then
12425 RC=""
12426 else
12427 case $cross_compiling:$ac_tool_warned in
12428 yes:)
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12431 ac_tool_warned=yes ;;
12432 esac
12433 RC=$ac_ct_RC
12434 fi
12435 else
12436 RC="$ac_cv_prog_RC"
12437 fi
12438
12439
12440
12441
12442 # Source file extension for RC test sources.
12443 ac_ext=rc
12444
12445 # Object file extension for compiled RC test sources.
12446 objext=o
12447 objext_RC=$objext
12448
12449 # Code to be used in simple compile tests
12450 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12451
12452 # Code to be used in simple link tests
12453 lt_simple_link_test_code="$lt_simple_compile_test_code"
12454
12455 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12456
12457
12458
12459
12460
12461
12462 # If no C compiler was specified, use CC.
12463 LTCC=${LTCC-"$CC"}
12464
12465 # If no C compiler flags were specified, use CFLAGS.
12466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12467
12468 # Allow CC to be a program name with arguments.
12469 compiler=$CC
12470
12471
12472 # save warnings/boilerplate of simple test code
12473 ac_outfile=conftest.$ac_objext
12474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12476 _lt_compiler_boilerplate=`cat conftest.err`
12477 $RM conftest*
12478
12479 ac_outfile=conftest.$ac_objext
12480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12482 _lt_linker_boilerplate=`cat conftest.err`
12483 $RM -r conftest*
12484
12485
12486 # Allow CC to be a program name with arguments.
12487 lt_save_CC="$CC"
12488 lt_save_CFLAGS=$CFLAGS
12489 lt_save_GCC=$GCC
12490 GCC=
12491 CC=${RC-"windres"}
12492 CFLAGS=
12493 compiler=$CC
12494 compiler_RC=$CC
12495 for cc_temp in $compiler""; do
12496 case $cc_temp in
12497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12499 \-*) ;;
12500 *) break;;
12501 esac
12502 done
12503 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12504
12505 lt_cv_prog_compiler_c_o_RC=yes
12506
12507 if test -n "$compiler"; then
12508 :
12509
12510
12511
12512 fi
12513
12514 GCC=$lt_save_GCC
12515 ac_ext=c
12516 ac_cpp='$CPP $CPPFLAGS'
12517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12520
12521 CC=$lt_save_CC
12522 CFLAGS=$lt_save_CFLAGS
12523
12524 if test x$RC != x; then
12525 WINDOWS_RESOURCES_TRUE=
12526 WINDOWS_RESOURCES_FALSE='#'
12527 else
12528 WINDOWS_RESOURCES_TRUE='#'
12529 WINDOWS_RESOURCES_FALSE=
12530 fi
12531
12532
12533 # for windows manifest
12534 WINDOWS_VERSIONINFO=$(echo "${VERSION}.0.0.0" | cut -f1-4 -d. | tr . ,)
12535
12536
12537 # Suffix appended to version string
12538
12539 # Check whether --with-version-suffix was given.
12540 if test "${with_version_suffix+set}" = set; then :
12541 withval=$with_version_suffix;
12542 fi
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string" >&5
12545 $as_echo_n "checking version string... " >&6; }
12546 if test "x$with_version_suffix" != "x"; then
12547 SUFFIXED_VERSION="$VERSION-$with_version_suffix"
12548 else
12549 SUFFIXED_VERSION="$VERSION"
12550 fi
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUFFIXED_VERSION" >&5
12552 $as_echo "$SUFFIXED_VERSION" >&6; }
12553
12554 cat >>confdefs.h <<_ACEOF
12555 #define SUFFIXED_VERSION "$SUFFIXED_VERSION"
12556 _ACEOF
12557
12558
12559
12560
12561 # libraries
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
12563 $as_echo_n "checking for library containing floor... " >&6; }
12564 if ${ac_cv_search_floor+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 ac_func_search_save_LIBS=$LIBS
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 char floor ();
12578 int
12579 main ()
12580 {
12581 return floor ();
12582 ;
12583 return 0;
12584 }
12585 _ACEOF
12586 for ac_lib in '' m; do
12587 if test -z "$ac_lib"; then
12588 ac_res="none required"
12589 else
12590 ac_res=-l$ac_lib
12591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12592 fi
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 ac_cv_search_floor=$ac_res
12595 fi
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext
12598 if ${ac_cv_search_floor+:} false; then :
12599 break
12600 fi
12601 done
12602 if ${ac_cv_search_floor+:} false; then :
12603
12604 else
12605 ac_cv_search_floor=no
12606 fi
12607 rm conftest.$ac_ext
12608 LIBS=$ac_func_search_save_LIBS
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
12611 $as_echo "$ac_cv_search_floor" >&6; }
12612 ac_res=$ac_cv_search_floor
12613 if test "$ac_res" != no; then :
12614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12615
12616 else
12617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12619 as_fn_error $? "cannot find math library
12620 See \`config.log' for more details" "$LINENO" 5; }
12621 fi
12622
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jpeg_CreateDecompress" >&5
12624 $as_echo_n "checking for library containing jpeg_CreateDecompress... " >&6; }
12625 if ${ac_cv_search_jpeg_CreateDecompress+:} false; then :
12626 $as_echo_n "(cached) " >&6
12627 else
12628 ac_func_search_save_LIBS=$LIBS
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12631
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 char jpeg_CreateDecompress ();
12639 int
12640 main ()
12641 {
12642 return jpeg_CreateDecompress ();
12643 ;
12644 return 0;
12645 }
12646 _ACEOF
12647 for ac_lib in '' jpeg; do
12648 if test -z "$ac_lib"; then
12649 ac_res="none required"
12650 else
12651 ac_res=-l$ac_lib
12652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12653 fi
12654 if ac_fn_c_try_link "$LINENO"; then :
12655 ac_cv_search_jpeg_CreateDecompress=$ac_res
12656 fi
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext
12659 if ${ac_cv_search_jpeg_CreateDecompress+:} false; then :
12660 break
12661 fi
12662 done
12663 if ${ac_cv_search_jpeg_CreateDecompress+:} false; then :
12664
12665 else
12666 ac_cv_search_jpeg_CreateDecompress=no
12667 fi
12668 rm conftest.$ac_ext
12669 LIBS=$ac_func_search_save_LIBS
12670 fi
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jpeg_CreateDecompress" >&5
12672 $as_echo "$ac_cv_search_jpeg_CreateDecompress" >&6; }
12673 ac_res=$ac_cv_search_jpeg_CreateDecompress
12674 if test "$ac_res" != no; then :
12675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12676
12677 else
12678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12680 as_fn_error $? "cannot find libjpeg
12681 See \`config.log' for more details" "$LINENO" 5; }
12682 fi
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12693 if test -n "$ac_tool_prefix"; then
12694 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12695 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697 $as_echo_n "checking for $ac_word... " >&6; }
12698 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 case $PKG_CONFIG in
12702 [\\/]* | ?:[\\/]*)
12703 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12704 ;;
12705 *)
12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $PATH
12708 do
12709 IFS=$as_save_IFS
12710 test -z "$as_dir" && as_dir=.
12711 for ac_exec_ext in '' $ac_executable_extensions; do
12712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12713 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715 break 2
12716 fi
12717 done
12718 done
12719 IFS=$as_save_IFS
12720
12721 ;;
12722 esac
12723 fi
12724 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12725 if test -n "$PKG_CONFIG"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12727 $as_echo "$PKG_CONFIG" >&6; }
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12731 fi
12732
12733
12734 fi
12735 if test -z "$ac_cv_path_PKG_CONFIG"; then
12736 ac_pt_PKG_CONFIG=$PKG_CONFIG
12737 # Extract the first word of "pkg-config", so it can be a program name with args.
12738 set dummy pkg-config; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 case $ac_pt_PKG_CONFIG in
12745 [\\/]* | ?:[\\/]*)
12746 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12747 ;;
12748 *)
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $PATH
12751 do
12752 IFS=$as_save_IFS
12753 test -z "$as_dir" && as_dir=.
12754 for ac_exec_ext in '' $ac_executable_extensions; do
12755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12756 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12758 break 2
12759 fi
12760 done
12761 done
12762 IFS=$as_save_IFS
12763
12764 ;;
12765 esac
12766 fi
12767 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12768 if test -n "$ac_pt_PKG_CONFIG"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12770 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12771 else
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12774 fi
12775
12776 if test "x$ac_pt_PKG_CONFIG" = x; then
12777 PKG_CONFIG=""
12778 else
12779 case $cross_compiling:$ac_tool_warned in
12780 yes:)
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12783 ac_tool_warned=yes ;;
12784 esac
12785 PKG_CONFIG=$ac_pt_PKG_CONFIG
12786 fi
12787 else
12788 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12789 fi
12790
12791 fi
12792 if test -n "$PKG_CONFIG"; then
12793 _pkg_min_version=0.9.0
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12795 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12796 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12798 $as_echo "yes" >&6; }
12799 else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12802 PKG_CONFIG=""
12803 fi
12804 fi
12805
12806 pkg_failed=no
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
12808 $as_echo_n "checking for ZLIB... " >&6; }
12809
12810 if test -n "$ZLIB_CFLAGS"; then
12811 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
12812 elif test -n "$PKG_CONFIG"; then
12813 if test -n "$PKG_CONFIG" && \
12814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
12815 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
12816 ac_status=$?
12817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818 test $ac_status = 0; }; then
12819 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
12820 test "x$?" != "x0" && pkg_failed=yes
12821 else
12822 pkg_failed=yes
12823 fi
12824 else
12825 pkg_failed=untried
12826 fi
12827 if test -n "$ZLIB_LIBS"; then
12828 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
12829 elif test -n "$PKG_CONFIG"; then
12830 if test -n "$PKG_CONFIG" && \
12831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
12832 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
12833 ac_status=$?
12834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12835 test $ac_status = 0; }; then
12836 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
12837 test "x$?" != "x0" && pkg_failed=yes
12838 else
12839 pkg_failed=yes
12840 fi
12841 else
12842 pkg_failed=untried
12843 fi
12844
12845
12846
12847 if test $pkg_failed = yes; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850
12851 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12852 _pkg_short_errors_supported=yes
12853 else
12854 _pkg_short_errors_supported=no
12855 fi
12856 if test $_pkg_short_errors_supported = yes; then
12857 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
12858 else
12859 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
12860 fi
12861 # Put the nasty error message in config.log where it belongs
12862 echo "$ZLIB_PKG_ERRORS" >&5
12863
12864
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflate" >&5
12866 $as_echo_n "checking for library containing inflate... " >&6; }
12867 if ${ac_cv_search_inflate+:} false; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 ac_func_search_save_LIBS=$LIBS
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12873
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char inflate ();
12881 int
12882 main ()
12883 {
12884 return inflate ();
12885 ;
12886 return 0;
12887 }
12888 _ACEOF
12889 for ac_lib in '' z; do
12890 if test -z "$ac_lib"; then
12891 ac_res="none required"
12892 else
12893 ac_res=-l$ac_lib
12894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12895 fi
12896 if ac_fn_c_try_link "$LINENO"; then :
12897 ac_cv_search_inflate=$ac_res
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext
12901 if ${ac_cv_search_inflate+:} false; then :
12902 break
12903 fi
12904 done
12905 if ${ac_cv_search_inflate+:} false; then :
12906
12907 else
12908 ac_cv_search_inflate=no
12909 fi
12910 rm conftest.$ac_ext
12911 LIBS=$ac_func_search_save_LIBS
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflate" >&5
12914 $as_echo "$ac_cv_search_inflate" >&6; }
12915 ac_res=$ac_cv_search_inflate
12916 if test "$ac_res" != no; then :
12917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12918
12919 else
12920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12922 as_fn_error $? "cannot find zlib
12923 See \`config.log' for more details" "$LINENO" 5; }
12924 fi
12925
12926
12927 elif test $pkg_failed = untried; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflate" >&5
12932 $as_echo_n "checking for library containing inflate... " >&6; }
12933 if ${ac_cv_search_inflate+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 ac_func_search_save_LIBS=$LIBS
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12939
12940 /* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12943 #ifdef __cplusplus
12944 extern "C"
12945 #endif
12946 char inflate ();
12947 int
12948 main ()
12949 {
12950 return inflate ();
12951 ;
12952 return 0;
12953 }
12954 _ACEOF
12955 for ac_lib in '' z; do
12956 if test -z "$ac_lib"; then
12957 ac_res="none required"
12958 else
12959 ac_res=-l$ac_lib
12960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12961 fi
12962 if ac_fn_c_try_link "$LINENO"; then :
12963 ac_cv_search_inflate=$ac_res
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext
12967 if ${ac_cv_search_inflate+:} false; then :
12968 break
12969 fi
12970 done
12971 if ${ac_cv_search_inflate+:} false; then :
12972
12973 else
12974 ac_cv_search_inflate=no
12975 fi
12976 rm conftest.$ac_ext
12977 LIBS=$ac_func_search_save_LIBS
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflate" >&5
12980 $as_echo "$ac_cv_search_inflate" >&6; }
12981 ac_res=$ac_cv_search_inflate
12982 if test "$ac_res" != no; then :
12983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12984
12985 else
12986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12988 as_fn_error $? "cannot find zlib
12989 See \`config.log' for more details" "$LINENO" 5; }
12990 fi
12991
12992
12993 else
12994 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
12995 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12997 $as_echo "yes" >&6; }
12998
12999 fi
13000
13001
13002 pkg_failed=no
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENJPEG2" >&5
13004 $as_echo_n "checking for OPENJPEG2... " >&6; }
13005
13006 if test -n "$OPENJPEG2_CFLAGS"; then
13007 pkg_cv_OPENJPEG2_CFLAGS="$OPENJPEG2_CFLAGS"
13008 elif test -n "$PKG_CONFIG"; then
13009 if test -n "$PKG_CONFIG" && \
13010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
13011 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
13012 ac_status=$?
13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014 test $ac_status = 0; }; then
13015 pkg_cv_OPENJPEG2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
13016 test "x$?" != "x0" && pkg_failed=yes
13017 else
13018 pkg_failed=yes
13019 fi
13020 else
13021 pkg_failed=untried
13022 fi
13023 if test -n "$OPENJPEG2_LIBS"; then
13024 pkg_cv_OPENJPEG2_LIBS="$OPENJPEG2_LIBS"
13025 elif test -n "$PKG_CONFIG"; then
13026 if test -n "$PKG_CONFIG" && \
13027 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
13028 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
13029 ac_status=$?
13030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13031 test $ac_status = 0; }; then
13032 pkg_cv_OPENJPEG2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
13033 test "x$?" != "x0" && pkg_failed=yes
13034 else
13035 pkg_failed=yes
13036 fi
13037 else
13038 pkg_failed=untried
13039 fi
13040
13041
13042
13043 if test $pkg_failed = yes; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13046
13047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13048 _pkg_short_errors_supported=yes
13049 else
13050 _pkg_short_errors_supported=no
13051 fi
13052 if test $_pkg_short_errors_supported = yes; then
13053 OPENJPEG2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
13054 else
13055 OPENJPEG2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
13056 fi
13057 # Put the nasty error message in config.log where it belongs
13058 echo "$OPENJPEG2_PKG_ERRORS" >&5
13059
13060
13061
13062 pkg_failed=no
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENJPEG" >&5
13064 $as_echo_n "checking for OPENJPEG... " >&6; }
13065
13066 if test -n "$OPENJPEG_CFLAGS"; then
13067 pkg_cv_OPENJPEG_CFLAGS="$OPENJPEG_CFLAGS"
13068 elif test -n "$PKG_CONFIG"; then
13069 if test -n "$PKG_CONFIG" && \
13070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjpeg1\""; } >&5
13071 ($PKG_CONFIG --exists --print-errors "libopenjpeg1") 2>&5
13072 ac_status=$?
13073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074 test $ac_status = 0; }; then
13075 pkg_cv_OPENJPEG_CFLAGS=`$PKG_CONFIG --cflags "libopenjpeg1" 2>/dev/null`
13076 test "x$?" != "x0" && pkg_failed=yes
13077 else
13078 pkg_failed=yes
13079 fi
13080 else
13081 pkg_failed=untried
13082 fi
13083 if test -n "$OPENJPEG_LIBS"; then
13084 pkg_cv_OPENJPEG_LIBS="$OPENJPEG_LIBS"
13085 elif test -n "$PKG_CONFIG"; then
13086 if test -n "$PKG_CONFIG" && \
13087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjpeg1\""; } >&5
13088 ($PKG_CONFIG --exists --print-errors "libopenjpeg1") 2>&5
13089 ac_status=$?
13090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091 test $ac_status = 0; }; then
13092 pkg_cv_OPENJPEG_LIBS=`$PKG_CONFIG --libs "libopenjpeg1" 2>/dev/null`
13093 test "x$?" != "x0" && pkg_failed=yes
13094 else
13095 pkg_failed=yes
13096 fi
13097 else
13098 pkg_failed=untried
13099 fi
13100
13101
13102
13103 if test $pkg_failed = yes; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106
13107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13108 _pkg_short_errors_supported=yes
13109 else
13110 _pkg_short_errors_supported=no
13111 fi
13112 if test $_pkg_short_errors_supported = yes; then
13113 OPENJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjpeg1" 2>&1`
13114 else
13115 OPENJPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjpeg1" 2>&1`
13116 fi
13117 # Put the nasty error message in config.log where it belongs
13118 echo "$OPENJPEG_PKG_ERRORS" >&5
13119
13120
13121
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenJPEG (fallback)" >&5
13123 $as_echo_n "checking for OpenJPEG (fallback)... " >&6; }
13124
13125 old_LIBS="$LIBS"
13126 LIBS="-lopenjpeg $LIBS"
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129
13130 #include <openjpeg.h>
13131 int
13132 main ()
13133 {
13134 const char *ver = opj_version();
13135 return 0;
13136 }
13137
13138 _ACEOF
13139 if ac_fn_c_try_link "$LINENO"; then :
13140 openjpeg_ok=yes
13141 else
13142 openjpeg_ok=no
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146 LIBS="$old_LIBS"
13147
13148 if test "$openjpeg_ok" = yes; then
13149 OPENJPEG_LIBS="-lopenjpeg"
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openjpeg_ok" >&5
13151 $as_echo "$openjpeg_ok" >&6; }
13152 else
13153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13155 as_fn_error $? "cannot find OpenJPEG
13156 See \`config.log' for more details" "$LINENO" 5; }
13157 fi
13158
13159 elif test $pkg_failed = untried; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162
13163
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenJPEG (fallback)" >&5
13165 $as_echo_n "checking for OpenJPEG (fallback)... " >&6; }
13166
13167 old_LIBS="$LIBS"
13168 LIBS="-lopenjpeg $LIBS"
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171
13172 #include <openjpeg.h>
13173 int
13174 main ()
13175 {
13176 const char *ver = opj_version();
13177 return 0;
13178 }
13179
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 openjpeg_ok=yes
13183 else
13184 openjpeg_ok=no
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS="$old_LIBS"
13189
13190 if test "$openjpeg_ok" = yes; then
13191 OPENJPEG_LIBS="-lopenjpeg"
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openjpeg_ok" >&5
13193 $as_echo "$openjpeg_ok" >&6; }
13194 else
13195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13197 as_fn_error $? "cannot find OpenJPEG
13198 See \`config.log' for more details" "$LINENO" 5; }
13199 fi
13200
13201 else
13202 OPENJPEG_CFLAGS=$pkg_cv_OPENJPEG_CFLAGS
13203 OPENJPEG_LIBS=$pkg_cv_OPENJPEG_LIBS
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13205 $as_echo "yes" >&6; }
13206
13207 fi
13208 FEATURE_FLAGS="$FEATURE_FLAGS openjpeg-1"
13209
13210 elif test $pkg_failed = untried; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13213
13214
13215 pkg_failed=no
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENJPEG" >&5
13217 $as_echo_n "checking for OPENJPEG... " >&6; }
13218
13219 if test -n "$OPENJPEG_CFLAGS"; then
13220 pkg_cv_OPENJPEG_CFLAGS="$OPENJPEG_CFLAGS"
13221 elif test -n "$PKG_CONFIG"; then
13222 if test -n "$PKG_CONFIG" && \
13223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjpeg1\""; } >&5
13224 ($PKG_CONFIG --exists --print-errors "libopenjpeg1") 2>&5
13225 ac_status=$?
13226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13227 test $ac_status = 0; }; then
13228 pkg_cv_OPENJPEG_CFLAGS=`$PKG_CONFIG --cflags "libopenjpeg1" 2>/dev/null`
13229 test "x$?" != "x0" && pkg_failed=yes
13230 else
13231 pkg_failed=yes
13232 fi
13233 else
13234 pkg_failed=untried
13235 fi
13236 if test -n "$OPENJPEG_LIBS"; then
13237 pkg_cv_OPENJPEG_LIBS="$OPENJPEG_LIBS"
13238 elif test -n "$PKG_CONFIG"; then
13239 if test -n "$PKG_CONFIG" && \
13240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjpeg1\""; } >&5
13241 ($PKG_CONFIG --exists --print-errors "libopenjpeg1") 2>&5
13242 ac_status=$?
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }; then
13245 pkg_cv_OPENJPEG_LIBS=`$PKG_CONFIG --libs "libopenjpeg1" 2>/dev/null`
13246 test "x$?" != "x0" && pkg_failed=yes
13247 else
13248 pkg_failed=yes
13249 fi
13250 else
13251 pkg_failed=untried
13252 fi
13253
13254
13255
13256 if test $pkg_failed = yes; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13259
13260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13261 _pkg_short_errors_supported=yes
13262 else
13263 _pkg_short_errors_supported=no
13264 fi
13265 if test $_pkg_short_errors_supported = yes; then
13266 OPENJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjpeg1" 2>&1`
13267 else
13268 OPENJPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjpeg1" 2>&1`
13269 fi
13270 # Put the nasty error message in config.log where it belongs
13271 echo "$OPENJPEG_PKG_ERRORS" >&5
13272
13273
13274
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenJPEG (fallback)" >&5
13276 $as_echo_n "checking for OpenJPEG (fallback)... " >&6; }
13277
13278 old_LIBS="$LIBS"
13279 LIBS="-lopenjpeg $LIBS"
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13282
13283 #include <openjpeg.h>
13284 int
13285 main ()
13286 {
13287 const char *ver = opj_version();
13288 return 0;
13289 }
13290
13291 _ACEOF
13292 if ac_fn_c_try_link "$LINENO"; then :
13293 openjpeg_ok=yes
13294 else
13295 openjpeg_ok=no
13296 fi
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS="$old_LIBS"
13300
13301 if test "$openjpeg_ok" = yes; then
13302 OPENJPEG_LIBS="-lopenjpeg"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openjpeg_ok" >&5
13304 $as_echo "$openjpeg_ok" >&6; }
13305 else
13306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13308 as_fn_error $? "cannot find OpenJPEG
13309 See \`config.log' for more details" "$LINENO" 5; }
13310 fi
13311
13312 elif test $pkg_failed = untried; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315
13316
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenJPEG (fallback)" >&5
13318 $as_echo_n "checking for OpenJPEG (fallback)... " >&6; }
13319
13320 old_LIBS="$LIBS"
13321 LIBS="-lopenjpeg $LIBS"
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324
13325 #include <openjpeg.h>
13326 int
13327 main ()
13328 {
13329 const char *ver = opj_version();
13330 return 0;
13331 }
13332
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"; then :
13335 openjpeg_ok=yes
13336 else
13337 openjpeg_ok=no
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341 LIBS="$old_LIBS"
13342
13343 if test "$openjpeg_ok" = yes; then
13344 OPENJPEG_LIBS="-lopenjpeg"
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openjpeg_ok" >&5
13346 $as_echo "$openjpeg_ok" >&6; }
13347 else
13348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13350 as_fn_error $? "cannot find OpenJPEG
13351 See \`config.log' for more details" "$LINENO" 5; }
13352 fi
13353
13354 else
13355 OPENJPEG_CFLAGS=$pkg_cv_OPENJPEG_CFLAGS
13356 OPENJPEG_LIBS=$pkg_cv_OPENJPEG_LIBS
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13358 $as_echo "yes" >&6; }
13359
13360 fi
13361 FEATURE_FLAGS="$FEATURE_FLAGS openjpeg-1"
13362
13363 else
13364 OPENJPEG2_CFLAGS=$pkg_cv_OPENJPEG2_CFLAGS
13365 OPENJPEG2_LIBS=$pkg_cv_OPENJPEG2_LIBS
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13367 $as_echo "yes" >&6; }
13368
13369
13370 $as_echo "#define HAVE_OPENJPEG2 1" >>confdefs.h
13371
13372 OPENJPEG_CFLAGS="$OPENJPEG2_CFLAGS"
13373 OPENJPEG_LIBS="$OPENJPEG2_LIBS"
13374 FEATURE_FLAGS="$FEATURE_FLAGS openjpeg-2"
13375
13376 fi
13377
13378
13379 pkg_failed=no
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTIFF" >&5
13381 $as_echo_n "checking for LIBTIFF... " >&6; }
13382
13383 if test -n "$LIBTIFF_CFLAGS"; then
13384 pkg_cv_LIBTIFF_CFLAGS="$LIBTIFF_CFLAGS"
13385 elif test -n "$PKG_CONFIG"; then
13386 if test -n "$PKG_CONFIG" && \
13387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5
13388 ($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13391 test $ac_status = 0; }; then
13392 pkg_cv_LIBTIFF_CFLAGS=`$PKG_CONFIG --cflags "libtiff-4" 2>/dev/null`
13393 test "x$?" != "x0" && pkg_failed=yes
13394 else
13395 pkg_failed=yes
13396 fi
13397 else
13398 pkg_failed=untried
13399 fi
13400 if test -n "$LIBTIFF_LIBS"; then
13401 pkg_cv_LIBTIFF_LIBS="$LIBTIFF_LIBS"
13402 elif test -n "$PKG_CONFIG"; then
13403 if test -n "$PKG_CONFIG" && \
13404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5
13405 ($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5
13406 ac_status=$?
13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13408 test $ac_status = 0; }; then
13409 pkg_cv_LIBTIFF_LIBS=`$PKG_CONFIG --libs "libtiff-4" 2>/dev/null`
13410 test "x$?" != "x0" && pkg_failed=yes
13411 else
13412 pkg_failed=yes
13413 fi
13414 else
13415 pkg_failed=untried
13416 fi
13417
13418
13419
13420 if test $pkg_failed = yes; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 $as_echo "no" >&6; }
13423
13424 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13425 _pkg_short_errors_supported=yes
13426 else
13427 _pkg_short_errors_supported=no
13428 fi
13429 if test $_pkg_short_errors_supported = yes; then
13430 LIBTIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtiff-4" 2>&1`
13431 else
13432 LIBTIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtiff-4" 2>&1`
13433 fi
13434 # Put the nasty error message in config.log where it belongs
13435 echo "$LIBTIFF_PKG_ERRORS" >&5
13436
13437
13438 old_LIBS="$LIBS"
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TIFFOpen" >&5
13440 $as_echo_n "checking for library containing TIFFOpen... " >&6; }
13441 if ${ac_cv_search_TIFFOpen+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 ac_func_search_save_LIBS=$LIBS
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13451 #ifdef __cplusplus
13452 extern "C"
13453 #endif
13454 char TIFFOpen ();
13455 int
13456 main ()
13457 {
13458 return TIFFOpen ();
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 for ac_lib in '' tiff; do
13464 if test -z "$ac_lib"; then
13465 ac_res="none required"
13466 else
13467 ac_res=-l$ac_lib
13468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13469 fi
13470 if ac_fn_c_try_link "$LINENO"; then :
13471 ac_cv_search_TIFFOpen=$ac_res
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext
13475 if ${ac_cv_search_TIFFOpen+:} false; then :
13476 break
13477 fi
13478 done
13479 if ${ac_cv_search_TIFFOpen+:} false; then :
13480
13481 else
13482 ac_cv_search_TIFFOpen=no
13483 fi
13484 rm conftest.$ac_ext
13485 LIBS=$ac_func_search_save_LIBS
13486 fi
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TIFFOpen" >&5
13488 $as_echo "$ac_cv_search_TIFFOpen" >&6; }
13489 ac_res=$ac_cv_search_TIFFOpen
13490 if test "$ac_res" != no; then :
13491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13492
13493 else
13494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13496 as_fn_error $? "cannot find libtiff
13497 See \`config.log' for more details" "$LINENO" 5; }
13498 fi
13499
13500 LIBS="$old_LIBS"
13501 LIBTIFF_LIBS="-ltiff"
13502
13503 elif test $pkg_failed = untried; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13506
13507 old_LIBS="$LIBS"
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TIFFOpen" >&5
13509 $as_echo_n "checking for library containing TIFFOpen... " >&6; }
13510 if ${ac_cv_search_TIFFOpen+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 ac_func_search_save_LIBS=$LIBS
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13520 #ifdef __cplusplus
13521 extern "C"
13522 #endif
13523 char TIFFOpen ();
13524 int
13525 main ()
13526 {
13527 return TIFFOpen ();
13528 ;
13529 return 0;
13530 }
13531 _ACEOF
13532 for ac_lib in '' tiff; do
13533 if test -z "$ac_lib"; then
13534 ac_res="none required"
13535 else
13536 ac_res=-l$ac_lib
13537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13538 fi
13539 if ac_fn_c_try_link "$LINENO"; then :
13540 ac_cv_search_TIFFOpen=$ac_res
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext
13544 if ${ac_cv_search_TIFFOpen+:} false; then :
13545 break
13546 fi
13547 done
13548 if ${ac_cv_search_TIFFOpen+:} false; then :
13549
13550 else
13551 ac_cv_search_TIFFOpen=no
13552 fi
13553 rm conftest.$ac_ext
13554 LIBS=$ac_func_search_save_LIBS
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TIFFOpen" >&5
13557 $as_echo "$ac_cv_search_TIFFOpen" >&6; }
13558 ac_res=$ac_cv_search_TIFFOpen
13559 if test "$ac_res" != no; then :
13560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13561
13562 else
13563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13565 as_fn_error $? "cannot find libtiff
13566 See \`config.log' for more details" "$LINENO" 5; }
13567 fi
13568
13569 LIBS="$old_LIBS"
13570 LIBTIFF_LIBS="-ltiff"
13571
13572 else
13573 LIBTIFF_CFLAGS=$pkg_cv_LIBTIFF_CFLAGS
13574 LIBTIFF_LIBS=$pkg_cv_LIBTIFF_LIBS
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13576 $as_echo "yes" >&6; }
13577
13578 fi
13579 old_CFLAGS="$CFLAGS"
13580 CFLAGS="$CFLAGS $LIBTIFF_CFLAGS"
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13583
13584 #include <tiff.h>
13585 int ver = TIFF_VERSION_BIG;
13586
13587 _ACEOF
13588 if ac_fn_c_try_compile "$LINENO"; then :
13589
13590 FEATURE_FLAGS="$FEATURE_FLAGS libtiff-4"
13591
13592 else
13593
13594 FEATURE_FLAGS="$FEATURE_FLAGS libtiff-3"
13595
13596 fi
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 CFLAGS="$old_CFLAGS"
13599
13600
13601 pkg_failed=no
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
13603 $as_echo_n "checking for GLIB2... " >&6; }
13604
13605 if test -n "$GLIB2_CFLAGS"; then
13606 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
13607 elif test -n "$PKG_CONFIG"; then
13608 if test -n "$PKG_CONFIG" && \
13609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0\""; } >&5
13610 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0") 2>&5
13611 ac_status=$?
13612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13613 test $ac_status = 0; }; then
13614 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0" 2>/dev/null`
13615 test "x$?" != "x0" && pkg_failed=yes
13616 else
13617 pkg_failed=yes
13618 fi
13619 else
13620 pkg_failed=untried
13621 fi
13622 if test -n "$GLIB2_LIBS"; then
13623 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
13624 elif test -n "$PKG_CONFIG"; then
13625 if test -n "$PKG_CONFIG" && \
13626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0\""; } >&5
13627 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0") 2>&5
13628 ac_status=$?
13629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13630 test $ac_status = 0; }; then
13631 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0" 2>/dev/null`
13632 test "x$?" != "x0" && pkg_failed=yes
13633 else
13634 pkg_failed=yes
13635 fi
13636 else
13637 pkg_failed=untried
13638 fi
13639
13640
13641
13642 if test $pkg_failed = yes; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13645
13646 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13647 _pkg_short_errors_supported=yes
13648 else
13649 _pkg_short_errors_supported=no
13650 fi
13651 if test $_pkg_short_errors_supported = yes; then
13652 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0" 2>&1`
13653 else
13654 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0" 2>&1`
13655 fi
13656 # Put the nasty error message in config.log where it belongs
13657 echo "$GLIB2_PKG_ERRORS" >&5
13658
13659 as_fn_error $? "Package requirements (glib-2.0 >= 2.16, gthread-2.0, gio-2.0, gobject-2.0) were not met:
13660
13661 $GLIB2_PKG_ERRORS
13662
13663 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13664 installed software in a non-standard prefix.
13665
13666 Alternatively, you may set the environment variables GLIB2_CFLAGS
13667 and GLIB2_LIBS to avoid the need to call pkg-config.
13668 See the pkg-config man page for more details." "$LINENO" 5
13669 elif test $pkg_failed = untried; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671 $as_echo "no" >&6; }
13672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13674 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13675 is in your PATH or set the PKG_CONFIG environment variable to the full
13676 path to pkg-config.
13677
13678 Alternatively, you may set the environment variables GLIB2_CFLAGS
13679 and GLIB2_LIBS to avoid the need to call pkg-config.
13680 See the pkg-config man page for more details.
13681
13682 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13683 See \`config.log' for more details" "$LINENO" 5; }
13684 else
13685 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
13686 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13688 $as_echo "yes" >&6; }
13689
13690 fi
13691
13692 pkg_failed=no
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13694 $as_echo_n "checking for CAIRO... " >&6; }
13695
13696 if test -n "$CAIRO_CFLAGS"; then
13697 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13698 elif test -n "$PKG_CONFIG"; then
13699 if test -n "$PKG_CONFIG" && \
13700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2\""; } >&5
13701 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2") 2>&5
13702 ac_status=$?
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13704 test $ac_status = 0; }; then
13705 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2" 2>/dev/null`
13706 test "x$?" != "x0" && pkg_failed=yes
13707 else
13708 pkg_failed=yes
13709 fi
13710 else
13711 pkg_failed=untried
13712 fi
13713 if test -n "$CAIRO_LIBS"; then
13714 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13715 elif test -n "$PKG_CONFIG"; then
13716 if test -n "$PKG_CONFIG" && \
13717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2\""; } >&5
13718 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2") 2>&5
13719 ac_status=$?
13720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13721 test $ac_status = 0; }; then
13722 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2" 2>/dev/null`
13723 test "x$?" != "x0" && pkg_failed=yes
13724 else
13725 pkg_failed=yes
13726 fi
13727 else
13728 pkg_failed=untried
13729 fi
13730
13731
13732
13733 if test $pkg_failed = yes; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13736
13737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13738 _pkg_short_errors_supported=yes
13739 else
13740 _pkg_short_errors_supported=no
13741 fi
13742 if test $_pkg_short_errors_supported = yes; then
13743 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2" 2>&1`
13744 else
13745 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2" 2>&1`
13746 fi
13747 # Put the nasty error message in config.log where it belongs
13748 echo "$CAIRO_PKG_ERRORS" >&5
13749
13750 as_fn_error $? "Package requirements (cairo >= 1.2) were not met:
13751
13752 $CAIRO_PKG_ERRORS
13753
13754 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13755 installed software in a non-standard prefix.
13756
13757 Alternatively, you may set the environment variables CAIRO_CFLAGS
13758 and CAIRO_LIBS to avoid the need to call pkg-config.
13759 See the pkg-config man page for more details." "$LINENO" 5
13760 elif test $pkg_failed = untried; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762 $as_echo "no" >&6; }
13763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13765 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13766 is in your PATH or set the PKG_CONFIG environment variable to the full
13767 path to pkg-config.
13768
13769 Alternatively, you may set the environment variables CAIRO_CFLAGS
13770 and CAIRO_LIBS to avoid the need to call pkg-config.
13771 See the pkg-config man page for more details.
13772
13773 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13774 See \`config.log' for more details" "$LINENO" 5; }
13775 else
13776 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13777 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13779 $as_echo "yes" >&6; }
13780
13781 fi
13782
13783 pkg_failed=no
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
13785 $as_echo_n "checking for LIBPNG... " >&6; }
13786
13787 if test -n "$LIBPNG_CFLAGS"; then
13788 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
13789 elif test -n "$PKG_CONFIG"; then
13790 if test -n "$PKG_CONFIG" && \
13791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng > 1.2\""; } >&5
13792 ($PKG_CONFIG --exists --print-errors "libpng > 1.2") 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795 test $ac_status = 0; }; then
13796 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng > 1.2" 2>/dev/null`
13797 test "x$?" != "x0" && pkg_failed=yes
13798 else
13799 pkg_failed=yes
13800 fi
13801 else
13802 pkg_failed=untried
13803 fi
13804 if test -n "$LIBPNG_LIBS"; then
13805 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
13806 elif test -n "$PKG_CONFIG"; then
13807 if test -n "$PKG_CONFIG" && \
13808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng > 1.2\""; } >&5
13809 ($PKG_CONFIG --exists --print-errors "libpng > 1.2") 2>&5
13810 ac_status=$?
13811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13812 test $ac_status = 0; }; then
13813 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng > 1.2" 2>/dev/null`
13814 test "x$?" != "x0" && pkg_failed=yes
13815 else
13816 pkg_failed=yes
13817 fi
13818 else
13819 pkg_failed=untried
13820 fi
13821
13822
13823
13824 if test $pkg_failed = yes; then
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827
13828 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13829 _pkg_short_errors_supported=yes
13830 else
13831 _pkg_short_errors_supported=no
13832 fi
13833 if test $_pkg_short_errors_supported = yes; then
13834 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng > 1.2" 2>&1`
13835 else
13836 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng > 1.2" 2>&1`
13837 fi
13838 # Put the nasty error message in config.log where it belongs
13839 echo "$LIBPNG_PKG_ERRORS" >&5
13840
13841 as_fn_error $? "Package requirements (libpng > 1.2) were not met:
13842
13843 $LIBPNG_PKG_ERRORS
13844
13845 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13846 installed software in a non-standard prefix.
13847
13848 Alternatively, you may set the environment variables LIBPNG_CFLAGS
13849 and LIBPNG_LIBS to avoid the need to call pkg-config.
13850 See the pkg-config man page for more details." "$LINENO" 5
13851 elif test $pkg_failed = untried; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13856 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13857 is in your PATH or set the PKG_CONFIG environment variable to the full
13858 path to pkg-config.
13859
13860 Alternatively, you may set the environment variables LIBPNG_CFLAGS
13861 and LIBPNG_LIBS to avoid the need to call pkg-config.
13862 See the pkg-config man page for more details.
13863
13864 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13865 See \`config.log' for more details" "$LINENO" 5; }
13866 else
13867 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
13868 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13870 $as_echo "yes" >&6; }
13871
13872 fi
13873
13874 pkg_failed=no
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDKPIXBUF" >&5
13876 $as_echo_n "checking for GDKPIXBUF... " >&6; }
13877
13878 if test -n "$GDKPIXBUF_CFLAGS"; then
13879 pkg_cv_GDKPIXBUF_CFLAGS="$GDKPIXBUF_CFLAGS"
13880 elif test -n "$PKG_CONFIG"; then
13881 if test -n "$PKG_CONFIG" && \
13882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= 2.14\""; } >&5
13883 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= 2.14") 2>&5
13884 ac_status=$?
13885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13886 test $ac_status = 0; }; then
13887 pkg_cv_GDKPIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0 >= 2.14" 2>/dev/null`
13888 test "x$?" != "x0" && pkg_failed=yes
13889 else
13890 pkg_failed=yes
13891 fi
13892 else
13893 pkg_failed=untried
13894 fi
13895 if test -n "$GDKPIXBUF_LIBS"; then
13896 pkg_cv_GDKPIXBUF_LIBS="$GDKPIXBUF_LIBS"
13897 elif test -n "$PKG_CONFIG"; then
13898 if test -n "$PKG_CONFIG" && \
13899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= 2.14\""; } >&5
13900 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= 2.14") 2>&5
13901 ac_status=$?
13902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; }; then
13904 pkg_cv_GDKPIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0 >= 2.14" 2>/dev/null`
13905 test "x$?" != "x0" && pkg_failed=yes
13906 else
13907 pkg_failed=yes
13908 fi
13909 else
13910 pkg_failed=untried
13911 fi
13912
13913
13914
13915 if test $pkg_failed = yes; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13918
13919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13920 _pkg_short_errors_supported=yes
13921 else
13922 _pkg_short_errors_supported=no
13923 fi
13924 if test $_pkg_short_errors_supported = yes; then
13925 GDKPIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-pixbuf-2.0 >= 2.14" 2>&1`
13926 else
13927 GDKPIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-pixbuf-2.0 >= 2.14" 2>&1`
13928 fi
13929 # Put the nasty error message in config.log where it belongs
13930 echo "$GDKPIXBUF_PKG_ERRORS" >&5
13931
13932 as_fn_error $? "Package requirements (gdk-pixbuf-2.0 >= 2.14) were not met:
13933
13934 $GDKPIXBUF_PKG_ERRORS
13935
13936 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13937 installed software in a non-standard prefix.
13938
13939 Alternatively, you may set the environment variables GDKPIXBUF_CFLAGS
13940 and GDKPIXBUF_LIBS to avoid the need to call pkg-config.
13941 See the pkg-config man page for more details." "$LINENO" 5
13942 elif test $pkg_failed = untried; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13947 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13948 is in your PATH or set the PKG_CONFIG environment variable to the full
13949 path to pkg-config.
13950
13951 Alternatively, you may set the environment variables GDKPIXBUF_CFLAGS
13952 and GDKPIXBUF_LIBS to avoid the need to call pkg-config.
13953 See the pkg-config man page for more details.
13954
13955 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13956 See \`config.log' for more details" "$LINENO" 5; }
13957 else
13958 GDKPIXBUF_CFLAGS=$pkg_cv_GDKPIXBUF_CFLAGS
13959 GDKPIXBUF_LIBS=$pkg_cv_GDKPIXBUF_LIBS
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13961 $as_echo "yes" >&6; }
13962
13963 fi
13964
13965 pkg_failed=no
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
13967 $as_echo_n "checking for LIBXML2... " >&6; }
13968
13969 if test -n "$LIBXML2_CFLAGS"; then
13970 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
13971 elif test -n "$PKG_CONFIG"; then
13972 if test -n "$PKG_CONFIG" && \
13973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
13974 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
13975 ac_status=$?
13976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13977 test $ac_status = 0; }; then
13978 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
13979 test "x$?" != "x0" && pkg_failed=yes
13980 else
13981 pkg_failed=yes
13982 fi
13983 else
13984 pkg_failed=untried
13985 fi
13986 if test -n "$LIBXML2_LIBS"; then
13987 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
13988 elif test -n "$PKG_CONFIG"; then
13989 if test -n "$PKG_CONFIG" && \
13990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
13991 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
13992 ac_status=$?
13993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13994 test $ac_status = 0; }; then
13995 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
13996 test "x$?" != "x0" && pkg_failed=yes
13997 else
13998 pkg_failed=yes
13999 fi
14000 else
14001 pkg_failed=untried
14002 fi
14003
14004
14005
14006 if test $pkg_failed = yes; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14009
14010 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14011 _pkg_short_errors_supported=yes
14012 else
14013 _pkg_short_errors_supported=no
14014 fi
14015 if test $_pkg_short_errors_supported = yes; then
14016 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
14017 else
14018 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
14019 fi
14020 # Put the nasty error message in config.log where it belongs
14021 echo "$LIBXML2_PKG_ERRORS" >&5
14022
14023 as_fn_error $? "Package requirements (libxml-2.0) were not met:
14024
14025 $LIBXML2_PKG_ERRORS
14026
14027 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14028 installed software in a non-standard prefix.
14029
14030 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14031 and LIBXML2_LIBS to avoid the need to call pkg-config.
14032 See the pkg-config man page for more details." "$LINENO" 5
14033 elif test $pkg_failed = untried; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14038 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14039 is in your PATH or set the PKG_CONFIG environment variable to the full
14040 path to pkg-config.
14041
14042 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14043 and LIBXML2_LIBS to avoid the need to call pkg-config.
14044 See the pkg-config man page for more details.
14045
14046 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14047 See \`config.log' for more details" "$LINENO" 5; }
14048 else
14049 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
14050 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14052 $as_echo "yes" >&6; }
14053
14054 fi
14055
14056 pkg_failed=no
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
14058 $as_echo_n "checking for SQLITE3... " >&6; }
14059
14060 if test -n "$SQLITE3_CFLAGS"; then
14061 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
14062 elif test -n "$PKG_CONFIG"; then
14063 if test -n "$PKG_CONFIG" && \
14064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.6.20\""; } >&5
14065 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.6.20") 2>&5
14066 ac_status=$?
14067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14068 test $ac_status = 0; }; then
14069 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.6.20" 2>/dev/null`
14070 test "x$?" != "x0" && pkg_failed=yes
14071 else
14072 pkg_failed=yes
14073 fi
14074 else
14075 pkg_failed=untried
14076 fi
14077 if test -n "$SQLITE3_LIBS"; then
14078 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
14079 elif test -n "$PKG_CONFIG"; then
14080 if test -n "$PKG_CONFIG" && \
14081 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.6.20\""; } >&5
14082 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.6.20") 2>&5
14083 ac_status=$?
14084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14085 test $ac_status = 0; }; then
14086 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.6.20" 2>/dev/null`
14087 test "x$?" != "x0" && pkg_failed=yes
14088 else
14089 pkg_failed=yes
14090 fi
14091 else
14092 pkg_failed=untried
14093 fi
14094
14095
14096
14097 if test $pkg_failed = yes; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 $as_echo "no" >&6; }
14100
14101 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14102 _pkg_short_errors_supported=yes
14103 else
14104 _pkg_short_errors_supported=no
14105 fi
14106 if test $_pkg_short_errors_supported = yes; then
14107 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.6.20" 2>&1`
14108 else
14109 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.6.20" 2>&1`
14110 fi
14111 # Put the nasty error message in config.log where it belongs
14112 echo "$SQLITE3_PKG_ERRORS" >&5
14113
14114 as_fn_error $? "Package requirements (sqlite3 >= 3.6.20) were not met:
14115
14116 $SQLITE3_PKG_ERRORS
14117
14118 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14119 installed software in a non-standard prefix.
14120
14121 Alternatively, you may set the environment variables SQLITE3_CFLAGS
14122 and SQLITE3_LIBS to avoid the need to call pkg-config.
14123 See the pkg-config man page for more details." "$LINENO" 5
14124 elif test $pkg_failed = untried; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14129 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14130 is in your PATH or set the PKG_CONFIG environment variable to the full
14131 path to pkg-config.
14132
14133 Alternatively, you may set the environment variables SQLITE3_CFLAGS
14134 and SQLITE3_LIBS to avoid the need to call pkg-config.
14135 See the pkg-config man page for more details.
14136
14137 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14138 See \`config.log' for more details" "$LINENO" 5; }
14139 else
14140 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
14141 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14143 $as_echo "yes" >&6; }
14144
14145 fi
14146
14147 # optional
14148
14149 pkg_failed=no
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
14151 $as_echo_n "checking for VALGRIND... " >&6; }
14152
14153 if test -n "$VALGRIND_CFLAGS"; then
14154 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
14155 elif test -n "$PKG_CONFIG"; then
14156 if test -n "$PKG_CONFIG" && \
14157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
14158 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
14159 ac_status=$?
14160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14161 test $ac_status = 0; }; then
14162 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
14163 test "x$?" != "x0" && pkg_failed=yes
14164 else
14165 pkg_failed=yes
14166 fi
14167 else
14168 pkg_failed=untried
14169 fi
14170 if test -n "$VALGRIND_LIBS"; then
14171 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
14172 elif test -n "$PKG_CONFIG"; then
14173 if test -n "$PKG_CONFIG" && \
14174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
14175 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
14176 ac_status=$?
14177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14178 test $ac_status = 0; }; then
14179 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
14180 test "x$?" != "x0" && pkg_failed=yes
14181 else
14182 pkg_failed=yes
14183 fi
14184 else
14185 pkg_failed=untried
14186 fi
14187
14188
14189
14190 if test $pkg_failed = yes; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14192 $as_echo "no" >&6; }
14193
14194 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14195 _pkg_short_errors_supported=yes
14196 else
14197 _pkg_short_errors_supported=no
14198 fi
14199 if test $_pkg_short_errors_supported = yes; then
14200 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
14201 else
14202 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
14203 fi
14204 # Put the nasty error message in config.log where it belongs
14205 echo "$VALGRIND_PKG_ERRORS" >&5
14206
14207 :
14208 elif test $pkg_failed = untried; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14211 :
14212 else
14213 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
14214 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14216 $as_echo "yes" >&6; }
14217
14218
14219 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
14220
14221
14222 fi
14223
14224
14225
14226 CFLAG_VISIBILITY=
14227 HAVE_VISIBILITY=0
14228 if test -n "$GCC"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
14230 $as_echo_n "checking for simple visibility declarations... " >&6; }
14231 if ${gl_cv_cc_visibility+:} false; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234
14235 gl_save_CFLAGS="$CFLAGS"
14236 CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14239 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
14240 extern __attribute__((__visibility__("default"))) int exportedvar;
14241 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
14242 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
14243 int
14244 main ()
14245 {
14246
14247 ;
14248 return 0;
14249 }
14250 _ACEOF
14251 if ac_fn_c_try_compile "$LINENO"; then :
14252 gl_cv_cc_visibility=yes
14253 else
14254 gl_cv_cc_visibility=no
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 CFLAGS="$gl_save_CFLAGS"
14258 fi
14259
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
14261 $as_echo "$gl_cv_cc_visibility" >&6; }
14262 if test $gl_cv_cc_visibility = yes; then
14263 CFLAG_VISIBILITY="-fvisibility=hidden"
14264 HAVE_VISIBILITY=1
14265 fi
14266 fi
14267
14268
14269
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_VISIBILITY $HAVE_VISIBILITY
14272 _ACEOF
14273
14274
14275
14276 # CLOEXEC
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fopen() close-on-exec flag" >&5
14278 $as_echo_n "checking fopen() close-on-exec flag... " >&6; }
14279 case $host_os in #(
14280 mingw32) :
14281
14282 # Assume that if we're building for Windows, we want to pass N to fopen().
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N" >&5
14284 $as_echo "N" >&6; }
14285
14286 $as_echo "#define FOPEN_CLOEXEC_FLAG \"N\"" >>confdefs.h
14287
14288 ;; #(
14289 *) :
14290
14291 # Default
14292 if test "$cross_compiling" = yes; then :
14293
14294 # cross compile
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross compile)" >&5
14296 $as_echo "unknown (cross compile)" >&6; }
14297 $as_echo "#define FOPEN_CLOEXEC_FLAG \"\"" >>confdefs.h
14298
14299
14300 else
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14303
14304
14305 #include <stdio.h>
14306 #include <unistd.h>
14307 #include <fcntl.h>
14308
14309 int
14310 main ()
14311 {
14312
14313 FILE *fp = fopen("/dev/null", "re");
14314 if (fp != NULL) {
14315 int fd = fileno(fp);
14316 if (fd != -1) {
14317 long ret = fcntl(fd, F_GETFD);
14318 if (ret != -1 && (ret & FD_CLOEXEC)) {
14319 return 0;
14320 }
14321 }
14322 }
14323 return 1;
14324
14325 ;
14326 return 0;
14327 }
14328
14329 _ACEOF
14330 if ac_fn_c_try_run "$LINENO"; then :
14331
14332 # glibc >= 2.7, FreeBSD >= 10.0, NetBSD >= 6.0
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: e" >&5
14334 $as_echo "e" >&6; }
14335 $as_echo "#define FOPEN_CLOEXEC_FLAG \"e\"" >>confdefs.h
14336
14337
14338 else
14339
14340 # unknown
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14342 $as_echo "unknown" >&6; }
14343 $as_echo "#define FOPEN_CLOEXEC_FLAG \"\"" >>confdefs.h
14344
14345
14346 fi
14347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14348 conftest.$ac_objext conftest.beam conftest.$ac_ext
14349 fi
14350
14351
14352 ;;
14353 esac
14354 # Fallback: racily use fcntl()
14355 for ac_func in fcntl
14356 do :
14357 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
14358 if test "x$ac_cv_func_fcntl" = xyes; then :
14359 cat >>confdefs.h <<_ACEOF
14360 #define HAVE_FCNTL 1
14361 _ACEOF
14362
14363 fi
14364 done
14365
14366
14367 # The test driver has special support for testing Windows builds from Cygwin
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to cross-test from Cygwin" >&5
14369 $as_echo_n "checking whether to cross-test from Cygwin... " >&6; }
14370 if test "$host_os" = "mingw32" -a "$build_os" = "cygwin"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14372 $as_echo "yes" >&6; }
14373 CYGWIN_CROSS_TEST=yes
14374 else
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376 $as_echo "no" >&6; }
14377 CYGWIN_CROSS_TEST=""
14378 fi
14379
14380 if test -n "$CYGWIN_CROSS_TEST"; then
14381 CYGWIN_CROSS_TEST_TRUE=
14382 CYGWIN_CROSS_TEST_FALSE='#'
14383 else
14384 CYGWIN_CROSS_TEST_TRUE='#'
14385 CYGWIN_CROSS_TEST_FALSE=
14386 fi
14387
14388
14389 # Only enable this on MinGW, since otherwise gcc will complain about an
14390 # unknown option whenever it produces any *other* warnings
14391 if test "$host_os" = "mingw32"; then
14392 CFLAG_MS_FORMAT=-Wno-pedantic-ms-format
14393 else
14394 CFLAG_MS_FORMAT=""
14395 fi
14396
14397
14398 # The min/max glib version is actually 2.16, but glib doesn't have special
14399 # handling for API changes that old
14400 AM_CFLAGS='-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs $(CFLAG_MS_FORMAT) $(CFLAG_VISIBILITY) -DG_DISABLE_SINGLE_INCLUDES -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_MIN_REQUIRED -fno-common'
14401
14402
14403
14404
14405 ac_config_files="$ac_config_files Makefile openslide.pc src/openslide-dll.manifest src/openslide-dll.rc tools/openslide-quickhash1sum.1 tools/openslide-show-properties.1 tools/openslide-write-png.1"
14406
14407 cat >confcache <<\_ACEOF
14408 # This file is a shell script that caches the results of configure
14409 # tests run on this system so they can be shared between configure
14410 # scripts and configure runs, see configure's option --config-cache.
14411 # It is not useful on other systems. If it contains results you don't
14412 # want to keep, you may remove or edit it.
14413 #
14414 # config.status only pays attention to the cache file if you give it
14415 # the --recheck option to rerun configure.
14416 #
14417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14419 # following values.
14420
14421 _ACEOF
14422
14423 # The following way of writing the cache mishandles newlines in values,
14424 # but we know of no workaround that is simple, portable, and efficient.
14425 # So, we kill variables containing newlines.
14426 # Ultrix sh set writes to stderr and can't be redirected directly,
14427 # and sets the high bit in the cache file unless we assign to the vars.
14428 (
14429 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14430 eval ac_val=\$$ac_var
14431 case $ac_val in #(
14432 *${as_nl}*)
14433 case $ac_var in #(
14434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14436 esac
14437 case $ac_var in #(
14438 _ | IFS | as_nl) ;; #(
14439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14440 *) { eval $ac_var=; unset $ac_var;} ;;
14441 esac ;;
14442 esac
14443 done
14444
14445 (set) 2>&1 |
14446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14447 *${as_nl}ac_space=\ *)
14448 # `set' does not quote correctly, so add quotes: double-quote
14449 # substitution turns \\\\ into \\, and sed turns \\ into \.
14450 sed -n \
14451 "s/'/'\\\\''/g;
14452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14453 ;; #(
14454 *)
14455 # `set' quotes correctly as required by POSIX, so do not add quotes.
14456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14457 ;;
14458 esac |
14459 sort
14460 ) |
14461 sed '
14462 /^ac_cv_env_/b end
14463 t clear
14464 :clear
14465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14466 t end
14467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14468 :end' >>confcache
14469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14470 if test -w "$cache_file"; then
14471 if test "x$cache_file" != "x/dev/null"; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14473 $as_echo "$as_me: updating cache $cache_file" >&6;}
14474 if test ! -f "$cache_file" || test -h "$cache_file"; then
14475 cat confcache >"$cache_file"
14476 else
14477 case $cache_file in #(
14478 */* | ?:*)
14479 mv -f confcache "$cache_file"$$ &&
14480 mv -f "$cache_file"$$ "$cache_file" ;; #(
14481 *)
14482 mv -f confcache "$cache_file" ;;
14483 esac
14484 fi
14485 fi
14486 else
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14488 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14489 fi
14490 fi
14491 rm -f confcache
14492
14493 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14494 # Let make expand exec_prefix.
14495 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14496
14497 DEFS=-DHAVE_CONFIG_H
14498
14499 ac_libobjs=
14500 ac_ltlibobjs=
14501 U=
14502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14503 # 1. Remove the extension, and $U if already installed.
14504 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14505 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14507 # will be set to the directory where LIBOBJS objects are built.
14508 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14509 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14510 done
14511 LIBOBJS=$ac_libobjs
14512
14513 LTLIBOBJS=$ac_ltlibobjs
14514
14515
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14517 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14518 if test -n "$am_sleep_pid"; then
14519 # Hide warnings about reused PIDs.
14520 wait $am_sleep_pid 2>/dev/null
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14523 $as_echo "done" >&6; }
14524 if test -n "$EXEEXT"; then
14525 am__EXEEXT_TRUE=
14526 am__EXEEXT_FALSE='#'
14527 else
14528 am__EXEEXT_TRUE='#'
14529 am__EXEEXT_FALSE=
14530 fi
14531
14532 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14533 as_fn_error $? "conditional \"AMDEP\" was never defined.
14534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14535 fi
14536 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14537 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14539 fi
14540 if test -z "${WINDOWS_RESOURCES_TRUE}" && test -z "${WINDOWS_RESOURCES_FALSE}"; then
14541 as_fn_error $? "conditional \"WINDOWS_RESOURCES\" was never defined.
14542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14543 fi
14544 if test -z "${CYGWIN_CROSS_TEST_TRUE}" && test -z "${CYGWIN_CROSS_TEST_FALSE}"; then
14545 as_fn_error $? "conditional \"CYGWIN_CROSS_TEST\" was never defined.
14546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14547 fi
14548
14549 : "${CONFIG_STATUS=./config.status}"
14550 ac_write_fail=0
14551 ac_clean_files_save=$ac_clean_files
14552 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14554 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14555 as_write_fail=0
14556 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14557 #! $SHELL
14558 # Generated by $as_me.
14559 # Run this file to recreate the current configuration.
14560 # Compiler output produced by configure, useful for debugging
14561 # configure, is in config.log if it exists.
14562
14563 debug=false
14564 ac_cs_recheck=false
14565 ac_cs_silent=false
14566
14567 SHELL=\${CONFIG_SHELL-$SHELL}
14568 export SHELL
14569 _ASEOF
14570 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14571 ## -------------------- ##
14572 ## M4sh Initialization. ##
14573 ## -------------------- ##
14574
14575 # Be more Bourne compatible
14576 DUALCASE=1; export DUALCASE # for MKS sh
14577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14578 emulate sh
14579 NULLCMD=:
14580 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14581 # is contrary to our usage. Disable this feature.
14582 alias -g '${1+"$@"}'='"$@"'
14583 setopt NO_GLOB_SUBST
14584 else
14585 case `(set -o) 2>/dev/null` in #(
14586 *posix*) :
14587 set -o posix ;; #(
14588 *) :
14589 ;;
14590 esac
14591 fi
14592
14593
14594 as_nl='
14595 '
14596 export as_nl
14597 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14598 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14599 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14600 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14601 # Prefer a ksh shell builtin over an external printf program on Solaris,
14602 # but without wasting forks for bash or zsh.
14603 if test -z "$BASH_VERSION$ZSH_VERSION" \
14604 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14605 as_echo='print -r --'
14606 as_echo_n='print -rn --'
14607 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14608 as_echo='printf %s\n'
14609 as_echo_n='printf %s'
14610 else
14611 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14612 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14613 as_echo_n='/usr/ucb/echo -n'
14614 else
14615 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14616 as_echo_n_body='eval
14617 arg=$1;
14618 case $arg in #(
14619 *"$as_nl"*)
14620 expr "X$arg" : "X\\(.*\\)$as_nl";
14621 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14622 esac;
14623 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14624 '
14625 export as_echo_n_body
14626 as_echo_n='sh -c $as_echo_n_body as_echo'
14627 fi
14628 export as_echo_body
14629 as_echo='sh -c $as_echo_body as_echo'
14630 fi
14631
14632 # The user is always right.
14633 if test "${PATH_SEPARATOR+set}" != set; then
14634 PATH_SEPARATOR=:
14635 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14636 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14637 PATH_SEPARATOR=';'
14638 }
14639 fi
14640
14641
14642 # IFS
14643 # We need space, tab and new line, in precisely that order. Quoting is
14644 # there to prevent editors from complaining about space-tab.
14645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14646 # splitting by setting IFS to empty value.)
14647 IFS=" "" $as_nl"
14648
14649 # Find who we are. Look in the path if we contain no directory separator.
14650 as_myself=
14651 case $0 in #((
14652 *[\\/]* ) as_myself=$0 ;;
14653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654 for as_dir in $PATH
14655 do
14656 IFS=$as_save_IFS
14657 test -z "$as_dir" && as_dir=.
14658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14659 done
14660 IFS=$as_save_IFS
14661
14662 ;;
14663 esac
14664 # We did not find ourselves, most probably we were run as `sh COMMAND'
14665 # in which case we are not to be found in the path.
14666 if test "x$as_myself" = x; then
14667 as_myself=$0
14668 fi
14669 if test ! -f "$as_myself"; then
14670 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14671 exit 1
14672 fi
14673
14674 # Unset variables that we do not need and which cause bugs (e.g. in
14675 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14676 # suppresses any "Segmentation fault" message there. '((' could
14677 # trigger a bug in pdksh 5.2.14.
14678 for as_var in BASH_ENV ENV MAIL MAILPATH
14679 do eval test x\${$as_var+set} = xset \
14680 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14681 done
14682 PS1='$ '
14683 PS2='> '
14684 PS4='+ '
14685
14686 # NLS nuisances.
14687 LC_ALL=C
14688 export LC_ALL
14689 LANGUAGE=C
14690 export LANGUAGE
14691
14692 # CDPATH.
14693 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14694
14695
14696 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14697 # ----------------------------------------
14698 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14699 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14700 # script with STATUS, using 1 if that was 0.
14701 as_fn_error ()
14702 {
14703 as_status=$1; test $as_status -eq 0 && as_status=1
14704 if test "$4"; then
14705 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14706 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14707 fi
14708 $as_echo "$as_me: error: $2" >&2
14709 as_fn_exit $as_status
14710 } # as_fn_error
14711
14712
14713 # as_fn_set_status STATUS
14714 # -----------------------
14715 # Set $? to STATUS, without forking.
14716 as_fn_set_status ()
14717 {
14718 return $1
14719 } # as_fn_set_status
14720
14721 # as_fn_exit STATUS
14722 # -----------------
14723 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14724 as_fn_exit ()
14725 {
14726 set +e
14727 as_fn_set_status $1
14728 exit $1
14729 } # as_fn_exit
14730
14731 # as_fn_unset VAR
14732 # ---------------
14733 # Portably unset VAR.
14734 as_fn_unset ()
14735 {
14736 { eval $1=; unset $1;}
14737 }
14738 as_unset=as_fn_unset
14739 # as_fn_append VAR VALUE
14740 # ----------------------
14741 # Append the text in VALUE to the end of the definition contained in VAR. Take
14742 # advantage of any shell optimizations that allow amortized linear growth over
14743 # repeated appends, instead of the typical quadratic growth present in naive
14744 # implementations.
14745 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14746 eval 'as_fn_append ()
14747 {
14748 eval $1+=\$2
14749 }'
14750 else
14751 as_fn_append ()
14752 {
14753 eval $1=\$$1\$2
14754 }
14755 fi # as_fn_append
14756
14757 # as_fn_arith ARG...
14758 # ------------------
14759 # Perform arithmetic evaluation on the ARGs, and store the result in the
14760 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14761 # must be portable across $(()) and expr.
14762 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14763 eval 'as_fn_arith ()
14764 {
14765 as_val=$(( $* ))
14766 }'
14767 else
14768 as_fn_arith ()
14769 {
14770 as_val=`expr "$@" || test $? -eq 1`
14771 }
14772 fi # as_fn_arith
14773
14774
14775 if expr a : '\(a\)' >/dev/null 2>&1 &&
14776 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14777 as_expr=expr
14778 else
14779 as_expr=false
14780 fi
14781
14782 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14783 as_basename=basename
14784 else
14785 as_basename=false
14786 fi
14787
14788 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14789 as_dirname=dirname
14790 else
14791 as_dirname=false
14792 fi
14793
14794 as_me=`$as_basename -- "$0" ||
14795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14796 X"$0" : 'X\(//\)$' \| \
14797 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14798 $as_echo X/"$0" |
14799 sed '/^.*\/\([^/][^/]*\)\/*$/{
14800 s//\1/
14801 q
14802 }
14803 /^X\/\(\/\/\)$/{
14804 s//\1/
14805 q
14806 }
14807 /^X\/\(\/\).*/{
14808 s//\1/
14809 q
14810 }
14811 s/.*/./; q'`
14812
14813 # Avoid depending upon Character Ranges.
14814 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14815 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14816 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14817 as_cr_digits='0123456789'
14818 as_cr_alnum=$as_cr_Letters$as_cr_digits
14819
14820 ECHO_C= ECHO_N= ECHO_T=
14821 case `echo -n x` in #(((((
14822 -n*)
14823 case `echo 'xy\c'` in
14824 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14825 xy) ECHO_C='\c';;
14826 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14827 ECHO_T=' ';;
14828 esac;;
14829 *)
14830 ECHO_N='-n';;
14831 esac
14832
14833 rm -f conf$$ conf$$.exe conf$$.file
14834 if test -d conf$$.dir; then
14835 rm -f conf$$.dir/conf$$.file
14836 else
14837 rm -f conf$$.dir
14838 mkdir conf$$.dir 2>/dev/null
14839 fi
14840 if (echo >conf$$.file) 2>/dev/null; then
14841 if ln -s conf$$.file conf$$ 2>/dev/null; then
14842 as_ln_s='ln -s'
14843 # ... but there are two gotchas:
14844 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14845 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14846 # In both cases, we have to default to `cp -pR'.
14847 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14848 as_ln_s='cp -pR'
14849 elif ln conf$$.file conf$$ 2>/dev/null; then
14850 as_ln_s=ln
14851 else
14852 as_ln_s='cp -pR'
14853 fi
14854 else
14855 as_ln_s='cp -pR'
14856 fi
14857 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14858 rmdir conf$$.dir 2>/dev/null
14859
14860
14861 # as_fn_mkdir_p
14862 # -------------
14863 # Create "$as_dir" as a directory, including parents if necessary.
14864 as_fn_mkdir_p ()
14865 {
14866
14867 case $as_dir in #(
14868 -*) as_dir=./$as_dir;;
14869 esac
14870 test -d "$as_dir" || eval $as_mkdir_p || {
14871 as_dirs=
14872 while :; do
14873 case $as_dir in #(
14874 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14875 *) as_qdir=$as_dir;;
14876 esac
14877 as_dirs="'$as_qdir' $as_dirs"
14878 as_dir=`$as_dirname -- "$as_dir" ||
14879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14880 X"$as_dir" : 'X\(//\)[^/]' \| \
14881 X"$as_dir" : 'X\(//\)$' \| \
14882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14883 $as_echo X"$as_dir" |
14884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14885 s//\1/
14886 q
14887 }
14888 /^X\(\/\/\)[^/].*/{
14889 s//\1/
14890 q
14891 }
14892 /^X\(\/\/\)$/{
14893 s//\1/
14894 q
14895 }
14896 /^X\(\/\).*/{
14897 s//\1/
14898 q
14899 }
14900 s/.*/./; q'`
14901 test -d "$as_dir" && break
14902 done
14903 test -z "$as_dirs" || eval "mkdir $as_dirs"
14904 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14905
14906
14907 } # as_fn_mkdir_p
14908 if mkdir -p . 2>/dev/null; then
14909 as_mkdir_p='mkdir -p "$as_dir"'
14910 else
14911 test -d ./-p && rmdir ./-p
14912 as_mkdir_p=false
14913 fi
14914
14915
14916 # as_fn_executable_p FILE
14917 # -----------------------
14918 # Test if FILE is an executable regular file.
14919 as_fn_executable_p ()
14920 {
14921 test -f "$1" && test -x "$1"
14922 } # as_fn_executable_p
14923 as_test_x='test -x'
14924 as_executable_p=as_fn_executable_p
14925
14926 # Sed expression to map a string onto a valid CPP name.
14927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14928
14929 # Sed expression to map a string onto a valid variable name.
14930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14931
14932
14933 exec 6>&1
14934 ## ----------------------------------- ##
14935 ## Main body of $CONFIG_STATUS script. ##
14936 ## ----------------------------------- ##
14937 _ASEOF
14938 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14939
14940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14941 # Save the log message, to keep $0 and so on meaningful, and to
14942 # report actual input values of CONFIG_FILES etc. instead of their
14943 # values after options handling.
14944 ac_log="
14945 This file was extended by OpenSlide $as_me 3.4.1, which was
14946 generated by GNU Autoconf 2.69. Invocation command line was
14947
14948 CONFIG_FILES = $CONFIG_FILES
14949 CONFIG_HEADERS = $CONFIG_HEADERS
14950 CONFIG_LINKS = $CONFIG_LINKS
14951 CONFIG_COMMANDS = $CONFIG_COMMANDS
14952 $ $0 $@
14953
14954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14955 "
14956
14957 _ACEOF
14958
14959 case $ac_config_files in *"
14960 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14961 esac
14962
14963 case $ac_config_headers in *"
14964 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14965 esac
14966
14967
14968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14969 # Files that config.status was made for.
14970 config_files="$ac_config_files"
14971 config_headers="$ac_config_headers"
14972 config_commands="$ac_config_commands"
14973
14974 _ACEOF
14975
14976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14977 ac_cs_usage="\
14978 \`$as_me' instantiates files and other configuration actions
14979 from templates according to the current configuration. Unless the files
14980 and actions are specified as TAGs, all are instantiated by default.
14981
14982 Usage: $0 [OPTION]... [TAG]...
14983
14984 -h, --help print this help, then exit
14985 -V, --version print version number and configuration settings, then exit
14986 --config print configuration, then exit
14987 -q, --quiet, --silent
14988 do not print progress messages
14989 -d, --debug don't remove temporary files
14990 --recheck update $as_me by reconfiguring in the same conditions
14991 --file=FILE[:TEMPLATE]
14992 instantiate the configuration file FILE
14993 --header=FILE[:TEMPLATE]
14994 instantiate the configuration header FILE
14995
14996 Configuration files:
14997 $config_files
14998
14999 Configuration headers:
15000 $config_headers
15001
15002 Configuration commands:
15003 $config_commands
15004
15005 Report bugs to <[email protected]>.
15006 OpenSlide home page: <http://openslide.org>."
15007
15008 _ACEOF
15009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15010 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15011 ac_cs_version="\\
15012 OpenSlide config.status 3.4.1
15013 configured by $0, generated by GNU Autoconf 2.69,
15014 with options \\"\$ac_cs_config\\"
15015
15016 Copyright (C) 2012 Free Software Foundation, Inc.
15017 This config.status script is free software; the Free Software Foundation
15018 gives unlimited permission to copy, distribute and modify it."
15019
15020 ac_pwd='$ac_pwd'
15021 srcdir='$srcdir'
15022 INSTALL='$INSTALL'
15023 MKDIR_P='$MKDIR_P'
15024 AWK='$AWK'
15025 test -n "\$AWK" || AWK=awk
15026 _ACEOF
15027
15028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029 # The default lists apply if the user does not specify any file.
15030 ac_need_defaults=:
15031 while test $# != 0
15032 do
15033 case $1 in
15034 --*=?*)
15035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15037 ac_shift=:
15038 ;;
15039 --*=)
15040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15041 ac_optarg=
15042 ac_shift=:
15043 ;;
15044 *)
15045 ac_option=$1
15046 ac_optarg=$2
15047 ac_shift=shift
15048 ;;
15049 esac
15050
15051 case $ac_option in
15052 # Handling of the options.
15053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15054 ac_cs_recheck=: ;;
15055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15056 $as_echo "$ac_cs_version"; exit ;;
15057 --config | --confi | --conf | --con | --co | --c )
15058 $as_echo "$ac_cs_config"; exit ;;
15059 --debug | --debu | --deb | --de | --d | -d )
15060 debug=: ;;
15061 --file | --fil | --fi | --f )
15062 $ac_shift
15063 case $ac_optarg in
15064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15065 '') as_fn_error $? "missing file argument" ;;
15066 esac
15067 as_fn_append CONFIG_FILES " '$ac_optarg'"
15068 ac_need_defaults=false;;
15069 --header | --heade | --head | --hea )
15070 $ac_shift
15071 case $ac_optarg in
15072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15073 esac
15074 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15075 ac_need_defaults=false;;
15076 --he | --h)
15077 # Conflict between --help and --header
15078 as_fn_error $? "ambiguous option: \`$1'
15079 Try \`$0 --help' for more information.";;
15080 --help | --hel | -h )
15081 $as_echo "$ac_cs_usage"; exit ;;
15082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15083 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15084 ac_cs_silent=: ;;
15085
15086 # This is an error.
15087 -*) as_fn_error $? "unrecognized option: \`$1'
15088 Try \`$0 --help' for more information." ;;
15089
15090 *) as_fn_append ac_config_targets " $1"
15091 ac_need_defaults=false ;;
15092
15093 esac
15094 shift
15095 done
15096
15097 ac_configure_extra_args=
15098
15099 if $ac_cs_silent; then
15100 exec 6>/dev/null
15101 ac_configure_extra_args="$ac_configure_extra_args --silent"
15102 fi
15103
15104 _ACEOF
15105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106 if \$ac_cs_recheck; then
15107 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15108 shift
15109 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15110 CONFIG_SHELL='$SHELL'
15111 export CONFIG_SHELL
15112 exec "\$@"
15113 fi
15114
15115 _ACEOF
15116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15117 exec 5>>config.log
15118 {
15119 echo
15120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15121 ## Running $as_me. ##
15122 _ASBOX
15123 $as_echo "$ac_log"
15124 } >&5
15125
15126 _ACEOF
15127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15128 #
15129 # INIT-COMMANDS
15130 #
15131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15132
15133
15134 # The HP-UX ksh and POSIX shell print the target directory to stdout
15135 # if CDPATH is set.
15136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15137
15138 sed_quote_subst='$sed_quote_subst'
15139 double_quote_subst='$double_quote_subst'
15140 delay_variable_subst='$delay_variable_subst'
15141 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15142 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15143 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15144 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15145 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15146 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15147 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15148 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15149 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15150 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15151 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15152 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15153 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15154 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15155 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15156 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15157 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15158 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15159 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15160 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15161 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15162 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15163 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15164 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15165 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15166 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15167 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15168 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15169 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15170 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15171 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15172 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15173 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15174 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15175 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15176 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15177 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15178 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15179 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15180 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15181 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15182 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15183 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15184 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15185 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15186 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15187 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15188 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15189 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15190 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15191 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15192 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15193 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15194 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15195 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15196 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15197 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15198 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"`'
15199 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15200 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15201 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15202 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15203 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15204 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15205 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15206 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15207 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15208 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15209 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15210 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15211 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15212 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15213 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15214 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15215 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15216 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15217 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15218 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15219 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15220 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15221 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15222 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15223 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15224 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15225 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15226 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15227 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15228 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15229 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15230 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15231 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15232 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15233 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15234 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15235 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15236 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15237 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15238 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15239 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15240 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15241 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15242 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15243 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15244 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15245 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15246 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15247 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15248 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15249 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15250 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15251 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15252 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15253 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15254 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15255 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15256 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15257 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15258 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15259 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15260 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15261 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15262 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15263 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15264 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15265 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15266 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15267 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15268 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15269 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15270 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15271 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15272 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
15273 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
15274 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
15275 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15276 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
15277 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
15278 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
15279 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
15280 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
15281 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
15282 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
15283 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
15284 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
15285 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15286 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15287 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
15288 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
15289 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
15290 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15291 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
15292 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
15293 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
15294 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
15295 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
15296 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
15297 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15298 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
15299 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
15300 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
15301 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
15302 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
15303 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
15304 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
15305 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
15306 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
15307 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
15308 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
15309 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
15310 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
15311 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
15312 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
15313 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
15314
15315 LTCC='$LTCC'
15316 LTCFLAGS='$LTCFLAGS'
15317 compiler='$compiler_DEFAULT'
15318
15319 # A function that is used when there is no print builtin or printf.
15320 func_fallback_echo ()
15321 {
15322 eval 'cat <<_LTECHO_EOF
15323 \$1
15324 _LTECHO_EOF'
15325 }
15326
15327 # Quote evaled strings.
15328 for var in AS \
15329 DLLTOOL \
15330 OBJDUMP \
15331 SHELL \
15332 ECHO \
15333 PATH_SEPARATOR \
15334 SED \
15335 GREP \
15336 EGREP \
15337 FGREP \
15338 LD \
15339 NM \
15340 LN_S \
15341 lt_SP2NL \
15342 lt_NL2SP \
15343 reload_flag \
15344 deplibs_check_method \
15345 file_magic_cmd \
15346 file_magic_glob \
15347 want_nocaseglob \
15348 sharedlib_from_linklib_cmd \
15349 AR \
15350 AR_FLAGS \
15351 archiver_list_spec \
15352 STRIP \
15353 RANLIB \
15354 CC \
15355 CFLAGS \
15356 compiler \
15357 lt_cv_sys_global_symbol_pipe \
15358 lt_cv_sys_global_symbol_to_cdecl \
15359 lt_cv_sys_global_symbol_to_c_name_address \
15360 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15361 nm_file_list_spec \
15362 lt_prog_compiler_no_builtin_flag \
15363 lt_prog_compiler_pic \
15364 lt_prog_compiler_wl \
15365 lt_prog_compiler_static \
15366 lt_cv_prog_compiler_c_o \
15367 need_locks \
15368 MANIFEST_TOOL \
15369 DSYMUTIL \
15370 NMEDIT \
15371 LIPO \
15372 OTOOL \
15373 OTOOL64 \
15374 shrext_cmds \
15375 export_dynamic_flag_spec \
15376 whole_archive_flag_spec \
15377 compiler_needs_object \
15378 with_gnu_ld \
15379 allow_undefined_flag \
15380 no_undefined_flag \
15381 hardcode_libdir_flag_spec \
15382 hardcode_libdir_separator \
15383 exclude_expsyms \
15384 include_expsyms \
15385 file_list_spec \
15386 variables_saved_for_relink \
15387 libname_spec \
15388 library_names_spec \
15389 soname_spec \
15390 install_override_mode \
15391 finish_eval \
15392 old_striplib \
15393 striplib \
15394 LD_RC \
15395 reload_flag_RC \
15396 compiler_RC \
15397 lt_prog_compiler_no_builtin_flag_RC \
15398 lt_prog_compiler_pic_RC \
15399 lt_prog_compiler_wl_RC \
15400 lt_prog_compiler_static_RC \
15401 lt_cv_prog_compiler_c_o_RC \
15402 export_dynamic_flag_spec_RC \
15403 whole_archive_flag_spec_RC \
15404 compiler_needs_object_RC \
15405 with_gnu_ld_RC \
15406 allow_undefined_flag_RC \
15407 no_undefined_flag_RC \
15408 hardcode_libdir_flag_spec_RC \
15409 hardcode_libdir_separator_RC \
15410 exclude_expsyms_RC \
15411 include_expsyms_RC \
15412 file_list_spec_RC; do
15413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15414 *[\\\\\\\`\\"\\\$]*)
15415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15416 ;;
15417 *)
15418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15419 ;;
15420 esac
15421 done
15422
15423 # Double-quote double-evaled strings.
15424 for var in reload_cmds \
15425 old_postinstall_cmds \
15426 old_postuninstall_cmds \
15427 old_archive_cmds \
15428 extract_expsyms_cmds \
15429 old_archive_from_new_cmds \
15430 old_archive_from_expsyms_cmds \
15431 archive_cmds \
15432 archive_expsym_cmds \
15433 module_cmds \
15434 module_expsym_cmds \
15435 export_symbols_cmds \
15436 prelink_cmds \
15437 postlink_cmds \
15438 postinstall_cmds \
15439 postuninstall_cmds \
15440 finish_cmds \
15441 sys_lib_search_path_spec \
15442 sys_lib_dlsearch_path_spec \
15443 reload_cmds_RC \
15444 old_archive_cmds_RC \
15445 old_archive_from_new_cmds_RC \
15446 old_archive_from_expsyms_cmds_RC \
15447 archive_cmds_RC \
15448 archive_expsym_cmds_RC \
15449 module_cmds_RC \
15450 module_expsym_cmds_RC \
15451 export_symbols_cmds_RC \
15452 prelink_cmds_RC \
15453 postlink_cmds_RC; do
15454 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15455 *[\\\\\\\`\\"\\\$]*)
15456 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15457 ;;
15458 *)
15459 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15460 ;;
15461 esac
15462 done
15463
15464 ac_aux_dir='$ac_aux_dir'
15465 xsi_shell='$xsi_shell'
15466 lt_shell_append='$lt_shell_append'
15467
15468 # See if we are running on zsh, and set the options which allow our
15469 # commands through without removal of \ escapes INIT.
15470 if test -n "\${ZSH_VERSION+set}" ; then
15471 setopt NO_GLOB_SUBST
15472 fi
15473
15474
15475 PACKAGE='$PACKAGE'
15476 VERSION='$VERSION'
15477 TIMESTAMP='$TIMESTAMP'
15478 RM='$RM'
15479 ofile='$ofile'
15480
15481
15482
15483
15484
15485
15486 _ACEOF
15487
15488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489
15490 # Handling of arguments.
15491 for ac_config_target in $ac_config_targets
15492 do
15493 case $ac_config_target in
15494 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15495 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15496 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15497 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15498 "openslide.pc") CONFIG_FILES="$CONFIG_FILES openslide.pc" ;;
15499 "src/openslide-dll.manifest") CONFIG_FILES="$CONFIG_FILES src/openslide-dll.manifest" ;;
15500 "src/openslide-dll.rc") CONFIG_FILES="$CONFIG_FILES src/openslide-dll.rc" ;;
15501 "tools/openslide-quickhash1sum.1") CONFIG_FILES="$CONFIG_FILES tools/openslide-quickhash1sum.1" ;;
15502 "tools/openslide-show-properties.1") CONFIG_FILES="$CONFIG_FILES tools/openslide-show-properties.1" ;;
15503 "tools/openslide-write-png.1") CONFIG_FILES="$CONFIG_FILES tools/openslide-write-png.1" ;;
15504
15505 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15506 esac
15507 done
15508
15509
15510 # If the user did not use the arguments to specify the items to instantiate,
15511 # then the envvar interface is used. Set only those that are not.
15512 # We use the long form for the default assignment because of an extremely
15513 # bizarre bug on SunOS 4.1.3.
15514 if $ac_need_defaults; then
15515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15518 fi
15519
15520 # Have a temporary directory for convenience. Make it in the build tree
15521 # simply because there is no reason against having it here, and in addition,
15522 # creating and moving files from /tmp can sometimes cause problems.
15523 # Hook for its removal unless debugging.
15524 # Note that there is a small window in which the directory will not be cleaned:
15525 # after its creation but before its name has been assigned to `$tmp'.
15526 $debug ||
15527 {
15528 tmp= ac_tmp=
15529 trap 'exit_status=$?
15530 : "${ac_tmp:=$tmp}"
15531 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15532 ' 0
15533 trap 'as_fn_exit 1' 1 2 13 15
15534 }
15535 # Create a (secure) tmp directory for tmp files.
15536
15537 {
15538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15539 test -d "$tmp"
15540 } ||
15541 {
15542 tmp=./conf$$-$RANDOM
15543 (umask 077 && mkdir "$tmp")
15544 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15545 ac_tmp=$tmp
15546
15547 # Set up the scripts for CONFIG_FILES section.
15548 # No need to generate them if there are no CONFIG_FILES.
15549 # This happens for instance with `./config.status config.h'.
15550 if test -n "$CONFIG_FILES"; then
15551
15552
15553 ac_cr=`echo X | tr X '\015'`
15554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15555 # But we know of no other shell where ac_cr would be empty at this
15556 # point, so we can use a bashism as a fallback.
15557 if test "x$ac_cr" = x; then
15558 eval ac_cr=\$\'\\r\'
15559 fi
15560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15562 ac_cs_awk_cr='\\r'
15563 else
15564 ac_cs_awk_cr=$ac_cr
15565 fi
15566
15567 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15568 _ACEOF
15569
15570
15571 {
15572 echo "cat >conf$$subs.awk <<_ACEOF" &&
15573 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15574 echo "_ACEOF"
15575 } >conf$$subs.sh ||
15576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15578 ac_delim='%!_!# '
15579 for ac_last_try in false false false false false :; do
15580 . ./conf$$subs.sh ||
15581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15582
15583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15584 if test $ac_delim_n = $ac_delim_num; then
15585 break
15586 elif $ac_last_try; then
15587 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15588 else
15589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15590 fi
15591 done
15592 rm -f conf$$subs.sh
15593
15594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15595 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15596 _ACEOF
15597 sed -n '
15598 h
15599 s/^/S["/; s/!.*/"]=/
15600 p
15601 g
15602 s/^[^!]*!//
15603 :repl
15604 t repl
15605 s/'"$ac_delim"'$//
15606 t delim
15607 :nl
15608 h
15609 s/\(.\{148\}\)..*/\1/
15610 t more1
15611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15612 p
15613 n
15614 b repl
15615 :more1
15616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15617 p
15618 g
15619 s/.\{148\}//
15620 t nl
15621 :delim
15622 h
15623 s/\(.\{148\}\)..*/\1/
15624 t more2
15625 s/["\\]/\\&/g; s/^/"/; s/$/"/
15626 p
15627 b
15628 :more2
15629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15630 p
15631 g
15632 s/.\{148\}//
15633 t delim
15634 ' <conf$$subs.awk | sed '
15635 /^[^""]/{
15636 N
15637 s/\n//
15638 }
15639 ' >>$CONFIG_STATUS || ac_write_fail=1
15640 rm -f conf$$subs.awk
15641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15642 _ACAWK
15643 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15644 for (key in S) S_is_set[key] = 1
15645 FS = ""
15646
15647 }
15648 {
15649 line = $ 0
15650 nfields = split(line, field, "@")
15651 substed = 0
15652 len = length(field[1])
15653 for (i = 2; i < nfields; i++) {
15654 key = field[i]
15655 keylen = length(key)
15656 if (S_is_set[key]) {
15657 value = S[key]
15658 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15659 len += length(value) + length(field[++i])
15660 substed = 1
15661 } else
15662 len += 1 + keylen
15663 }
15664
15665 print line
15666 }
15667
15668 _ACAWK
15669 _ACEOF
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15673 else
15674 cat
15675 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15676 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15677 _ACEOF
15678
15679 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15680 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15681 # trailing colons and then remove the whole line if VPATH becomes empty
15682 # (actually we leave an empty line to preserve line numbers).
15683 if test "x$srcdir" = x.; then
15684 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15685 h
15686 s///
15687 s/^/:/
15688 s/[ ]*$/:/
15689 s/:\$(srcdir):/:/g
15690 s/:\${srcdir}:/:/g
15691 s/:@srcdir@:/:/g
15692 s/^:*//
15693 s/:*$//
15694 x
15695 s/\(=[ ]*\).*/\1/
15696 G
15697 s/\n//
15698 s/^[^=]*=[ ]*$//
15699 }'
15700 fi
15701
15702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15703 fi # test -n "$CONFIG_FILES"
15704
15705 # Set up the scripts for CONFIG_HEADERS section.
15706 # No need to generate them if there are no CONFIG_HEADERS.
15707 # This happens for instance with `./config.status Makefile'.
15708 if test -n "$CONFIG_HEADERS"; then
15709 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15710 BEGIN {
15711 _ACEOF
15712
15713 # Transform confdefs.h into an awk script `defines.awk', embedded as
15714 # here-document in config.status, that substitutes the proper values into
15715 # config.h.in to produce config.h.
15716
15717 # Create a delimiter string that does not exist in confdefs.h, to ease
15718 # handling of long lines.
15719 ac_delim='%!_!# '
15720 for ac_last_try in false false :; do
15721 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15722 if test -z "$ac_tt"; then
15723 break
15724 elif $ac_last_try; then
15725 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15726 else
15727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15728 fi
15729 done
15730
15731 # For the awk script, D is an array of macro values keyed by name,
15732 # likewise P contains macro parameters if any. Preserve backslash
15733 # newline sequences.
15734
15735 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15736 sed -n '
15737 s/.\{148\}/&'"$ac_delim"'/g
15738 t rset
15739 :rset
15740 s/^[ ]*#[ ]*define[ ][ ]*/ /
15741 t def
15742 d
15743 :def
15744 s/\\$//
15745 t bsnl
15746 s/["\\]/\\&/g
15747 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15748 D["\1"]=" \3"/p
15749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15750 d
15751 :bsnl
15752 s/["\\]/\\&/g
15753 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15754 D["\1"]=" \3\\\\\\n"\\/p
15755 t cont
15756 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15757 t cont
15758 d
15759 :cont
15760 n
15761 s/.\{148\}/&'"$ac_delim"'/g
15762 t clear
15763 :clear
15764 s/\\$//
15765 t bsnlc
15766 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15767 d
15768 :bsnlc
15769 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15770 b cont
15771 ' <confdefs.h | sed '
15772 s/'"$ac_delim"'/"\\\
15773 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15774
15775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15776 for (key in D) D_is_set[key] = 1
15777 FS = ""
15778 }
15779 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15780 line = \$ 0
15781 split(line, arg, " ")
15782 if (arg[1] == "#") {
15783 defundef = arg[2]
15784 mac1 = arg[3]
15785 } else {
15786 defundef = substr(arg[1], 2)
15787 mac1 = arg[2]
15788 }
15789 split(mac1, mac2, "(") #)
15790 macro = mac2[1]
15791 prefix = substr(line, 1, index(line, defundef) - 1)
15792 if (D_is_set[macro]) {
15793 # Preserve the white space surrounding the "#".
15794 print prefix "define", macro P[macro] D[macro]
15795 next
15796 } else {
15797 # Replace #undef with comments. This is necessary, for example,
15798 # in the case of _POSIX_SOURCE, which is predefined and required
15799 # on some systems where configure will not decide to define it.
15800 if (defundef == "undef") {
15801 print "/*", prefix defundef, macro, "*/"
15802 next
15803 }
15804 }
15805 }
15806 { print }
15807 _ACAWK
15808 _ACEOF
15809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15811 fi # test -n "$CONFIG_HEADERS"
15812
15813
15814 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15815 shift
15816 for ac_tag
15817 do
15818 case $ac_tag in
15819 :[FHLC]) ac_mode=$ac_tag; continue;;
15820 esac
15821 case $ac_mode$ac_tag in
15822 :[FHL]*:*);;
15823 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15824 :[FH]-) ac_tag=-:-;;
15825 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15826 esac
15827 ac_save_IFS=$IFS
15828 IFS=:
15829 set x $ac_tag
15830 IFS=$ac_save_IFS
15831 shift
15832 ac_file=$1
15833 shift
15834
15835 case $ac_mode in
15836 :L) ac_source=$1;;
15837 :[FH])
15838 ac_file_inputs=
15839 for ac_f
15840 do
15841 case $ac_f in
15842 -) ac_f="$ac_tmp/stdin";;
15843 *) # Look for the file first in the build tree, then in the source tree
15844 # (if the path is not absolute). The absolute path cannot be DOS-style,
15845 # because $ac_f cannot contain `:'.
15846 test -f "$ac_f" ||
15847 case $ac_f in
15848 [\\/$]*) false;;
15849 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15850 esac ||
15851 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15852 esac
15853 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15854 as_fn_append ac_file_inputs " '$ac_f'"
15855 done
15856
15857 # Let's still pretend it is `configure' which instantiates (i.e., don't
15858 # use $as_me), people would be surprised to read:
15859 # /* config.h. Generated by config.status. */
15860 configure_input='Generated from '`
15861 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15862 `' by configure.'
15863 if test x"$ac_file" != x-; then
15864 configure_input="$ac_file. $configure_input"
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15866 $as_echo "$as_me: creating $ac_file" >&6;}
15867 fi
15868 # Neutralize special characters interpreted by sed in replacement strings.
15869 case $configure_input in #(
15870 *\&* | *\|* | *\\* )
15871 ac_sed_conf_input=`$as_echo "$configure_input" |
15872 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15873 *) ac_sed_conf_input=$configure_input;;
15874 esac
15875
15876 case $ac_tag in
15877 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15879 esac
15880 ;;
15881 esac
15882
15883 ac_dir=`$as_dirname -- "$ac_file" ||
15884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15885 X"$ac_file" : 'X\(//\)[^/]' \| \
15886 X"$ac_file" : 'X\(//\)$' \| \
15887 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15888 $as_echo X"$ac_file" |
15889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15890 s//\1/
15891 q
15892 }
15893 /^X\(\/\/\)[^/].*/{
15894 s//\1/
15895 q
15896 }
15897 /^X\(\/\/\)$/{
15898 s//\1/
15899 q
15900 }
15901 /^X\(\/\).*/{
15902 s//\1/
15903 q
15904 }
15905 s/.*/./; q'`
15906 as_dir="$ac_dir"; as_fn_mkdir_p
15907 ac_builddir=.
15908
15909 case "$ac_dir" in
15910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15911 *)
15912 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15913 # A ".." for each directory in $ac_dir_suffix.
15914 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15915 case $ac_top_builddir_sub in
15916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15918 esac ;;
15919 esac
15920 ac_abs_top_builddir=$ac_pwd
15921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15922 # for backward compatibility:
15923 ac_top_builddir=$ac_top_build_prefix
15924
15925 case $srcdir in
15926 .) # We are building in place.
15927 ac_srcdir=.
15928 ac_top_srcdir=$ac_top_builddir_sub
15929 ac_abs_top_srcdir=$ac_pwd ;;
15930 [\\/]* | ?:[\\/]* ) # Absolute name.
15931 ac_srcdir=$srcdir$ac_dir_suffix;
15932 ac_top_srcdir=$srcdir
15933 ac_abs_top_srcdir=$srcdir ;;
15934 *) # Relative name.
15935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15936 ac_top_srcdir=$ac_top_build_prefix$srcdir
15937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15938 esac
15939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15940
15941
15942 case $ac_mode in
15943 :F)
15944 #
15945 # CONFIG_FILE
15946 #
15947
15948 case $INSTALL in
15949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15951 esac
15952 ac_MKDIR_P=$MKDIR_P
15953 case $MKDIR_P in
15954 [\\/$]* | ?:[\\/]* ) ;;
15955 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15956 esac
15957 _ACEOF
15958
15959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15960 # If the template does not know about datarootdir, expand it.
15961 # FIXME: This hack should be removed a few years after 2.60.
15962 ac_datarootdir_hack=; ac_datarootdir_seen=
15963 ac_sed_dataroot='
15964 /datarootdir/ {
15965 p
15966 q
15967 }
15968 /@datadir@/p
15969 /@docdir@/p
15970 /@infodir@/p
15971 /@localedir@/p
15972 /@mandir@/p'
15973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15974 *datarootdir*) ac_datarootdir_seen=yes;;
15975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15978 _ACEOF
15979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15980 ac_datarootdir_hack='
15981 s&@datadir@&$datadir&g
15982 s&@docdir@&$docdir&g
15983 s&@infodir@&$infodir&g
15984 s&@localedir@&$localedir&g
15985 s&@mandir@&$mandir&g
15986 s&\\\${datarootdir}&$datarootdir&g' ;;
15987 esac
15988 _ACEOF
15989
15990 # Neutralize VPATH when `$srcdir' = `.'.
15991 # Shell code in configure.ac might set extrasub.
15992 # FIXME: do we really want to maintain this feature?
15993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15994 ac_sed_extra="$ac_vpsub
15995 $extrasub
15996 _ACEOF
15997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15998 :t
15999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16000 s|@configure_input@|$ac_sed_conf_input|;t t
16001 s&@top_builddir@&$ac_top_builddir_sub&;t t
16002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16003 s&@srcdir@&$ac_srcdir&;t t
16004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16005 s&@top_srcdir@&$ac_top_srcdir&;t t
16006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16007 s&@builddir@&$ac_builddir&;t t
16008 s&@abs_builddir@&$ac_abs_builddir&;t t
16009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16010 s&@INSTALL@&$ac_INSTALL&;t t
16011 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16012 $ac_datarootdir_hack
16013 "
16014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16015 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16016
16017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16018 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16020 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16022 which seems to be undefined. Please make sure it is defined" >&5
16023 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16024 which seems to be undefined. Please make sure it is defined" >&2;}
16025
16026 rm -f "$ac_tmp/stdin"
16027 case $ac_file in
16028 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16029 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16030 esac \
16031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16032 ;;
16033 :H)
16034 #
16035 # CONFIG_HEADER
16036 #
16037 if test x"$ac_file" != x-; then
16038 {
16039 $as_echo "/* $configure_input */" \
16040 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16041 } >"$ac_tmp/config.h" \
16042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16043 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16045 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16046 else
16047 rm -f "$ac_file"
16048 mv "$ac_tmp/config.h" "$ac_file" \
16049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16050 fi
16051 else
16052 $as_echo "/* $configure_input */" \
16053 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16054 || as_fn_error $? "could not create -" "$LINENO" 5
16055 fi
16056 # Compute "$ac_file"'s index in $config_headers.
16057 _am_arg="$ac_file"
16058 _am_stamp_count=1
16059 for _am_header in $config_headers :; do
16060 case $_am_header in
16061 $_am_arg | $_am_arg:* )
16062 break ;;
16063 * )
16064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16065 esac
16066 done
16067 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16068 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16069 X"$_am_arg" : 'X\(//\)[^/]' \| \
16070 X"$_am_arg" : 'X\(//\)$' \| \
16071 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16072 $as_echo X"$_am_arg" |
16073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16074 s//\1/
16075 q
16076 }
16077 /^X\(\/\/\)[^/].*/{
16078 s//\1/
16079 q
16080 }
16081 /^X\(\/\/\)$/{
16082 s//\1/
16083 q
16084 }
16085 /^X\(\/\).*/{
16086 s//\1/
16087 q
16088 }
16089 s/.*/./; q'`/stamp-h$_am_stamp_count
16090 ;;
16091
16092 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16093 $as_echo "$as_me: executing $ac_file commands" >&6;}
16094 ;;
16095 esac
16096
16097
16098 case $ac_file$ac_mode in
16099 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16100 # Older Autoconf quotes --file arguments for eval, but not when files
16101 # are listed without --file. Let's play safe and only enable the eval
16102 # if we detect the quoting.
16103 case $CONFIG_FILES in
16104 *\'*) eval set x "$CONFIG_FILES" ;;
16105 *) set x $CONFIG_FILES ;;
16106 esac
16107 shift
16108 for mf
16109 do
16110 # Strip MF so we end up with the name of the file.
16111 mf=`echo "$mf" | sed -e 's/:.*$//'`
16112 # Check whether this is an Automake generated Makefile or not.
16113 # We used to match only the files named 'Makefile.in', but
16114 # some people rename them; so instead we look at the file content.
16115 # Grep'ing the first line is not enough: some people post-process
16116 # each Makefile.in and add a new line on top of each file to say so.
16117 # Grep'ing the whole file is not good either: AIX grep has a line
16118 # limit of 2048, but all sed's we know have understand at least 4000.
16119 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16120 dirpart=`$as_dirname -- "$mf" ||
16121 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16122 X"$mf" : 'X\(//\)[^/]' \| \
16123 X"$mf" : 'X\(//\)$' \| \
16124 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16125 $as_echo X"$mf" |
16126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16127 s//\1/
16128 q
16129 }
16130 /^X\(\/\/\)[^/].*/{
16131 s//\1/
16132 q
16133 }
16134 /^X\(\/\/\)$/{
16135 s//\1/
16136 q
16137 }
16138 /^X\(\/\).*/{
16139 s//\1/
16140 q
16141 }
16142 s/.*/./; q'`
16143 else
16144 continue
16145 fi
16146 # Extract the definition of DEPDIR, am__include, and am__quote
16147 # from the Makefile without running 'make'.
16148 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16149 test -z "$DEPDIR" && continue
16150 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16151 test -z "$am__include" && continue
16152 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16153 # Find all dependency output files, they are included files with
16154 # $(DEPDIR) in their names. We invoke sed twice because it is the
16155 # simplest approach to changing $(DEPDIR) to its actual value in the
16156 # expansion.
16157 for file in `sed -n "
16158 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16159 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16160 # Make sure the directory exists.
16161 test -f "$dirpart/$file" && continue
16162 fdir=`$as_dirname -- "$file" ||
16163 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16164 X"$file" : 'X\(//\)[^/]' \| \
16165 X"$file" : 'X\(//\)$' \| \
16166 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16167 $as_echo X"$file" |
16168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16169 s//\1/
16170 q
16171 }
16172 /^X\(\/\/\)[^/].*/{
16173 s//\1/
16174 q
16175 }
16176 /^X\(\/\/\)$/{
16177 s//\1/
16178 q
16179 }
16180 /^X\(\/\).*/{
16181 s//\1/
16182 q
16183 }
16184 s/.*/./; q'`
16185 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16186 # echo "creating $dirpart/$file"
16187 echo '# dummy' > "$dirpart/$file"
16188 done
16189 done
16190 }
16191 ;;
16192 "libtool":C)
16193
16194 # See if we are running on zsh, and set the options which allow our
16195 # commands through without removal of \ escapes.
16196 if test -n "${ZSH_VERSION+set}" ; then
16197 setopt NO_GLOB_SUBST
16198 fi
16199
16200 cfgfile="${ofile}T"
16201 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16202 $RM "$cfgfile"
16203
16204 cat <<_LT_EOF >> "$cfgfile"
16205 #! $SHELL
16206
16207 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16208 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16211 #
16212 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16213 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16214 # Foundation, Inc.
16215 # Written by Gordon Matzigkeit, 1996
16216 #
16217 # This file is part of GNU Libtool.
16218 #
16219 # GNU Libtool is free software; you can redistribute it and/or
16220 # modify it under the terms of the GNU General Public License as
16221 # published by the Free Software Foundation; either version 2 of
16222 # the License, or (at your option) any later version.
16223 #
16224 # As a special exception to the GNU General Public License,
16225 # if you distribute this file as part of a program or library that
16226 # is built using GNU Libtool, you may include this file under the
16227 # same distribution terms that you use for the rest of that program.
16228 #
16229 # GNU Libtool is distributed in the hope that it will be useful,
16230 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16231 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16232 # GNU General Public License for more details.
16233 #
16234 # You should have received a copy of the GNU General Public License
16235 # along with GNU Libtool; see the file COPYING. If not, a copy
16236 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16237 # obtained by writing to the Free Software Foundation, Inc.,
16238 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16239
16240
16241 # The names of the tagged configurations supported by this script.
16242 available_tags="RC "
16243
16244 # ### BEGIN LIBTOOL CONFIG
16245
16246 # Which release of libtool.m4 was used?
16247 macro_version=$macro_version
16248 macro_revision=$macro_revision
16249
16250 # Assembler program.
16251 AS=$lt_AS
16252
16253 # DLL creation program.
16254 DLLTOOL=$lt_DLLTOOL
16255
16256 # Object dumper program.
16257 OBJDUMP=$lt_OBJDUMP
16258
16259 # Whether or not to build static libraries.
16260 build_old_libs=$enable_static
16261
16262 # Whether or not to build shared libraries.
16263 build_libtool_libs=$enable_shared
16264
16265 # What type of objects to build.
16266 pic_mode=$pic_mode
16267
16268 # Whether or not to optimize for fast installation.
16269 fast_install=$enable_fast_install
16270
16271 # Shell to use when invoking shell scripts.
16272 SHELL=$lt_SHELL
16273
16274 # An echo program that protects backslashes.
16275 ECHO=$lt_ECHO
16276
16277 # The PATH separator for the build system.
16278 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16279
16280 # The host system.
16281 host_alias=$host_alias
16282 host=$host
16283 host_os=$host_os
16284
16285 # The build system.
16286 build_alias=$build_alias
16287 build=$build
16288 build_os=$build_os
16289
16290 # A sed program that does not truncate output.
16291 SED=$lt_SED
16292
16293 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16294 Xsed="\$SED -e 1s/^X//"
16295
16296 # A grep program that handles long lines.
16297 GREP=$lt_GREP
16298
16299 # An ERE matcher.
16300 EGREP=$lt_EGREP
16301
16302 # A literal string matcher.
16303 FGREP=$lt_FGREP
16304
16305 # A BSD- or MS-compatible name lister.
16306 NM=$lt_NM
16307
16308 # Whether we need soft or hard links.
16309 LN_S=$lt_LN_S
16310
16311 # What is the maximum length of a command?
16312 max_cmd_len=$max_cmd_len
16313
16314 # Object file suffix (normally "o").
16315 objext=$ac_objext
16316
16317 # Executable file suffix (normally "").
16318 exeext=$exeext
16319
16320 # whether the shell understands "unset".
16321 lt_unset=$lt_unset
16322
16323 # turn spaces into newlines.
16324 SP2NL=$lt_lt_SP2NL
16325
16326 # turn newlines into spaces.
16327 NL2SP=$lt_lt_NL2SP
16328
16329 # convert \$build file names to \$host format.
16330 to_host_file_cmd=$lt_cv_to_host_file_cmd
16331
16332 # convert \$build files to toolchain format.
16333 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16334
16335 # Method to check whether dependent libraries are shared objects.
16336 deplibs_check_method=$lt_deplibs_check_method
16337
16338 # Command to use when deplibs_check_method = "file_magic".
16339 file_magic_cmd=$lt_file_magic_cmd
16340
16341 # How to find potential files when deplibs_check_method = "file_magic".
16342 file_magic_glob=$lt_file_magic_glob
16343
16344 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16345 want_nocaseglob=$lt_want_nocaseglob
16346
16347 # Command to associate shared and link libraries.
16348 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16349
16350 # The archiver.
16351 AR=$lt_AR
16352
16353 # Flags to create an archive.
16354 AR_FLAGS=$lt_AR_FLAGS
16355
16356 # How to feed a file listing to the archiver.
16357 archiver_list_spec=$lt_archiver_list_spec
16358
16359 # A symbol stripping program.
16360 STRIP=$lt_STRIP
16361
16362 # Commands used to install an old-style archive.
16363 RANLIB=$lt_RANLIB
16364 old_postinstall_cmds=$lt_old_postinstall_cmds
16365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16366
16367 # Whether to use a lock for old archive extraction.
16368 lock_old_archive_extraction=$lock_old_archive_extraction
16369
16370 # A C compiler.
16371 LTCC=$lt_CC
16372
16373 # LTCC compiler flags.
16374 LTCFLAGS=$lt_CFLAGS
16375
16376 # Take the output of nm and produce a listing of raw symbols and C names.
16377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16378
16379 # Transform the output of nm in a proper C declaration.
16380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16381
16382 # Transform the output of nm in a C name address pair.
16383 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16384
16385 # Transform the output of nm in a C name address pair when lib prefix is needed.
16386 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16387
16388 # Specify filename containing input files for \$NM.
16389 nm_file_list_spec=$lt_nm_file_list_spec
16390
16391 # The root where to search for dependent libraries,and in which our libraries should be installed.
16392 lt_sysroot=$lt_sysroot
16393
16394 # The name of the directory that contains temporary libtool files.
16395 objdir=$objdir
16396
16397 # Used to examine libraries when file_magic_cmd begins with "file".
16398 MAGIC_CMD=$MAGIC_CMD
16399
16400 # Must we lock files when doing compilation?
16401 need_locks=$lt_need_locks
16402
16403 # Manifest tool.
16404 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16405
16406 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16407 DSYMUTIL=$lt_DSYMUTIL
16408
16409 # Tool to change global to local symbols on Mac OS X.
16410 NMEDIT=$lt_NMEDIT
16411
16412 # Tool to manipulate fat objects and archives on Mac OS X.
16413 LIPO=$lt_LIPO
16414
16415 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16416 OTOOL=$lt_OTOOL
16417
16418 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16419 OTOOL64=$lt_OTOOL64
16420
16421 # Old archive suffix (normally "a").
16422 libext=$libext
16423
16424 # Shared library suffix (normally ".so").
16425 shrext_cmds=$lt_shrext_cmds
16426
16427 # The commands to extract the exported symbol list from a shared archive.
16428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16429
16430 # Variables whose values should be saved in libtool wrapper scripts and
16431 # restored at link time.
16432 variables_saved_for_relink=$lt_variables_saved_for_relink
16433
16434 # Do we need the "lib" prefix for modules?
16435 need_lib_prefix=$need_lib_prefix
16436
16437 # Do we need a version for libraries?
16438 need_version=$need_version
16439
16440 # Library versioning type.
16441 version_type=$version_type
16442
16443 # Shared library runtime path variable.
16444 runpath_var=$runpath_var
16445
16446 # Shared library path variable.
16447 shlibpath_var=$shlibpath_var
16448
16449 # Is shlibpath searched before the hard-coded library search path?
16450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16451
16452 # Format of library name prefix.
16453 libname_spec=$lt_libname_spec
16454
16455 # List of archive names. First name is the real one, the rest are links.
16456 # The last name is the one that the linker finds with -lNAME
16457 library_names_spec=$lt_library_names_spec
16458
16459 # The coded name of the library, if different from the real name.
16460 soname_spec=$lt_soname_spec
16461
16462 # Permission mode override for installation of shared libraries.
16463 install_override_mode=$lt_install_override_mode
16464
16465 # Command to use after installation of a shared archive.
16466 postinstall_cmds=$lt_postinstall_cmds
16467
16468 # Command to use after uninstallation of a shared archive.
16469 postuninstall_cmds=$lt_postuninstall_cmds
16470
16471 # Commands used to finish a libtool library installation in a directory.
16472 finish_cmds=$lt_finish_cmds
16473
16474 # As "finish_cmds", except a single script fragment to be evaled but
16475 # not shown.
16476 finish_eval=$lt_finish_eval
16477
16478 # Whether we should hardcode library paths into libraries.
16479 hardcode_into_libs=$hardcode_into_libs
16480
16481 # Compile-time system search path for libraries.
16482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16483
16484 # Run-time system search path for libraries.
16485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16486
16487 # Whether dlopen is supported.
16488 dlopen_support=$enable_dlopen
16489
16490 # Whether dlopen of programs is supported.
16491 dlopen_self=$enable_dlopen_self
16492
16493 # Whether dlopen of statically linked programs is supported.
16494 dlopen_self_static=$enable_dlopen_self_static
16495
16496 # Commands to strip libraries.
16497 old_striplib=$lt_old_striplib
16498 striplib=$lt_striplib
16499
16500
16501 # The linker used to build libraries.
16502 LD=$lt_LD
16503
16504 # How to create reloadable object files.
16505 reload_flag=$lt_reload_flag
16506 reload_cmds=$lt_reload_cmds
16507
16508 # Commands used to build an old-style archive.
16509 old_archive_cmds=$lt_old_archive_cmds
16510
16511 # A language specific compiler.
16512 CC=$lt_compiler
16513
16514 # Is the compiler the GNU compiler?
16515 with_gcc=$GCC
16516
16517 # Compiler flag to turn off builtin functions.
16518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16519
16520 # Additional compiler flags for building library objects.
16521 pic_flag=$lt_lt_prog_compiler_pic
16522
16523 # How to pass a linker flag through the compiler.
16524 wl=$lt_lt_prog_compiler_wl
16525
16526 # Compiler flag to prevent dynamic linking.
16527 link_static_flag=$lt_lt_prog_compiler_static
16528
16529 # Does compiler simultaneously support -c and -o options?
16530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16531
16532 # Whether or not to add -lc for building shared libraries.
16533 build_libtool_need_lc=$archive_cmds_need_lc
16534
16535 # Whether or not to disallow shared libs when runtime libs are static.
16536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16537
16538 # Compiler flag to allow reflexive dlopens.
16539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16540
16541 # Compiler flag to generate shared objects directly from archives.
16542 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16543
16544 # Whether the compiler copes with passing no objects directly.
16545 compiler_needs_object=$lt_compiler_needs_object
16546
16547 # Create an old-style archive from a shared archive.
16548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16549
16550 # Create a temporary old-style archive to link instead of a shared archive.
16551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16552
16553 # Commands used to build a shared archive.
16554 archive_cmds=$lt_archive_cmds
16555 archive_expsym_cmds=$lt_archive_expsym_cmds
16556
16557 # Commands used to build a loadable module if different from building
16558 # a shared archive.
16559 module_cmds=$lt_module_cmds
16560 module_expsym_cmds=$lt_module_expsym_cmds
16561
16562 # Whether we are building with GNU ld or not.
16563 with_gnu_ld=$lt_with_gnu_ld
16564
16565 # Flag that allows shared libraries with undefined symbols to be built.
16566 allow_undefined_flag=$lt_allow_undefined_flag
16567
16568 # Flag that enforces no undefined symbols.
16569 no_undefined_flag=$lt_no_undefined_flag
16570
16571 # Flag to hardcode \$libdir into a binary during linking.
16572 # This must work even if \$libdir does not exist
16573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16574
16575 # Whether we need a single "-rpath" flag with a separated argument.
16576 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16577
16578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16579 # DIR into the resulting binary.
16580 hardcode_direct=$hardcode_direct
16581
16582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16583 # DIR into the resulting binary and the resulting library dependency is
16584 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16585 # library is relocated.
16586 hardcode_direct_absolute=$hardcode_direct_absolute
16587
16588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16589 # into the resulting binary.
16590 hardcode_minus_L=$hardcode_minus_L
16591
16592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16593 # into the resulting binary.
16594 hardcode_shlibpath_var=$hardcode_shlibpath_var
16595
16596 # Set to "yes" if building a shared library automatically hardcodes DIR
16597 # into the library and all subsequent libraries and executables linked
16598 # against it.
16599 hardcode_automatic=$hardcode_automatic
16600
16601 # Set to yes if linker adds runtime paths of dependent libraries
16602 # to runtime path list.
16603 inherit_rpath=$inherit_rpath
16604
16605 # Whether libtool must link a program against all its dependency libraries.
16606 link_all_deplibs=$link_all_deplibs
16607
16608 # Set to "yes" if exported symbols are required.
16609 always_export_symbols=$always_export_symbols
16610
16611 # The commands to list exported symbols.
16612 export_symbols_cmds=$lt_export_symbols_cmds
16613
16614 # Symbols that should not be listed in the preloaded symbols.
16615 exclude_expsyms=$lt_exclude_expsyms
16616
16617 # Symbols that must always be exported.
16618 include_expsyms=$lt_include_expsyms
16619
16620 # Commands necessary for linking programs (against libraries) with templates.
16621 prelink_cmds=$lt_prelink_cmds
16622
16623 # Commands necessary for finishing linking programs.
16624 postlink_cmds=$lt_postlink_cmds
16625
16626 # Specify filename containing input files.
16627 file_list_spec=$lt_file_list_spec
16628
16629 # How to hardcode a shared library path into an executable.
16630 hardcode_action=$hardcode_action
16631
16632 # ### END LIBTOOL CONFIG
16633
16634 _LT_EOF
16635
16636 case $host_os in
16637 aix3*)
16638 cat <<\_LT_EOF >> "$cfgfile"
16639 # AIX sometimes has problems with the GCC collect2 program. For some
16640 # reason, if we set the COLLECT_NAMES environment variable, the problems
16641 # vanish in a puff of smoke.
16642 if test "X${COLLECT_NAMES+set}" != Xset; then
16643 COLLECT_NAMES=
16644 export COLLECT_NAMES
16645 fi
16646 _LT_EOF
16647 ;;
16648 esac
16649
16650
16651 ltmain="$ac_aux_dir/ltmain.sh"
16652
16653
16654 # We use sed instead of cat because bash on DJGPP gets confused if
16655 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16656 # text mode, it properly converts lines to CR/LF. This bash problem
16657 # is reportedly fixed, but why not run on old versions too?
16658 sed '$q' "$ltmain" >> "$cfgfile" \
16659 || (rm -f "$cfgfile"; exit 1)
16660
16661 if test x"$xsi_shell" = xyes; then
16662 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16663 func_dirname ()\
16664 {\
16665 \ case ${1} in\
16666 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16667 \ * ) func_dirname_result="${3}" ;;\
16668 \ esac\
16669 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16670 && mv -f "$cfgfile.tmp" "$cfgfile" \
16671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16672 test 0 -eq $? || _lt_function_replace_fail=:
16673
16674
16675 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16676 func_basename ()\
16677 {\
16678 \ func_basename_result="${1##*/}"\
16679 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16680 && mv -f "$cfgfile.tmp" "$cfgfile" \
16681 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16682 test 0 -eq $? || _lt_function_replace_fail=:
16683
16684
16685 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16686 func_dirname_and_basename ()\
16687 {\
16688 \ case ${1} in\
16689 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16690 \ * ) func_dirname_result="${3}" ;;\
16691 \ esac\
16692 \ func_basename_result="${1##*/}"\
16693 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16694 && mv -f "$cfgfile.tmp" "$cfgfile" \
16695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16696 test 0 -eq $? || _lt_function_replace_fail=:
16697
16698
16699 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16700 func_stripname ()\
16701 {\
16702 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16703 \ # positional parameters, so assign one to ordinary parameter first.\
16704 \ func_stripname_result=${3}\
16705 \ func_stripname_result=${func_stripname_result#"${1}"}\
16706 \ func_stripname_result=${func_stripname_result%"${2}"}\
16707 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16708 && mv -f "$cfgfile.tmp" "$cfgfile" \
16709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16710 test 0 -eq $? || _lt_function_replace_fail=:
16711
16712
16713 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16714 func_split_long_opt ()\
16715 {\
16716 \ func_split_long_opt_name=${1%%=*}\
16717 \ func_split_long_opt_arg=${1#*=}\
16718 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16719 && mv -f "$cfgfile.tmp" "$cfgfile" \
16720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16721 test 0 -eq $? || _lt_function_replace_fail=:
16722
16723
16724 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16725 func_split_short_opt ()\
16726 {\
16727 \ func_split_short_opt_arg=${1#??}\
16728 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16729 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16730 && mv -f "$cfgfile.tmp" "$cfgfile" \
16731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16732 test 0 -eq $? || _lt_function_replace_fail=:
16733
16734
16735 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16736 func_lo2o ()\
16737 {\
16738 \ case ${1} in\
16739 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16740 \ *) func_lo2o_result=${1} ;;\
16741 \ esac\
16742 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16743 && mv -f "$cfgfile.tmp" "$cfgfile" \
16744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16745 test 0 -eq $? || _lt_function_replace_fail=:
16746
16747
16748 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16749 func_xform ()\
16750 {\
16751 func_xform_result=${1%.*}.lo\
16752 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16753 && mv -f "$cfgfile.tmp" "$cfgfile" \
16754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16755 test 0 -eq $? || _lt_function_replace_fail=:
16756
16757
16758 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16759 func_arith ()\
16760 {\
16761 func_arith_result=$(( $* ))\
16762 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16763 && mv -f "$cfgfile.tmp" "$cfgfile" \
16764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16765 test 0 -eq $? || _lt_function_replace_fail=:
16766
16767
16768 sed -e '/^func_len ()$/,/^} # func_len /c\
16769 func_len ()\
16770 {\
16771 func_len_result=${#1}\
16772 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16773 && mv -f "$cfgfile.tmp" "$cfgfile" \
16774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16775 test 0 -eq $? || _lt_function_replace_fail=:
16776
16777 fi
16778
16779 if test x"$lt_shell_append" = xyes; then
16780 sed -e '/^func_append ()$/,/^} # func_append /c\
16781 func_append ()\
16782 {\
16783 eval "${1}+=\\${2}"\
16784 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16785 && mv -f "$cfgfile.tmp" "$cfgfile" \
16786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16787 test 0 -eq $? || _lt_function_replace_fail=:
16788
16789
16790 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16791 func_append_quoted ()\
16792 {\
16793 \ func_quote_for_eval "${2}"\
16794 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16795 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16796 && mv -f "$cfgfile.tmp" "$cfgfile" \
16797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16798 test 0 -eq $? || _lt_function_replace_fail=:
16799
16800
16801 # Save a `func_append' function call where possible by direct use of '+='
16802 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16803 && mv -f "$cfgfile.tmp" "$cfgfile" \
16804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16805 test 0 -eq $? || _lt_function_replace_fail=:
16806 else
16807 # Save a `func_append' function call even when '+=' is not available
16808 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16809 && mv -f "$cfgfile.tmp" "$cfgfile" \
16810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16811 test 0 -eq $? || _lt_function_replace_fail=:
16812 fi
16813
16814 if test x"$_lt_function_replace_fail" = x":"; then
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16816 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16817 fi
16818
16819
16820 mv -f "$cfgfile" "$ofile" ||
16821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16822 chmod +x "$ofile"
16823
16824
16825 cat <<_LT_EOF >> "$ofile"
16826
16827 # ### BEGIN LIBTOOL TAG CONFIG: RC
16828
16829 # The linker used to build libraries.
16830 LD=$lt_LD_RC
16831
16832 # How to create reloadable object files.
16833 reload_flag=$lt_reload_flag_RC
16834 reload_cmds=$lt_reload_cmds_RC
16835
16836 # Commands used to build an old-style archive.
16837 old_archive_cmds=$lt_old_archive_cmds_RC
16838
16839 # A language specific compiler.
16840 CC=$lt_compiler_RC
16841
16842 # Is the compiler the GNU compiler?
16843 with_gcc=$GCC_RC
16844
16845 # Compiler flag to turn off builtin functions.
16846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
16847
16848 # Additional compiler flags for building library objects.
16849 pic_flag=$lt_lt_prog_compiler_pic_RC
16850
16851 # How to pass a linker flag through the compiler.
16852 wl=$lt_lt_prog_compiler_wl_RC
16853
16854 # Compiler flag to prevent dynamic linking.
16855 link_static_flag=$lt_lt_prog_compiler_static_RC
16856
16857 # Does compiler simultaneously support -c and -o options?
16858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
16859
16860 # Whether or not to add -lc for building shared libraries.
16861 build_libtool_need_lc=$archive_cmds_need_lc_RC
16862
16863 # Whether or not to disallow shared libs when runtime libs are static.
16864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
16865
16866 # Compiler flag to allow reflexive dlopens.
16867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
16868
16869 # Compiler flag to generate shared objects directly from archives.
16870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
16871
16872 # Whether the compiler copes with passing no objects directly.
16873 compiler_needs_object=$lt_compiler_needs_object_RC
16874
16875 # Create an old-style archive from a shared archive.
16876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
16877
16878 # Create a temporary old-style archive to link instead of a shared archive.
16879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
16880
16881 # Commands used to build a shared archive.
16882 archive_cmds=$lt_archive_cmds_RC
16883 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
16884
16885 # Commands used to build a loadable module if different from building
16886 # a shared archive.
16887 module_cmds=$lt_module_cmds_RC
16888 module_expsym_cmds=$lt_module_expsym_cmds_RC
16889
16890 # Whether we are building with GNU ld or not.
16891 with_gnu_ld=$lt_with_gnu_ld_RC
16892
16893 # Flag that allows shared libraries with undefined symbols to be built.
16894 allow_undefined_flag=$lt_allow_undefined_flag_RC
16895
16896 # Flag that enforces no undefined symbols.
16897 no_undefined_flag=$lt_no_undefined_flag_RC
16898
16899 # Flag to hardcode \$libdir into a binary during linking.
16900 # This must work even if \$libdir does not exist
16901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
16902
16903 # Whether we need a single "-rpath" flag with a separated argument.
16904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
16905
16906 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16907 # DIR into the resulting binary.
16908 hardcode_direct=$hardcode_direct_RC
16909
16910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16911 # DIR into the resulting binary and the resulting library dependency is
16912 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16913 # library is relocated.
16914 hardcode_direct_absolute=$hardcode_direct_absolute_RC
16915
16916 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16917 # into the resulting binary.
16918 hardcode_minus_L=$hardcode_minus_L_RC
16919
16920 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16921 # into the resulting binary.
16922 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
16923
16924 # Set to "yes" if building a shared library automatically hardcodes DIR
16925 # into the library and all subsequent libraries and executables linked
16926 # against it.
16927 hardcode_automatic=$hardcode_automatic_RC
16928
16929 # Set to yes if linker adds runtime paths of dependent libraries
16930 # to runtime path list.
16931 inherit_rpath=$inherit_rpath_RC
16932
16933 # Whether libtool must link a program against all its dependency libraries.
16934 link_all_deplibs=$link_all_deplibs_RC
16935
16936 # Set to "yes" if exported symbols are required.
16937 always_export_symbols=$always_export_symbols_RC
16938
16939 # The commands to list exported symbols.
16940 export_symbols_cmds=$lt_export_symbols_cmds_RC
16941
16942 # Symbols that should not be listed in the preloaded symbols.
16943 exclude_expsyms=$lt_exclude_expsyms_RC
16944
16945 # Symbols that must always be exported.
16946 include_expsyms=$lt_include_expsyms_RC
16947
16948 # Commands necessary for linking programs (against libraries) with templates.
16949 prelink_cmds=$lt_prelink_cmds_RC
16950
16951 # Commands necessary for finishing linking programs.
16952 postlink_cmds=$lt_postlink_cmds_RC
16953
16954 # Specify filename containing input files.
16955 file_list_spec=$lt_file_list_spec_RC
16956
16957 # How to hardcode a shared library path into an executable.
16958 hardcode_action=$hardcode_action_RC
16959
16960 # ### END LIBTOOL TAG CONFIG: RC
16961 _LT_EOF
16962
16963 ;;
16964
16965 esac
16966 done # for ac_tag
16967
16968
16969 as_fn_exit 0
16970 _ACEOF
16971 ac_clean_files=$ac_clean_files_save
16972
16973 test $ac_write_fail = 0 ||
16974 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16975
16976
16977 # configure is writing to config.log, and then calls config.status.
16978 # config.status does its own redirection, appending to config.log.
16979 # Unfortunately, on DOS this fails, as config.log is still kept open
16980 # by configure, so config.status won't be able to write to it; its
16981 # output is simply discarded. So we exec the FD to /dev/null,
16982 # effectively closing config.log, so it can be properly (re)opened and
16983 # appended to by config.status. When coming back to configure, we
16984 # need to make the FD available again.
16985 if test "$no_create" != yes; then
16986 ac_cs_success=:
16987 ac_config_status_args=
16988 test "$silent" = yes &&
16989 ac_config_status_args="$ac_config_status_args --quiet"
16990 exec 5>/dev/null
16991 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16992 exec 5>>config.log
16993 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16994 # would make configure fail if this is the last instruction.
16995 $ac_cs_success || as_fn_exit 1
16996 fi
16997 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16999 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17000 fi
17001