Debian Codegraph @

texk/xdvipsk/thirdparty/libjpeg/libjpeg-src/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 libjpeg 9.2.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libjpeg'
589 PACKAGE_TARNAME='libjpeg'
590 PACKAGE_VERSION='9.2.0'
591 PACKAGE_STRING='libjpeg 9.2.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 JPEG_LIB_VERSION
636 MEMORYMGR
637 LT_SYS_LIBRARY_PATH
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 NM
646 ac_ct_DUMPBIN
647 DUMPBIN
648 LD
649 FGREP
650 SED
651 LIBTOOL
652 OBJDUMP
653 DLLTOOL
654 AS
655 EGREP
656 GREP
657 HAVE_LD_VERSION_SCRIPT_FALSE
658 HAVE_LD_VERSION_SCRIPT_TRUE
659 ac_ct_AR
660 AR
661 LN_S
662 CPP
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 am__nodep
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 MAINT
681 MAINTAINER_MODE_FALSE
682 MAINTAINER_MODE_TRUE
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_silent_rules
764 enable_maintainer_mode
765 enable_dependency_tracking
766 enable_ld_version_script
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_aix_soname
772 with_gnu_ld
773 with_sysroot
774 enable_libtool_lock
775 enable_maxmem
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 LT_SYS_LIBRARY_PATH'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures libjpeg 9.2.0 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of libjpeg 9.2.0:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-silent-rules less verbose build output (undo: "make V=1")
1407 --disable-silent-rules verbose build output (undo: "make V=0")
1408 --enable-maintainer-mode
1409 enable make rules and dependencies not useful (and
1410 sometimes confusing) to the casual installer
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-ld-version-script
1416 enable linker version script (default is enabled
1417 when possible)
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --enable-maxmem=N enable use of temp files, set max mem usage to N MB
1424
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-aix-soname=aix|svr4|both
1431 shared library versioning (aka "SONAME") variant to
1432 provide on AIX, [default=aix].
1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1435 compiler's sysroot if not specified).
1436
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CPP C preprocessor
1446 LT_SYS_LIBRARY_PATH
1447 User-defined run-time library search path.
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to the package provider.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 libjpeg configure 9.2.0
1516 generated by GNU Autoconf 2.69
1517
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_cpp ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } > conftest.i && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_cpp
1603
1604 # ac_fn_c_try_link LINENO
1605 # -----------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_link ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest$ac_exeext
1611 if { { ac_try="$ac_link"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 test -x conftest$ac_exeext
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_link
1649
1650 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653 # the include files in INCLUDES and setting the cache variable VAR
1654 # accordingly.
1655 ac_fn_c_check_header_mongrel ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if eval \${$3+:} false; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1663 fi
1664 eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 else
1668 # Is the header compilable?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670 $as_echo_n "checking $2 usability... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 $4
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1678 else
1679 ac_header_compiler=no
1680 fi
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683 $as_echo "$ac_header_compiler" >&6; }
1684
1685 # Is the header present?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687 $as_echo_n "checking $2 presence... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1694 else
1695 ac_header_preproc=no
1696 fi
1697 rm -f conftest.err conftest.i conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699 $as_echo "$ac_header_preproc" >&6; }
1700
1701 # So? What about this header?
1702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1703 yes:no: )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 ;;
1709 no:yes:* )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ;;
1721 esac
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 eval "$3=\$ac_header_compiler"
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_header_mongrel
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists and can be compiled using the include files in
1782 # INCLUDES, setting the cache variable VAR accordingly.
1783 ac_fn_c_check_header_compile ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798 else
1799 eval "$3=no"
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_header_compile
1809
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1826
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1831
1832 #ifdef __STDC__
1833 # include <limits.h>
1834 #else
1835 # include <assert.h>
1836 #endif
1837
1838 #undef $2
1839
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1843 #ifdef __cplusplus
1844 extern "C"
1845 #endif
1846 char $2 ();
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1851 choke me
1852 #endif
1853
1854 int
1855 main ()
1856 {
1857 return $2 ();
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_link "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_func
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by libjpeg $as_me 9.2.0, which was
1881 generated by GNU Autoconf 2.69. Invocation command line was
1882
1883 $ $0 $@
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1918 done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944 for ac_arg
1945 do
1946 case $ac_arg in
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1950 continue ;;
1951 *\'*)
1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 esac
1954 case $ac_pass in
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 2)
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1960 else
1961 case $ac_arg in
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968 esac
1969 ;;
1970 -* ) ac_must_keep_next=true ;;
1971 esac
1972 fi
1973 as_fn_append ac_configure_args " '$ac_arg'"
1974 ;;
1975 esac
1976 done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1988 {
1989 echo
1990
1991 $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
1996 (
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
2012 (set) 2>&1 |
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2015 sed -n \
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
2019 *)
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 ;;
2022 esac |
2023 sort
2024 )
2025 echo
2026
2027 $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2030 echo
2031 for ac_var in $ac_subst_vars
2032 do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2040
2041 if test -n "$ac_subst_files"; then
2042 $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2045 echo
2046 for ac_var in $ac_subst_files
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055 fi
2056
2057 if test -s confdefs.h; then
2058 $as_echo "## ----------- ##
2059 ## confdefs.h. ##
2060 ## ----------- ##"
2061 echo
2062 cat confdefs.h
2063 echo
2064 fi
2065 test "$ac_signal" != 0 &&
2066 $as_echo "$as_me: caught signal $ac_signal"
2067 $as_echo "$as_me: exit $exit_status"
2068 } >&5
2069 rm -f core *.core core.conftest.* &&
2070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2071 exit $exit_status
2072 ' 0
2073 for ac_signal in 1 2 13 15; do
2074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2075 done
2076 ac_signal=0
2077
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2080
2081 $as_echo "/* confdefs.h */" > confdefs.h
2082
2083 # Predefined preprocessor variables.
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2107 _ACEOF
2108
2109
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2112 ac_site_file1=NONE
2113 ac_site_file2=NONE
2114 if test -n "$CONFIG_SITE"; then
2115 # We do not want a PATH search for config.site.
2116 case $CONFIG_SITE in #((
2117 -*) ac_site_file1=./$CONFIG_SITE;;
2118 */*) ac_site_file1=$CONFIG_SITE;;
2119 *) ac_site_file1=./$CONFIG_SITE;;
2120 esac
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2124 else
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2127 fi
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 do
2130 test "x$ac_site_file" = xNONE && continue
2131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2135 . "$ac_site_file" \
2136 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site script $ac_site_file
2139 See \`config.log' for more details" "$LINENO" 5; }
2140 fi
2141 done
2142
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special files
2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149 case $cache_file in
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2152 esac
2153 fi
2154 else
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157 >$cache_file
2158 fi
2159
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2169 set,)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,set)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,);;
2178 *)
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2191 fi
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2196 fi;;
2197 esac
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2200 case $ac_new_val in
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2203 esac
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207 esac
2208 fi
2209 done
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2220
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228
2229 # Directory where autotools helper scripts lives.
2230 ac_aux_dir=
2231 for ac_dir in . "$srcdir"/.; do
2232 if test -f "$ac_dir/install-sh"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/install-sh -c"
2235 break
2236 elif test -f "$ac_dir/install.sh"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install.sh -c"
2239 break
2240 elif test -f "$ac_dir/shtool"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/shtool install -c"
2243 break
2244 fi
2245 done
2246 if test -z "$ac_aux_dir"; then
2247 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2248 fi
2249
2250 # These three variables are undocumented and unsupported,
2251 # and are intended to be withdrawn in a future Autoconf release.
2252 # They can cause serious problems if a builder's source tree is in a directory
2253 # whose full name contains unusual characters.
2254 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2255 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2256 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2257
2258
2259
2260 # Generate configuration headers.
2261 ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2262
2263
2264 # Hack: disable autoheader so that it doesn't overwrite our cfg template.
2265 AUTOHEADER="echo autoheader ignored"
2266
2267 # Check system type
2268 # Make sure we can run config.sub.
2269 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2270 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2271
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2273 $as_echo_n "checking build system type... " >&6; }
2274 if ${ac_cv_build+:} false; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 ac_build_alias=$build_alias
2278 test "x$ac_build_alias" = x &&
2279 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2280 test "x$ac_build_alias" = x &&
2281 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2282 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2283 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2284
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2287 $as_echo "$ac_cv_build" >&6; }
2288 case $ac_cv_build in
2289 *-*-*) ;;
2290 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2291 esac
2292 build=$ac_cv_build
2293 ac_save_IFS=$IFS; IFS='-'
2294 set x $ac_cv_build
2295 shift
2296 build_cpu=$1
2297 build_vendor=$2
2298 shift; shift
2299 # Remember, the first character of IFS is used to create $*,
2300 # except with old shells:
2301 build_os=$*
2302 IFS=$ac_save_IFS
2303 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2304
2305
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2307 $as_echo_n "checking host system type... " >&6; }
2308 if ${ac_cv_host+:} false; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 if test "x$host_alias" = x; then
2312 ac_cv_host=$ac_cv_build
2313 else
2314 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2315 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2316 fi
2317
2318 fi
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2320 $as_echo "$ac_cv_host" >&6; }
2321 case $ac_cv_host in
2322 *-*-*) ;;
2323 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2324 esac
2325 host=$ac_cv_host
2326 ac_save_IFS=$IFS; IFS='-'
2327 set x $ac_cv_host
2328 shift
2329 host_cpu=$1
2330 host_vendor=$2
2331 shift; shift
2332 # Remember, the first character of IFS is used to create $*,
2333 # except with old shells:
2334 host_os=$*
2335 IFS=$ac_save_IFS
2336 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2337
2338
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2340 $as_echo_n "checking target system type... " >&6; }
2341 if ${ac_cv_target+:} false; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 if test "x$target_alias" = x; then
2345 ac_cv_target=$ac_cv_host
2346 else
2347 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2349 fi
2350
2351 fi
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2353 $as_echo "$ac_cv_target" >&6; }
2354 case $ac_cv_target in
2355 *-*-*) ;;
2356 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2357 esac
2358 target=$ac_cv_target
2359 ac_save_IFS=$IFS; IFS='-'
2360 set x $ac_cv_target
2361 shift
2362 target_cpu=$1
2363 target_vendor=$2
2364 shift; shift
2365 # Remember, the first character of IFS is used to create $*,
2366 # except with old shells:
2367 target_os=$*
2368 IFS=$ac_save_IFS
2369 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2370
2371
2372 # The aliases save the names the user supplied, while $host etc.
2373 # will get canonicalized.
2374 test -n "$target_alias" &&
2375 test "$program_prefix$program_suffix$program_transform_name" = \
2376 NONENONEs,x,x, &&
2377 program_prefix=${target_alias}-
2378
2379 # Initialize Automake
2380 # Don't require all the GNU mandated files
2381 am__api_version='1.15'
2382
2383 # Find a good install program. We prefer a C program (faster),
2384 # so one script is as good as another. But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2389 # AIX /bin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410 ./ | .// | /[cC]/* | \
2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413 /usr/ucb/* ) ;;
2414 *)
2415 # OSF1 and SCO ODT 3.0 have their own names for install.
2416 # Don't use installbsd from OSF since it installs stuff as root
2417 # by default.
2418 for ac_prog in ginstall scoinst install; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2421 if test $ac_prog = install &&
2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # AIX install. It has an incompatible calling convention.
2424 :
2425 elif test $ac_prog = install &&
2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # program-specific install script used by HP pwplus--don't use.
2428 :
2429 else
2430 rm -rf conftest.one conftest.two conftest.dir
2431 echo one > conftest.one
2432 echo two > conftest.two
2433 mkdir conftest.dir
2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435 test -s conftest.one && test -s conftest.two &&
2436 test -s conftest.dir/conftest.one &&
2437 test -s conftest.dir/conftest.two
2438 then
2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440 break 3
2441 fi
2442 fi
2443 fi
2444 done
2445 done
2446 ;;
2447 esac
2448
2449 done
2450 IFS=$as_save_IFS
2451
2452 rm -rf conftest.one conftest.two conftest.dir
2453
2454 fi
2455 if test "${ac_cv_path_install+set}" = set; then
2456 INSTALL=$ac_cv_path_install
2457 else
2458 # As a last resort, use the slow shell script. Don't cache a
2459 # value for INSTALL within a source directory, because that will
2460 # break other packages using the cache if that directory is
2461 # removed, or if the value is a relative name.
2462 INSTALL=$ac_install_sh
2463 fi
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2467
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2478 # Reject unsafe characters in $srcdir or the absolute working directory
2479 # name. Accept space and tab only in the latter.
2480 am_lf='
2481 '
2482 case `pwd` in
2483 *[\\\"\#\$\&\'\`$am_lf]*)
2484 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2485 esac
2486 case $srcdir in
2487 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2488 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2489 esac
2490
2491 # Do 'set' in a subshell so we don't clobber the current shell's
2492 # arguments. Must try -L first in case configure is actually a
2493 # symlink; some systems play weird games with the mod time of symlinks
2494 # (eg FreeBSD returns the mod time of the symlink's containing
2495 # directory).
2496 if (
2497 am_has_slept=no
2498 for am_try in 1 2; do
2499 echo "timestamp, slept: $am_has_slept" > conftest.file
2500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501 if test "$*" = "X"; then
2502 # -L didn't work.
2503 set X `ls -t "$srcdir/configure" conftest.file`
2504 fi
2505 if test "$*" != "X $srcdir/configure conftest.file" \
2506 && test "$*" != "X conftest.file $srcdir/configure"; then
2507
2508 # If neither matched, then we have a broken ls. This can happen
2509 # if, for instance, CONFIG_SHELL is bash and it inherits a
2510 # broken ls alias from the environment. This has actually
2511 # happened. Such a system could not be considered "sane".
2512 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2513 alias in your environment" "$LINENO" 5
2514 fi
2515 if test "$2" = conftest.file || test $am_try -eq 2; then
2516 break
2517 fi
2518 # Just in case.
2519 sleep 1
2520 am_has_slept=yes
2521 done
2522 test "$2" = conftest.file
2523 )
2524 then
2525 # Ok.
2526 :
2527 else
2528 as_fn_error $? "newly created file is older than distributed files!
2529 Check your system clock" "$LINENO" 5
2530 fi
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532 $as_echo "yes" >&6; }
2533 # If we didn't sleep, we still need to ensure time stamps of config.status and
2534 # generated files are strictly newer.
2535 am_sleep_pid=
2536 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2537 ( sleep 1 ) &
2538 am_sleep_pid=$!
2539 fi
2540
2541 rm -f conftest.file
2542
2543 test "$program_prefix" != NONE &&
2544 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2545 # Use a double $ so make ignores it.
2546 test "$program_suffix" != NONE &&
2547 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2548 # Double any \ or $.
2549 # By default was `s,x,x', remove it if useless.
2550 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2551 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552
2553 # Expand $ac_aux_dir to an absolute path.
2554 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2555
2556 if test x"${MISSING+set}" != xset; then
2557 case $am_aux_dir in
2558 *\ * | *\ *)
2559 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2560 *)
2561 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2562 esac
2563 fi
2564 # Use eval to expand $SHELL
2565 if eval "$MISSING --is-lightweight"; then
2566 am_missing_run="$MISSING "
2567 else
2568 am_missing_run=
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2570 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2571 fi
2572
2573 if test x"${install_sh+set}" != xset; then
2574 case $am_aux_dir in
2575 *\ * | *\ *)
2576 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2577 *)
2578 install_sh="\${SHELL} $am_aux_dir/install-sh"
2579 esac
2580 fi
2581
2582 # Installed binaries are usually stripped using 'strip' when the user
2583 # run "make install-strip". However 'strip' might not be the right
2584 # tool to use in cross-compilation environments, therefore Automake
2585 # will honor the 'STRIP' environment variable to overrule this program.
2586 if test "$cross_compiling" != no; then
2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}strip; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_STRIP+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$STRIP"; then
2596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 STRIP=$ac_cv_prog_STRIP
2616 if test -n "$STRIP"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2618 $as_echo "$STRIP" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 fi
2626 if test -z "$ac_cv_prog_STRIP"; then
2627 ac_ct_STRIP=$STRIP
2628 # Extract the first word of "strip", so it can be a program name with args.
2629 set dummy strip; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$ac_ct_STRIP"; then
2636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_ac_ct_STRIP="strip"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2656 if test -n "$ac_ct_STRIP"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2658 $as_echo "$ac_ct_STRIP" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664 if test "x$ac_ct_STRIP" = x; then
2665 STRIP=":"
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668 yes:)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673 STRIP=$ac_ct_STRIP
2674 fi
2675 else
2676 STRIP="$ac_cv_prog_STRIP"
2677 fi
2678
2679 fi
2680 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2681
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2683 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2684 if test -z "$MKDIR_P"; then
2685 if ${ac_cv_path_mkdir+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_prog in mkdir gmkdir; do
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2696 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2697 'mkdir (GNU coreutils) '* | \
2698 'mkdir (coreutils) '* | \
2699 'mkdir (fileutils) '4.1*)
2700 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2701 break 3;;
2702 esac
2703 done
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi
2709
2710 test -d ./--version && rmdir ./--version
2711 if test "${ac_cv_path_mkdir+set}" = set; then
2712 MKDIR_P="$ac_cv_path_mkdir -p"
2713 else
2714 # As a last resort, use the slow shell script. Don't cache a
2715 # value for MKDIR_P within a source directory, because that will
2716 # break other packages using the cache if that directory is
2717 # removed, or if the value is a relative name.
2718 MKDIR_P="$ac_install_sh -d"
2719 fi
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2722 $as_echo "$MKDIR_P" >&6; }
2723
2724 for ac_prog in gawk mawk nawk awk
2725 do
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763 test -n "$AWK" && break
2764 done
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2768 set x ${MAKE-make}
2769 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2770 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 cat >conftest.make <<\_ACEOF
2774 SHELL = /bin/sh
2775 all:
2776 @echo '@@@%%%=$(MAKE)=@@@%%%'
2777 _ACEOF
2778 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2780 *@@@%%%=?*=@@@%%%*)
2781 eval ac_cv_prog_make_${ac_make}_set=yes;;
2782 *)
2783 eval ac_cv_prog_make_${ac_make}_set=no;;
2784 esac
2785 rm -f conftest.make
2786 fi
2787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789 $as_echo "yes" >&6; }
2790 SET_MAKE=
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 SET_MAKE="MAKE=${MAKE-make}"
2795 fi
2796
2797 rm -rf .tst 2>/dev/null
2798 mkdir .tst 2>/dev/null
2799 if test -d .tst; then
2800 am__leading_dot=.
2801 else
2802 am__leading_dot=_
2803 fi
2804 rmdir .tst 2>/dev/null
2805
2806 # Check whether --enable-silent-rules was given.
2807 if test "${enable_silent_rules+set}" = set; then :
2808 enableval=$enable_silent_rules;
2809 fi
2810
2811 case $enable_silent_rules in # (((
2812 yes) AM_DEFAULT_VERBOSITY=0;;
2813 no) AM_DEFAULT_VERBOSITY=1;;
2814 *) AM_DEFAULT_VERBOSITY=1;;
2815 esac
2816 am_make=${MAKE-make}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2818 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2819 if ${am_cv_make_support_nested_variables+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if $as_echo 'TRUE=$(BAR$(V))
2823 BAR0=false
2824 BAR1=true
2825 V=1
2826 am__doit:
2827 @$(TRUE)
2828 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2829 am_cv_make_support_nested_variables=yes
2830 else
2831 am_cv_make_support_nested_variables=no
2832 fi
2833 fi
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2835 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2836 if test $am_cv_make_support_nested_variables = yes; then
2837 AM_V='$(V)'
2838 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2839 else
2840 AM_V=$AM_DEFAULT_VERBOSITY
2841 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2842 fi
2843 AM_BACKSLASH='\'
2844
2845 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2846 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2847 # is not polluted with repeated "-I."
2848 am__isrc=' -I$(srcdir)'
2849 # test to see if srcdir already configured
2850 if test -f $srcdir/config.status; then
2851 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2852 fi
2853 fi
2854
2855 # test whether we have cygpath
2856 if test -z "$CYGPATH_W"; then
2857 if (cygpath --version) >/dev/null 2>/dev/null; then
2858 CYGPATH_W='cygpath -w'
2859 else
2860 CYGPATH_W=echo
2861 fi
2862 fi
2863
2864
2865 # Define the identity of the package.
2866 PACKAGE='libjpeg'
2867 VERSION='9.2.0'
2868
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE "$PACKAGE"
2872 _ACEOF
2873
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define VERSION "$VERSION"
2877 _ACEOF
2878
2879 # Some tools Automake needs.
2880
2881 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2882
2883
2884 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2885
2886
2887 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2888
2889
2890 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2891
2892
2893 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2894
2895 # For better backward compatibility. To be removed once Automake 1.9.x
2896 # dies out for good. For more background, see:
2897 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2898 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2899 mkdir_p='$(MKDIR_P)'
2900
2901 # We need awk for the "check" target (and possibly the TAP driver). The
2902 # system "awk" is bad on some platforms.
2903 # Always define AMTAR for backward compatibility. Yes, it's still used
2904 # in the wild :-( We should find a proper way to deprecate it ...
2905 AMTAR='$${TAR-tar}'
2906
2907
2908 # We'll loop over all known methods to create a tar archive until one works.
2909 _am_tools='gnutar pax cpio none'
2910
2911 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2912
2913
2914
2915
2916
2917
2918 # POSIX will say in a future version that running "rm -f" with no argument
2919 # is OK; and we want to be able to make that assumption in our Makefile
2920 # recipes. So use an aggressive probe to check that the usage we want is
2921 # actually supported "in the wild" to an acceptable degree.
2922 # See automake bug#10828.
2923 # To make any issue more visible, cause the running configure to be aborted
2924 # by default if the 'rm' program in use doesn't match our expectations; the
2925 # user can still override this though.
2926 if rm -f && rm -fr && rm -rf; then : OK; else
2927 cat >&2 <<'END'
2928 Oops!
2929
2930 Your 'rm' program seems unable to run without file operands specified
2931 on the command line, even when the '-f' option is present. This is contrary
2932 to the behaviour of most rm programs out there, and not conforming with
2933 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2934
2935 Please tell [email protected] about your system, including the value
2936 of your $PATH and any error possibly output before this message. This
2937 can help us improve future automake versions.
2938
2939 END
2940 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2941 echo 'Configuration will proceed anyway, since you have set the' >&2
2942 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2943 echo >&2
2944 else
2945 cat >&2 <<'END'
2946 Aborting the configuration process, to ensure you take notice of the issue.
2947
2948 You can download and install GNU coreutils to get an 'rm' implementation
2949 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2950
2951 If you want to complete the configuration process using your problematic
2952 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2953 to "yes", and re-run configure.
2954
2955 END
2956 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2957 fi
2958 fi
2959
2960
2961 # Make --enable-silent-rules the default.
2962 # To get verbose build output you may configure
2963 # with --disable-silent-rules or use "make V=1".
2964 # Check whether --enable-silent-rules was given.
2965 if test "${enable_silent_rules+set}" = set; then :
2966 enableval=$enable_silent_rules;
2967 fi
2968
2969 case $enable_silent_rules in # (((
2970 yes) AM_DEFAULT_VERBOSITY=0;;
2971 no) AM_DEFAULT_VERBOSITY=1;;
2972 *) AM_DEFAULT_VERBOSITY=0;;
2973 esac
2974 am_make=${MAKE-make}
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2976 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2977 if ${am_cv_make_support_nested_variables+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if $as_echo 'TRUE=$(BAR$(V))
2981 BAR0=false
2982 BAR1=true
2983 V=1
2984 am__doit:
2985 @$(TRUE)
2986 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2987 am_cv_make_support_nested_variables=yes
2988 else
2989 am_cv_make_support_nested_variables=no
2990 fi
2991 fi
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2993 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2994 if test $am_cv_make_support_nested_variables = yes; then
2995 AM_V='$(V)'
2996 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2997 else
2998 AM_V=$AM_DEFAULT_VERBOSITY
2999 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3000 fi
3001 AM_BACKSLASH='\'
3002
3003
3004 # Add configure option --enable-maintainer-mode which enables
3005 # dependency checking and generation useful to package maintainers.
3006 # This is made an option to avoid confusing end users.
3007
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3009 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3010 # Check whether --enable-maintainer-mode was given.
3011 if test "${enable_maintainer_mode+set}" = set; then :
3012 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3013 else
3014 USE_MAINTAINER_MODE=no
3015 fi
3016
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3018 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3019 if test $USE_MAINTAINER_MODE = yes; then
3020 MAINTAINER_MODE_TRUE=
3021 MAINTAINER_MODE_FALSE='#'
3022 else
3023 MAINTAINER_MODE_TRUE='#'
3024 MAINTAINER_MODE_FALSE=
3025 fi
3026
3027 MAINT=$MAINTAINER_MODE_TRUE
3028
3029
3030
3031 # Check for programs
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 fi
3076 if test -z "$ac_cv_prog_CC"; then
3077 ac_ct_CC=$CC
3078 # Extract the first word of "gcc", so it can be a program name with args.
3079 set dummy gcc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$ac_ct_CC"; then
3086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_ac_ct_CC="gcc"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106 if test -n "$ac_ct_CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3108 $as_echo "$ac_ct_CC" >&6; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114 if test "x$ac_ct_CC" = x; then
3115 CC=""
3116 else
3117 case $cross_compiling:$ac_tool_warned in
3118 yes:)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3122 esac
3123 CC=$ac_ct_CC
3124 fi
3125 else
3126 CC="$ac_cv_prog_CC"
3127 fi
3128
3129 if test -z "$CC"; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}cc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_CC="${ac_tool_prefix}cc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 fi
3169 fi
3170 if test -z "$CC"; then
3171 # Extract the first word of "cc", so it can be a program name with args.
3172 set dummy cc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 ac_prog_rejected=no
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3190 ac_prog_rejected=yes
3191 continue
3192 fi
3193 ac_cv_prog_CC="cc"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 if test $ac_prog_rejected = yes; then
3202 # We found a bogon in the path, so make sure we never use it.
3203 set dummy $ac_cv_prog_CC
3204 shift
3205 if test $# != 0; then
3206 # We chose a different compiler from the bogus one.
3207 # However, it has the same basename, so the bogon will be chosen
3208 # first if we set CC to just the basename; use the full file name.
3209 shift
3210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3211 fi
3212 fi
3213 fi
3214 fi
3215 CC=$ac_cv_prog_CC
3216 if test -n "$CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224
3225 fi
3226 if test -z "$CC"; then
3227 if test -n "$ac_tool_prefix"; then
3228 for ac_prog in cl.exe
3229 do
3230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_CC+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3250 fi
3251 done
3252 done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266
3267 test -n "$CC" && break
3268 done
3269 fi
3270 if test -z "$CC"; then
3271 ac_ct_CC=$CC
3272 for ac_prog in cl.exe
3273 do
3274 # Extract the first word of "$ac_prog", so it can be a program name with args.
3275 set dummy $ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$ac_ct_CC"; then
3282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_ac_ct_CC="$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311 test -n "$ac_ct_CC" && break
3312 done
3313
3314 if test "x$ac_ct_CC" = x; then
3315 CC=""
3316 else
3317 case $cross_compiling:$ac_tool_warned in
3318 yes:)
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3321 ac_tool_warned=yes ;;
3322 esac
3323 CC=$ac_ct_CC
3324 fi
3325 fi
3326
3327 fi
3328
3329
3330 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $? "no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details" "$LINENO" 5; }
3334
3335 # Provide some information about the compiler.
3336 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3337 set X $ac_compile
3338 ac_compiler=$2
3339 for ac_option in --version -v -V -qversion; do
3340 { { ac_try="$ac_compiler $ac_option >&5"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3348 ac_status=$?
3349 if test -s conftest.err; then
3350 sed '10a\
3351 ... rest of stderr output deleted ...
3352 10q' conftest.err >conftest.er1
3353 cat conftest.er1 >&5
3354 fi
3355 rm -f conftest.er1 conftest.err
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }
3358 done
3359
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3362
3363 int
3364 main ()
3365 {
3366
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 ac_clean_files_save=$ac_clean_files
3372 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3373 # Try to create an executable without -o first, disregard a.out.
3374 # It will help us diagnose broken compilers, and finding out an intuition
3375 # of exeext.
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3377 $as_echo_n "checking whether the C compiler works... " >&6; }
3378 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3379
3380 # The possible output files:
3381 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3382
3383 ac_rmfiles=
3384 for ac_file in $ac_files
3385 do
3386 case $ac_file in
3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3388 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3389 esac
3390 done
3391 rm -f $ac_rmfiles
3392
3393 if { { ac_try="$ac_link_default"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_link_default") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3405 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3406 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3407 # so that the user can short-circuit this test for compilers unknown to
3408 # Autoconf.
3409 for ac_file in $ac_files ''
3410 do
3411 test -f "$ac_file" || continue
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3414 ;;
3415 [ab].out )
3416 # We found the default executable, but exeext='' is most
3417 # certainly right.
3418 break;;
3419 *.* )
3420 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3421 then :; else
3422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3423 fi
3424 # We set ac_cv_exeext here because the later test for it is not
3425 # safe: cross compilers may not add the suffix if given an `-o'
3426 # argument, so we may need to know it at that point already.
3427 # Even if this section looks crufty: it has the advantage of
3428 # actually working.
3429 break;;
3430 * )
3431 break;;
3432 esac
3433 done
3434 test "$ac_cv_exeext" = no && ac_cv_exeext=
3435
3436 else
3437 ac_file=''
3438 fi
3439 if test -z "$ac_file"; then :
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error 77 "C compiler cannot create executables
3448 See \`config.log' for more details" "$LINENO" 5; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3451 $as_echo "yes" >&6; }
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3454 $as_echo_n "checking for C compiler default output file name... " >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3456 $as_echo "$ac_file" >&6; }
3457 ac_exeext=$ac_cv_exeext
3458
3459 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3460 ac_clean_files=$ac_clean_files_save
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3462 $as_echo_n "checking for suffix of executables... " >&6; }
3463 if { { ac_try="$ac_link"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_link") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; then :
3474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3475 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3476 # work properly (i.e., refer to `conftest.exe'), while it won't with
3477 # `rm'.
3478 for ac_file in conftest.exe conftest conftest.*; do
3479 test -f "$ac_file" || continue
3480 case $ac_file in
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3483 break;;
3484 * ) break;;
3485 esac
3486 done
3487 else
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 fi
3493 rm -f conftest conftest$ac_cv_exeext
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3495 $as_echo "$ac_cv_exeext" >&6; }
3496
3497 rm -f conftest.$ac_ext
3498 EXEEXT=$ac_cv_exeext
3499 ac_exeext=$EXEEXT
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502 #include <stdio.h>
3503 int
3504 main ()
3505 {
3506 FILE *f = fopen ("conftest.out", "w");
3507 return ferror (f) || fclose (f) != 0;
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 ac_clean_files="$ac_clean_files conftest.out"
3514 # Check that the compiler produces executables we can run. If not, either
3515 # the compiler is broken, or we cross compile.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3517 $as_echo_n "checking whether we are cross compiling... " >&6; }
3518 if test "$cross_compiling" != yes; then
3519 { { ac_try="$ac_link"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_link") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }
3530 if { ac_try='./conftest$ac_cv_exeext'
3531 { { case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_try") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; }; then
3541 cross_compiling=no
3542 else
3543 if test "$cross_compiling" = maybe; then
3544 cross_compiling=yes
3545 else
3546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $? "cannot run C compiled programs.
3549 If you meant to cross compile, use \`--host'.
3550 See \`config.log' for more details" "$LINENO" 5; }
3551 fi
3552 fi
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3555 $as_echo "$cross_compiling" >&6; }
3556
3557 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3558 ac_clean_files=$ac_clean_files_save
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3560 $as_echo_n "checking for suffix of object files... " >&6; }
3561 if ${ac_cv_objext+:} false; then :
3562 $as_echo_n "(cached) " >&6
3563 else
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566
3567 int
3568 main ()
3569 {
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.o conftest.obj
3576 if { { ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_compile") 2>&5
3584 ac_status=$?
3585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586 test $ac_status = 0; }; then :
3587 for ac_file in conftest.o conftest.obj conftest.*; do
3588 test -f "$ac_file" || continue;
3589 case $ac_file in
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3592 break;;
3593 esac
3594 done
3595 else
3596 $as_echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot compute suffix of object files: cannot compile
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 fi
3604 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3607 $as_echo "$ac_cv_objext" >&6; }
3608 OBJEXT=$ac_cv_objext
3609 ac_objext=$OBJEXT
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3611 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3612 if ${ac_cv_c_compiler_gnu+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621 #ifndef __GNUC__
3622 choke me
3623 #endif
3624
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_compiler_gnu=yes
3631 else
3632 ac_compiler_gnu=no
3633 fi
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3636
3637 fi
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3639 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3640 if test $ac_compiler_gnu = yes; then
3641 GCC=yes
3642 else
3643 GCC=
3644 fi
3645 ac_test_CFLAGS=${CFLAGS+set}
3646 ac_save_CFLAGS=$CFLAGS
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3648 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3649 if ${ac_cv_prog_cc_g+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 ac_save_c_werror_flag=$ac_c_werror_flag
3653 ac_c_werror_flag=yes
3654 ac_cv_prog_cc_g=no
3655 CFLAGS="-g"
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_cv_prog_cc_g=yes
3669 else
3670 CFLAGS=""
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673
3674 int
3675 main ()
3676 {
3677
3678 ;
3679 return 0;
3680 }
3681 _ACEOF
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683
3684 else
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3686 CFLAGS="-g"
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689
3690 int
3691 main ()
3692 {
3693
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_prog_cc_g=yes
3700 fi
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 fi
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_c_werror_flag=$ac_save_c_werror_flag
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3709 $as_echo "$ac_cv_prog_cc_g" >&6; }
3710 if test "$ac_test_CFLAGS" = set; then
3711 CFLAGS=$ac_save_CFLAGS
3712 elif test $ac_cv_prog_cc_g = yes; then
3713 if test "$GCC" = yes; then
3714 CFLAGS="-g -O2"
3715 else
3716 CFLAGS="-g"
3717 fi
3718 else
3719 if test "$GCC" = yes; then
3720 CFLAGS="-O2"
3721 else
3722 CFLAGS=
3723 fi
3724 fi
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3726 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3727 if ${ac_cv_prog_cc_c89+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 ac_cv_prog_cc_c89=no
3731 ac_save_CC=$CC
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <stdarg.h>
3735 #include <stdio.h>
3736 struct stat;
3737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3738 struct buf { int x; };
3739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740 static char *e (p, i)
3741 char **p;
3742 int i;
3743 {
3744 return p[i];
3745 }
3746 static char *f (char * (*g) (char **, int), char **p, ...)
3747 {
3748 char *s;
3749 va_list v;
3750 va_start (v,p);
3751 s = g (p, va_arg (v,int));
3752 va_end (v);
3753 return s;
3754 }
3755
3756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3757 function prototypes and stuff, but not '\xHH' hex character constants.
3758 These don't provoke an error unfortunately, instead are silently treated
3759 as 'x'. The following induces an error, until -std is added to get
3760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3761 array size at least. It's necessary to write '\x00'==0 to get something
3762 that's true only with -std. */
3763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764
3765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3766 inside strings and character constants. */
3767 #define FOO(x) 'x'
3768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769
3770 int test (int i, double x);
3771 struct s1 {int (*f) (int a);};
3772 struct s2 {int (*f) (double a);};
3773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774 int argc;
3775 char **argv;
3776 int
3777 main ()
3778 {
3779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 do
3787 CC="$ac_save_CC $ac_arg"
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_c89=$ac_arg
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 done
3794 rm -f conftest.$ac_ext
3795 CC=$ac_save_CC
3796
3797 fi
3798 # AC_CACHE_VAL
3799 case "x$ac_cv_prog_cc_c89" in
3800 x)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3803 xno)
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3806 *)
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810 esac
3811 if test "x$ac_cv_prog_cc_c89" != xno; then :
3812
3813 fi
3814
3815 ac_ext=c
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3827 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3828 if ${am_cv_prog_cc_c_o+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833
3834 int
3835 main ()
3836 {
3837
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 # Make sure it works both with $CC and with simple cc.
3843 # Following AC_PROG_CC_C_O, we do the test twice because some
3844 # compilers refuse to overwrite an existing .o file with -o,
3845 # though they will create one.
3846 am_cv_prog_cc_c_o=yes
3847 for am_i in 1 2; do
3848 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3849 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } \
3853 && test -f conftest2.$ac_objext; then
3854 : OK
3855 else
3856 am_cv_prog_cc_c_o=no
3857 break
3858 fi
3859 done
3860 rm -f core conftest*
3861 unset am_i
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3864 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3865 if test "$am_cv_prog_cc_c_o" != yes; then
3866 # Losing compiler, so override with the script.
3867 # FIXME: It is wrong to rewrite CC.
3868 # But if we don't then we get into trouble of one sort or another.
3869 # A longer-term fix would be to have automake use am__CC in this case,
3870 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3871 CC="$am_aux_dir/compile $CC"
3872 fi
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879 DEPDIR="${am__leading_dot}deps"
3880
3881 ac_config_commands="$ac_config_commands depfiles"
3882
3883
3884 am_make=${MAKE-make}
3885 cat > confinc << 'END'
3886 am__doit:
3887 @echo this is the am__doit target
3888 .PHONY: am__doit
3889 END
3890 # If we don't find an include directive, just comment out the code.
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3892 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3893 am__include="#"
3894 am__quote=
3895 _am_result=none
3896 # First try GNU make style include.
3897 echo "include confinc" > confmf
3898 # Ignore all kinds of additional output from 'make'.
3899 case `$am_make -s -f confmf 2> /dev/null` in #(
3900 *the\ am__doit\ target*)
3901 am__include=include
3902 am__quote=
3903 _am_result=GNU
3904 ;;
3905 esac
3906 # Now try BSD make style include.
3907 if test "$am__include" = "#"; then
3908 echo '.include "confinc"' > confmf
3909 case `$am_make -s -f confmf 2> /dev/null` in #(
3910 *the\ am__doit\ target*)
3911 am__include=.include
3912 am__quote="\""
3913 _am_result=BSD
3914 ;;
3915 esac
3916 fi
3917
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3920 $as_echo "$_am_result" >&6; }
3921 rm -f confinc confmf
3922
3923 # Check whether --enable-dependency-tracking was given.
3924 if test "${enable_dependency_tracking+set}" = set; then :
3925 enableval=$enable_dependency_tracking;
3926 fi
3927
3928 if test "x$enable_dependency_tracking" != xno; then
3929 am_depcomp="$ac_aux_dir/depcomp"
3930 AMDEPBACKSLASH='\'
3931 am__nodep='_no'
3932 fi
3933 if test "x$enable_dependency_tracking" != xno; then
3934 AMDEP_TRUE=
3935 AMDEP_FALSE='#'
3936 else
3937 AMDEP_TRUE='#'
3938 AMDEP_FALSE=
3939 fi
3940
3941
3942
3943 depcc="$CC" am_compiler_list=
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3946 $as_echo_n "checking dependency style of $depcc... " >&6; }
3947 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3951 # We make a subdir and do the tests there. Otherwise we can end up
3952 # making bogus files that we don't know about and never remove. For
3953 # instance it was reported that on HP-UX the gcc test will end up
3954 # making a dummy file named 'D' -- because '-MD' means "put the output
3955 # in D".
3956 rm -rf conftest.dir
3957 mkdir conftest.dir
3958 # Copy depcomp to subdir because otherwise we won't find it if we're
3959 # using a relative directory.
3960 cp "$am_depcomp" conftest.dir
3961 cd conftest.dir
3962 # We will build objects and dependencies in a subdirectory because
3963 # it helps to detect inapplicable dependency modes. For instance
3964 # both Tru64's cc and ICC support -MD to output dependencies as a
3965 # side effect of compilation, but ICC will put the dependencies in
3966 # the current directory while Tru64 will put them in the object
3967 # directory.
3968 mkdir sub
3969
3970 am_cv_CC_dependencies_compiler_type=none
3971 if test "$am_compiler_list" = ""; then
3972 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3973 fi
3974 am__universal=false
3975 case " $depcc " in #(
3976 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3977 esac
3978
3979 for depmode in $am_compiler_list; do
3980 # Setup a source with many dependencies, because some compilers
3981 # like to wrap large dependency lists on column 80 (with \), and
3982 # we should not choose a depcomp mode which is confused by this.
3983 #
3984 # We need to recreate these files for each test, as the compiler may
3985 # overwrite some of them when testing with obscure command lines.
3986 # This happens at least with the AIX C compiler.
3987 : > sub/conftest.c
3988 for i in 1 2 3 4 5 6; do
3989 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3990 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3991 # Solaris 10 /bin/sh.
3992 echo '/* dummy */' > sub/conftst$i.h
3993 done
3994 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3995
3996 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3997 # mode. It turns out that the SunPro C++ compiler does not properly
3998 # handle '-M -o', and we need to detect this. Also, some Intel
3999 # versions had trouble with output in subdirs.
4000 am__obj=sub/conftest.${OBJEXT-o}
4001 am__minus_obj="-o $am__obj"
4002 case $depmode in
4003 gcc)
4004 # This depmode causes a compiler race in universal mode.
4005 test "$am__universal" = false || continue
4006 ;;
4007 nosideeffect)
4008 # After this tag, mechanisms are not by side-effect, so they'll
4009 # only be used when explicitly requested.
4010 if test "x$enable_dependency_tracking" = xyes; then
4011 continue
4012 else
4013 break
4014 fi
4015 ;;
4016 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4017 # This compiler won't grok '-c -o', but also, the minuso test has
4018 # not run yet. These depmodes are late enough in the game, and
4019 # so weak that their functioning should not be impacted.
4020 am__obj=conftest.${OBJEXT-o}
4021 am__minus_obj=
4022 ;;
4023 none) break ;;
4024 esac
4025 if depmode=$depmode \
4026 source=sub/conftest.c object=$am__obj \
4027 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4028 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4029 >/dev/null 2>conftest.err &&
4030 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4031 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4032 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4033 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4034 # icc doesn't choke on unknown options, it will just issue warnings
4035 # or remarks (even with -Werror). So we grep stderr for any message
4036 # that says an option was ignored or not supported.
4037 # When given -MP, icc 7.0 and 7.1 complain thusly:
4038 # icc: Command line warning: ignoring option '-M'; no argument required
4039 # The diagnosis changed in icc 8.0:
4040 # icc: Command line remark: option '-MP' not supported
4041 if (grep 'ignoring option' conftest.err ||
4042 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4043 am_cv_CC_dependencies_compiler_type=$depmode
4044 break
4045 fi
4046 fi
4047 done
4048
4049 cd ..
4050 rm -rf conftest.dir
4051 else
4052 am_cv_CC_dependencies_compiler_type=none
4053 fi
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4057 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4058 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4059
4060 if
4061 test "x$enable_dependency_tracking" != xno \
4062 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4063 am__fastdepCC_TRUE=
4064 am__fastdepCC_FALSE='#'
4065 else
4066 am__fastdepCC_TRUE='#'
4067 am__fastdepCC_FALSE=
4068 fi
4069
4070
4071 case $ac_cv_prog_cc_stdc in #(
4072 no) :
4073 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4074 *) :
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4076 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4077 if ${ac_cv_prog_cc_c99+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 ac_cv_prog_cc_c99=no
4081 ac_save_CC=$CC
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <stdarg.h>
4085 #include <stdbool.h>
4086 #include <stdlib.h>
4087 #include <wchar.h>
4088 #include <stdio.h>
4089
4090 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4091 #define debug(...) fprintf (stderr, __VA_ARGS__)
4092 #define showlist(...) puts (#__VA_ARGS__)
4093 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4094 static void
4095 test_varargs_macros (void)
4096 {
4097 int x = 1234;
4098 int y = 5678;
4099 debug ("Flag");
4100 debug ("X = %d\n", x);
4101 showlist (The first, second, and third items.);
4102 report (x>y, "x is %d but y is %d", x, y);
4103 }
4104
4105 // Check long long types.
4106 #define BIG64 18446744073709551615ull
4107 #define BIG32 4294967295ul
4108 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4109 #if !BIG_OK
4110 your preprocessor is broken;
4111 #endif
4112 #if BIG_OK
4113 #else
4114 your preprocessor is broken;
4115 #endif
4116 static long long int bignum = -9223372036854775807LL;
4117 static unsigned long long int ubignum = BIG64;
4118
4119 struct incomplete_array
4120 {
4121 int datasize;
4122 double data[];
4123 };
4124
4125 struct named_init {
4126 int number;
4127 const wchar_t *name;
4128 double average;
4129 };
4130
4131 typedef const char *ccp;
4132
4133 static inline int
4134 test_restrict (ccp restrict text)
4135 {
4136 // See if C++-style comments work.
4137 // Iterate through items via the restricted pointer.
4138 // Also check for declarations in for loops.
4139 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4140 continue;
4141 return 0;
4142 }
4143
4144 // Check varargs and va_copy.
4145 static void
4146 test_varargs (const char *format, ...)
4147 {
4148 va_list args;
4149 va_start (args, format);
4150 va_list args_copy;
4151 va_copy (args_copy, args);
4152
4153 const char *str;
4154 int number;
4155 float fnumber;
4156
4157 while (*format)
4158 {
4159 switch (*format++)
4160 {
4161 case 's': // string
4162 str = va_arg (args_copy, const char *);
4163 break;
4164 case 'd': // int
4165 number = va_arg (args_copy, int);
4166 break;
4167 case 'f': // float
4168 fnumber = va_arg (args_copy, double);
4169 break;
4170 default:
4171 break;
4172 }
4173 }
4174 va_end (args_copy);
4175 va_end (args);
4176 }
4177
4178 int
4179 main ()
4180 {
4181
4182 // Check bool.
4183 _Bool success = false;
4184
4185 // Check restrict.
4186 if (test_restrict ("String literal") == 0)
4187 success = true;
4188 char *restrict newvar = "Another string";
4189
4190 // Check varargs.
4191 test_varargs ("s, d' f .", "string", 65, 34.234);
4192 test_varargs_macros ();
4193
4194 // Check flexible array members.
4195 struct incomplete_array *ia =
4196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4197 ia->datasize = 10;
4198 for (int i = 0; i < ia->datasize; ++i)
4199 ia->data[i] = i * 1.234;
4200
4201 // Check named initializers.
4202 struct named_init ni = {
4203 .number = 34,
4204 .name = L"Test wide string",
4205 .average = 543.34343,
4206 };
4207
4208 ni.number = 58;
4209
4210 int dynamic_array[ni.number];
4211 dynamic_array[ni.number - 1] = 543;
4212
4213 // work around unused variable warnings
4214 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4215 || dynamic_array[ni.number - 1] != 543);
4216
4217 ;
4218 return 0;
4219 }
4220 _ACEOF
4221 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4222 do
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c99=$ac_arg
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c99" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4232
4233 fi
4234 # AC_CACHE_VAL
4235 case "x$ac_cv_prog_cc_c99" in
4236 x)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4239 xno)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4242 *)
4243 CC="$CC $ac_cv_prog_cc_c99"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4245 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4246 esac
4247 if test "x$ac_cv_prog_cc_c99" != xno; then :
4248 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4252 if ${ac_cv_prog_cc_c89+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 ac_cv_prog_cc_c89=no
4256 ac_save_CC=$CC
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #include <stdarg.h>
4260 #include <stdio.h>
4261 struct stat;
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4266 char **p;
4267 int i;
4268 {
4269 return p[i];
4270 }
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4272 {
4273 char *s;
4274 va_list v;
4275 va_start (v,p);
4276 s = g (p, va_arg (v,int));
4277 va_end (v);
4278 return s;
4279 }
4280
4281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4282 function prototypes and stuff, but not '\xHH' hex character constants.
4283 These don't provoke an error unfortunately, instead are silently treated
4284 as 'x'. The following induces an error, until -std is added to get
4285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4286 array size at least. It's necessary to write '\x00'==0 to get something
4287 that's true only with -std. */
4288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4289
4290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4291 inside strings and character constants. */
4292 #define FOO(x) 'x'
4293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4294
4295 int test (int i, double x);
4296 struct s1 {int (*f) (int a);};
4297 struct s2 {int (*f) (double a);};
4298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4299 int argc;
4300 char **argv;
4301 int
4302 main ()
4303 {
4304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311 do
4312 CC="$ac_save_CC $ac_arg"
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_cv_prog_cc_c89=$ac_arg
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext
4317 test "x$ac_cv_prog_cc_c89" != "xno" && break
4318 done
4319 rm -f conftest.$ac_ext
4320 CC=$ac_save_CC
4321
4322 fi
4323 # AC_CACHE_VAL
4324 case "x$ac_cv_prog_cc_c89" in
4325 x)
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327 $as_echo "none needed" >&6; } ;;
4328 xno)
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4331 *)
4332 CC="$CC $ac_cv_prog_cc_c89"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335 esac
4336 if test "x$ac_cv_prog_cc_c89" != xno; then :
4337 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4338 else
4339 ac_cv_prog_cc_stdc=no
4340 fi
4341
4342 fi
4343 ;;
4344 esac
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4346 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4347 if ${ac_cv_prog_cc_stdc+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 fi
4350
4351 case $ac_cv_prog_cc_stdc in #(
4352 no) :
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4354 $as_echo "unsupported" >&6; } ;; #(
4355 '') :
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357 $as_echo "none needed" >&6; } ;; #(
4358 *) :
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4360 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4361 esac
4362
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4369 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4370 # On Suns, sometimes $CPP names a directory.
4371 if test -n "$CPP" && test -d "$CPP"; then
4372 CPP=
4373 fi
4374 if test -z "$CPP"; then
4375 if ${ac_cv_prog_CPP+:} false; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 # Double quotes because CPP needs to be expanded
4379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4380 do
4381 ac_preproc_ok=false
4382 for ac_c_preproc_warn_flag in '' yes
4383 do
4384 # Use a header file that comes with gcc, so configuring glibc
4385 # with a fresh cross-compiler works.
4386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 # <limits.h> exists even on freestanding compilers.
4388 # On the NeXT, cc -E runs the code through the compiler's parser,
4389 # not just through cpp. "Syntax error" is here to catch this case.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #ifdef __STDC__
4393 # include <limits.h>
4394 #else
4395 # include <assert.h>
4396 #endif
4397 Syntax error
4398 _ACEOF
4399 if ac_fn_c_try_cpp "$LINENO"; then :
4400
4401 else
4402 # Broken: fails on valid input.
4403 continue
4404 fi
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4406
4407 # OK, works on sane cases. Now check whether nonexistent headers
4408 # can be detected and how.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <ac_nonexistent.h>
4412 _ACEOF
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414 # Broken: success on invalid input.
4415 continue
4416 else
4417 # Passes both tests.
4418 ac_preproc_ok=:
4419 break
4420 fi
4421 rm -f conftest.err conftest.i conftest.$ac_ext
4422
4423 done
4424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425 rm -f conftest.i conftest.err conftest.$ac_ext
4426 if $ac_preproc_ok; then :
4427 break
4428 fi
4429
4430 done
4431 ac_cv_prog_CPP=$CPP
4432
4433 fi
4434 CPP=$ac_cv_prog_CPP
4435 else
4436 ac_cv_prog_CPP=$CPP
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4439 $as_echo "$CPP" >&6; }
4440 ac_preproc_ok=false
4441 for ac_c_preproc_warn_flag in '' yes
4442 do
4443 # Use a header file that comes with gcc, so configuring glibc
4444 # with a fresh cross-compiler works.
4445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 # <limits.h> exists even on freestanding compilers.
4447 # On the NeXT, cc -E runs the code through the compiler's parser,
4448 # not just through cpp. "Syntax error" is here to catch this case.
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #ifdef __STDC__
4452 # include <limits.h>
4453 #else
4454 # include <assert.h>
4455 #endif
4456 Syntax error
4457 _ACEOF
4458 if ac_fn_c_try_cpp "$LINENO"; then :
4459
4460 else
4461 # Broken: fails on valid input.
4462 continue
4463 fi
4464 rm -f conftest.err conftest.i conftest.$ac_ext
4465
4466 # OK, works on sane cases. Now check whether nonexistent headers
4467 # can be detected and how.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <ac_nonexistent.h>
4471 _ACEOF
4472 if ac_fn_c_try_cpp "$LINENO"; then :
4473 # Broken: success on invalid input.
4474 continue
4475 else
4476 # Passes both tests.
4477 ac_preproc_ok=:
4478 break
4479 fi
4480 rm -f conftest.err conftest.i conftest.$ac_ext
4481
4482 done
4483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484 rm -f conftest.i conftest.err conftest.$ac_ext
4485 if $ac_preproc_ok; then :
4486
4487 else
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4491 See \`config.log' for more details" "$LINENO" 5; }
4492 fi
4493
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4502 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4503 set x ${MAKE-make}
4504 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4505 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 cat >conftest.make <<\_ACEOF
4509 SHELL = /bin/sh
4510 all:
4511 @echo '@@@%%%=$(MAKE)=@@@%%%'
4512 _ACEOF
4513 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4514 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4515 *@@@%%%=?*=@@@%%%*)
4516 eval ac_cv_prog_make_${ac_make}_set=yes;;
4517 *)
4518 eval ac_cv_prog_make_${ac_make}_set=no;;
4519 esac
4520 rm -f conftest.make
4521 fi
4522 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4524 $as_echo "yes" >&6; }
4525 SET_MAKE=
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 SET_MAKE="MAKE=${MAKE-make}"
4530 fi
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4533 $as_echo_n "checking whether ln -s works... " >&6; }
4534 LN_S=$as_ln_s
4535 if test "$LN_S" = "ln -s"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537 $as_echo "yes" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4540 $as_echo "no, using $LN_S" >&6; }
4541 fi
4542
4543
4544 if test -n "$ac_tool_prefix"; then
4545 for ac_prog in ar lib "link -lib"
4546 do
4547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_AR+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$AR"; then
4555 ac_cv_prog_AR="$AR" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568 done
4569 done
4570 IFS=$as_save_IFS
4571
4572 fi
4573 fi
4574 AR=$ac_cv_prog_AR
4575 if test -n "$AR"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4577 $as_echo "$AR" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582
4583
4584 test -n "$AR" && break
4585 done
4586 fi
4587 if test -z "$AR"; then
4588 ac_ct_AR=$AR
4589 for ac_prog in ar lib "link -lib"
4590 do
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$ac_ct_AR"; then
4599 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_ac_ct_AR="$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4619 if test -n "$ac_ct_AR"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4621 $as_echo "$ac_ct_AR" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625 fi
4626
4627
4628 test -n "$ac_ct_AR" && break
4629 done
4630
4631 if test "x$ac_ct_AR" = x; then
4632 AR="false"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 AR=$ac_ct_AR
4641 fi
4642 fi
4643
4644 : ${AR=ar}
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4647 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4648 if ${am_cv_ar_interface+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656
4657 am_cv_ar_interface=ar
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 int some_variable = 0;
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4665 (eval $am_ar_try) 2>&5
4666 ac_status=$?
4667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }
4669 if test "$ac_status" -eq 0; then
4670 am_cv_ar_interface=ar
4671 else
4672 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4674 (eval $am_ar_try) 2>&5
4675 ac_status=$?
4676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; }
4678 if test "$ac_status" -eq 0; then
4679 am_cv_ar_interface=lib
4680 else
4681 am_cv_ar_interface=unknown
4682 fi
4683 fi
4684 rm -f conftest.lib libconftest.a
4685
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4696 $as_echo "$am_cv_ar_interface" >&6; }
4697
4698 case $am_cv_ar_interface in
4699 ar)
4700 ;;
4701 lib)
4702 # Microsoft lib, so override with the ar-lib wrapper script.
4703 # FIXME: It is wrong to rewrite AR.
4704 # But if we don't then we get into trouble of one sort or another.
4705 # A longer-term fix would be to have automake use am__AR in this case,
4706 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4707 # similar.
4708 AR="$am_aux_dir/ar-lib $AR"
4709 ;;
4710 unknown)
4711 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4712 ;;
4713 esac
4714
4715
4716 # Check if LD supports linker scripts,
4717 # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
4718 # Check whether --enable-ld-version-script was given.
4719 if test "${enable_ld_version_script+set}" = set; then :
4720 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4721 fi
4722
4723 if test -z "$have_ld_version_script"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4725 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4726 save_LDFLAGS="$LDFLAGS"
4727 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4728 cat > conftest.map <<EOF
4729 VERS_1 {
4730 global: sym;
4731 };
4732
4733 VERS_2 {
4734 global: sym;
4735 } VERS_1;
4736 EOF
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739
4740 int
4741 main ()
4742 {
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_link "$LINENO"; then :
4749 have_ld_version_script=yes
4750 else
4751 have_ld_version_script=no
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext \
4754 conftest$ac_exeext conftest.$ac_ext
4755 rm -f conftest.map
4756 LDFLAGS="$save_LDFLAGS"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4758 $as_echo "$have_ld_version_script" >&6; }
4759 fi
4760 if test "$have_ld_version_script" = "yes"; then
4761 HAVE_LD_VERSION_SCRIPT_TRUE=
4762 HAVE_LD_VERSION_SCRIPT_FALSE='#'
4763 else
4764 HAVE_LD_VERSION_SCRIPT_TRUE='#'
4765 HAVE_LD_VERSION_SCRIPT_FALSE=
4766 fi
4767
4768
4769 # See if compiler supports prototypes.
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4771 $as_echo_n "checking for function prototypes... " >&6; }
4772 if ${ijg_cv_have_prototypes+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 int testfunction (int arg1, int * arg2); /* check prototypes */
4779 struct methods_struct { /* check method-pointer declarations */
4780 int (*error_exit) (char *msgtext);
4781 int (*trace_message) (char *msgtext);
4782 int (*another_method) (void);
4783 };
4784 int testfunction (int arg1, int * arg2) /* check definitions */
4785 { return arg2[arg1]; }
4786 int test2function (void) /* check void arg list */
4787 { return 0; }
4788
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791 ijg_cv_have_prototypes=yes
4792 else
4793 ijg_cv_have_prototypes=no
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
4799 $as_echo "$ijg_cv_have_prototypes" >&6; }
4800 if test $ijg_cv_have_prototypes = yes; then
4801
4802 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
4803
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not seem to know about function prototypes.
4806 Perhaps it needs a special switch to enable ANSI C mode.
4807 If so, we recommend running configure like this:
4808 ./configure CC='cc -switch'
4809 where -switch is the proper switch." >&5
4810 $as_echo "$as_me: WARNING: Your compiler does not seem to know about function prototypes.
4811 Perhaps it needs a special switch to enable ANSI C mode.
4812 If so, we recommend running configure like this:
4813 ./configure CC='cc -switch'
4814 where -switch is the proper switch." >&2;}
4815 fi
4816
4817 # Check header files
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4820 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4821 if ${ac_cv_path_GREP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -z "$GREP"; then
4825 ac_path_GREP_found=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_prog in grep ggrep; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4835 as_fn_executable_p "$ac_path_GREP" || continue
4836 # Check for GNU ac_path_GREP and select it if it is found.
4837 # Check for GNU $ac_path_GREP
4838 case `"$ac_path_GREP" --version 2>&1` in
4839 *GNU*)
4840 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4841 *)
4842 ac_count=0
4843 $as_echo_n 0123456789 >"conftest.in"
4844 while :
4845 do
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo 'GREP' >> "conftest.nl"
4850 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_GREP="$ac_path_GREP"
4856 ac_path_GREP_max=$ac_count
4857 fi
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4860 done
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864 $ac_path_GREP_found && break 3
4865 done
4866 done
4867 done
4868 IFS=$as_save_IFS
4869 if test -z "$ac_cv_path_GREP"; then
4870 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4871 fi
4872 else
4873 ac_cv_path_GREP=$GREP
4874 fi
4875
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4878 $as_echo "$ac_cv_path_GREP" >&6; }
4879 GREP="$ac_cv_path_GREP"
4880
4881
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4883 $as_echo_n "checking for egrep... " >&6; }
4884 if ${ac_cv_path_EGREP+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4888 then ac_cv_path_EGREP="$GREP -E"
4889 else
4890 if test -z "$EGREP"; then
4891 ac_path_EGREP_found=false
4892 # Loop through the user's path and test for each of PROGNAME-LIST
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_prog in egrep; do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4901 as_fn_executable_p "$ac_path_EGREP" || continue
4902 # Check for GNU ac_path_EGREP and select it if it is found.
4903 # Check for GNU $ac_path_EGREP
4904 case `"$ac_path_EGREP" --version 2>&1` in
4905 *GNU*)
4906 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4907 *)
4908 ac_count=0
4909 $as_echo_n 0123456789 >"conftest.in"
4910 while :
4911 do
4912 cat "conftest.in" "conftest.in" >"conftest.tmp"
4913 mv "conftest.tmp" "conftest.in"
4914 cp "conftest.in" "conftest.nl"
4915 $as_echo 'EGREP' >> "conftest.nl"
4916 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4918 as_fn_arith $ac_count + 1 && ac_count=$as_val
4919 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4920 # Best one so far, save it but keep looking for a better one
4921 ac_cv_path_EGREP="$ac_path_EGREP"
4922 ac_path_EGREP_max=$ac_count
4923 fi
4924 # 10*(2^10) chars as input seems more than enough
4925 test $ac_count -gt 10 && break
4926 done
4927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4928 esac
4929
4930 $ac_path_EGREP_found && break 3
4931 done
4932 done
4933 done
4934 IFS=$as_save_IFS
4935 if test -z "$ac_cv_path_EGREP"; then
4936 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4937 fi
4938 else
4939 ac_cv_path_EGREP=$EGREP
4940 fi
4941
4942 fi
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4945 $as_echo "$ac_cv_path_EGREP" >&6; }
4946 EGREP="$ac_cv_path_EGREP"
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4950 $as_echo_n "checking for ANSI C header files... " >&6; }
4951 if ${ac_cv_header_stdc+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #include <stdlib.h>
4957 #include <stdarg.h>
4958 #include <string.h>
4959 #include <float.h>
4960
4961 int
4962 main ()
4963 {
4964
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 ac_cv_header_stdc=yes
4971 else
4972 ac_cv_header_stdc=no
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975
4976 if test $ac_cv_header_stdc = yes; then
4977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #include <string.h>
4981
4982 _ACEOF
4983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984 $EGREP "memchr" >/dev/null 2>&1; then :
4985
4986 else
4987 ac_cv_header_stdc=no
4988 fi
4989 rm -f conftest*
4990
4991 fi
4992
4993 if test $ac_cv_header_stdc = yes; then
4994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #include <stdlib.h>
4998
4999 _ACEOF
5000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5001 $EGREP "free" >/dev/null 2>&1; then :
5002
5003 else
5004 ac_cv_header_stdc=no
5005 fi
5006 rm -f conftest*
5007
5008 fi
5009
5010 if test $ac_cv_header_stdc = yes; then
5011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5012 if test "$cross_compiling" = yes; then :
5013 :
5014 else
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #include <ctype.h>
5018 #include <stdlib.h>
5019 #if ((' ' & 0x0FF) == 0x020)
5020 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5021 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5022 #else
5023 # define ISLOWER(c) \
5024 (('a' <= (c) && (c) <= 'i') \
5025 || ('j' <= (c) && (c) <= 'r') \
5026 || ('s' <= (c) && (c) <= 'z'))
5027 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5028 #endif
5029
5030 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5031 int
5032 main ()
5033 {
5034 int i;
5035 for (i = 0; i < 256; i++)
5036 if (XOR (islower (i), ISLOWER (i))
5037 || toupper (i) != TOUPPER (i))
5038 return 2;
5039 return 0;
5040 }
5041 _ACEOF
5042 if ac_fn_c_try_run "$LINENO"; then :
5043
5044 else
5045 ac_cv_header_stdc=no
5046 fi
5047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5048 conftest.$ac_objext conftest.beam conftest.$ac_ext
5049 fi
5050
5051 fi
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5054 $as_echo "$ac_cv_header_stdc" >&6; }
5055 if test $ac_cv_header_stdc = yes; then
5056
5057 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5058
5059 fi
5060
5061 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5062 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5063 inttypes.h stdint.h unistd.h
5064 do :
5065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5066 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5067 "
5068 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5069 cat >>confdefs.h <<_ACEOF
5070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5071 _ACEOF
5072
5073 fi
5074
5075 done
5076
5077
5078 for ac_header in stddef.h stdlib.h locale.h
5079 do :
5080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5082 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5083 cat >>confdefs.h <<_ACEOF
5084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5085 _ACEOF
5086
5087 fi
5088
5089 done
5090
5091 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5092 if test "x$ac_cv_header_string_h" = xyes; then :
5093
5094 else
5095
5096 $as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
5097
5098 fi
5099
5100
5101
5102 # See whether type size_t is defined in any ANSI-standard places;
5103 # if not, perhaps it is defined in <sys/types.h>.
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
5105 $as_echo_n "checking for size_t... " >&6; }
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108
5109 #ifdef HAVE_STDDEF_H
5110 #include <stddef.h>
5111 #endif
5112 #ifdef HAVE_STDLIB_H
5113 #include <stdlib.h>
5114 #endif
5115 #include <stdio.h>
5116 #ifdef NEED_BSD_STRINGS
5117 #include <strings.h>
5118 #else
5119 #include <string.h>
5120 #endif
5121 typedef size_t my_size_t;
5122
5123 int
5124 main ()
5125 {
5126 my_size_t foovar;
5127 ;
5128 return 0;
5129 }
5130 _ACEOF
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 ijg_size_t_ok=yes
5133 else
5134 ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5138 $as_echo "$ijg_size_t_ok" >&6; }
5139 if test "$ijg_size_t_ok" != yes; then
5140 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5141 if test "x$ac_cv_header_sys_types_h" = xyes; then :
5142
5143 $as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
5144
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <sys/types.h>
5148 _ACEOF
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "size_t" >/dev/null 2>&1; then :
5151 ijg_size_t_ok="size_t is in sys/types.h"
5152 else
5153 ijg_size_t_ok=no
5154 fi
5155 rm -f conftest*
5156
5157 else
5158 ijg_size_t_ok=no
5159 fi
5160
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5163 $as_echo "$ijg_size_t_ok" >&6; }
5164 if test "$ijg_size_t_ok" = no; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Type size_t is not defined in any of the usual places.
5166 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&5
5167 $as_echo "$as_me: WARNING: Type size_t is not defined in any of the usual places.
5168 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&2;}
5169 fi
5170 fi
5171
5172 # Check compiler characteristics
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
5174 $as_echo_n "checking for type unsigned char... " >&6; }
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177
5178 int
5179 main ()
5180 {
5181 unsigned char un_char;
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 $as_echo "yes" >&6; }
5189
5190 $as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
5191
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
5199 $as_echo_n "checking for type unsigned short... " >&6; }
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202
5203 int
5204 main ()
5205 {
5206 unsigned short un_short;
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_compile "$LINENO"; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213 $as_echo "yes" >&6; }
5214
5215 $as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
5216
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
5224 $as_echo_n "checking for type void... " >&6; }
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227
5228 /* Caution: a C++ compiler will insist on valid prototypes */
5229 typedef void * void_ptr; /* check void * */
5230 #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
5231 typedef void (*void_func) (int a, int b);
5232 #else
5233 typedef void (*void_func) ();
5234 #endif
5235
5236 #ifdef HAVE_PROTOTYPES /* check void function result */
5237 void test3function (void_ptr arg1, void_func arg2)
5238 #else
5239 void test3function (arg1, arg2)
5240 void_ptr arg1;
5241 void_func arg2;
5242 #endif
5243 {
5244 char * locptr = (char *) arg1; /* check casting to and from void * */
5245 arg1 = (void *) locptr;
5246 (*arg2) (1, 2); /* check call of fcn returning void */
5247 }
5248
5249 int
5250 main ()
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259 $as_echo "yes" >&6; }
5260 else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263
5264 $as_echo "#define void char" >>confdefs.h
5265
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5269 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5270 if ${ac_cv_c_const+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275
5276 int
5277 main ()
5278 {
5279
5280 #ifndef __cplusplus
5281 /* Ultrix mips cc rejects this sort of thing. */
5282 typedef int charset[2];
5283 const charset cs = { 0, 0 };
5284 /* SunOS 4.1.1 cc rejects this. */
5285 char const *const *pcpcc;
5286 char **ppc;
5287 /* NEC SVR4.0.2 mips cc rejects this. */
5288 struct point {int x, y;};
5289 static struct point const zero = {0,0};
5290 /* AIX XL C 1.02.0.0 rejects this.
5291 It does not let you subtract one const X* pointer from another in
5292 an arm of an if-expression whose if-part is not a constant
5293 expression */
5294 const char *g = "string";
5295 pcpcc = &g + (g ? g-g : 0);
5296 /* HPUX 7.0 cc rejects these. */
5297 ++pcpcc;
5298 ppc = (char**) pcpcc;
5299 pcpcc = (char const *const *) ppc;
5300 { /* SCO 3.2v4 cc rejects this sort of thing. */
5301 char tx;
5302 char *t = &tx;
5303 char const *s = 0 ? (char *) 0 : (char const *) 0;
5304
5305 *t++ = 0;
5306 if (s) return 0;
5307 }
5308 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5309 int x[] = {25, 17};
5310 const int *foo = &x[0];
5311 ++foo;
5312 }
5313 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5314 typedef const int *iptr;
5315 iptr p = 0;
5316 ++p;
5317 }
5318 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5319 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5320 struct s { int j; const int *ap[3]; } bx;
5321 struct s *b = &bx; b->j = 5;
5322 }
5323 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5324 const int foo = 10;
5325 if (!foo) return 0;
5326 }
5327 return !cs[0] && !zero.x;
5328 #endif
5329
5330 ;
5331 return 0;
5332 }
5333 _ACEOF
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 ac_cv_c_const=yes
5336 else
5337 ac_cv_c_const=no
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5342 $as_echo "$ac_cv_c_const" >&6; }
5343 if test $ac_cv_c_const = no; then
5344
5345 $as_echo "#define const /**/" >>confdefs.h
5346
5347 fi
5348
5349
5350 # Check for non-broken inline under various spellings
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5352 $as_echo_n "checking for inline... " >&6; }
5353 ijg_cv_inline=""
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356
5357 int
5358 main ()
5359 {
5360 } __inline__ int foo() { return 0; }
5361 int bar() { return foo();
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 ijg_cv_inline="__inline__"
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371
5372 int
5373 main ()
5374 {
5375 } __inline int foo() { return 0; }
5376 int bar() { return foo();
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ijg_cv_inline="__inline"
5383 else
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386
5387 int
5388 main ()
5389 {
5390 } inline int foo() { return 0; }
5391 int bar() { return foo();
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"; then :
5397 ijg_cv_inline="inline"
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
5405 $as_echo "$ijg_cv_inline" >&6; }
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define INLINE $ijg_cv_inline
5409 _ACEOF
5410
5411
5412 # We cannot check for bogus warnings, but at least we can check for errors
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
5414 $as_echo_n "checking for broken incomplete types... " >&6; }
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 typedef struct undefined_structure * undef_struct_ptr;
5418 int
5419 main ()
5420 {
5421
5422 ;
5423 return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5428 $as_echo "ok" >&6; }
5429 else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5431 $as_echo "broken" >&6; }
5432
5433 $as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
5434
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437
5438 # Test whether global names are unique to at least 15 chars
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
5440 $as_echo_n "checking for short external names... " >&6; }
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443
5444 int possibly_duplicate_function () { return 0; }
5445 int possibly_dupli_function () { return 1; }
5446
5447 int
5448 main ()
5449 {
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_link "$LINENO"; then :
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5457 $as_echo "ok" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
5460 $as_echo "short" >&6; }
5461
5462 $as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
5463
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext \
5466 conftest$ac_exeext conftest.$ac_ext
5467
5468 # Run-time checks
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
5470 $as_echo_n "checking to see if char is signed... " >&6; }
5471 if test "$cross_compiling" = yes; then :
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming that char is signed on target machine.
5473 If it is unsigned, this will be a little bit inefficient." >&5
5474 $as_echo "$as_me: WARNING: Assuming that char is signed on target machine.
5475 If it is unsigned, this will be a little bit inefficient." >&2;}
5476
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480
5481 #ifdef HAVE_STDLIB_H
5482 #include <stdlib.h>
5483 #endif
5484 #include <stdio.h>
5485 #ifdef HAVE_PROTOTYPES
5486 int is_char_signed (int arg)
5487 #else
5488 int is_char_signed (arg)
5489 int arg;
5490 #endif
5491 {
5492 if (arg == 189) { /* expected result for unsigned char */
5493 return 0; /* type char is unsigned */
5494 }
5495 else if (arg != -67) { /* expected result for signed char */
5496 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
5497 printf("I fear the JPEG software will not work at all.\n\n");
5498 }
5499 return 1; /* assume char is signed otherwise */
5500 }
5501 char signed_char_check = (char) (-67);
5502 int main() {
5503 exit(is_char_signed((int) signed_char_check));
5504 }
5505 _ACEOF
5506 if ac_fn_c_try_run "$LINENO"; then :
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509
5510 $as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
5511
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5515 fi
5516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5517 conftest.$ac_objext conftest.beam conftest.$ac_ext
5518 fi
5519
5520
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
5522 $as_echo_n "checking to see if right shift is signed... " >&6; }
5523 if test "$cross_compiling" = yes; then :
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
5525 $as_echo "Assuming that right shift is signed on target machine." >&6; }
5526 else
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529
5530 #ifdef HAVE_STDLIB_H
5531 #include <stdlib.h>
5532 #endif
5533 #include <stdio.h>
5534 #ifdef HAVE_PROTOTYPES
5535 int is_shifting_signed (long arg)
5536 #else
5537 int is_shifting_signed (arg)
5538 long arg;
5539 #endif
5540 /* See whether right-shift on a long is signed or not. */
5541 {
5542 long res = arg >> 4;
5543
5544 if (res == -0x7F7E80CL) { /* expected result for signed shift */
5545 return 1; /* right shift is signed */
5546 }
5547 /* see if unsigned-shift hack will fix it. */
5548 /* we can't just test exact value since it depends on width of long... */
5549 res |= (~0L) << (32-4);
5550 if (res == -0x7F7E80CL) { /* expected result now? */
5551 return 0; /* right shift is unsigned */
5552 }
5553 printf("Right shift isn't acting as I expect it to.\n");
5554 printf("I fear the JPEG software will not work at all.\n\n");
5555 return 0; /* try it with unsigned anyway */
5556 }
5557 int main() {
5558 exit(is_shifting_signed(-0x7F7E80B1L));
5559 }
5560 _ACEOF
5561 if ac_fn_c_try_run "$LINENO"; then :
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564
5565 $as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
5566
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 $as_echo "yes" >&6; }
5570 fi
5571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5572 conftest.$ac_objext conftest.beam conftest.$ac_ext
5573 fi
5574
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
5577 $as_echo_n "checking to see if fopen accepts b spec... " >&6; }
5578 if test "$cross_compiling" = yes; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
5580 $as_echo "Assuming that it does." >&6; }
5581 else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584
5585 #ifdef HAVE_STDLIB_H
5586 #include <stdlib.h>
5587 #endif
5588 #include <stdio.h>
5589 int main() {
5590 if (fopen("conftestdata", "wb") != NULL)
5591 exit(0);
5592 exit(1);
5593 }
5594 _ACEOF
5595 if ac_fn_c_try_run "$LINENO"; then :
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5597 $as_echo "yes" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601
5602 $as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
5603
5604 fi
5605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5606 conftest.$ac_objext conftest.beam conftest.$ac_ext
5607 fi
5608
5609
5610 # Configure libtool
5611 enable_win32_dll=yes
5612
5613 case $host in
5614 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5615 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}as; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_AS+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$AS"; then
5624 ac_cv_prog_AS="$AS" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_AS="${ac_tool_prefix}as"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637 done
5638 done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 AS=$ac_cv_prog_AS
5644 if test -n "$AS"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5646 $as_echo "$AS" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653 fi
5654 if test -z "$ac_cv_prog_AS"; then
5655 ac_ct_AS=$AS
5656 # Extract the first word of "as", so it can be a program name with args.
5657 set dummy as; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$ac_ct_AS"; then
5664 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_ac_ct_AS="as"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677 done
5678 done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5684 if test -n "$ac_ct_AS"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5686 $as_echo "$ac_ct_AS" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692 if test "x$ac_ct_AS" = x; then
5693 AS="false"
5694 else
5695 case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701 AS=$ac_ct_AS
5702 fi
5703 else
5704 AS="$ac_cv_prog_AS"
5705 fi
5706
5707 if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5709 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_DLLTOOL+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$DLLTOOL"; then
5716 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729 done
5730 done
5731 IFS=$as_save_IFS
5732
5733 fi
5734 fi
5735 DLLTOOL=$ac_cv_prog_DLLTOOL
5736 if test -n "$DLLTOOL"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5738 $as_echo "$DLLTOOL" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745 fi
5746 if test -z "$ac_cv_prog_DLLTOOL"; then
5747 ac_ct_DLLTOOL=$DLLTOOL
5748 # Extract the first word of "dlltool", so it can be a program name with args.
5749 set dummy dlltool; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 if test -n "$ac_ct_DLLTOOL"; then
5756 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769 done
5770 done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5776 if test -n "$ac_ct_DLLTOOL"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5778 $as_echo "$ac_ct_DLLTOOL" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784 if test "x$ac_ct_DLLTOOL" = x; then
5785 DLLTOOL="false"
5786 else
5787 case $cross_compiling:$ac_tool_warned in
5788 yes:)
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793 DLLTOOL=$ac_ct_DLLTOOL
5794 fi
5795 else
5796 DLLTOOL="$ac_cv_prog_DLLTOOL"
5797 fi
5798
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_OBJDUMP+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if test -n "$OBJDUMP"; then
5808 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 OBJDUMP=$ac_cv_prog_OBJDUMP
5828 if test -n "$OBJDUMP"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5830 $as_echo "$OBJDUMP" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837 fi
5838 if test -z "$ac_cv_prog_OBJDUMP"; then
5839 ac_ct_OBJDUMP=$OBJDUMP
5840 # Extract the first word of "objdump", so it can be a program name with args.
5841 set dummy objdump; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if test -n "$ac_ct_OBJDUMP"; then
5848 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5868 if test -n "$ac_ct_OBJDUMP"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5870 $as_echo "$ac_ct_OBJDUMP" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876 if test "x$ac_ct_OBJDUMP" = x; then
5877 OBJDUMP="false"
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5884 esac
5885 OBJDUMP=$ac_ct_OBJDUMP
5886 fi
5887 else
5888 OBJDUMP="$ac_cv_prog_OBJDUMP"
5889 fi
5890
5891 ;;
5892 esac
5893
5894 test -z "$AS" && AS=as
5895
5896
5897
5898
5899
5900 test -z "$DLLTOOL" && DLLTOOL=dlltool
5901
5902
5903
5904
5905
5906 test -z "$OBJDUMP" && OBJDUMP=objdump
5907
5908
5909
5910
5911
5912
5913
5914 case `pwd` in
5915 *\ * | *\ *)
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5917 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5918 esac
5919
5920
5921
5922 macro_version='2.4.6'
5923 macro_revision='2.4.6'
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937 ltmain=$ac_aux_dir/ltmain.sh
5938
5939 # Backslashify metacharacters that are still active within
5940 # double-quoted strings.
5941 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5942
5943 # Same as above, but do not quote variable references.
5944 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5945
5946 # Sed substitution to delay expansion of an escaped shell variable in a
5947 # double_quote_subst'ed string.
5948 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5949
5950 # Sed substitution to delay expansion of an escaped single quote.
5951 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5952
5953 # Sed substitution to avoid accidental globbing in evaled expressions
5954 no_glob_subst='s/\*/\\\*/g'
5955
5956 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5961 $as_echo_n "checking how to print strings... " >&6; }
5962 # Test print first, because it will be a builtin if present.
5963 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5965 ECHO='print -r --'
5966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5967 ECHO='printf %s\n'
5968 else
5969 # Use this function as a fallback that always works.
5970 func_fallback_echo ()
5971 {
5972 eval 'cat <<_LTECHO_EOF
5973 $1
5974 _LTECHO_EOF'
5975 }
5976 ECHO='func_fallback_echo'
5977 fi
5978
5979 # func_echo_all arg...
5980 # Invoke $ECHO with all args, space-separated.
5981 func_echo_all ()
5982 {
5983 $ECHO ""
5984 }
5985
5986 case $ECHO in
5987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5988 $as_echo "printf" >&6; } ;;
5989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5990 $as_echo "print -r" >&6; } ;;
5991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5992 $as_echo "cat" >&6; } ;;
5993 esac
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6009 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6010 if ${ac_cv_path_SED+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6014 for ac_i in 1 2 3 4 5 6 7; do
6015 ac_script="$ac_script$as_nl$ac_script"
6016 done
6017 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6018 { ac_script=; unset ac_script;}
6019 if test -z "$SED"; then
6020 ac_path_SED_found=false
6021 # Loop through the user's path and test for each of PROGNAME-LIST
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_prog in sed gsed; do
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6030 as_fn_executable_p "$ac_path_SED" || continue
6031 # Check for GNU ac_path_SED and select it if it is found.
6032 # Check for GNU $ac_path_SED
6033 case `"$ac_path_SED" --version 2>&1` in
6034 *GNU*)
6035 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6036 *)
6037 ac_count=0
6038 $as_echo_n 0123456789 >"conftest.in"
6039 while :
6040 do
6041 cat "conftest.in" "conftest.in" >"conftest.tmp"
6042 mv "conftest.tmp" "conftest.in"
6043 cp "conftest.in" "conftest.nl"
6044 $as_echo '' >> "conftest.nl"
6045 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6047 as_fn_arith $ac_count + 1 && ac_count=$as_val
6048 if test $ac_count -gt ${ac_path_SED_max-0}; then
6049 # Best one so far, save it but keep looking for a better one
6050 ac_cv_path_SED="$ac_path_SED"
6051 ac_path_SED_max=$ac_count
6052 fi
6053 # 10*(2^10) chars as input seems more than enough
6054 test $ac_count -gt 10 && break
6055 done
6056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6057 esac
6058
6059 $ac_path_SED_found && break 3
6060 done
6061 done
6062 done
6063 IFS=$as_save_IFS
6064 if test -z "$ac_cv_path_SED"; then
6065 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6066 fi
6067 else
6068 ac_cv_path_SED=$SED
6069 fi
6070
6071 fi
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6073 $as_echo "$ac_cv_path_SED" >&6; }
6074 SED="$ac_cv_path_SED"
6075 rm -f conftest.sed
6076
6077 test -z "$SED" && SED=sed
6078 Xsed="$SED -e 1s/^X//"
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6091 $as_echo_n "checking for fgrep... " >&6; }
6092 if ${ac_cv_path_FGREP+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6096 then ac_cv_path_FGREP="$GREP -F"
6097 else
6098 if test -z "$FGREP"; then
6099 ac_path_FGREP_found=false
6100 # Loop through the user's path and test for each of PROGNAME-LIST
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6103 do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_prog in fgrep; do
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6109 as_fn_executable_p "$ac_path_FGREP" || continue
6110 # Check for GNU ac_path_FGREP and select it if it is found.
6111 # Check for GNU $ac_path_FGREP
6112 case `"$ac_path_FGREP" --version 2>&1` in
6113 *GNU*)
6114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6115 *)
6116 ac_count=0
6117 $as_echo_n 0123456789 >"conftest.in"
6118 while :
6119 do
6120 cat "conftest.in" "conftest.in" >"conftest.tmp"
6121 mv "conftest.tmp" "conftest.in"
6122 cp "conftest.in" "conftest.nl"
6123 $as_echo 'FGREP' >> "conftest.nl"
6124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6126 as_fn_arith $ac_count + 1 && ac_count=$as_val
6127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6128 # Best one so far, save it but keep looking for a better one
6129 ac_cv_path_FGREP="$ac_path_FGREP"
6130 ac_path_FGREP_max=$ac_count
6131 fi
6132 # 10*(2^10) chars as input seems more than enough
6133 test $ac_count -gt 10 && break
6134 done
6135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6136 esac
6137
6138 $ac_path_FGREP_found && break 3
6139 done
6140 done
6141 done
6142 IFS=$as_save_IFS
6143 if test -z "$ac_cv_path_FGREP"; then
6144 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6145 fi
6146 else
6147 ac_cv_path_FGREP=$FGREP
6148 fi
6149
6150 fi
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6153 $as_echo "$ac_cv_path_FGREP" >&6; }
6154 FGREP="$ac_cv_path_FGREP"
6155
6156
6157 test -z "$GREP" && GREP=grep
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 # Check whether --with-gnu-ld was given.
6178 if test "${with_gnu_ld+set}" = set; then :
6179 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6180 else
6181 with_gnu_ld=no
6182 fi
6183
6184 ac_prog=ld
6185 if test yes = "$GCC"; then
6186 # Check if gcc -print-prog-name=ld gives a path.
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6188 $as_echo_n "checking for ld used by $CC... " >&6; }
6189 case $host in
6190 *-*-mingw*)
6191 # gcc leaves a trailing carriage return, which upsets mingw
6192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6193 *)
6194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6195 esac
6196 case $ac_prog in
6197 # Accept absolute paths.
6198 [\\/]* | ?:[\\/]*)
6199 re_direlt='/[^/][^/]*/\.\./'
6200 # Canonicalize the pathname of ld
6201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6204 done
6205 test -z "$LD" && LD=$ac_prog
6206 ;;
6207 "")
6208 # If it fails, then pretend we aren't using GCC.
6209 ac_prog=ld
6210 ;;
6211 *)
6212 # If it is relative, then search for the first ld in PATH.
6213 with_gnu_ld=unknown
6214 ;;
6215 esac
6216 elif test yes = "$with_gnu_ld"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6218 $as_echo_n "checking for GNU ld... " >&6; }
6219 else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6221 $as_echo_n "checking for non-GNU ld... " >&6; }
6222 fi
6223 if ${lt_cv_path_LD+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 if test -z "$LD"; then
6227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6228 for ac_dir in $PATH; do
6229 IFS=$lt_save_ifs
6230 test -z "$ac_dir" && ac_dir=.
6231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6232 lt_cv_path_LD=$ac_dir/$ac_prog
6233 # Check to see if the program is GNU ld. I'd rather use --version,
6234 # but apparently some variants of GNU ld only accept -v.
6235 # Break only if it was the GNU/non-GNU ld that we prefer.
6236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6237 *GNU* | *'with BFD'*)
6238 test no != "$with_gnu_ld" && break
6239 ;;
6240 *)
6241 test yes != "$with_gnu_ld" && break
6242 ;;
6243 esac
6244 fi
6245 done
6246 IFS=$lt_save_ifs
6247 else
6248 lt_cv_path_LD=$LD # Let the user override the test with a path.
6249 fi
6250 fi
6251
6252 LD=$lt_cv_path_LD
6253 if test -n "$LD"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6255 $as_echo "$LD" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6263 if ${lt_cv_prog_gnu_ld+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6267 case `$LD -v 2>&1 </dev/null` in
6268 *GNU* | *'with BFD'*)
6269 lt_cv_prog_gnu_ld=yes
6270 ;;
6271 *)
6272 lt_cv_prog_gnu_ld=no
6273 ;;
6274 esac
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6278 with_gnu_ld=$lt_cv_prog_gnu_ld
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6290 if ${lt_cv_path_NM+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -n "$NM"; then
6294 # Let the user override the test.
6295 lt_cv_path_NM=$NM
6296 else
6297 lt_nm_to_check=${ac_tool_prefix}nm
6298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6299 lt_nm_to_check="$lt_nm_to_check nm"
6300 fi
6301 for lt_tmp_nm in $lt_nm_to_check; do
6302 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6304 IFS=$lt_save_ifs
6305 test -z "$ac_dir" && ac_dir=.
6306 tmp_nm=$ac_dir/$lt_tmp_nm
6307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6308 # Check to see if the nm accepts a BSD-compat flag.
6309 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6310 # nm: unknown option "B" ignored
6311 # Tru64's nm complains that /dev/null is an invalid object file
6312 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6313 case $build_os in
6314 mingw*) lt_bad_file=conftest.nm/nofile ;;
6315 *) lt_bad_file=/dev/null ;;
6316 esac
6317 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6318 *$lt_bad_file* | *'Invalid file or object type'*)
6319 lt_cv_path_NM="$tmp_nm -B"
6320 break 2
6321 ;;
6322 *)
6323 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6324 */dev/null*)
6325 lt_cv_path_NM="$tmp_nm -p"
6326 break 2
6327 ;;
6328 *)
6329 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6330 continue # so that we can try to find one that supports BSD flags
6331 ;;
6332 esac
6333 ;;
6334 esac
6335 fi
6336 done
6337 IFS=$lt_save_ifs
6338 done
6339 : ${lt_cv_path_NM=no}
6340 fi
6341 fi
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6343 $as_echo "$lt_cv_path_NM" >&6; }
6344 if test no != "$lt_cv_path_NM"; then
6345 NM=$lt_cv_path_NM
6346 else
6347 # Didn't find any BSD compatible name lister, look for dumpbin.
6348 if test -n "$DUMPBIN"; then :
6349 # Let the user override the test.
6350 else
6351 if test -n "$ac_tool_prefix"; then
6352 for ac_prog in dumpbin "link -dump"
6353 do
6354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_DUMPBIN+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 if test -n "$DUMPBIN"; then
6362 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375 done
6376 done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 DUMPBIN=$ac_cv_prog_DUMPBIN
6382 if test -n "$DUMPBIN"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6384 $as_echo "$DUMPBIN" >&6; }
6385 else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6390
6391 test -n "$DUMPBIN" && break
6392 done
6393 fi
6394 if test -z "$DUMPBIN"; then
6395 ac_ct_DUMPBIN=$DUMPBIN
6396 for ac_prog in dumpbin "link -dump"
6397 do
6398 # Extract the first word of "$ac_prog", so it can be a program name with args.
6399 set dummy $ac_prog; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$ac_ct_DUMPBIN"; then
6406 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6426 if test -n "$ac_ct_DUMPBIN"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6428 $as_echo "$ac_ct_DUMPBIN" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 test -n "$ac_ct_DUMPBIN" && break
6436 done
6437
6438 if test "x$ac_ct_DUMPBIN" = x; then
6439 DUMPBIN=":"
6440 else
6441 case $cross_compiling:$ac_tool_warned in
6442 yes:)
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6445 ac_tool_warned=yes ;;
6446 esac
6447 DUMPBIN=$ac_ct_DUMPBIN
6448 fi
6449 fi
6450
6451 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6452 *COFF*)
6453 DUMPBIN="$DUMPBIN -symbols -headers"
6454 ;;
6455 *)
6456 DUMPBIN=:
6457 ;;
6458 esac
6459 fi
6460
6461 if test : != "$DUMPBIN"; then
6462 NM=$DUMPBIN
6463 fi
6464 fi
6465 test -z "$NM" && NM=nm
6466
6467
6468
6469
6470
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6473 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6474 if ${lt_cv_nm_interface+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 lt_cv_nm_interface="BSD nm"
6478 echo "int some_variable = 0;" > conftest.$ac_ext
6479 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6480 (eval "$ac_compile" 2>conftest.err)
6481 cat conftest.err >&5
6482 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6484 cat conftest.err >&5
6485 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6486 cat conftest.out >&5
6487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6488 lt_cv_nm_interface="MS dumpbin"
6489 fi
6490 rm -f conftest*
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6493 $as_echo "$lt_cv_nm_interface" >&6; }
6494
6495 # find the maximum length of command line arguments
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6497 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6498 if ${lt_cv_sys_max_cmd_len+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 i=0
6502 teststring=ABCD
6503
6504 case $build_os in
6505 msdosdjgpp*)
6506 # On DJGPP, this test can blow up pretty badly due to problems in libc
6507 # (any single argument exceeding 2000 bytes causes a buffer overrun
6508 # during glob expansion). Even if it were fixed, the result of this
6509 # check would be larger than it should be.
6510 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6511 ;;
6512
6513 gnu*)
6514 # Under GNU Hurd, this test is not required because there is
6515 # no limit to the length of command line arguments.
6516 # Libtool will interpret -1 as no limit whatsoever
6517 lt_cv_sys_max_cmd_len=-1;
6518 ;;
6519
6520 cygwin* | mingw* | cegcc*)
6521 # On Win9x/ME, this test blows up -- it succeeds, but takes
6522 # about 5 minutes as the teststring grows exponentially.
6523 # Worse, since 9x/ME are not pre-emptively multitasking,
6524 # you end up with a "frozen" computer, even though with patience
6525 # the test eventually succeeds (with a max line length of 256k).
6526 # Instead, let's just punt: use the minimum linelength reported by
6527 # all of the supported platforms: 8192 (on NT/2K/XP).
6528 lt_cv_sys_max_cmd_len=8192;
6529 ;;
6530
6531 mint*)
6532 # On MiNT this can take a long time and run out of memory.
6533 lt_cv_sys_max_cmd_len=8192;
6534 ;;
6535
6536 amigaos*)
6537 # On AmigaOS with pdksh, this test takes hours, literally.
6538 # So we just punt and use a minimum line length of 8192.
6539 lt_cv_sys_max_cmd_len=8192;
6540 ;;
6541
6542 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6543 # This has been around since 386BSD, at least. Likely further.
6544 if test -x /sbin/sysctl; then
6545 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6546 elif test -x /usr/sbin/sysctl; then
6547 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6548 else
6549 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6550 fi
6551 # And add a safety zone
6552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6554 ;;
6555
6556 interix*)
6557 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6558 lt_cv_sys_max_cmd_len=196608
6559 ;;
6560
6561 os2*)
6562 # The test takes a long time on OS/2.
6563 lt_cv_sys_max_cmd_len=8192
6564 ;;
6565
6566 osf*)
6567 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6568 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6569 # nice to cause kernel panics so lets avoid the loop below.
6570 # First set a reasonable default.
6571 lt_cv_sys_max_cmd_len=16384
6572 #
6573 if test -x /sbin/sysconfig; then
6574 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6575 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6576 esac
6577 fi
6578 ;;
6579 sco3.2v5*)
6580 lt_cv_sys_max_cmd_len=102400
6581 ;;
6582 sysv5* | sco5v6* | sysv4.2uw2*)
6583 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6584 if test -n "$kargmax"; then
6585 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6586 else
6587 lt_cv_sys_max_cmd_len=32768
6588 fi
6589 ;;
6590 *)
6591 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6592 if test -n "$lt_cv_sys_max_cmd_len" && \
6593 test undefined != "$lt_cv_sys_max_cmd_len"; then
6594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6596 else
6597 # Make teststring a little bigger before we do anything with it.
6598 # a 1K string should be a reasonable start.
6599 for i in 1 2 3 4 5 6 7 8; do
6600 teststring=$teststring$teststring
6601 done
6602 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6603 # If test is not a shell built-in, we'll probably end up computing a
6604 # maximum length that is only half of the actual maximum length, but
6605 # we can't tell.
6606 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6607 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6608 test 17 != "$i" # 1/2 MB should be enough
6609 do
6610 i=`expr $i + 1`
6611 teststring=$teststring$teststring
6612 done
6613 # Only check the string length outside the loop.
6614 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6615 teststring=
6616 # Add a significant safety factor because C++ compilers can tack on
6617 # massive amounts of additional arguments before passing them to the
6618 # linker. It appears as though 1/2 is a usable value.
6619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6620 fi
6621 ;;
6622 esac
6623
6624 fi
6625
6626 if test -n "$lt_cv_sys_max_cmd_len"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6629 else
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6631 $as_echo "none" >&6; }
6632 fi
6633 max_cmd_len=$lt_cv_sys_max_cmd_len
6634
6635
6636
6637
6638
6639
6640 : ${CP="cp -f"}
6641 : ${MV="mv -f"}
6642 : ${RM="rm -f"}
6643
6644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6645 lt_unset=unset
6646 else
6647 lt_unset=false
6648 fi
6649
6650
6651
6652
6653
6654 # test EBCDIC or ASCII
6655 case `echo X|tr X '\101'` in
6656 A) # ASCII based system
6657 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6658 lt_SP2NL='tr \040 \012'
6659 lt_NL2SP='tr \015\012 \040\040'
6660 ;;
6661 *) # EBCDIC based system
6662 lt_SP2NL='tr \100 \n'
6663 lt_NL2SP='tr \r\n \100\100'
6664 ;;
6665 esac
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6676 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6677 if ${lt_cv_to_host_file_cmd+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 case $host in
6681 *-*-mingw* )
6682 case $build in
6683 *-*-mingw* ) # actually msys
6684 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6685 ;;
6686 *-*-cygwin* )
6687 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6688 ;;
6689 * ) # otherwise, assume *nix
6690 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6691 ;;
6692 esac
6693 ;;
6694 *-*-cygwin* )
6695 case $build in
6696 *-*-mingw* ) # actually msys
6697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6698 ;;
6699 *-*-cygwin* )
6700 lt_cv_to_host_file_cmd=func_convert_file_noop
6701 ;;
6702 * ) # otherwise, assume *nix
6703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6704 ;;
6705 esac
6706 ;;
6707 * ) # unhandled hosts (and "normal" native builds)
6708 lt_cv_to_host_file_cmd=func_convert_file_noop
6709 ;;
6710 esac
6711
6712 fi
6713
6714 to_host_file_cmd=$lt_cv_to_host_file_cmd
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6716 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6717
6718
6719
6720
6721
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6723 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6724 if ${lt_cv_to_tool_file_cmd+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 #assume ordinary cross tools, or native build.
6728 lt_cv_to_tool_file_cmd=func_convert_file_noop
6729 case $host in
6730 *-*-mingw* )
6731 case $build in
6732 *-*-mingw* ) # actually msys
6733 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6734 ;;
6735 esac
6736 ;;
6737 esac
6738
6739 fi
6740
6741 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6743 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6744
6745
6746
6747
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6750 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6751 if ${lt_cv_ld_reload_flag+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 lt_cv_ld_reload_flag='-r'
6755 fi
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6757 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6758 reload_flag=$lt_cv_ld_reload_flag
6759 case $reload_flag in
6760 "" | " "*) ;;
6761 *) reload_flag=" $reload_flag" ;;
6762 esac
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6764 case $host_os in
6765 cygwin* | mingw* | pw32* | cegcc*)
6766 if test yes != "$GCC"; then
6767 reload_cmds=false
6768 fi
6769 ;;
6770 darwin*)
6771 if test yes = "$GCC"; then
6772 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6773 else
6774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6775 fi
6776 ;;
6777 esac
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_OBJDUMP+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$OBJDUMP"; then
6796 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 OBJDUMP=$ac_cv_prog_OBJDUMP
6816 if test -n "$OBJDUMP"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6818 $as_echo "$OBJDUMP" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822 fi
6823
6824
6825 fi
6826 if test -z "$ac_cv_prog_OBJDUMP"; then
6827 ac_ct_OBJDUMP=$OBJDUMP
6828 # Extract the first word of "objdump", so it can be a program name with args.
6829 set dummy objdump; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$ac_ct_OBJDUMP"; then
6836 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6856 if test -n "$ac_ct_OBJDUMP"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6858 $as_echo "$ac_ct_OBJDUMP" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864 if test "x$ac_ct_OBJDUMP" = x; then
6865 OBJDUMP="false"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 OBJDUMP=$ac_ct_OBJDUMP
6874 fi
6875 else
6876 OBJDUMP="$ac_cv_prog_OBJDUMP"
6877 fi
6878
6879 test -z "$OBJDUMP" && OBJDUMP=objdump
6880
6881
6882
6883
6884
6885
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6887 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6888 if ${lt_cv_deplibs_check_method+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 lt_cv_file_magic_cmd='$MAGIC_CMD'
6892 lt_cv_file_magic_test_file=
6893 lt_cv_deplibs_check_method='unknown'
6894 # Need to set the preceding variable on all platforms that support
6895 # interlibrary dependencies.
6896 # 'none' -- dependencies not supported.
6897 # 'unknown' -- same as none, but documents that we really don't know.
6898 # 'pass_all' -- all dependencies passed with no checks.
6899 # 'test_compile' -- check by making test program.
6900 # 'file_magic [[regex]]' -- check by looking for files in library path
6901 # that responds to the $file_magic_cmd with a given extended regex.
6902 # If you have 'file' or equivalent on your system and you're not sure
6903 # whether 'pass_all' will *always* work, you probably want this one.
6904
6905 case $host_os in
6906 aix[4-9]*)
6907 lt_cv_deplibs_check_method=pass_all
6908 ;;
6909
6910 beos*)
6911 lt_cv_deplibs_check_method=pass_all
6912 ;;
6913
6914 bsdi[45]*)
6915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6916 lt_cv_file_magic_cmd='/usr/bin/file -L'
6917 lt_cv_file_magic_test_file=/shlib/libc.so
6918 ;;
6919
6920 cygwin*)
6921 # func_win32_libid is a shell function defined in ltmain.sh
6922 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6923 lt_cv_file_magic_cmd='func_win32_libid'
6924 ;;
6925
6926 mingw* | pw32*)
6927 # Base MSYS/MinGW do not provide the 'file' command needed by
6928 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6929 # unless we find 'file', for example because we are cross-compiling.
6930 if ( file / ) >/dev/null 2>&1; then
6931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6932 lt_cv_file_magic_cmd='func_win32_libid'
6933 else
6934 # Keep this pattern in sync with the one in func_win32_libid.
6935 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6936 lt_cv_file_magic_cmd='$OBJDUMP -f'
6937 fi
6938 ;;
6939
6940 cegcc*)
6941 # use the weaker test based on 'objdump'. See mingw*.
6942 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6943 lt_cv_file_magic_cmd='$OBJDUMP -f'
6944 ;;
6945
6946 darwin* | rhapsody*)
6947 lt_cv_deplibs_check_method=pass_all
6948 ;;
6949
6950 freebsd* | dragonfly*)
6951 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6952 case $host_cpu in
6953 i*86 )
6954 # Not sure whether the presence of OpenBSD here was a mistake.
6955 # Let's accept both of them until this is cleared up.
6956 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6957 lt_cv_file_magic_cmd=/usr/bin/file
6958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6959 ;;
6960 esac
6961 else
6962 lt_cv_deplibs_check_method=pass_all
6963 fi
6964 ;;
6965
6966 haiku*)
6967 lt_cv_deplibs_check_method=pass_all
6968 ;;
6969
6970 hpux10.20* | hpux11*)
6971 lt_cv_file_magic_cmd=/usr/bin/file
6972 case $host_cpu in
6973 ia64*)
6974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6976 ;;
6977 hppa*64*)
6978 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]'
6979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6980 ;;
6981 *)
6982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6983 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6984 ;;
6985 esac
6986 ;;
6987
6988 interix[3-9]*)
6989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6991 ;;
6992
6993 irix5* | irix6* | nonstopux*)
6994 case $LD in
6995 *-32|*"-32 ") libmagic=32-bit;;
6996 *-n32|*"-n32 ") libmagic=N32;;
6997 *-64|*"-64 ") libmagic=64-bit;;
6998 *) libmagic=never-match;;
6999 esac
7000 lt_cv_deplibs_check_method=pass_all
7001 ;;
7002
7003 # This must be glibc/ELF.
7004 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7005 lt_cv_deplibs_check_method=pass_all
7006 ;;
7007
7008 netbsd*)
7009 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7011 else
7012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7013 fi
7014 ;;
7015
7016 newos6*)
7017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7018 lt_cv_file_magic_cmd=/usr/bin/file
7019 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7020 ;;
7021
7022 *nto* | *qnx*)
7023 lt_cv_deplibs_check_method=pass_all
7024 ;;
7025
7026 openbsd* | bitrig*)
7027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7029 else
7030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7031 fi
7032 ;;
7033
7034 osf3* | osf4* | osf5*)
7035 lt_cv_deplibs_check_method=pass_all
7036 ;;
7037
7038 rdos*)
7039 lt_cv_deplibs_check_method=pass_all
7040 ;;
7041
7042 solaris*)
7043 lt_cv_deplibs_check_method=pass_all
7044 ;;
7045
7046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7047 lt_cv_deplibs_check_method=pass_all
7048 ;;
7049
7050 sysv4 | sysv4.3*)
7051 case $host_vendor in
7052 motorola)
7053 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]'
7054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7055 ;;
7056 ncr)
7057 lt_cv_deplibs_check_method=pass_all
7058 ;;
7059 sequent)
7060 lt_cv_file_magic_cmd='/bin/file'
7061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7062 ;;
7063 sni)
7064 lt_cv_file_magic_cmd='/bin/file'
7065 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7066 lt_cv_file_magic_test_file=/lib/libc.so
7067 ;;
7068 siemens)
7069 lt_cv_deplibs_check_method=pass_all
7070 ;;
7071 pc)
7072 lt_cv_deplibs_check_method=pass_all
7073 ;;
7074 esac
7075 ;;
7076
7077 tpf*)
7078 lt_cv_deplibs_check_method=pass_all
7079 ;;
7080 os2*)
7081 lt_cv_deplibs_check_method=pass_all
7082 ;;
7083 esac
7084
7085 fi
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7087 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7088
7089 file_magic_glob=
7090 want_nocaseglob=no
7091 if test "$build" = "$host"; then
7092 case $host_os in
7093 mingw* | pw32*)
7094 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7095 want_nocaseglob=yes
7096 else
7097 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7098 fi
7099 ;;
7100 esac
7101 fi
7102
7103 file_magic_cmd=$lt_cv_file_magic_cmd
7104 deplibs_check_method=$lt_cv_deplibs_check_method
7105 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_DLLTOOL+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$DLLTOOL"; then
7137 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 DLLTOOL=$ac_cv_prog_DLLTOOL
7157 if test -n "$DLLTOOL"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7159 $as_echo "$DLLTOOL" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165
7166 fi
7167 if test -z "$ac_cv_prog_DLLTOOL"; then
7168 ac_ct_DLLTOOL=$DLLTOOL
7169 # Extract the first word of "dlltool", so it can be a program name with args.
7170 set dummy dlltool; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$ac_ct_DLLTOOL"; then
7177 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7197 if test -n "$ac_ct_DLLTOOL"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7199 $as_echo "$ac_ct_DLLTOOL" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205 if test "x$ac_ct_DLLTOOL" = x; then
7206 DLLTOOL="false"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214 DLLTOOL=$ac_ct_DLLTOOL
7215 fi
7216 else
7217 DLLTOOL="$ac_cv_prog_DLLTOOL"
7218 fi
7219
7220 test -z "$DLLTOOL" && DLLTOOL=dlltool
7221
7222
7223
7224
7225
7226
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7229 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7230 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 lt_cv_sharedlib_from_linklib_cmd='unknown'
7234
7235 case $host_os in
7236 cygwin* | mingw* | pw32* | cegcc*)
7237 # two different shell functions defined in ltmain.sh;
7238 # decide which one to use based on capabilities of $DLLTOOL
7239 case `$DLLTOOL --help 2>&1` in
7240 *--identify-strict*)
7241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7242 ;;
7243 *)
7244 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7245 ;;
7246 esac
7247 ;;
7248 *)
7249 # fallback: assume linklib IS sharedlib
7250 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7251 ;;
7252 esac
7253
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7256 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7257 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7258 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7259
7260
7261
7262
7263
7264
7265
7266 if test -n "$ac_tool_prefix"; then
7267 for ac_prog in ar
7268 do
7269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_prog_AR+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 if test -n "$AR"; then
7277 ac_cv_prog_AR="$AR" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7289 fi
7290 done
7291 done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 AR=$ac_cv_prog_AR
7297 if test -n "$AR"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7299 $as_echo "$AR" >&6; }
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7303 fi
7304
7305
7306 test -n "$AR" && break
7307 done
7308 fi
7309 if test -z "$AR"; then
7310 ac_ct_AR=$AR
7311 for ac_prog in ar
7312 do
7313 # Extract the first word of "$ac_prog", so it can be a program name with args.
7314 set dummy $ac_prog; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$ac_ct_AR"; then
7321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_ac_ct_AR="$ac_prog"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338 fi
7339 fi
7340 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7341 if test -n "$ac_ct_AR"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7343 $as_echo "$ac_ct_AR" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7347 fi
7348
7349
7350 test -n "$ac_ct_AR" && break
7351 done
7352
7353 if test "x$ac_ct_AR" = x; then
7354 AR="false"
7355 else
7356 case $cross_compiling:$ac_tool_warned in
7357 yes:)
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362 AR=$ac_ct_AR
7363 fi
7364 fi
7365
7366 : ${AR=ar}
7367 : ${AR_FLAGS=cru}
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7380 $as_echo_n "checking for archiver @FILE support... " >&6; }
7381 if ${lt_cv_ar_at_file+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 lt_cv_ar_at_file=no
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387
7388 int
7389 main ()
7390 {
7391
7392 ;
7393 return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_compile "$LINENO"; then :
7397 echo conftest.$ac_objext > conftest.lst
7398 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7400 (eval $lt_ar_try) 2>&5
7401 ac_status=$?
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; }
7404 if test 0 -eq "$ac_status"; then
7405 # Ensure the archiver fails upon bogus file names.
7406 rm -f conftest.$ac_objext libconftest.a
7407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7408 (eval $lt_ar_try) 2>&5
7409 ac_status=$?
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }
7412 if test 0 -ne "$ac_status"; then
7413 lt_cv_ar_at_file=@
7414 fi
7415 fi
7416 rm -f conftest.* libconftest.a
7417
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7423 $as_echo "$lt_cv_ar_at_file" >&6; }
7424
7425 if test no = "$lt_cv_ar_at_file"; then
7426 archiver_list_spec=
7427 else
7428 archiver_list_spec=$lt_cv_ar_at_file
7429 fi
7430
7431
7432
7433
7434
7435
7436
7437 if test -n "$ac_tool_prefix"; then
7438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}strip; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_STRIP+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 if test -n "$STRIP"; then
7446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459 done
7460 done
7461 IFS=$as_save_IFS
7462
7463 fi
7464 fi
7465 STRIP=$ac_cv_prog_STRIP
7466 if test -n "$STRIP"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7468 $as_echo "$STRIP" >&6; }
7469 else
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7472 fi
7473
7474
7475 fi
7476 if test -z "$ac_cv_prog_STRIP"; then
7477 ac_ct_STRIP=$STRIP
7478 # Extract the first word of "strip", so it can be a program name with args.
7479 set dummy strip; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 if test -n "$ac_ct_STRIP"; then
7486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_ac_ct_STRIP="strip"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499 done
7500 done
7501 IFS=$as_save_IFS
7502
7503 fi
7504 fi
7505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7506 if test -n "$ac_ct_STRIP"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7508 $as_echo "$ac_ct_STRIP" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 fi
7513
7514 if test "x$ac_ct_STRIP" = x; then
7515 STRIP=":"
7516 else
7517 case $cross_compiling:$ac_tool_warned in
7518 yes:)
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521 ac_tool_warned=yes ;;
7522 esac
7523 STRIP=$ac_ct_STRIP
7524 fi
7525 else
7526 STRIP="$ac_cv_prog_STRIP"
7527 fi
7528
7529 test -z "$STRIP" && STRIP=:
7530
7531
7532
7533
7534
7535
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_RANLIB+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$RANLIB"; then
7545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 RANLIB=$ac_cv_prog_RANLIB
7565 if test -n "$RANLIB"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7567 $as_echo "$RANLIB" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_RANLIB"; then
7576 ac_ct_RANLIB=$RANLIB
7577 # Extract the first word of "ranlib", so it can be a program name with args.
7578 set dummy ranlib; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$ac_ct_RANLIB"; then
7585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_RANLIB="ranlib"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7605 if test -n "$ac_ct_RANLIB"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7607 $as_echo "$ac_ct_RANLIB" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613 if test "x$ac_ct_RANLIB" = x; then
7614 RANLIB=":"
7615 else
7616 case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622 RANLIB=$ac_ct_RANLIB
7623 fi
7624 else
7625 RANLIB="$ac_cv_prog_RANLIB"
7626 fi
7627
7628 test -z "$RANLIB" && RANLIB=:
7629
7630
7631
7632
7633
7634
7635 # Determine commands to create old-style static archives.
7636 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7637 old_postinstall_cmds='chmod 644 $oldlib'
7638 old_postuninstall_cmds=
7639
7640 if test -n "$RANLIB"; then
7641 case $host_os in
7642 bitrig* | openbsd*)
7643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7644 ;;
7645 *)
7646 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7647 ;;
7648 esac
7649 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7650 fi
7651
7652 case $host_os in
7653 darwin*)
7654 lock_old_archive_extraction=yes ;;
7655 *)
7656 lock_old_archive_extraction=no ;;
7657 esac
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 # If no C compiler was specified, use CC.
7698 LTCC=${LTCC-"$CC"}
7699
7700 # If no C compiler flags were specified, use CFLAGS.
7701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7702
7703 # Allow CC to be a program name with arguments.
7704 compiler=$CC
7705
7706
7707 # Check for command to grab the raw symbol name followed by C symbol from nm.
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7709 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7710 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713
7714 # These are sane defaults that work on at least a few old systems.
7715 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7716
7717 # Character class describing NM global symbol codes.
7718 symcode='[BCDEGRST]'
7719
7720 # Regexp to match symbols that can be accessed directly from C.
7721 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7722
7723 # Define system-specific variables.
7724 case $host_os in
7725 aix*)
7726 symcode='[BCDT]'
7727 ;;
7728 cygwin* | mingw* | pw32* | cegcc*)
7729 symcode='[ABCDGISTW]'
7730 ;;
7731 hpux*)
7732 if test ia64 = "$host_cpu"; then
7733 symcode='[ABCDEGRST]'
7734 fi
7735 ;;
7736 irix* | nonstopux*)
7737 symcode='[BCDEGRST]'
7738 ;;
7739 osf*)
7740 symcode='[BCDEGQRST]'
7741 ;;
7742 solaris*)
7743 symcode='[BDRT]'
7744 ;;
7745 sco3.2v5*)
7746 symcode='[DT]'
7747 ;;
7748 sysv4.2uw2*)
7749 symcode='[DT]'
7750 ;;
7751 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7752 symcode='[ABDT]'
7753 ;;
7754 sysv4)
7755 symcode='[DFNSTU]'
7756 ;;
7757 esac
7758
7759 # If we're using GNU nm, then use its standard symbol codes.
7760 case `$NM -V 2>&1` in
7761 *GNU* | *'with BFD'*)
7762 symcode='[ABCDGIRSTW]' ;;
7763 esac
7764
7765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7766 # Gets list of data symbols to import.
7767 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7768 # Adjust the below global symbol transforms to fixup imported variables.
7769 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7770 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7771 lt_c_name_lib_hook="\
7772 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7773 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7774 else
7775 # Disable hooks by default.
7776 lt_cv_sys_global_symbol_to_import=
7777 lt_cdecl_hook=
7778 lt_c_name_hook=
7779 lt_c_name_lib_hook=
7780 fi
7781
7782 # Transform an extracted symbol line into a proper C declaration.
7783 # Some systems (esp. on ia64) link data and code symbols differently,
7784 # so use this general approach.
7785 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7786 $lt_cdecl_hook\
7787 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7788 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7789
7790 # Transform an extracted symbol line into symbol name and symbol address
7791 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7792 $lt_c_name_hook\
7793 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7794 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7795
7796 # Transform an extracted symbol line into symbol name with lib prefix and
7797 # symbol address.
7798 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7799 $lt_c_name_lib_hook\
7800 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7801 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7802 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7803
7804 # Handle CRLF in mingw tool chain
7805 opt_cr=
7806 case $build_os in
7807 mingw*)
7808 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7809 ;;
7810 esac
7811
7812 # Try without a prefix underscore, then with it.
7813 for ac_symprfx in "" "_"; do
7814
7815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7816 symxfrm="\\1 $ac_symprfx\\2 \\2"
7817
7818 # Write the raw and C identifiers.
7819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7820 # Fake it for dumpbin and say T for any non-static function,
7821 # D for any global variable and I for any imported variable.
7822 # Also find C++ and __fastcall symbols from MSVC++,
7823 # which start with @ or ?.
7824 lt_cv_sys_global_symbol_pipe="$AWK '"\
7825 " {last_section=section; section=\$ 3};"\
7826 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7827 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7828 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7829 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7830 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7831 " \$ 0!~/External *\|/{next};"\
7832 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7833 " {if(hide[section]) next};"\
7834 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7835 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7836 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7837 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7838 " ' prfx=^$ac_symprfx"
7839 else
7840 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7841 fi
7842 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7843
7844 # Check to see that the pipe works correctly.
7845 pipe_works=no
7846
7847 rm -f conftest*
7848 cat > conftest.$ac_ext <<_LT_EOF
7849 #ifdef __cplusplus
7850 extern "C" {
7851 #endif
7852 char nm_test_var;
7853 void nm_test_func(void);
7854 void nm_test_func(void){}
7855 #ifdef __cplusplus
7856 }
7857 #endif
7858 int main(){nm_test_var='a';nm_test_func();return(0);}
7859 _LT_EOF
7860
7861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7862 (eval $ac_compile) 2>&5
7863 ac_status=$?
7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865 test $ac_status = 0; }; then
7866 # Now try to grab the symbols.
7867 nlist=conftest.nm
7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7870 ac_status=$?
7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; } && test -s "$nlist"; then
7873 # Try sorting and uniquifying the output.
7874 if sort "$nlist" | uniq > "$nlist"T; then
7875 mv -f "$nlist"T "$nlist"
7876 else
7877 rm -f "$nlist"T
7878 fi
7879
7880 # Make sure that we snagged all the symbols we need.
7881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7883 cat <<_LT_EOF > conftest.$ac_ext
7884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7885 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7886 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7887 relocations are performed -- see ld's documentation on pseudo-relocs. */
7888 # define LT_DLSYM_CONST
7889 #elif defined __osf__
7890 /* This system does not cope well with relocations in const data. */
7891 # define LT_DLSYM_CONST
7892 #else
7893 # define LT_DLSYM_CONST const
7894 #endif
7895
7896 #ifdef __cplusplus
7897 extern "C" {
7898 #endif
7899
7900 _LT_EOF
7901 # Now generate the symbol file.
7902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7903
7904 cat <<_LT_EOF >> conftest.$ac_ext
7905
7906 /* The mapping between symbol names and symbols. */
7907 LT_DLSYM_CONST struct {
7908 const char *name;
7909 void *address;
7910 }
7911 lt__PROGRAM__LTX_preloaded_symbols[] =
7912 {
7913 { "@PROGRAM@", (void *) 0 },
7914 _LT_EOF
7915 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7916 cat <<\_LT_EOF >> conftest.$ac_ext
7917 {0, (void *) 0}
7918 };
7919
7920 /* This works around a problem in FreeBSD linker */
7921 #ifdef FREEBSD_WORKAROUND
7922 static const void *lt_preloaded_setup() {
7923 return lt__PROGRAM__LTX_preloaded_symbols;
7924 }
7925 #endif
7926
7927 #ifdef __cplusplus
7928 }
7929 #endif
7930 _LT_EOF
7931 # Now try linking the two files.
7932 mv conftest.$ac_objext conftstm.$ac_objext
7933 lt_globsym_save_LIBS=$LIBS
7934 lt_globsym_save_CFLAGS=$CFLAGS
7935 LIBS=conftstm.$ac_objext
7936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7938 (eval $ac_link) 2>&5
7939 ac_status=$?
7940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7941 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7942 pipe_works=yes
7943 fi
7944 LIBS=$lt_globsym_save_LIBS
7945 CFLAGS=$lt_globsym_save_CFLAGS
7946 else
7947 echo "cannot find nm_test_func in $nlist" >&5
7948 fi
7949 else
7950 echo "cannot find nm_test_var in $nlist" >&5
7951 fi
7952 else
7953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7954 fi
7955 else
7956 echo "$progname: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7958 fi
7959 rm -rf conftest* conftst*
7960
7961 # Do not use the global_symbol_pipe unless it works.
7962 if test yes = "$pipe_works"; then
7963 break
7964 else
7965 lt_cv_sys_global_symbol_pipe=
7966 fi
7967 done
7968
7969 fi
7970
7971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7972 lt_cv_sys_global_symbol_to_cdecl=
7973 fi
7974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7976 $as_echo "failed" >&6; }
7977 else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7979 $as_echo "ok" >&6; }
7980 fi
7981
7982 # Response file support.
7983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7984 nm_file_list_spec='@'
7985 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7986 nm_file_list_spec='@'
7987 fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8026 $as_echo_n "checking for sysroot... " >&6; }
8027
8028 # Check whether --with-sysroot was given.
8029 if test "${with_sysroot+set}" = set; then :
8030 withval=$with_sysroot;
8031 else
8032 with_sysroot=no
8033 fi
8034
8035
8036 lt_sysroot=
8037 case $with_sysroot in #(
8038 yes)
8039 if test yes = "$GCC"; then
8040 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8041 fi
8042 ;; #(
8043 /*)
8044 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8045 ;; #(
8046 no|'')
8047 ;; #(
8048 *)
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8050 $as_echo "$with_sysroot" >&6; }
8051 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8052 ;;
8053 esac
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8056 $as_echo "${lt_sysroot:-no}" >&6; }
8057
8058
8059
8060
8061
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8063 $as_echo_n "checking for a working dd... " >&6; }
8064 if ${ac_cv_path_lt_DD+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 printf 0123456789abcdef0123456789abcdef >conftest.i
8068 cat conftest.i conftest.i >conftest2.i
8069 : ${lt_DD:=$DD}
8070 if test -z "$lt_DD"; then
8071 ac_path_lt_DD_found=false
8072 # Loop through the user's path and test for each of PROGNAME-LIST
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_prog in dd; do
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8081 as_fn_executable_p "$ac_path_lt_DD" || continue
8082 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8083 cmp -s conftest.i conftest.out \
8084 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8085 fi
8086 $ac_path_lt_DD_found && break 3
8087 done
8088 done
8089 done
8090 IFS=$as_save_IFS
8091 if test -z "$ac_cv_path_lt_DD"; then
8092 :
8093 fi
8094 else
8095 ac_cv_path_lt_DD=$lt_DD
8096 fi
8097
8098 rm -f conftest.i conftest2.i conftest.out
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8101 $as_echo "$ac_cv_path_lt_DD" >&6; }
8102
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8105 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8106 if ${lt_cv_truncate_bin+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 printf 0123456789abcdef0123456789abcdef >conftest.i
8110 cat conftest.i conftest.i >conftest2.i
8111 lt_cv_truncate_bin=
8112 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8113 cmp -s conftest.i conftest.out \
8114 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8115 fi
8116 rm -f conftest.i conftest2.i conftest.out
8117 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8118 fi
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8120 $as_echo "$lt_cv_truncate_bin" >&6; }
8121
8122
8123
8124
8125
8126
8127
8128 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8129 func_cc_basename ()
8130 {
8131 for cc_temp in $*""; do
8132 case $cc_temp in
8133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8135 \-*) ;;
8136 *) break;;
8137 esac
8138 done
8139 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8140 }
8141
8142 # Check whether --enable-libtool-lock was given.
8143 if test "${enable_libtool_lock+set}" = set; then :
8144 enableval=$enable_libtool_lock;
8145 fi
8146
8147 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8148
8149 # Some flags need to be propagated to the compiler or linker for good
8150 # libtool support.
8151 case $host in
8152 ia64-*-hpux*)
8153 # Find out what ABI is being produced by ac_compile, and set mode
8154 # options accordingly.
8155 echo 'int i;' > conftest.$ac_ext
8156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8157 (eval $ac_compile) 2>&5
8158 ac_status=$?
8159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8160 test $ac_status = 0; }; then
8161 case `/usr/bin/file conftest.$ac_objext` in
8162 *ELF-32*)
8163 HPUX_IA64_MODE=32
8164 ;;
8165 *ELF-64*)
8166 HPUX_IA64_MODE=64
8167 ;;
8168 esac
8169 fi
8170 rm -rf conftest*
8171 ;;
8172 *-*-irix6*)
8173 # Find out what ABI is being produced by ac_compile, and set linker
8174 # options accordingly.
8175 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8177 (eval $ac_compile) 2>&5
8178 ac_status=$?
8179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180 test $ac_status = 0; }; then
8181 if test yes = "$lt_cv_prog_gnu_ld"; then
8182 case `/usr/bin/file conftest.$ac_objext` in
8183 *32-bit*)
8184 LD="${LD-ld} -melf32bsmip"
8185 ;;
8186 *N32*)
8187 LD="${LD-ld} -melf32bmipn32"
8188 ;;
8189 *64-bit*)
8190 LD="${LD-ld} -melf64bmip"
8191 ;;
8192 esac
8193 else
8194 case `/usr/bin/file conftest.$ac_objext` in
8195 *32-bit*)
8196 LD="${LD-ld} -32"
8197 ;;
8198 *N32*)
8199 LD="${LD-ld} -n32"
8200 ;;
8201 *64-bit*)
8202 LD="${LD-ld} -64"
8203 ;;
8204 esac
8205 fi
8206 fi
8207 rm -rf conftest*
8208 ;;
8209
8210 mips64*-*linux*)
8211 # Find out what ABI is being produced by ac_compile, and set linker
8212 # options accordingly.
8213 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8215 (eval $ac_compile) 2>&5
8216 ac_status=$?
8217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8218 test $ac_status = 0; }; then
8219 emul=elf
8220 case `/usr/bin/file conftest.$ac_objext` in
8221 *32-bit*)
8222 emul="${emul}32"
8223 ;;
8224 *64-bit*)
8225 emul="${emul}64"
8226 ;;
8227 esac
8228 case `/usr/bin/file conftest.$ac_objext` in
8229 *MSB*)
8230 emul="${emul}btsmip"
8231 ;;
8232 *LSB*)
8233 emul="${emul}ltsmip"
8234 ;;
8235 esac
8236 case `/usr/bin/file conftest.$ac_objext` in
8237 *N32*)
8238 emul="${emul}n32"
8239 ;;
8240 esac
8241 LD="${LD-ld} -m $emul"
8242 fi
8243 rm -rf conftest*
8244 ;;
8245
8246 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8247 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8248 # Find out what ABI is being produced by ac_compile, and set linker
8249 # options accordingly. Note that the listed cases only cover the
8250 # situations where additional linker options are needed (such as when
8251 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8252 # vice versa); the common cases where no linker options are needed do
8253 # not appear in the list.
8254 echo 'int i;' > conftest.$ac_ext
8255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8256 (eval $ac_compile) 2>&5
8257 ac_status=$?
8258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259 test $ac_status = 0; }; then
8260 case `/usr/bin/file conftest.o` in
8261 *32-bit*)
8262 case $host in
8263 x86_64-*kfreebsd*-gnu)
8264 LD="${LD-ld} -m elf_i386_fbsd"
8265 ;;
8266 x86_64-*linux*)
8267 case `/usr/bin/file conftest.o` in
8268 *x86-64*)
8269 LD="${LD-ld} -m elf32_x86_64"
8270 ;;
8271 *)
8272 LD="${LD-ld} -m elf_i386"
8273 ;;
8274 esac
8275 ;;
8276 powerpc64le-*linux*)
8277 LD="${LD-ld} -m elf32lppclinux"
8278 ;;
8279 powerpc64-*linux*)
8280 LD="${LD-ld} -m elf32ppclinux"
8281 ;;
8282 s390x-*linux*)
8283 LD="${LD-ld} -m elf_s390"
8284 ;;
8285 sparc64-*linux*)
8286 LD="${LD-ld} -m elf32_sparc"
8287 ;;
8288 esac
8289 ;;
8290 *64-bit*)
8291 case $host in
8292 x86_64-*kfreebsd*-gnu)
8293 LD="${LD-ld} -m elf_x86_64_fbsd"
8294 ;;
8295 x86_64-*linux*)
8296 LD="${LD-ld} -m elf_x86_64"
8297 ;;
8298 powerpcle-*linux*)
8299 LD="${LD-ld} -m elf64lppc"
8300 ;;
8301 powerpc-*linux*)
8302 LD="${LD-ld} -m elf64ppc"
8303 ;;
8304 s390*-*linux*|s390*-*tpf*)
8305 LD="${LD-ld} -m elf64_s390"
8306 ;;
8307 sparc*-*linux*)
8308 LD="${LD-ld} -m elf64_sparc"
8309 ;;
8310 esac
8311 ;;
8312 esac
8313 fi
8314 rm -rf conftest*
8315 ;;
8316
8317 *-*-sco3.2v5*)
8318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8319 SAVE_CFLAGS=$CFLAGS
8320 CFLAGS="$CFLAGS -belf"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8322 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8323 if ${lt_cv_cc_needs_belf+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 ac_ext=c
8327 ac_cpp='$CPP $CPPFLAGS'
8328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8331
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334
8335 int
8336 main ()
8337 {
8338
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 if ac_fn_c_try_link "$LINENO"; then :
8344 lt_cv_cc_needs_belf=yes
8345 else
8346 lt_cv_cc_needs_belf=no
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8350 ac_ext=c
8351 ac_cpp='$CPP $CPPFLAGS'
8352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8358 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8359 if test yes != "$lt_cv_cc_needs_belf"; then
8360 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8361 CFLAGS=$SAVE_CFLAGS
8362 fi
8363 ;;
8364 *-*solaris*)
8365 # Find out what ABI is being produced by ac_compile, and set linker
8366 # options accordingly.
8367 echo 'int i;' > conftest.$ac_ext
8368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8369 (eval $ac_compile) 2>&5
8370 ac_status=$?
8371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8372 test $ac_status = 0; }; then
8373 case `/usr/bin/file conftest.o` in
8374 *64-bit*)
8375 case $lt_cv_prog_gnu_ld in
8376 yes*)
8377 case $host in
8378 i?86-*-solaris*|x86_64-*-solaris*)
8379 LD="${LD-ld} -m elf_x86_64"
8380 ;;
8381 sparc*-*-solaris*)
8382 LD="${LD-ld} -m elf64_sparc"
8383 ;;
8384 esac
8385 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8386 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8387 LD=${LD-ld}_sol2
8388 fi
8389 ;;
8390 *)
8391 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8392 LD="${LD-ld} -64"
8393 fi
8394 ;;
8395 esac
8396 ;;
8397 esac
8398 fi
8399 rm -rf conftest*
8400 ;;
8401 esac
8402
8403 need_locks=$enable_libtool_lock
8404
8405 if test -n "$ac_tool_prefix"; then
8406 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8407 set dummy ${ac_tool_prefix}mt; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 if test -n "$MANIFEST_TOOL"; then
8414 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8426 fi
8427 done
8428 done
8429 IFS=$as_save_IFS
8430
8431 fi
8432 fi
8433 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8434 if test -n "$MANIFEST_TOOL"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8436 $as_echo "$MANIFEST_TOOL" >&6; }
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8440 fi
8441
8442
8443 fi
8444 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8445 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8446 # Extract the first word of "mt", so it can be a program name with args.
8447 set dummy mt; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 if test -n "$ac_ct_MANIFEST_TOOL"; then
8454 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8463 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8466 fi
8467 done
8468 done
8469 IFS=$as_save_IFS
8470
8471 fi
8472 fi
8473 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8474 if test -n "$ac_ct_MANIFEST_TOOL"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8476 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8483 MANIFEST_TOOL=":"
8484 else
8485 case $cross_compiling:$ac_tool_warned in
8486 yes:)
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8489 ac_tool_warned=yes ;;
8490 esac
8491 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8492 fi
8493 else
8494 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8495 fi
8496
8497 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8499 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8500 if ${lt_cv_path_mainfest_tool+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 lt_cv_path_mainfest_tool=no
8504 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8505 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8506 cat conftest.err >&5
8507 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8508 lt_cv_path_mainfest_tool=yes
8509 fi
8510 rm -f conftest*
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8513 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8514 if test yes != "$lt_cv_path_mainfest_tool"; then
8515 MANIFEST_TOOL=:
8516 fi
8517
8518
8519
8520
8521
8522
8523 case $host_os in
8524 rhapsody* | darwin*)
8525 if test -n "$ac_tool_prefix"; then
8526 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8527 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 if test -n "$DSYMUTIL"; then
8534 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi
8552 fi
8553 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8554 if test -n "$DSYMUTIL"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8556 $as_echo "$DSYMUTIL" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8560 fi
8561
8562
8563 fi
8564 if test -z "$ac_cv_prog_DSYMUTIL"; then
8565 ac_ct_DSYMUTIL=$DSYMUTIL
8566 # Extract the first word of "dsymutil", so it can be a program name with args.
8567 set dummy dsymutil; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 if test -n "$ac_ct_DSYMUTIL"; then
8574 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8575 else
8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 for as_dir in $PATH
8578 do
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8583 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 break 2
8586 fi
8587 done
8588 done
8589 IFS=$as_save_IFS
8590
8591 fi
8592 fi
8593 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8594 if test -n "$ac_ct_DSYMUTIL"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8596 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8600 fi
8601
8602 if test "x$ac_ct_DSYMUTIL" = x; then
8603 DSYMUTIL=":"
8604 else
8605 case $cross_compiling:$ac_tool_warned in
8606 yes:)
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8609 ac_tool_warned=yes ;;
8610 esac
8611 DSYMUTIL=$ac_ct_DSYMUTIL
8612 fi
8613 else
8614 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8615 fi
8616
8617 if test -n "$ac_tool_prefix"; then
8618 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8619 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_prog_NMEDIT+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 if test -n "$NMEDIT"; then
8626 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8630 do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8638 fi
8639 done
8640 done
8641 IFS=$as_save_IFS
8642
8643 fi
8644 fi
8645 NMEDIT=$ac_cv_prog_NMEDIT
8646 if test -n "$NMEDIT"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8648 $as_echo "$NMEDIT" >&6; }
8649 else
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8652 fi
8653
8654
8655 fi
8656 if test -z "$ac_cv_prog_NMEDIT"; then
8657 ac_ct_NMEDIT=$NMEDIT
8658 # Extract the first word of "nmedit", so it can be a program name with args.
8659 set dummy nmedit; ac_word=$2
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661 $as_echo_n "checking for $ac_word... " >&6; }
8662 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 if test -n "$ac_ct_NMEDIT"; then
8666 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8667 else
8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 for as_dir in $PATH
8670 do
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 break 2
8678 fi
8679 done
8680 done
8681 IFS=$as_save_IFS
8682
8683 fi
8684 fi
8685 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8686 if test -n "$ac_ct_NMEDIT"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8688 $as_echo "$ac_ct_NMEDIT" >&6; }
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 fi
8693
8694 if test "x$ac_ct_NMEDIT" = x; then
8695 NMEDIT=":"
8696 else
8697 case $cross_compiling:$ac_tool_warned in
8698 yes:)
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8701 ac_tool_warned=yes ;;
8702 esac
8703 NMEDIT=$ac_ct_NMEDIT
8704 fi
8705 else
8706 NMEDIT="$ac_cv_prog_NMEDIT"
8707 fi
8708
8709 if test -n "$ac_tool_prefix"; then
8710 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8711 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_prog_LIPO+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 if test -n "$LIPO"; then
8718 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8719 else
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $PATH
8722 do
8723 IFS=$as_save_IFS
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729 break 2
8730 fi
8731 done
8732 done
8733 IFS=$as_save_IFS
8734
8735 fi
8736 fi
8737 LIPO=$ac_cv_prog_LIPO
8738 if test -n "$LIPO"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8740 $as_echo "$LIPO" >&6; }
8741 else
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8744 fi
8745
8746
8747 fi
8748 if test -z "$ac_cv_prog_LIPO"; then
8749 ac_ct_LIPO=$LIPO
8750 # Extract the first word of "lipo", so it can be a program name with args.
8751 set dummy lipo; ac_word=$2
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753 $as_echo_n "checking for $ac_word... " >&6; }
8754 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 if test -n "$ac_ct_LIPO"; then
8758 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8759 else
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 for as_dir in $PATH
8762 do
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767 ac_cv_prog_ac_ct_LIPO="lipo"
8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 break 2
8770 fi
8771 done
8772 done
8773 IFS=$as_save_IFS
8774
8775 fi
8776 fi
8777 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8778 if test -n "$ac_ct_LIPO"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8780 $as_echo "$ac_ct_LIPO" >&6; }
8781 else
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8784 fi
8785
8786 if test "x$ac_ct_LIPO" = x; then
8787 LIPO=":"
8788 else
8789 case $cross_compiling:$ac_tool_warned in
8790 yes:)
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8793 ac_tool_warned=yes ;;
8794 esac
8795 LIPO=$ac_ct_LIPO
8796 fi
8797 else
8798 LIPO="$ac_cv_prog_LIPO"
8799 fi
8800
8801 if test -n "$ac_tool_prefix"; then
8802 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8803 set dummy ${ac_tool_prefix}otool; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_prog_OTOOL+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 if test -n "$OTOOL"; then
8810 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823 done
8824 done
8825 IFS=$as_save_IFS
8826
8827 fi
8828 fi
8829 OTOOL=$ac_cv_prog_OTOOL
8830 if test -n "$OTOOL"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8832 $as_echo "$OTOOL" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837
8838
8839 fi
8840 if test -z "$ac_cv_prog_OTOOL"; then
8841 ac_ct_OTOOL=$OTOOL
8842 # Extract the first word of "otool", so it can be a program name with args.
8843 set dummy otool; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 if test -n "$ac_ct_OTOOL"; then
8850 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_prog_ac_ct_OTOOL="otool"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8862 fi
8863 done
8864 done
8865 IFS=$as_save_IFS
8866
8867 fi
8868 fi
8869 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8870 if test -n "$ac_ct_OTOOL"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8872 $as_echo "$ac_ct_OTOOL" >&6; }
8873 else
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8876 fi
8877
8878 if test "x$ac_ct_OTOOL" = x; then
8879 OTOOL=":"
8880 else
8881 case $cross_compiling:$ac_tool_warned in
8882 yes:)
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8885 ac_tool_warned=yes ;;
8886 esac
8887 OTOOL=$ac_ct_OTOOL
8888 fi
8889 else
8890 OTOOL="$ac_cv_prog_OTOOL"
8891 fi
8892
8893 if test -n "$ac_tool_prefix"; then
8894 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8895 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_prog_OTOOL64+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 if test -n "$OTOOL64"; then
8902 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8906 do
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8914 fi
8915 done
8916 done
8917 IFS=$as_save_IFS
8918
8919 fi
8920 fi
8921 OTOOL64=$ac_cv_prog_OTOOL64
8922 if test -n "$OTOOL64"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8924 $as_echo "$OTOOL64" >&6; }
8925 else
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8928 fi
8929
8930
8931 fi
8932 if test -z "$ac_cv_prog_OTOOL64"; then
8933 ac_ct_OTOOL64=$OTOOL64
8934 # Extract the first word of "otool64", so it can be a program name with args.
8935 set dummy otool64; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$ac_ct_OTOOL64"; then
8942 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8946 do
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_ac_ct_OTOOL64="otool64"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8954 fi
8955 done
8956 done
8957 IFS=$as_save_IFS
8958
8959 fi
8960 fi
8961 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8962 if test -n "$ac_ct_OTOOL64"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8964 $as_echo "$ac_ct_OTOOL64" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8968 fi
8969
8970 if test "x$ac_ct_OTOOL64" = x; then
8971 OTOOL64=":"
8972 else
8973 case $cross_compiling:$ac_tool_warned in
8974 yes:)
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8977 ac_tool_warned=yes ;;
8978 esac
8979 OTOOL64=$ac_ct_OTOOL64
8980 fi
8981 else
8982 OTOOL64="$ac_cv_prog_OTOOL64"
8983 fi
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9012 $as_echo_n "checking for -single_module linker flag... " >&6; }
9013 if ${lt_cv_apple_cc_single_mod+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 lt_cv_apple_cc_single_mod=no
9017 if test -z "$LT_MULTI_MODULE"; then
9018 # By default we will add the -single_module flag. You can override
9019 # by either setting the environment variable LT_MULTI_MODULE
9020 # non-empty at configure time, or by adding -multi_module to the
9021 # link flags.
9022 rm -rf libconftest.dylib*
9023 echo "int foo(void){return 1;}" > conftest.c
9024 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9025 -dynamiclib -Wl,-single_module conftest.c" >&5
9026 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9027 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9028 _lt_result=$?
9029 # If there is a non-empty error log, and "single_module"
9030 # appears in it, assume the flag caused a linker warning
9031 if test -s conftest.err && $GREP single_module conftest.err; then
9032 cat conftest.err >&5
9033 # Otherwise, if the output was created with a 0 exit code from
9034 # the compiler, it worked.
9035 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9036 lt_cv_apple_cc_single_mod=yes
9037 else
9038 cat conftest.err >&5
9039 fi
9040 rm -rf libconftest.dylib*
9041 rm -f conftest.*
9042 fi
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9045 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9046
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9048 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9049 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 lt_cv_ld_exported_symbols_list=no
9053 save_LDFLAGS=$LDFLAGS
9054 echo "_main" > conftest.sym
9055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058
9059 int
9060 main ()
9061 {
9062
9063 ;
9064 return 0;
9065 }
9066 _ACEOF
9067 if ac_fn_c_try_link "$LINENO"; then :
9068 lt_cv_ld_exported_symbols_list=yes
9069 else
9070 lt_cv_ld_exported_symbols_list=no
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074 LDFLAGS=$save_LDFLAGS
9075
9076 fi
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9078 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9079
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9081 $as_echo_n "checking for -force_load linker flag... " >&6; }
9082 if ${lt_cv_ld_force_load+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 lt_cv_ld_force_load=no
9086 cat > conftest.c << _LT_EOF
9087 int forced_loaded() { return 2;}
9088 _LT_EOF
9089 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9090 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9091 echo "$AR cru libconftest.a conftest.o" >&5
9092 $AR cru libconftest.a conftest.o 2>&5
9093 echo "$RANLIB libconftest.a" >&5
9094 $RANLIB libconftest.a 2>&5
9095 cat > conftest.c << _LT_EOF
9096 int main() { return 0;}
9097 _LT_EOF
9098 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9099 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9100 _lt_result=$?
9101 if test -s conftest.err && $GREP force_load conftest.err; then
9102 cat conftest.err >&5
9103 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9104 lt_cv_ld_force_load=yes
9105 else
9106 cat conftest.err >&5
9107 fi
9108 rm -f conftest.err libconftest.a conftest conftest.c
9109 rm -rf conftest.dSYM
9110
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9113 $as_echo "$lt_cv_ld_force_load" >&6; }
9114 case $host_os in
9115 rhapsody* | darwin1.[012])
9116 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9117 darwin1.*)
9118 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9119 darwin*) # darwin 5.x on
9120 # if running on 10.5 or later, the deployment target defaults
9121 # to the OS version, if on x86, and 10.4, the deployment
9122 # target defaults to 10.4. Don't you love it?
9123 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9124 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9125 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9126 10.[012][,.]*)
9127 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9128 10.*)
9129 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9130 esac
9131 ;;
9132 esac
9133 if test yes = "$lt_cv_apple_cc_single_mod"; then
9134 _lt_dar_single_mod='$single_module'
9135 fi
9136 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9137 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9138 else
9139 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9140 fi
9141 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9142 _lt_dsymutil='~$DSYMUTIL $lib || :'
9143 else
9144 _lt_dsymutil=
9145 fi
9146 ;;
9147 esac
9148
9149 # func_munge_path_list VARIABLE PATH
9150 # -----------------------------------
9151 # VARIABLE is name of variable containing _space_ separated list of
9152 # directories to be munged by the contents of PATH, which is string
9153 # having a format:
9154 # "DIR[:DIR]:"
9155 # string "DIR[ DIR]" will be prepended to VARIABLE
9156 # ":DIR[:DIR]"
9157 # string "DIR[ DIR]" will be appended to VARIABLE
9158 # "DIRP[:DIRP]::[DIRA:]DIRA"
9159 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9160 # "DIRA[ DIRA]" will be appended to VARIABLE
9161 # "DIR[:DIR]"
9162 # VARIABLE will be replaced by "DIR[ DIR]"
9163 func_munge_path_list ()
9164 {
9165 case x$2 in
9166 x)
9167 ;;
9168 *:)
9169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9170 ;;
9171 x:*)
9172 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9173 ;;
9174 *::*)
9175 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9176 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9177 ;;
9178 *)
9179 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9180 ;;
9181 esac
9182 }
9183
9184 for ac_header in dlfcn.h
9185 do :
9186 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9187 "
9188 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9189 cat >>confdefs.h <<_ACEOF
9190 #define HAVE_DLFCN_H 1
9191 _ACEOF
9192
9193 fi
9194
9195 done
9196
9197
9198
9199
9200
9201 # Set options
9202
9203
9204
9205 enable_dlopen=no
9206
9207
9208
9209 # Check whether --enable-shared was given.
9210 if test "${enable_shared+set}" = set; then :
9211 enableval=$enable_shared; p=${PACKAGE-default}
9212 case $enableval in
9213 yes) enable_shared=yes ;;
9214 no) enable_shared=no ;;
9215 *)
9216 enable_shared=no
9217 # Look at the argument we got. We use all the common list separators.
9218 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9219 for pkg in $enableval; do
9220 IFS=$lt_save_ifs
9221 if test "X$pkg" = "X$p"; then
9222 enable_shared=yes
9223 fi
9224 done
9225 IFS=$lt_save_ifs
9226 ;;
9227 esac
9228 else
9229 enable_shared=yes
9230 fi
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240 # Check whether --enable-static was given.
9241 if test "${enable_static+set}" = set; then :
9242 enableval=$enable_static; p=${PACKAGE-default}
9243 case $enableval in
9244 yes) enable_static=yes ;;
9245 no) enable_static=no ;;
9246 *)
9247 enable_static=no
9248 # Look at the argument we got. We use all the common list separators.
9249 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9250 for pkg in $enableval; do
9251 IFS=$lt_save_ifs
9252 if test "X$pkg" = "X$p"; then
9253 enable_static=yes
9254 fi
9255 done
9256 IFS=$lt_save_ifs
9257 ;;
9258 esac
9259 else
9260 enable_static=yes
9261 fi
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272 # Check whether --with-pic was given.
9273 if test "${with_pic+set}" = set; then :
9274 withval=$with_pic; lt_p=${PACKAGE-default}
9275 case $withval in
9276 yes|no) pic_mode=$withval ;;
9277 *)
9278 pic_mode=default
9279 # Look at the argument we got. We use all the common list separators.
9280 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9281 for lt_pkg in $withval; do
9282 IFS=$lt_save_ifs
9283 if test "X$lt_pkg" = "X$lt_p"; then
9284 pic_mode=yes
9285 fi
9286 done
9287 IFS=$lt_save_ifs
9288 ;;
9289 esac
9290 else
9291 pic_mode=default
9292 fi
9293
9294
9295
9296
9297
9298
9299
9300
9301 # Check whether --enable-fast-install was given.
9302 if test "${enable_fast_install+set}" = set; then :
9303 enableval=$enable_fast_install; p=${PACKAGE-default}
9304 case $enableval in
9305 yes) enable_fast_install=yes ;;
9306 no) enable_fast_install=no ;;
9307 *)
9308 enable_fast_install=no
9309 # Look at the argument we got. We use all the common list separators.
9310 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9311 for pkg in $enableval; do
9312 IFS=$lt_save_ifs
9313 if test "X$pkg" = "X$p"; then
9314 enable_fast_install=yes
9315 fi
9316 done
9317 IFS=$lt_save_ifs
9318 ;;
9319 esac
9320 else
9321 enable_fast_install=yes
9322 fi
9323
9324
9325
9326
9327
9328
9329
9330
9331 shared_archive_member_spec=
9332 case $host,$enable_shared in
9333 power*-*-aix[5-9]*,yes)
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9335 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9336
9337 # Check whether --with-aix-soname was given.
9338 if test "${with_aix_soname+set}" = set; then :
9339 withval=$with_aix_soname; case $withval in
9340 aix|svr4|both)
9341 ;;
9342 *)
9343 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9344 ;;
9345 esac
9346 lt_cv_with_aix_soname=$with_aix_soname
9347 else
9348 if ${lt_cv_with_aix_soname+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 lt_cv_with_aix_soname=aix
9352 fi
9353
9354 with_aix_soname=$lt_cv_with_aix_soname
9355 fi
9356
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9358 $as_echo "$with_aix_soname" >&6; }
9359 if test aix != "$with_aix_soname"; then
9360 # For the AIX way of multilib, we name the shared archive member
9361 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9362 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9363 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9364 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9365 if test 64 = "${OBJECT_MODE-32}"; then
9366 shared_archive_member_spec=shr_64
9367 else
9368 shared_archive_member_spec=shr
9369 fi
9370 fi
9371 ;;
9372 *)
9373 with_aix_soname=aix
9374 ;;
9375 esac
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386 # This can be used to rebuild libtool when needed
9387 LIBTOOL_DEPS=$ltmain
9388
9389 # Always use our own libtool.
9390 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421 test -z "$LN_S" && LN_S="ln -s"
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436 if test -n "${ZSH_VERSION+set}"; then
9437 setopt NO_GLOB_SUBST
9438 fi
9439
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9441 $as_echo_n "checking for objdir... " >&6; }
9442 if ${lt_cv_objdir+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 rm -f .libs 2>/dev/null
9446 mkdir .libs 2>/dev/null
9447 if test -d .libs; then
9448 lt_cv_objdir=.libs
9449 else
9450 # MS-DOS does not allow filenames that begin with a dot.
9451 lt_cv_objdir=_libs
9452 fi
9453 rmdir .libs 2>/dev/null
9454 fi
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9456 $as_echo "$lt_cv_objdir" >&6; }
9457 objdir=$lt_cv_objdir
9458
9459
9460
9461
9462
9463 cat >>confdefs.h <<_ACEOF
9464 #define LT_OBJDIR "$lt_cv_objdir/"
9465 _ACEOF
9466
9467
9468
9469
9470 case $host_os in
9471 aix3*)
9472 # AIX sometimes has problems with the GCC collect2 program. For some
9473 # reason, if we set the COLLECT_NAMES environment variable, the problems
9474 # vanish in a puff of smoke.
9475 if test set != "${COLLECT_NAMES+set}"; then
9476 COLLECT_NAMES=
9477 export COLLECT_NAMES
9478 fi
9479 ;;
9480 esac
9481
9482 # Global variables:
9483 ofile=libtool
9484 can_build_shared=yes
9485
9486 # All known linkers require a '.a' archive for static linking (except MSVC,
9487 # which needs '.lib').
9488 libext=a
9489
9490 with_gnu_ld=$lt_cv_prog_gnu_ld
9491
9492 old_CC=$CC
9493 old_CFLAGS=$CFLAGS
9494
9495 # Set sane defaults for various variables
9496 test -z "$CC" && CC=cc
9497 test -z "$LTCC" && LTCC=$CC
9498 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9499 test -z "$LD" && LD=ld
9500 test -z "$ac_objext" && ac_objext=o
9501
9502 func_cc_basename $compiler
9503 cc_basename=$func_cc_basename_result
9504
9505
9506 # Only perform the check for file, if the check method requires it
9507 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9508 case $deplibs_check_method in
9509 file_magic*)
9510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9512 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9513 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 case $MAGIC_CMD in
9517 [\\/*] | ?:[\\/]*)
9518 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9519 ;;
9520 *)
9521 lt_save_MAGIC_CMD=$MAGIC_CMD
9522 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9524 for ac_dir in $ac_dummy; do
9525 IFS=$lt_save_ifs
9526 test -z "$ac_dir" && ac_dir=.
9527 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9528 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9529 if test -n "$file_magic_test_file"; then
9530 case $deplibs_check_method in
9531 "file_magic "*)
9532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9533 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9535 $EGREP "$file_magic_regex" > /dev/null; then
9536 :
9537 else
9538 cat <<_LT_EOF 1>&2
9539
9540 *** Warning: the command libtool uses to detect shared libraries,
9541 *** $file_magic_cmd, produces output that libtool cannot recognize.
9542 *** The result is that libtool may fail to recognize shared libraries
9543 *** as such. This will affect the creation of libtool libraries that
9544 *** depend on shared libraries, but programs linked with such libtool
9545 *** libraries will work regardless of this problem. Nevertheless, you
9546 *** may want to report the problem to your system manager and/or to
9547 *** [email protected]
9548
9549 _LT_EOF
9550 fi ;;
9551 esac
9552 fi
9553 break
9554 fi
9555 done
9556 IFS=$lt_save_ifs
9557 MAGIC_CMD=$lt_save_MAGIC_CMD
9558 ;;
9559 esac
9560 fi
9561
9562 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9563 if test -n "$MAGIC_CMD"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9565 $as_echo "$MAGIC_CMD" >&6; }
9566 else
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; }
9569 fi
9570
9571
9572
9573
9574
9575 if test -z "$lt_cv_path_MAGIC_CMD"; then
9576 if test -n "$ac_tool_prefix"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9578 $as_echo_n "checking for file... " >&6; }
9579 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 case $MAGIC_CMD in
9583 [\\/*] | ?:[\\/]*)
9584 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9585 ;;
9586 *)
9587 lt_save_MAGIC_CMD=$MAGIC_CMD
9588 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9590 for ac_dir in $ac_dummy; do
9591 IFS=$lt_save_ifs
9592 test -z "$ac_dir" && ac_dir=.
9593 if test -f "$ac_dir/file"; then
9594 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9595 if test -n "$file_magic_test_file"; then
9596 case $deplibs_check_method in
9597 "file_magic "*)
9598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9599 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9601 $EGREP "$file_magic_regex" > /dev/null; then
9602 :
9603 else
9604 cat <<_LT_EOF 1>&2
9605
9606 *** Warning: the command libtool uses to detect shared libraries,
9607 *** $file_magic_cmd, produces output that libtool cannot recognize.
9608 *** The result is that libtool may fail to recognize shared libraries
9609 *** as such. This will affect the creation of libtool libraries that
9610 *** depend on shared libraries, but programs linked with such libtool
9611 *** libraries will work regardless of this problem. Nevertheless, you
9612 *** may want to report the problem to your system manager and/or to
9613 *** [email protected]
9614
9615 _LT_EOF
9616 fi ;;
9617 esac
9618 fi
9619 break
9620 fi
9621 done
9622 IFS=$lt_save_ifs
9623 MAGIC_CMD=$lt_save_MAGIC_CMD
9624 ;;
9625 esac
9626 fi
9627
9628 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9629 if test -n "$MAGIC_CMD"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9631 $as_echo "$MAGIC_CMD" >&6; }
9632 else
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9635 fi
9636
9637
9638 else
9639 MAGIC_CMD=:
9640 fi
9641 fi
9642
9643 fi
9644 ;;
9645 esac
9646
9647 # Use C for the default configuration in the libtool script
9648
9649 lt_save_CC=$CC
9650 ac_ext=c
9651 ac_cpp='$CPP $CPPFLAGS'
9652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9655
9656
9657 # Source file extension for C test sources.
9658 ac_ext=c
9659
9660 # Object file extension for compiled C test sources.
9661 objext=o
9662 objext=$objext
9663
9664 # Code to be used in simple compile tests
9665 lt_simple_compile_test_code="int some_variable = 0;"
9666
9667 # Code to be used in simple link tests
9668 lt_simple_link_test_code='int main(){return(0);}'
9669
9670
9671
9672
9673
9674
9675
9676 # If no C compiler was specified, use CC.
9677 LTCC=${LTCC-"$CC"}
9678
9679 # If no C compiler flags were specified, use CFLAGS.
9680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9681
9682 # Allow CC to be a program name with arguments.
9683 compiler=$CC
9684
9685 # Save the default compiler, since it gets overwritten when the other
9686 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9687 compiler_DEFAULT=$CC
9688
9689 # save warnings/boilerplate of simple test code
9690 ac_outfile=conftest.$ac_objext
9691 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9692 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9693 _lt_compiler_boilerplate=`cat conftest.err`
9694 $RM conftest*
9695
9696 ac_outfile=conftest.$ac_objext
9697 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9698 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9699 _lt_linker_boilerplate=`cat conftest.err`
9700 $RM -r conftest*
9701
9702
9703 if test -n "$compiler"; then
9704
9705 lt_prog_compiler_no_builtin_flag=
9706
9707 if test yes = "$GCC"; then
9708 case $cc_basename in
9709 nvcc*)
9710 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9711 *)
9712 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9713 esac
9714
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9716 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9717 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 lt_cv_prog_compiler_rtti_exceptions=no
9721 ac_outfile=conftest.$ac_objext
9722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9723 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9724 # Insert the option either (1) after the last *FLAGS variable, or
9725 # (2) before a word containing "conftest.", or (3) at the end.
9726 # Note that $ac_compile itself does not contain backslashes and begins
9727 # with a dollar sign (not a hyphen), so the echo should work correctly.
9728 # The option is referenced via a variable to avoid confusing sed.
9729 lt_compile=`echo "$ac_compile" | $SED \
9730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9732 -e 's:$: $lt_compiler_flag:'`
9733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9734 (eval "$lt_compile" 2>conftest.err)
9735 ac_status=$?
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 if (exit $ac_status) && test -s "$ac_outfile"; then
9739 # The compiler can only warn and ignore the option if not recognized
9740 # So say no if there are warnings other than the usual output.
9741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9744 lt_cv_prog_compiler_rtti_exceptions=yes
9745 fi
9746 fi
9747 $RM conftest*
9748
9749 fi
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9751 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9752
9753 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9754 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9755 else
9756 :
9757 fi
9758
9759 fi
9760
9761
9762
9763
9764
9765
9766 lt_prog_compiler_wl=
9767 lt_prog_compiler_pic=
9768 lt_prog_compiler_static=
9769
9770
9771 if test yes = "$GCC"; then
9772 lt_prog_compiler_wl='-Wl,'
9773 lt_prog_compiler_static='-static'
9774
9775 case $host_os in
9776 aix*)
9777 # All AIX code is PIC.
9778 if test ia64 = "$host_cpu"; then
9779 # AIX 5 now supports IA64 processor
9780 lt_prog_compiler_static='-Bstatic'
9781 fi
9782 lt_prog_compiler_pic='-fPIC'
9783 ;;
9784
9785 amigaos*)
9786 case $host_cpu in
9787 powerpc)
9788 # see comment about AmigaOS4 .so support
9789 lt_prog_compiler_pic='-fPIC'
9790 ;;
9791 m68k)
9792 # FIXME: we need at least 68020 code to build shared libraries, but
9793 # adding the '-m68020' flag to GCC prevents building anything better,
9794 # like '-m68040'.
9795 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9796 ;;
9797 esac
9798 ;;
9799
9800 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9801 # PIC is the default for these OSes.
9802 ;;
9803
9804 mingw* | cygwin* | pw32* | os2* | cegcc*)
9805 # This hack is so that the source file can tell whether it is being
9806 # built for inclusion in a dll (and should export symbols for example).
9807 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9808 # (--disable-auto-import) libraries
9809 lt_prog_compiler_pic='-DDLL_EXPORT'
9810 case $host_os in
9811 os2*)
9812 lt_prog_compiler_static='$wl-static'
9813 ;;
9814 esac
9815 ;;
9816
9817 darwin* | rhapsody*)
9818 # PIC is the default on this platform
9819 # Common symbols not allowed in MH_DYLIB files
9820 lt_prog_compiler_pic='-fno-common'
9821 ;;
9822
9823 haiku*)
9824 # PIC is the default for Haiku.
9825 # The "-static" flag exists, but is broken.
9826 lt_prog_compiler_static=
9827 ;;
9828
9829 hpux*)
9830 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9831 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9832 # sets the default TLS model and affects inlining.
9833 case $host_cpu in
9834 hppa*64*)
9835 # +Z the default
9836 ;;
9837 *)
9838 lt_prog_compiler_pic='-fPIC'
9839 ;;
9840 esac
9841 ;;
9842
9843 interix[3-9]*)
9844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9845 # Instead, we relocate shared libraries at runtime.
9846 ;;
9847
9848 msdosdjgpp*)
9849 # Just because we use GCC doesn't mean we suddenly get shared libraries
9850 # on systems that don't support them.
9851 lt_prog_compiler_can_build_shared=no
9852 enable_shared=no
9853 ;;
9854
9855 *nto* | *qnx*)
9856 # QNX uses GNU C++, but need to define -shared option too, otherwise
9857 # it will coredump.
9858 lt_prog_compiler_pic='-fPIC -shared'
9859 ;;
9860
9861 sysv4*MP*)
9862 if test -d /usr/nec; then
9863 lt_prog_compiler_pic=-Kconform_pic
9864 fi
9865 ;;
9866
9867 *)
9868 lt_prog_compiler_pic='-fPIC'
9869 ;;
9870 esac
9871
9872 case $cc_basename in
9873 nvcc*) # Cuda Compiler Driver 2.2
9874 lt_prog_compiler_wl='-Xlinker '
9875 if test -n "$lt_prog_compiler_pic"; then
9876 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9877 fi
9878 ;;
9879 esac
9880 else
9881 # PORTME Check for flag to pass linker flags through the system compiler.
9882 case $host_os in
9883 aix*)
9884 lt_prog_compiler_wl='-Wl,'
9885 if test ia64 = "$host_cpu"; then
9886 # AIX 5 now supports IA64 processor
9887 lt_prog_compiler_static='-Bstatic'
9888 else
9889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9890 fi
9891 ;;
9892
9893 darwin* | rhapsody*)
9894 # PIC is the default on this platform
9895 # Common symbols not allowed in MH_DYLIB files
9896 lt_prog_compiler_pic='-fno-common'
9897 case $cc_basename in
9898 nagfor*)
9899 # NAG Fortran compiler
9900 lt_prog_compiler_wl='-Wl,-Wl,,'
9901 lt_prog_compiler_pic='-PIC'
9902 lt_prog_compiler_static='-Bstatic'
9903 ;;
9904 esac
9905 ;;
9906
9907 mingw* | cygwin* | pw32* | os2* | cegcc*)
9908 # This hack is so that the source file can tell whether it is being
9909 # built for inclusion in a dll (and should export symbols for example).
9910 lt_prog_compiler_pic='-DDLL_EXPORT'
9911 case $host_os in
9912 os2*)
9913 lt_prog_compiler_static='$wl-static'
9914 ;;
9915 esac
9916 ;;
9917
9918 hpux9* | hpux10* | hpux11*)
9919 lt_prog_compiler_wl='-Wl,'
9920 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9921 # not for PA HP-UX.
9922 case $host_cpu in
9923 hppa*64*|ia64*)
9924 # +Z the default
9925 ;;
9926 *)
9927 lt_prog_compiler_pic='+Z'
9928 ;;
9929 esac
9930 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9931 lt_prog_compiler_static='$wl-a ${wl}archive'
9932 ;;
9933
9934 irix5* | irix6* | nonstopux*)
9935 lt_prog_compiler_wl='-Wl,'
9936 # PIC (with -KPIC) is the default.
9937 lt_prog_compiler_static='-non_shared'
9938 ;;
9939
9940 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9941 case $cc_basename in
9942 # old Intel for x86_64, which still supported -KPIC.
9943 ecc*)
9944 lt_prog_compiler_wl='-Wl,'
9945 lt_prog_compiler_pic='-KPIC'
9946 lt_prog_compiler_static='-static'
9947 ;;
9948 # icc used to be incompatible with GCC.
9949 # ICC 10 doesn't accept -KPIC any more.
9950 icc* | ifort*)
9951 lt_prog_compiler_wl='-Wl,'
9952 lt_prog_compiler_pic='-fPIC'
9953 lt_prog_compiler_static='-static'
9954 ;;
9955 # Lahey Fortran 8.1.
9956 lf95*)
9957 lt_prog_compiler_wl='-Wl,'
9958 lt_prog_compiler_pic='--shared'
9959 lt_prog_compiler_static='--static'
9960 ;;
9961 nagfor*)
9962 # NAG Fortran compiler
9963 lt_prog_compiler_wl='-Wl,-Wl,,'
9964 lt_prog_compiler_pic='-PIC'
9965 lt_prog_compiler_static='-Bstatic'
9966 ;;
9967 tcc*)
9968 # Fabrice Bellard et al's Tiny C Compiler
9969 lt_prog_compiler_wl='-Wl,'
9970 lt_prog_compiler_pic='-fPIC'
9971 lt_prog_compiler_static='-static'
9972 ;;
9973 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9974 # Portland Group compilers (*not* the Pentium gcc compiler,
9975 # which looks to be a dead project)
9976 lt_prog_compiler_wl='-Wl,'
9977 lt_prog_compiler_pic='-fpic'
9978 lt_prog_compiler_static='-Bstatic'
9979 ;;
9980 ccc*)
9981 lt_prog_compiler_wl='-Wl,'
9982 # All Alpha code is PIC.
9983 lt_prog_compiler_static='-non_shared'
9984 ;;
9985 xl* | bgxl* | bgf* | mpixl*)
9986 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9987 lt_prog_compiler_wl='-Wl,'
9988 lt_prog_compiler_pic='-qpic'
9989 lt_prog_compiler_static='-qstaticlink'
9990 ;;
9991 *)
9992 case `$CC -V 2>&1 | sed 5q` in
9993 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9994 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9995 lt_prog_compiler_pic='-KPIC'
9996 lt_prog_compiler_static='-Bstatic'
9997 lt_prog_compiler_wl=''
9998 ;;
9999 *Sun\ F* | *Sun*Fortran*)
10000 lt_prog_compiler_pic='-KPIC'
10001 lt_prog_compiler_static='-Bstatic'
10002 lt_prog_compiler_wl='-Qoption ld '
10003 ;;
10004 *Sun\ C*)
10005 # Sun C 5.9
10006 lt_prog_compiler_pic='-KPIC'
10007 lt_prog_compiler_static='-Bstatic'
10008 lt_prog_compiler_wl='-Wl,'
10009 ;;
10010 *Intel*\ [CF]*Compiler*)
10011 lt_prog_compiler_wl='-Wl,'
10012 lt_prog_compiler_pic='-fPIC'
10013 lt_prog_compiler_static='-static'
10014 ;;
10015 *Portland\ Group*)
10016 lt_prog_compiler_wl='-Wl,'
10017 lt_prog_compiler_pic='-fpic'
10018 lt_prog_compiler_static='-Bstatic'
10019 ;;
10020 esac
10021 ;;
10022 esac
10023 ;;
10024
10025 newsos6)
10026 lt_prog_compiler_pic='-KPIC'
10027 lt_prog_compiler_static='-Bstatic'
10028 ;;
10029
10030 *nto* | *qnx*)
10031 # QNX uses GNU C++, but need to define -shared option too, otherwise
10032 # it will coredump.
10033 lt_prog_compiler_pic='-fPIC -shared'
10034 ;;
10035
10036 osf3* | osf4* | osf5*)
10037 lt_prog_compiler_wl='-Wl,'
10038 # All OSF/1 code is PIC.
10039 lt_prog_compiler_static='-non_shared'
10040 ;;
10041
10042 rdos*)
10043 lt_prog_compiler_static='-non_shared'
10044 ;;
10045
10046 solaris*)
10047 lt_prog_compiler_pic='-KPIC'
10048 lt_prog_compiler_static='-Bstatic'
10049 case $cc_basename in
10050 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10051 lt_prog_compiler_wl='-Qoption ld ';;
10052 *)
10053 lt_prog_compiler_wl='-Wl,';;
10054 esac
10055 ;;
10056
10057 sunos4*)
10058 lt_prog_compiler_wl='-Qoption ld '
10059 lt_prog_compiler_pic='-PIC'
10060 lt_prog_compiler_static='-Bstatic'
10061 ;;
10062
10063 sysv4 | sysv4.2uw2* | sysv4.3*)
10064 lt_prog_compiler_wl='-Wl,'
10065 lt_prog_compiler_pic='-KPIC'
10066 lt_prog_compiler_static='-Bstatic'
10067 ;;
10068
10069 sysv4*MP*)
10070 if test -d /usr/nec; then
10071 lt_prog_compiler_pic='-Kconform_pic'
10072 lt_prog_compiler_static='-Bstatic'
10073 fi
10074 ;;
10075
10076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10077 lt_prog_compiler_wl='-Wl,'
10078 lt_prog_compiler_pic='-KPIC'
10079 lt_prog_compiler_static='-Bstatic'
10080 ;;
10081
10082 unicos*)
10083 lt_prog_compiler_wl='-Wl,'
10084 lt_prog_compiler_can_build_shared=no
10085 ;;
10086
10087 uts4*)
10088 lt_prog_compiler_pic='-pic'
10089 lt_prog_compiler_static='-Bstatic'
10090 ;;
10091
10092 *)
10093 lt_prog_compiler_can_build_shared=no
10094 ;;
10095 esac
10096 fi
10097
10098 case $host_os in
10099 # For platforms that do not support PIC, -DPIC is meaningless:
10100 *djgpp*)
10101 lt_prog_compiler_pic=
10102 ;;
10103 *)
10104 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10105 ;;
10106 esac
10107
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10109 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10110 if ${lt_cv_prog_compiler_pic+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10114 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10116 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10117 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10118
10119 #
10120 # Check to make sure the PIC flag actually works.
10121 #
10122 if test -n "$lt_prog_compiler_pic"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10124 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10125 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 lt_cv_prog_compiler_pic_works=no
10129 ac_outfile=conftest.$ac_objext
10130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10131 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10132 # Insert the option either (1) after the last *FLAGS variable, or
10133 # (2) before a word containing "conftest.", or (3) at the end.
10134 # Note that $ac_compile itself does not contain backslashes and begins
10135 # with a dollar sign (not a hyphen), so the echo should work correctly.
10136 # The option is referenced via a variable to avoid confusing sed.
10137 lt_compile=`echo "$ac_compile" | $SED \
10138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10140 -e 's:$: $lt_compiler_flag:'`
10141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10142 (eval "$lt_compile" 2>conftest.err)
10143 ac_status=$?
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 if (exit $ac_status) && test -s "$ac_outfile"; then
10147 # The compiler can only warn and ignore the option if not recognized
10148 # So say no if there are warnings other than the usual output.
10149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10152 lt_cv_prog_compiler_pic_works=yes
10153 fi
10154 fi
10155 $RM conftest*
10156
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10159 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10160
10161 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10162 case $lt_prog_compiler_pic in
10163 "" | " "*) ;;
10164 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10165 esac
10166 else
10167 lt_prog_compiler_pic=
10168 lt_prog_compiler_can_build_shared=no
10169 fi
10170
10171 fi
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183 #
10184 # Check to make sure the static flag actually works.
10185 #
10186 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10188 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10189 if ${lt_cv_prog_compiler_static_works+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 lt_cv_prog_compiler_static_works=no
10193 save_LDFLAGS=$LDFLAGS
10194 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10195 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10196 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10197 # The linker can only warn and ignore the option if not recognized
10198 # So say no if there are warnings
10199 if test -s conftest.err; then
10200 # Append any errors to the config.log.
10201 cat conftest.err 1>&5
10202 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10204 if diff conftest.exp conftest.er2 >/dev/null; then
10205 lt_cv_prog_compiler_static_works=yes
10206 fi
10207 else
10208 lt_cv_prog_compiler_static_works=yes
10209 fi
10210 fi
10211 $RM -r conftest*
10212 LDFLAGS=$save_LDFLAGS
10213
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10216 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10217
10218 if test yes = "$lt_cv_prog_compiler_static_works"; then
10219 :
10220 else
10221 lt_prog_compiler_static=
10222 fi
10223
10224
10225
10226
10227
10228
10229
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10232 if ${lt_cv_prog_compiler_c_o+:} false; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 lt_cv_prog_compiler_c_o=no
10236 $RM -r conftest 2>/dev/null
10237 mkdir conftest
10238 cd conftest
10239 mkdir out
10240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10241
10242 lt_compiler_flag="-o out/conftest2.$ac_objext"
10243 # Insert the option either (1) after the last *FLAGS variable, or
10244 # (2) before a word containing "conftest.", or (3) at the end.
10245 # Note that $ac_compile itself does not contain backslashes and begins
10246 # with a dollar sign (not a hyphen), so the echo should work correctly.
10247 lt_compile=`echo "$ac_compile" | $SED \
10248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10250 -e 's:$: $lt_compiler_flag:'`
10251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10252 (eval "$lt_compile" 2>out/conftest.err)
10253 ac_status=$?
10254 cat out/conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10257 then
10258 # The compiler can only warn and ignore the option if not recognized
10259 # So say no if there are warnings
10260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10263 lt_cv_prog_compiler_c_o=yes
10264 fi
10265 fi
10266 chmod u+w . 2>&5
10267 $RM conftest*
10268 # SGI C++ compiler will create directory out/ii_files/ for
10269 # template instantiation
10270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10271 $RM out/* && rmdir out
10272 cd ..
10273 $RM -r conftest
10274 $RM conftest*
10275
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10279
10280
10281
10282
10283
10284
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10287 if ${lt_cv_prog_compiler_c_o+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 lt_cv_prog_compiler_c_o=no
10291 $RM -r conftest 2>/dev/null
10292 mkdir conftest
10293 cd conftest
10294 mkdir out
10295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10296
10297 lt_compiler_flag="-o out/conftest2.$ac_objext"
10298 # Insert the option either (1) after the last *FLAGS variable, or
10299 # (2) before a word containing "conftest.", or (3) at the end.
10300 # Note that $ac_compile itself does not contain backslashes and begins
10301 # with a dollar sign (not a hyphen), so the echo should work correctly.
10302 lt_compile=`echo "$ac_compile" | $SED \
10303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10305 -e 's:$: $lt_compiler_flag:'`
10306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10307 (eval "$lt_compile" 2>out/conftest.err)
10308 ac_status=$?
10309 cat out/conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10312 then
10313 # The compiler can only warn and ignore the option if not recognized
10314 # So say no if there are warnings
10315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10318 lt_cv_prog_compiler_c_o=yes
10319 fi
10320 fi
10321 chmod u+w . 2>&5
10322 $RM conftest*
10323 # SGI C++ compiler will create directory out/ii_files/ for
10324 # template instantiation
10325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10326 $RM out/* && rmdir out
10327 cd ..
10328 $RM -r conftest
10329 $RM conftest*
10330
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10333 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10334
10335
10336
10337
10338 hard_links=nottested
10339 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10340 # do not overwrite the value of need_locks provided by the user
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10342 $as_echo_n "checking if we can lock with hard links... " >&6; }
10343 hard_links=yes
10344 $RM conftest*
10345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10346 touch conftest.a
10347 ln conftest.a conftest.b 2>&5 || hard_links=no
10348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10350 $as_echo "$hard_links" >&6; }
10351 if test no = "$hard_links"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10353 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10354 need_locks=warn
10355 fi
10356 else
10357 need_locks=no
10358 fi
10359
10360
10361
10362
10363
10364
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10367
10368 runpath_var=
10369 allow_undefined_flag=
10370 always_export_symbols=no
10371 archive_cmds=
10372 archive_expsym_cmds=
10373 compiler_needs_object=no
10374 enable_shared_with_static_runtimes=no
10375 export_dynamic_flag_spec=
10376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10377 hardcode_automatic=no
10378 hardcode_direct=no
10379 hardcode_direct_absolute=no
10380 hardcode_libdir_flag_spec=
10381 hardcode_libdir_separator=
10382 hardcode_minus_L=no
10383 hardcode_shlibpath_var=unsupported
10384 inherit_rpath=no
10385 link_all_deplibs=unknown
10386 module_cmds=
10387 module_expsym_cmds=
10388 old_archive_from_new_cmds=
10389 old_archive_from_expsyms_cmds=
10390 thread_safe_flag_spec=
10391 whole_archive_flag_spec=
10392 # include_expsyms should be a list of space-separated symbols to be *always*
10393 # included in the symbol list
10394 include_expsyms=
10395 # exclude_expsyms can be an extended regexp of symbols to exclude
10396 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10397 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10398 # as well as any symbol that contains 'd'.
10399 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10401 # platforms (ab)use it in PIC code, but their linkers get confused if
10402 # the symbol is explicitly referenced. Since portable code cannot
10403 # rely on this symbol name, it's probably fine to never include it in
10404 # preloaded symbol tables.
10405 # Exclude shared library initialization/finalization symbols.
10406 extract_expsyms_cmds=
10407
10408 case $host_os in
10409 cygwin* | mingw* | pw32* | cegcc*)
10410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10411 # When not using gcc, we currently assume that we are using
10412 # Microsoft Visual C++.
10413 if test yes != "$GCC"; then
10414 with_gnu_ld=no
10415 fi
10416 ;;
10417 interix*)
10418 # we just hope/assume this is gcc and not c89 (= MSVC++)
10419 with_gnu_ld=yes
10420 ;;
10421 openbsd* | bitrig*)
10422 with_gnu_ld=no
10423 ;;
10424 esac
10425
10426 ld_shlibs=yes
10427
10428 # On some targets, GNU ld is compatible enough with the native linker
10429 # that we're better off using the native interface for both.
10430 lt_use_gnu_ld_interface=no
10431 if test yes = "$with_gnu_ld"; then
10432 case $host_os in
10433 aix*)
10434 # The AIX port of GNU ld has always aspired to compatibility
10435 # with the native linker. However, as the warning in the GNU ld
10436 # block says, versions before 2.19.5* couldn't really create working
10437 # shared libraries, regardless of the interface used.
10438 case `$LD -v 2>&1` in
10439 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10440 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10441 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10442 *)
10443 lt_use_gnu_ld_interface=yes
10444 ;;
10445 esac
10446 ;;
10447 *)
10448 lt_use_gnu_ld_interface=yes
10449 ;;
10450 esac
10451 fi
10452
10453 if test yes = "$lt_use_gnu_ld_interface"; then
10454 # If archive_cmds runs LD, not CC, wlarc should be empty
10455 wlarc='$wl'
10456
10457 # Set some defaults for GNU ld with shared library support. These
10458 # are reset later if shared libraries are not supported. Putting them
10459 # here allows them to be overridden if necessary.
10460 runpath_var=LD_RUN_PATH
10461 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10462 export_dynamic_flag_spec='$wl--export-dynamic'
10463 # ancient GNU ld didn't support --whole-archive et. al.
10464 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10465 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10466 else
10467 whole_archive_flag_spec=
10468 fi
10469 supports_anon_versioning=no
10470 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10471 *GNU\ gold*) supports_anon_versioning=yes ;;
10472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10475 *\ 2.11.*) ;; # other 2.11 versions
10476 *) supports_anon_versioning=yes ;;
10477 esac
10478
10479 # See if GNU ld supports shared libraries.
10480 case $host_os in
10481 aix[3-9]*)
10482 # On AIX/PPC, the GNU linker is very broken
10483 if test ia64 != "$host_cpu"; then
10484 ld_shlibs=no
10485 cat <<_LT_EOF 1>&2
10486
10487 *** Warning: the GNU linker, at least up to release 2.19, is reported
10488 *** to be unable to reliably create shared libraries on AIX.
10489 *** Therefore, libtool is disabling shared libraries support. If you
10490 *** really care for shared libraries, you may want to install binutils
10491 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10492 *** You will then need to restart the configuration process.
10493
10494 _LT_EOF
10495 fi
10496 ;;
10497
10498 amigaos*)
10499 case $host_cpu in
10500 powerpc)
10501 # see comment about AmigaOS4 .so support
10502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10503 archive_expsym_cmds=''
10504 ;;
10505 m68k)
10506 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)'
10507 hardcode_libdir_flag_spec='-L$libdir'
10508 hardcode_minus_L=yes
10509 ;;
10510 esac
10511 ;;
10512
10513 beos*)
10514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10515 allow_undefined_flag=unsupported
10516 # Joseph Beckenbach <[email protected]> says some releases of gcc
10517 # support --undefined. This deserves some investigation. FIXME
10518 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10519 else
10520 ld_shlibs=no
10521 fi
10522 ;;
10523
10524 cygwin* | mingw* | pw32* | cegcc*)
10525 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10526 # as there is no search path for DLLs.
10527 hardcode_libdir_flag_spec='-L$libdir'
10528 export_dynamic_flag_spec='$wl--export-all-symbols'
10529 allow_undefined_flag=unsupported
10530 always_export_symbols=no
10531 enable_shared_with_static_runtimes=yes
10532 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'
10533 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10534
10535 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10537 # If the export-symbols file already is a .def file, use it as
10538 # is; otherwise, prepend EXPORTS...
10539 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10540 cp $export_symbols $output_objdir/$soname.def;
10541 else
10542 echo EXPORTS > $output_objdir/$soname.def;
10543 cat $export_symbols >> $output_objdir/$soname.def;
10544 fi~
10545 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10546 else
10547 ld_shlibs=no
10548 fi
10549 ;;
10550
10551 haiku*)
10552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10553 link_all_deplibs=yes
10554 ;;
10555
10556 os2*)
10557 hardcode_libdir_flag_spec='-L$libdir'
10558 hardcode_minus_L=yes
10559 allow_undefined_flag=unsupported
10560 shrext_cmds=.dll
10561 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10562 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10563 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10564 $ECHO EXPORTS >> $output_objdir/$libname.def~
10565 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10566 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10567 emximp -o $lib $output_objdir/$libname.def'
10568 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10569 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10570 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10571 $ECHO EXPORTS >> $output_objdir/$libname.def~
10572 prefix_cmds="$SED"~
10573 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10574 prefix_cmds="$prefix_cmds -e 1d";
10575 fi~
10576 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10577 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10578 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10579 emximp -o $lib $output_objdir/$libname.def'
10580 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10581 enable_shared_with_static_runtimes=yes
10582 ;;
10583
10584 interix[3-9]*)
10585 hardcode_direct=no
10586 hardcode_shlibpath_var=no
10587 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10588 export_dynamic_flag_spec='$wl-E'
10589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10590 # Instead, shared libraries are loaded at an image base (0x10000000 by
10591 # default) and relocated if they conflict, which is a slow very memory
10592 # consuming and fragmenting process. To avoid this, we pick a random,
10593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10596 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'
10597 ;;
10598
10599 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10600 tmp_diet=no
10601 if test linux-dietlibc = "$host_os"; then
10602 case $cc_basename in
10603 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10604 esac
10605 fi
10606 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10607 && test no = "$tmp_diet"
10608 then
10609 tmp_addflag=' $pic_flag'
10610 tmp_sharedflag='-shared'
10611 case $cc_basename,$host_cpu in
10612 pgcc*) # Portland Group C compiler
10613 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'
10614 tmp_addflag=' $pic_flag'
10615 ;;
10616 pgf77* | pgf90* | pgf95* | pgfortran*)
10617 # Portland Group f77 and f90 compilers
10618 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'
10619 tmp_addflag=' $pic_flag -Mnomain' ;;
10620 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10621 tmp_addflag=' -i_dynamic' ;;
10622 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10623 tmp_addflag=' -i_dynamic -nofor_main' ;;
10624 ifc* | ifort*) # Intel Fortran compiler
10625 tmp_addflag=' -nofor_main' ;;
10626 lf95*) # Lahey Fortran 8.1
10627 whole_archive_flag_spec=
10628 tmp_sharedflag='--shared' ;;
10629 nagfor*) # NAGFOR 5.3
10630 tmp_sharedflag='-Wl,-shared' ;;
10631 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10632 tmp_sharedflag='-qmkshrobj'
10633 tmp_addflag= ;;
10634 nvcc*) # Cuda Compiler Driver 2.2
10635 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'
10636 compiler_needs_object=yes
10637 ;;
10638 esac
10639 case `$CC -V 2>&1 | sed 5q` in
10640 *Sun\ C*) # Sun C 5.9
10641 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'
10642 compiler_needs_object=yes
10643 tmp_sharedflag='-G' ;;
10644 *Sun\ F*) # Sun Fortran 8.3
10645 tmp_sharedflag='-G' ;;
10646 esac
10647 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10648
10649 if test yes = "$supports_anon_versioning"; then
10650 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10652 echo "local: *; };" >> $output_objdir/$libname.ver~
10653 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10654 fi
10655
10656 case $cc_basename in
10657 tcc*)
10658 export_dynamic_flag_spec='-rdynamic'
10659 ;;
10660 xlf* | bgf* | bgxlf* | mpixlf*)
10661 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10662 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10664 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10665 if test yes = "$supports_anon_versioning"; then
10666 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10667 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10668 echo "local: *; };" >> $output_objdir/$libname.ver~
10669 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10670 fi
10671 ;;
10672 esac
10673 else
10674 ld_shlibs=no
10675 fi
10676 ;;
10677
10678 netbsd*)
10679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10680 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10681 wlarc=
10682 else
10683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10684 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10685 fi
10686 ;;
10687
10688 solaris*)
10689 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10690 ld_shlibs=no
10691 cat <<_LT_EOF 1>&2
10692
10693 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10694 *** create shared libraries on Solaris systems. Therefore, libtool
10695 *** is disabling shared libraries support. We urge you to upgrade GNU
10696 *** binutils to release 2.9.1 or newer. Another option is to modify
10697 *** your PATH or compiler configuration so that the native linker is
10698 *** used, and then restart.
10699
10700 _LT_EOF
10701 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10702 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10703 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10704 else
10705 ld_shlibs=no
10706 fi
10707 ;;
10708
10709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10710 case `$LD -v 2>&1` in
10711 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10712 ld_shlibs=no
10713 cat <<_LT_EOF 1>&2
10714
10715 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10716 *** reliably create shared libraries on SCO systems. Therefore, libtool
10717 *** is disabling shared libraries support. We urge you to upgrade GNU
10718 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10719 *** your PATH or compiler configuration so that the native linker is
10720 *** used, and then restart.
10721
10722 _LT_EOF
10723 ;;
10724 *)
10725 # For security reasons, it is highly recommended that you always
10726 # use absolute paths for naming shared libraries, and exclude the
10727 # DT_RUNPATH tag from executables and libraries. But doing so
10728 # requires that you compile everything twice, which is a pain.
10729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10730 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10732 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10733 else
10734 ld_shlibs=no
10735 fi
10736 ;;
10737 esac
10738 ;;
10739
10740 sunos4*)
10741 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10742 wlarc=
10743 hardcode_direct=yes
10744 hardcode_shlibpath_var=no
10745 ;;
10746
10747 *)
10748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10750 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10751 else
10752 ld_shlibs=no
10753 fi
10754 ;;
10755 esac
10756
10757 if test no = "$ld_shlibs"; then
10758 runpath_var=
10759 hardcode_libdir_flag_spec=
10760 export_dynamic_flag_spec=
10761 whole_archive_flag_spec=
10762 fi
10763 else
10764 # PORTME fill in a description of your system's linker (not GNU ld)
10765 case $host_os in
10766 aix3*)
10767 allow_undefined_flag=unsupported
10768 always_export_symbols=yes
10769 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'
10770 # Note: this linker hardcodes the directories in LIBPATH if there
10771 # are no directories specified by -L.
10772 hardcode_minus_L=yes
10773 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10774 # Neither direct hardcoding nor static linking is supported with a
10775 # broken collect2.
10776 hardcode_direct=unsupported
10777 fi
10778 ;;
10779
10780 aix[4-9]*)
10781 if test ia64 = "$host_cpu"; then
10782 # On IA64, the linker does run time linking by default, so we don't
10783 # have to do anything special.
10784 aix_use_runtimelinking=no
10785 exp_sym_flag='-Bexport'
10786 no_entry_flag=
10787 else
10788 # If we're using GNU nm, then we don't want the "-C" option.
10789 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10790 # Without the "-l" option, or with the "-B" option, AIX nm treats
10791 # weak defined symbols like other global defined symbols, whereas
10792 # GNU nm marks them as "W".
10793 # While the 'weak' keyword is ignored in the Export File, we need
10794 # it in the Import File for the 'aix-soname' feature, so we have
10795 # to replace the "-B" option with "-P" for AIX nm.
10796 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10797 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10798 else
10799 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10800 fi
10801 aix_use_runtimelinking=no
10802
10803 # Test if we are trying to use run time linking or normal
10804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10805 # have runtime linking enabled, and use it for executables.
10806 # For shared libraries, we enable/disable runtime linking
10807 # depending on the kind of the shared library created -
10808 # when "with_aix_soname,aix_use_runtimelinking" is:
10809 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10810 # "aix,yes" lib.so shared, rtl:yes, for executables
10811 # lib.a static archive
10812 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10813 # lib.a(lib.so.V) shared, rtl:no, for executables
10814 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10815 # lib.a(lib.so.V) shared, rtl:no
10816 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10817 # lib.a static archive
10818 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10819 for ld_flag in $LDFLAGS; do
10820 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10821 aix_use_runtimelinking=yes
10822 break
10823 fi
10824 done
10825 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10826 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10827 # so we don't have lib.a shared libs to link our executables.
10828 # We have to force runtime linking in this case.
10829 aix_use_runtimelinking=yes
10830 LDFLAGS="$LDFLAGS -Wl,-brtl"
10831 fi
10832 ;;
10833 esac
10834
10835 exp_sym_flag='-bexport'
10836 no_entry_flag='-bnoentry'
10837 fi
10838
10839 # When large executables or shared objects are built, AIX ld can
10840 # have problems creating the table of contents. If linking a library
10841 # or program results in "error TOC overflow" add -mminimal-toc to
10842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10844
10845 archive_cmds=''
10846 hardcode_direct=yes
10847 hardcode_direct_absolute=yes
10848 hardcode_libdir_separator=':'
10849 link_all_deplibs=yes
10850 file_list_spec='$wl-f,'
10851 case $with_aix_soname,$aix_use_runtimelinking in
10852 aix,*) ;; # traditional, no import file
10853 svr4,* | *,yes) # use import file
10854 # The Import File defines what to hardcode.
10855 hardcode_direct=no
10856 hardcode_direct_absolute=no
10857 ;;
10858 esac
10859
10860 if test yes = "$GCC"; then
10861 case $host_os in aix4.[012]|aix4.[012].*)
10862 # We only want to do this on AIX 4.2 and lower, the check
10863 # below for broken collect2 doesn't work under 4.3+
10864 collect2name=`$CC -print-prog-name=collect2`
10865 if test -f "$collect2name" &&
10866 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10867 then
10868 # We have reworked collect2
10869 :
10870 else
10871 # We have old collect2
10872 hardcode_direct=unsupported
10873 # It fails to find uninstalled libraries when the uninstalled
10874 # path is not listed in the libpath. Setting hardcode_minus_L
10875 # to unsupported forces relinking
10876 hardcode_minus_L=yes
10877 hardcode_libdir_flag_spec='-L$libdir'
10878 hardcode_libdir_separator=
10879 fi
10880 ;;
10881 esac
10882 shared_flag='-shared'
10883 if test yes = "$aix_use_runtimelinking"; then
10884 shared_flag="$shared_flag "'$wl-G'
10885 fi
10886 # Need to ensure runtime linking is disabled for the traditional
10887 # shared library, or the linker may eventually find shared libraries
10888 # /with/ Import File - we do not want to mix them.
10889 shared_flag_aix='-shared'
10890 shared_flag_svr4='-shared $wl-G'
10891 else
10892 # not using gcc
10893 if test ia64 = "$host_cpu"; then
10894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10895 # chokes on -Wl,-G. The following line is correct:
10896 shared_flag='-G'
10897 else
10898 if test yes = "$aix_use_runtimelinking"; then
10899 shared_flag='$wl-G'
10900 else
10901 shared_flag='$wl-bM:SRE'
10902 fi
10903 shared_flag_aix='$wl-bM:SRE'
10904 shared_flag_svr4='$wl-G'
10905 fi
10906 fi
10907
10908 export_dynamic_flag_spec='$wl-bexpall'
10909 # It seems that -bexpall does not export symbols beginning with
10910 # underscore (_), so it is better to generate a list of symbols to export.
10911 always_export_symbols=yes
10912 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10913 # Warning - without using the other runtime loading flags (-brtl),
10914 # -berok will link without error, but may produce a broken library.
10915 allow_undefined_flag='-berok'
10916 # Determine the default libpath from the value encoded in an
10917 # empty executable.
10918 if test set = "${lt_cv_aix_libpath+set}"; then
10919 aix_libpath=$lt_cv_aix_libpath
10920 else
10921 if ${lt_cv_aix_libpath_+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926
10927 int
10928 main ()
10929 {
10930
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936
10937 lt_aix_libpath_sed='
10938 /Import File Strings/,/^$/ {
10939 /^0/ {
10940 s/^0 *\([^ ]*\) *$/\1/
10941 p
10942 }
10943 }'
10944 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10945 # Check for a 64-bit object if we didn't find anything.
10946 if test -z "$lt_cv_aix_libpath_"; then
10947 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10948 fi
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 if test -z "$lt_cv_aix_libpath_"; then
10953 lt_cv_aix_libpath_=/usr/lib:/lib
10954 fi
10955
10956 fi
10957
10958 aix_libpath=$lt_cv_aix_libpath_
10959 fi
10960
10961 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10962 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10963 else
10964 if test ia64 = "$host_cpu"; then
10965 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10966 allow_undefined_flag="-z nodefs"
10967 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"
10968 else
10969 # Determine the default libpath from the value encoded in an
10970 # empty executable.
10971 if test set = "${lt_cv_aix_libpath+set}"; then
10972 aix_libpath=$lt_cv_aix_libpath
10973 else
10974 if ${lt_cv_aix_libpath_+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979
10980 int
10981 main ()
10982 {
10983
10984 ;
10985 return 0;
10986 }
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10989
10990 lt_aix_libpath_sed='
10991 /Import File Strings/,/^$/ {
10992 /^0/ {
10993 s/^0 *\([^ ]*\) *$/\1/
10994 p
10995 }
10996 }'
10997 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10998 # Check for a 64-bit object if we didn't find anything.
10999 if test -z "$lt_cv_aix_libpath_"; then
11000 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11001 fi
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 if test -z "$lt_cv_aix_libpath_"; then
11006 lt_cv_aix_libpath_=/usr/lib:/lib
11007 fi
11008
11009 fi
11010
11011 aix_libpath=$lt_cv_aix_libpath_
11012 fi
11013
11014 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11015 # Warning - without using the other run time loading flags,
11016 # -berok will link without error, but may produce a broken library.
11017 no_undefined_flag=' $wl-bernotok'
11018 allow_undefined_flag=' $wl-berok'
11019 if test yes = "$with_gnu_ld"; then
11020 # We only use this code for GNU lds that support --whole-archive.
11021 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11022 else
11023 # Exported symbols can be pulled into shared objects from archives
11024 whole_archive_flag_spec='$convenience'
11025 fi
11026 archive_cmds_need_lc=yes
11027 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11028 # -brtl affects multiple linker settings, -berok does not and is overridden later
11029 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11030 if test svr4 != "$with_aix_soname"; then
11031 # This is similar to how AIX traditionally builds its shared libraries.
11032 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11033 fi
11034 if test aix != "$with_aix_soname"; then
11035 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11036 else
11037 # used by -dlpreopen to get the symbols
11038 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11039 fi
11040 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11041 fi
11042 fi
11043 ;;
11044
11045 amigaos*)
11046 case $host_cpu in
11047 powerpc)
11048 # see comment about AmigaOS4 .so support
11049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11050 archive_expsym_cmds=''
11051 ;;
11052 m68k)
11053 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)'
11054 hardcode_libdir_flag_spec='-L$libdir'
11055 hardcode_minus_L=yes
11056 ;;
11057 esac
11058 ;;
11059
11060 bsdi[45]*)
11061 export_dynamic_flag_spec=-rdynamic
11062 ;;
11063
11064 cygwin* | mingw* | pw32* | cegcc*)
11065 # When not using gcc, we currently assume that we are using
11066 # Microsoft Visual C++.
11067 # hardcode_libdir_flag_spec is actually meaningless, as there is
11068 # no search path for DLLs.
11069 case $cc_basename in
11070 cl*)
11071 # Native MSVC
11072 hardcode_libdir_flag_spec=' '
11073 allow_undefined_flag=unsupported
11074 always_export_symbols=yes
11075 file_list_spec='@'
11076 # Tell ltmain to make .lib files, not .a files.
11077 libext=lib
11078 # Tell ltmain to make .dll files, not .so files.
11079 shrext_cmds=.dll
11080 # FIXME: Setting linknames here is a bad hack.
11081 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11082 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11083 cp "$export_symbols" "$output_objdir/$soname.def";
11084 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11085 else
11086 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11087 fi~
11088 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11089 linknames='
11090 # The linker will not automatically build a static lib if we build a DLL.
11091 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11092 enable_shared_with_static_runtimes=yes
11093 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11095 # Don't use ranlib
11096 old_postinstall_cmds='chmod 644 $oldlib'
11097 postlink_cmds='lt_outputfile="@OUTPUT@"~
11098 lt_tool_outputfile="@TOOL_OUTPUT@"~
11099 case $lt_outputfile in
11100 *.exe|*.EXE) ;;
11101 *)
11102 lt_outputfile=$lt_outputfile.exe
11103 lt_tool_outputfile=$lt_tool_outputfile.exe
11104 ;;
11105 esac~
11106 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11107 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11108 $RM "$lt_outputfile.manifest";
11109 fi'
11110 ;;
11111 *)
11112 # Assume MSVC wrapper
11113 hardcode_libdir_flag_spec=' '
11114 allow_undefined_flag=unsupported
11115 # Tell ltmain to make .lib files, not .a files.
11116 libext=lib
11117 # Tell ltmain to make .dll files, not .so files.
11118 shrext_cmds=.dll
11119 # FIXME: Setting linknames here is a bad hack.
11120 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11121 # The linker will automatically build a .lib file if we build a DLL.
11122 old_archive_from_new_cmds='true'
11123 # FIXME: Should let the user specify the lib program.
11124 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11125 enable_shared_with_static_runtimes=yes
11126 ;;
11127 esac
11128 ;;
11129
11130 darwin* | rhapsody*)
11131
11132
11133 archive_cmds_need_lc=no
11134 hardcode_direct=no
11135 hardcode_automatic=yes
11136 hardcode_shlibpath_var=unsupported
11137 if test yes = "$lt_cv_ld_force_load"; then
11138 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\"`'
11139
11140 else
11141 whole_archive_flag_spec=''
11142 fi
11143 link_all_deplibs=yes
11144 allow_undefined_flag=$_lt_dar_allow_undefined
11145 case $cc_basename in
11146 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11147 *) _lt_dar_can_shared=$GCC ;;
11148 esac
11149 if test yes = "$_lt_dar_can_shared"; then
11150 output_verbose_link_cmd=func_echo_all
11151 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11152 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11153 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"
11154 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"
11155
11156 else
11157 ld_shlibs=no
11158 fi
11159
11160 ;;
11161
11162 dgux*)
11163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11164 hardcode_libdir_flag_spec='-L$libdir'
11165 hardcode_shlibpath_var=no
11166 ;;
11167
11168 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11169 # support. Future versions do this automatically, but an explicit c++rt0.o
11170 # does not break anything, and helps significantly (at the cost of a little
11171 # extra space).
11172 freebsd2.2*)
11173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11174 hardcode_libdir_flag_spec='-R$libdir'
11175 hardcode_direct=yes
11176 hardcode_shlibpath_var=no
11177 ;;
11178
11179 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11180 freebsd2.*)
11181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11182 hardcode_direct=yes
11183 hardcode_minus_L=yes
11184 hardcode_shlibpath_var=no
11185 ;;
11186
11187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11188 freebsd* | dragonfly*)
11189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11190 hardcode_libdir_flag_spec='-R$libdir'
11191 hardcode_direct=yes
11192 hardcode_shlibpath_var=no
11193 ;;
11194
11195 hpux9*)
11196 if test yes = "$GCC"; then
11197 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11198 else
11199 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11200 fi
11201 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11202 hardcode_libdir_separator=:
11203 hardcode_direct=yes
11204
11205 # hardcode_minus_L: Not really in the search PATH,
11206 # but as the default location of the library.
11207 hardcode_minus_L=yes
11208 export_dynamic_flag_spec='$wl-E'
11209 ;;
11210
11211 hpux10*)
11212 if test yes,no = "$GCC,$with_gnu_ld"; then
11213 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11214 else
11215 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11216 fi
11217 if test no = "$with_gnu_ld"; then
11218 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11219 hardcode_libdir_separator=:
11220 hardcode_direct=yes
11221 hardcode_direct_absolute=yes
11222 export_dynamic_flag_spec='$wl-E'
11223 # hardcode_minus_L: Not really in the search PATH,
11224 # but as the default location of the library.
11225 hardcode_minus_L=yes
11226 fi
11227 ;;
11228
11229 hpux11*)
11230 if test yes,no = "$GCC,$with_gnu_ld"; then
11231 case $host_cpu in
11232 hppa*64*)
11233 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11234 ;;
11235 ia64*)
11236 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11237 ;;
11238 *)
11239 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11240 ;;
11241 esac
11242 else
11243 case $host_cpu in
11244 hppa*64*)
11245 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11246 ;;
11247 ia64*)
11248 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11249 ;;
11250 *)
11251
11252 # Older versions of the 11.00 compiler do not understand -b yet
11253 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11255 $as_echo_n "checking if $CC understands -b... " >&6; }
11256 if ${lt_cv_prog_compiler__b+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 lt_cv_prog_compiler__b=no
11260 save_LDFLAGS=$LDFLAGS
11261 LDFLAGS="$LDFLAGS -b"
11262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11264 # The linker can only warn and ignore the option if not recognized
11265 # So say no if there are warnings
11266 if test -s conftest.err; then
11267 # Append any errors to the config.log.
11268 cat conftest.err 1>&5
11269 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11271 if diff conftest.exp conftest.er2 >/dev/null; then
11272 lt_cv_prog_compiler__b=yes
11273 fi
11274 else
11275 lt_cv_prog_compiler__b=yes
11276 fi
11277 fi
11278 $RM -r conftest*
11279 LDFLAGS=$save_LDFLAGS
11280
11281 fi
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11283 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11284
11285 if test yes = "$lt_cv_prog_compiler__b"; then
11286 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11287 else
11288 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11289 fi
11290
11291 ;;
11292 esac
11293 fi
11294 if test no = "$with_gnu_ld"; then
11295 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11296 hardcode_libdir_separator=:
11297
11298 case $host_cpu in
11299 hppa*64*|ia64*)
11300 hardcode_direct=no
11301 hardcode_shlibpath_var=no
11302 ;;
11303 *)
11304 hardcode_direct=yes
11305 hardcode_direct_absolute=yes
11306 export_dynamic_flag_spec='$wl-E'
11307
11308 # hardcode_minus_L: Not really in the search PATH,
11309 # but as the default location of the library.
11310 hardcode_minus_L=yes
11311 ;;
11312 esac
11313 fi
11314 ;;
11315
11316 irix5* | irix6* | nonstopux*)
11317 if test yes = "$GCC"; then
11318 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'
11319 # Try to use the -exported_symbol ld option, if it does not
11320 # work, assume that -exports_file does not work either and
11321 # implicitly export all symbols.
11322 # This should be the same for all languages, so no per-tag cache variable.
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11324 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11325 if ${lt_cv_irix_exported_symbol+:} false; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 save_LDFLAGS=$LDFLAGS
11329 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332 int foo (void) { return 0; }
11333 _ACEOF
11334 if ac_fn_c_try_link "$LINENO"; then :
11335 lt_cv_irix_exported_symbol=yes
11336 else
11337 lt_cv_irix_exported_symbol=no
11338 fi
11339 rm -f core conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
11341 LDFLAGS=$save_LDFLAGS
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11344 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11345 if test yes = "$lt_cv_irix_exported_symbol"; then
11346 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'
11347 fi
11348 else
11349 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'
11350 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'
11351 fi
11352 archive_cmds_need_lc='no'
11353 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11354 hardcode_libdir_separator=:
11355 inherit_rpath=yes
11356 link_all_deplibs=yes
11357 ;;
11358
11359 linux*)
11360 case $cc_basename in
11361 tcc*)
11362 # Fabrice Bellard et al's Tiny C Compiler
11363 ld_shlibs=yes
11364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11365 ;;
11366 esac
11367 ;;
11368
11369 netbsd*)
11370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11372 else
11373 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11374 fi
11375 hardcode_libdir_flag_spec='-R$libdir'
11376 hardcode_direct=yes
11377 hardcode_shlibpath_var=no
11378 ;;
11379
11380 newsos6)
11381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11382 hardcode_direct=yes
11383 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11384 hardcode_libdir_separator=:
11385 hardcode_shlibpath_var=no
11386 ;;
11387
11388 *nto* | *qnx*)
11389 ;;
11390
11391 openbsd* | bitrig*)
11392 if test -f /usr/libexec/ld.so; then
11393 hardcode_direct=yes
11394 hardcode_shlibpath_var=no
11395 hardcode_direct_absolute=yes
11396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11399 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11400 export_dynamic_flag_spec='$wl-E'
11401 else
11402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11403 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11404 fi
11405 else
11406 ld_shlibs=no
11407 fi
11408 ;;
11409
11410 os2*)
11411 hardcode_libdir_flag_spec='-L$libdir'
11412 hardcode_minus_L=yes
11413 allow_undefined_flag=unsupported
11414 shrext_cmds=.dll
11415 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11416 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11417 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11418 $ECHO EXPORTS >> $output_objdir/$libname.def~
11419 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11420 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11421 emximp -o $lib $output_objdir/$libname.def'
11422 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11423 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11424 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11425 $ECHO EXPORTS >> $output_objdir/$libname.def~
11426 prefix_cmds="$SED"~
11427 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11428 prefix_cmds="$prefix_cmds -e 1d";
11429 fi~
11430 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11431 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11432 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11433 emximp -o $lib $output_objdir/$libname.def'
11434 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11435 enable_shared_with_static_runtimes=yes
11436 ;;
11437
11438 osf3*)
11439 if test yes = "$GCC"; then
11440 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11441 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'
11442 else
11443 allow_undefined_flag=' -expect_unresolved \*'
11444 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'
11445 fi
11446 archive_cmds_need_lc='no'
11447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11448 hardcode_libdir_separator=:
11449 ;;
11450
11451 osf4* | osf5*) # as osf3* with the addition of -msym flag
11452 if test yes = "$GCC"; then
11453 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11454 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'
11455 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11456 else
11457 allow_undefined_flag=' -expect_unresolved \*'
11458 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'
11459 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~
11460 $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'
11461
11462 # Both c and cxx compiler support -rpath directly
11463 hardcode_libdir_flag_spec='-rpath $libdir'
11464 fi
11465 archive_cmds_need_lc='no'
11466 hardcode_libdir_separator=:
11467 ;;
11468
11469 solaris*)
11470 no_undefined_flag=' -z defs'
11471 if test yes = "$GCC"; then
11472 wlarc='$wl'
11473 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11475 $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'
11476 else
11477 case `$CC -V 2>&1` in
11478 *"Compilers 5.0"*)
11479 wlarc=''
11480 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11481 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11482 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11483 ;;
11484 *)
11485 wlarc='$wl'
11486 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11488 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11489 ;;
11490 esac
11491 fi
11492 hardcode_libdir_flag_spec='-R$libdir'
11493 hardcode_shlibpath_var=no
11494 case $host_os in
11495 solaris2.[0-5] | solaris2.[0-5].*) ;;
11496 *)
11497 # The compiler driver will combine and reorder linker options,
11498 # but understands '-z linker_flag'. GCC discards it without '$wl',
11499 # but is careful enough not to reorder.
11500 # Supported since Solaris 2.6 (maybe 2.5.1?)
11501 if test yes = "$GCC"; then
11502 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11503 else
11504 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11505 fi
11506 ;;
11507 esac
11508 link_all_deplibs=yes
11509 ;;
11510
11511 sunos4*)
11512 if test sequent = "$host_vendor"; then
11513 # Use $CC to link under sequent, because it throws in some extra .o
11514 # files that make .init and .fini sections work.
11515 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11516 else
11517 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11518 fi
11519 hardcode_libdir_flag_spec='-L$libdir'
11520 hardcode_direct=yes
11521 hardcode_minus_L=yes
11522 hardcode_shlibpath_var=no
11523 ;;
11524
11525 sysv4)
11526 case $host_vendor in
11527 sni)
11528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11529 hardcode_direct=yes # is this really true???
11530 ;;
11531 siemens)
11532 ## LD is ld it makes a PLAMLIB
11533 ## CC just makes a GrossModule.
11534 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11535 reload_cmds='$CC -r -o $output$reload_objs'
11536 hardcode_direct=no
11537 ;;
11538 motorola)
11539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11540 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11541 ;;
11542 esac
11543 runpath_var='LD_RUN_PATH'
11544 hardcode_shlibpath_var=no
11545 ;;
11546
11547 sysv4.3*)
11548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11549 hardcode_shlibpath_var=no
11550 export_dynamic_flag_spec='-Bexport'
11551 ;;
11552
11553 sysv4*MP*)
11554 if test -d /usr/nec; then
11555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11556 hardcode_shlibpath_var=no
11557 runpath_var=LD_RUN_PATH
11558 hardcode_runpath_var=yes
11559 ld_shlibs=yes
11560 fi
11561 ;;
11562
11563 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11564 no_undefined_flag='$wl-z,text'
11565 archive_cmds_need_lc=no
11566 hardcode_shlibpath_var=no
11567 runpath_var='LD_RUN_PATH'
11568
11569 if test yes = "$GCC"; then
11570 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11571 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11572 else
11573 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11574 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11575 fi
11576 ;;
11577
11578 sysv5* | sco3.2v5* | sco5v6*)
11579 # Note: We CANNOT use -z defs as we might desire, because we do not
11580 # link with -lc, and that would cause any symbols used from libc to
11581 # always be unresolved, which means just about no library would
11582 # ever link correctly. If we're not using GNU ld we use -z text
11583 # though, which does catch some bad symbols but isn't as heavy-handed
11584 # as -z defs.
11585 no_undefined_flag='$wl-z,text'
11586 allow_undefined_flag='$wl-z,nodefs'
11587 archive_cmds_need_lc=no
11588 hardcode_shlibpath_var=no
11589 hardcode_libdir_flag_spec='$wl-R,$libdir'
11590 hardcode_libdir_separator=':'
11591 link_all_deplibs=yes
11592 export_dynamic_flag_spec='$wl-Bexport'
11593 runpath_var='LD_RUN_PATH'
11594
11595 if test yes = "$GCC"; then
11596 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11597 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11598 else
11599 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11600 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11601 fi
11602 ;;
11603
11604 uts4*)
11605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11606 hardcode_libdir_flag_spec='-L$libdir'
11607 hardcode_shlibpath_var=no
11608 ;;
11609
11610 *)
11611 ld_shlibs=no
11612 ;;
11613 esac
11614
11615 if test sni = "$host_vendor"; then
11616 case $host in
11617 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11618 export_dynamic_flag_spec='$wl-Blargedynsym'
11619 ;;
11620 esac
11621 fi
11622 fi
11623
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11625 $as_echo "$ld_shlibs" >&6; }
11626 test no = "$ld_shlibs" && can_build_shared=no
11627
11628 with_gnu_ld=$with_gnu_ld
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644 #
11645 # Do we need to explicitly link libc?
11646 #
11647 case "x$archive_cmds_need_lc" in
11648 x|xyes)
11649 # Assume -lc should be added
11650 archive_cmds_need_lc=yes
11651
11652 if test yes,yes = "$GCC,$enable_shared"; then
11653 case $archive_cmds in
11654 *'~'*)
11655 # FIXME: we may have to deal with multi-command sequences.
11656 ;;
11657 '$CC '*)
11658 # Test whether the compiler implicitly links with -lc since on some
11659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11660 # to ld, don't add -lc before -lgcc.
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11662 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11663 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 $RM conftest*
11667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11668
11669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11670 (eval $ac_compile) 2>&5
11671 ac_status=$?
11672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11673 test $ac_status = 0; } 2>conftest.err; then
11674 soname=conftest
11675 lib=conftest
11676 libobjs=conftest.$ac_objext
11677 deplibs=
11678 wl=$lt_prog_compiler_wl
11679 pic_flag=$lt_prog_compiler_pic
11680 compiler_flags=-v
11681 linker_flags=-v
11682 verstring=
11683 output_objdir=.
11684 libname=conftest
11685 lt_save_allow_undefined_flag=$allow_undefined_flag
11686 allow_undefined_flag=
11687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11688 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11689 ac_status=$?
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; }
11692 then
11693 lt_cv_archive_cmds_need_lc=no
11694 else
11695 lt_cv_archive_cmds_need_lc=yes
11696 fi
11697 allow_undefined_flag=$lt_save_allow_undefined_flag
11698 else
11699 cat conftest.err 1>&5
11700 fi
11701 $RM conftest*
11702
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11705 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11706 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11707 ;;
11708 esac
11709 fi
11710 ;;
11711 esac
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11865 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11866
11867 if test yes = "$GCC"; then
11868 case $host_os in
11869 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11870 *) lt_awk_arg='/^libraries:/' ;;
11871 esac
11872 case $host_os in
11873 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11874 *) lt_sed_strip_eq='s|=/|/|g' ;;
11875 esac
11876 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11877 case $lt_search_path_spec in
11878 *\;*)
11879 # if the path contains ";" then we assume it to be the separator
11880 # otherwise default to the standard path separator (i.e. ":") - it is
11881 # assumed that no part of a normal pathname contains ";" but that should
11882 # okay in the real world where ";" in dirpaths is itself problematic.
11883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11884 ;;
11885 *)
11886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11887 ;;
11888 esac
11889 # Ok, now we have the path, separated by spaces, we can step through it
11890 # and add multilib dir if necessary...
11891 lt_tmp_lt_search_path_spec=
11892 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11893 # ...but if some path component already ends with the multilib dir we assume
11894 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11895 case "$lt_multi_os_dir; $lt_search_path_spec " in
11896 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11897 lt_multi_os_dir=
11898 ;;
11899 esac
11900 for lt_sys_path in $lt_search_path_spec; do
11901 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11903 elif test -n "$lt_multi_os_dir"; then
11904 test -d "$lt_sys_path" && \
11905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11906 fi
11907 done
11908 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11909 BEGIN {RS = " "; FS = "/|\n";} {
11910 lt_foo = "";
11911 lt_count = 0;
11912 for (lt_i = NF; lt_i > 0; lt_i--) {
11913 if ($lt_i != "" && $lt_i != ".") {
11914 if ($lt_i == "..") {
11915 lt_count++;
11916 } else {
11917 if (lt_count == 0) {
11918 lt_foo = "/" $lt_i lt_foo;
11919 } else {
11920 lt_count--;
11921 }
11922 }
11923 }
11924 }
11925 if (lt_foo != "") { lt_freq[lt_foo]++; }
11926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11927 }'`
11928 # AWK program above erroneously prepends '/' to C:/dos/paths
11929 # for these hosts.
11930 case $host_os in
11931 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11932 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11933 esac
11934 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11935 else
11936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11937 fi
11938 library_names_spec=
11939 libname_spec='lib$name'
11940 soname_spec=
11941 shrext_cmds=.so
11942 postinstall_cmds=
11943 postuninstall_cmds=
11944 finish_cmds=
11945 finish_eval=
11946 shlibpath_var=
11947 shlibpath_overrides_runpath=unknown
11948 version_type=none
11949 dynamic_linker="$host_os ld.so"
11950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11951 need_lib_prefix=unknown
11952 hardcode_into_libs=no
11953
11954 # when you set need_version to no, make sure it does not cause -set_version
11955 # flags to be left without arguments
11956 need_version=unknown
11957
11958
11959
11960 case $host_os in
11961 aix3*)
11962 version_type=linux # correct to gnu/linux during the next big refactor
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11964 shlibpath_var=LIBPATH
11965
11966 # AIX 3 has no versioning support, so we append a major version to the name.
11967 soname_spec='$libname$release$shared_ext$major'
11968 ;;
11969
11970 aix[4-9]*)
11971 version_type=linux # correct to gnu/linux during the next big refactor
11972 need_lib_prefix=no
11973 need_version=no
11974 hardcode_into_libs=yes
11975 if test ia64 = "$host_cpu"; then
11976 # AIX 5 supports IA64
11977 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 else
11980 # With GCC up to 2.95.x, collect2 would create an import file
11981 # for dependence libraries. The import file would start with
11982 # the line '#! .'. This would cause the generated library to
11983 # depend on '.', always an invalid library. This was fixed in
11984 # development snapshots of GCC prior to 3.0.
11985 case $host_os in
11986 aix4 | aix4.[01] | aix4.[01].*)
11987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11988 echo ' yes '
11989 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11990 :
11991 else
11992 can_build_shared=no
11993 fi
11994 ;;
11995 esac
11996 # Using Import Files as archive members, it is possible to support
11997 # filename-based versioning of shared library archives on AIX. While
11998 # this would work for both with and without runtime linking, it will
11999 # prevent static linking of such archives. So we do filename-based
12000 # shared library versioning with .so extension only, which is used
12001 # when both runtime linking and shared linking is enabled.
12002 # Unfortunately, runtime linking may impact performance, so we do
12003 # not want this to be the default eventually. Also, we use the
12004 # versioned .so libs for executables only if there is the -brtl
12005 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12006 # To allow for filename-based versioning support, we need to create
12007 # libNAME.so.V as an archive file, containing:
12008 # *) an Import File, referring to the versioned filename of the
12009 # archive as well as the shared archive member, telling the
12010 # bitwidth (32 or 64) of that shared object, and providing the
12011 # list of exported symbols of that shared object, eventually
12012 # decorated with the 'weak' keyword
12013 # *) the shared object with the F_LOADONLY flag set, to really avoid
12014 # it being seen by the linker.
12015 # At run time we better use the real file rather than another symlink,
12016 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12017
12018 case $with_aix_soname,$aix_use_runtimelinking in
12019 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12020 # soname into executable. Probably we can add versioning support to
12021 # collect2, so additional links can be useful in future.
12022 aix,yes) # traditional libtool
12023 dynamic_linker='AIX unversionable lib.so'
12024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12025 # instead of lib<name>.a to let people know that these are not
12026 # typical AIX shared libraries.
12027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12028 ;;
12029 aix,no) # traditional AIX only
12030 dynamic_linker='AIX lib.a(lib.so.V)'
12031 # We preserve .a as extension for shared libraries through AIX4.2
12032 # and later when we are not doing run time linking.
12033 library_names_spec='$libname$release.a $libname.a'
12034 soname_spec='$libname$release$shared_ext$major'
12035 ;;
12036 svr4,*) # full svr4 only
12037 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12038 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12039 # We do not specify a path in Import Files, so LIBPATH fires.
12040 shlibpath_overrides_runpath=yes
12041 ;;
12042 *,yes) # both, prefer svr4
12043 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12044 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12045 # unpreferred sharedlib libNAME.a needs extra handling
12046 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12047 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12048 # We do not specify a path in Import Files, so LIBPATH fires.
12049 shlibpath_overrides_runpath=yes
12050 ;;
12051 *,no) # both, prefer aix
12052 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12053 library_names_spec='$libname$release.a $libname.a'
12054 soname_spec='$libname$release$shared_ext$major'
12055 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12056 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12057 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12058 ;;
12059 esac
12060 shlibpath_var=LIBPATH
12061 fi
12062 ;;
12063
12064 amigaos*)
12065 case $host_cpu in
12066 powerpc)
12067 # Since July 2007 AmigaOS4 officially supports .so libraries.
12068 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12070 ;;
12071 m68k)
12072 library_names_spec='$libname.ixlibrary $libname.a'
12073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12074 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12075 ;;
12076 esac
12077 ;;
12078
12079 beos*)
12080 library_names_spec='$libname$shared_ext'
12081 dynamic_linker="$host_os ld.so"
12082 shlibpath_var=LIBRARY_PATH
12083 ;;
12084
12085 bsdi[45]*)
12086 version_type=linux # correct to gnu/linux during the next big refactor
12087 need_version=no
12088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12089 soname_spec='$libname$release$shared_ext$major'
12090 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12093 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12094 # the default ld.so.conf also contains /usr/contrib/lib and
12095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12096 # libtool to hard-code these into programs
12097 ;;
12098
12099 cygwin* | mingw* | pw32* | cegcc*)
12100 version_type=windows
12101 shrext_cmds=.dll
12102 need_version=no
12103 need_lib_prefix=no
12104
12105 case $GCC,$cc_basename in
12106 yes,*)
12107 # gcc
12108 library_names_spec='$libname.dll.a'
12109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12110 postinstall_cmds='base_file=`basename \$file`~
12111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12112 dldir=$destdir/`dirname \$dlpath`~
12113 test -d \$dldir || mkdir -p \$dldir~
12114 $install_prog $dir/$dlname \$dldir/$dlname~
12115 chmod a+x \$dldir/$dlname~
12116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12117 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12118 fi'
12119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12120 dlpath=$dir/\$dldll~
12121 $RM \$dlpath'
12122 shlibpath_overrides_runpath=yes
12123
12124 case $host_os in
12125 cygwin*)
12126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12127 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12128
12129 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12130 ;;
12131 mingw* | cegcc*)
12132 # MinGW DLLs use traditional 'lib' prefix
12133 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12134 ;;
12135 pw32*)
12136 # pw32 DLLs use 'pw' prefix rather than 'lib'
12137 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12138 ;;
12139 esac
12140 dynamic_linker='Win32 ld.exe'
12141 ;;
12142
12143 *,cl*)
12144 # Native MSVC
12145 libname_spec='$name'
12146 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12147 library_names_spec='$libname.dll.lib'
12148
12149 case $build_os in
12150 mingw*)
12151 sys_lib_search_path_spec=
12152 lt_save_ifs=$IFS
12153 IFS=';'
12154 for lt_path in $LIB
12155 do
12156 IFS=$lt_save_ifs
12157 # Let DOS variable expansion print the short 8.3 style file name.
12158 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12159 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12160 done
12161 IFS=$lt_save_ifs
12162 # Convert to MSYS style.
12163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12164 ;;
12165 cygwin*)
12166 # Convert to unix form, then to dos form, then back to unix form
12167 # but this time dos style (no spaces!) so that the unix form looks
12168 # like /cygdrive/c/PROGRA~1:/cygdr...
12169 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12170 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12171 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12172 ;;
12173 *)
12174 sys_lib_search_path_spec=$LIB
12175 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12176 # It is most probably a Windows format PATH.
12177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12178 else
12179 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12180 fi
12181 # FIXME: find the short name or the path components, as spaces are
12182 # common. (e.g. "Program Files" -> "PROGRA~1")
12183 ;;
12184 esac
12185
12186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12187 postinstall_cmds='base_file=`basename \$file`~
12188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12189 dldir=$destdir/`dirname \$dlpath`~
12190 test -d \$dldir || mkdir -p \$dldir~
12191 $install_prog $dir/$dlname \$dldir/$dlname'
12192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12193 dlpath=$dir/\$dldll~
12194 $RM \$dlpath'
12195 shlibpath_overrides_runpath=yes
12196 dynamic_linker='Win32 link.exe'
12197 ;;
12198
12199 *)
12200 # Assume MSVC wrapper
12201 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12202 dynamic_linker='Win32 ld.exe'
12203 ;;
12204 esac
12205 # FIXME: first we should search . and the directory the executable is in
12206 shlibpath_var=PATH
12207 ;;
12208
12209 darwin* | rhapsody*)
12210 dynamic_linker="$host_os dyld"
12211 version_type=darwin
12212 need_lib_prefix=no
12213 need_version=no
12214 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12215 soname_spec='$libname$release$major$shared_ext'
12216 shlibpath_overrides_runpath=yes
12217 shlibpath_var=DYLD_LIBRARY_PATH
12218 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12219
12220 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12222 ;;
12223
12224 dgux*)
12225 version_type=linux # correct to gnu/linux during the next big refactor
12226 need_lib_prefix=no
12227 need_version=no
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 soname_spec='$libname$release$shared_ext$major'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 ;;
12232
12233 freebsd* | dragonfly*)
12234 # DragonFly does not have aout. When/if they implement a new
12235 # versioning mechanism, adjust this.
12236 if test -x /usr/bin/objformat; then
12237 objformat=`/usr/bin/objformat`
12238 else
12239 case $host_os in
12240 freebsd[23].*) objformat=aout ;;
12241 *) objformat=elf ;;
12242 esac
12243 fi
12244 version_type=freebsd-$objformat
12245 case $version_type in
12246 freebsd-elf*)
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248 soname_spec='$libname$release$shared_ext$major'
12249 need_version=no
12250 need_lib_prefix=no
12251 ;;
12252 freebsd-*)
12253 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12254 need_version=yes
12255 ;;
12256 esac
12257 shlibpath_var=LD_LIBRARY_PATH
12258 case $host_os in
12259 freebsd2.*)
12260 shlibpath_overrides_runpath=yes
12261 ;;
12262 freebsd3.[01]* | freebsdelf3.[01]*)
12263 shlibpath_overrides_runpath=yes
12264 hardcode_into_libs=yes
12265 ;;
12266 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12267 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12268 shlibpath_overrides_runpath=no
12269 hardcode_into_libs=yes
12270 ;;
12271 *) # from 4.6 on, and DragonFly
12272 shlibpath_overrides_runpath=yes
12273 hardcode_into_libs=yes
12274 ;;
12275 esac
12276 ;;
12277
12278 haiku*)
12279 version_type=linux # correct to gnu/linux during the next big refactor
12280 need_lib_prefix=no
12281 need_version=no
12282 dynamic_linker="$host_os runtime_loader"
12283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12284 soname_spec='$libname$release$shared_ext$major'
12285 shlibpath_var=LIBRARY_PATH
12286 shlibpath_overrides_runpath=no
12287 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12288 hardcode_into_libs=yes
12289 ;;
12290
12291 hpux9* | hpux10* | hpux11*)
12292 # Give a soname corresponding to the major version so that dld.sl refuses to
12293 # link against other versions.
12294 version_type=sunos
12295 need_lib_prefix=no
12296 need_version=no
12297 case $host_cpu in
12298 ia64*)
12299 shrext_cmds='.so'
12300 hardcode_into_libs=yes
12301 dynamic_linker="$host_os dld.so"
12302 shlibpath_var=LD_LIBRARY_PATH
12303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12305 soname_spec='$libname$release$shared_ext$major'
12306 if test 32 = "$HPUX_IA64_MODE"; then
12307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12308 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12309 else
12310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12311 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12312 fi
12313 ;;
12314 hppa*64*)
12315 shrext_cmds='.sl'
12316 hardcode_into_libs=yes
12317 dynamic_linker="$host_os dld.sl"
12318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12321 soname_spec='$libname$release$shared_ext$major'
12322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12324 ;;
12325 *)
12326 shrext_cmds='.sl'
12327 dynamic_linker="$host_os dld.sl"
12328 shlibpath_var=SHLIB_PATH
12329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331 soname_spec='$libname$release$shared_ext$major'
12332 ;;
12333 esac
12334 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12335 postinstall_cmds='chmod 555 $lib'
12336 # or fails outright, so override atomically:
12337 install_override_mode=555
12338 ;;
12339
12340 interix[3-9]*)
12341 version_type=linux # correct to gnu/linux during the next big refactor
12342 need_lib_prefix=no
12343 need_version=no
12344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345 soname_spec='$libname$release$shared_ext$major'
12346 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12347 shlibpath_var=LD_LIBRARY_PATH
12348 shlibpath_overrides_runpath=no
12349 hardcode_into_libs=yes
12350 ;;
12351
12352 irix5* | irix6* | nonstopux*)
12353 case $host_os in
12354 nonstopux*) version_type=nonstopux ;;
12355 *)
12356 if test yes = "$lt_cv_prog_gnu_ld"; then
12357 version_type=linux # correct to gnu/linux during the next big refactor
12358 else
12359 version_type=irix
12360 fi ;;
12361 esac
12362 need_lib_prefix=no
12363 need_version=no
12364 soname_spec='$libname$release$shared_ext$major'
12365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12366 case $host_os in
12367 irix5* | nonstopux*)
12368 libsuff= shlibsuff=
12369 ;;
12370 *)
12371 case $LD in # libtool.m4 will add one of these switches to LD
12372 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12373 libsuff= shlibsuff= libmagic=32-bit;;
12374 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12375 libsuff=32 shlibsuff=N32 libmagic=N32;;
12376 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12377 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12378 *) libsuff= shlibsuff= libmagic=never-match;;
12379 esac
12380 ;;
12381 esac
12382 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12383 shlibpath_overrides_runpath=no
12384 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12385 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12386 hardcode_into_libs=yes
12387 ;;
12388
12389 # No shared lib support for Linux oldld, aout, or coff.
12390 linux*oldld* | linux*aout* | linux*coff*)
12391 dynamic_linker=no
12392 ;;
12393
12394 linux*android*)
12395 version_type=none # Android doesn't support versioned libraries.
12396 need_lib_prefix=no
12397 need_version=no
12398 library_names_spec='$libname$release$shared_ext'
12399 soname_spec='$libname$release$shared_ext'
12400 finish_cmds=
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=yes
12403
12404 # This implies no fast_install, which is unacceptable.
12405 # Some rework will be needed to allow for fast_install
12406 # before this can be enabled.
12407 hardcode_into_libs=yes
12408
12409 dynamic_linker='Android linker'
12410 # Don't embed -rpath directories since the linker doesn't support them.
12411 hardcode_libdir_flag_spec='-L$libdir'
12412 ;;
12413
12414 # This must be glibc/ELF.
12415 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12416 version_type=linux # correct to gnu/linux during the next big refactor
12417 need_lib_prefix=no
12418 need_version=no
12419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12420 soname_spec='$libname$release$shared_ext$major'
12421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12422 shlibpath_var=LD_LIBRARY_PATH
12423 shlibpath_overrides_runpath=no
12424
12425 # Some binutils ld are patched to set DT_RUNPATH
12426 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 lt_cv_shlibpath_overrides_runpath=no
12430 save_LDFLAGS=$LDFLAGS
12431 save_libdir=$libdir
12432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436
12437 int
12438 main ()
12439 {
12440
12441 ;
12442 return 0;
12443 }
12444 _ACEOF
12445 if ac_fn_c_try_link "$LINENO"; then :
12446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12447 lt_cv_shlibpath_overrides_runpath=yes
12448 fi
12449 fi
12450 rm -f core conftest.err conftest.$ac_objext \
12451 conftest$ac_exeext conftest.$ac_ext
12452 LDFLAGS=$save_LDFLAGS
12453 libdir=$save_libdir
12454
12455 fi
12456
12457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12458
12459 # This implies no fast_install, which is unacceptable.
12460 # Some rework will be needed to allow for fast_install
12461 # before this can be enabled.
12462 hardcode_into_libs=yes
12463
12464 # Ideally, we could use ldconfig to report *all* directores which are
12465 # searched for libraries, however this is still not possible. Aside from not
12466 # being certain /sbin/ldconfig is available, command
12467 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12468 # even though it is searched at run-time. Try to do the best guess by
12469 # appending ld.so.conf contents (and includes) to the search path.
12470 if test -f /etc/ld.so.conf; then
12471 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' ' '`
12472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12473 fi
12474
12475 # We used to test for /lib/ld.so.1 and disable shared libraries on
12476 # powerpc, because MkLinux only supported shared libraries with the
12477 # GNU dynamic linker. Since this was broken with cross compilers,
12478 # most powerpc-linux boxes support dynamic linking these days and
12479 # people can always --disable-shared, the test was removed, and we
12480 # assume the GNU/Linux dynamic linker is in use.
12481 dynamic_linker='GNU/Linux ld.so'
12482 ;;
12483
12484 netbsd*)
12485 version_type=sunos
12486 need_lib_prefix=no
12487 need_version=no
12488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12489 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491 dynamic_linker='NetBSD (a.out) ld.so'
12492 else
12493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12494 soname_spec='$libname$release$shared_ext$major'
12495 dynamic_linker='NetBSD ld.elf_so'
12496 fi
12497 shlibpath_var=LD_LIBRARY_PATH
12498 shlibpath_overrides_runpath=yes
12499 hardcode_into_libs=yes
12500 ;;
12501
12502 newsos6)
12503 version_type=linux # correct to gnu/linux during the next big refactor
12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 shlibpath_var=LD_LIBRARY_PATH
12506 shlibpath_overrides_runpath=yes
12507 ;;
12508
12509 *nto* | *qnx*)
12510 version_type=qnx
12511 need_lib_prefix=no
12512 need_version=no
12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514 soname_spec='$libname$release$shared_ext$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=no
12517 hardcode_into_libs=yes
12518 dynamic_linker='ldqnx.so'
12519 ;;
12520
12521 openbsd* | bitrig*)
12522 version_type=sunos
12523 sys_lib_dlsearch_path_spec=/usr/lib
12524 need_lib_prefix=no
12525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12526 need_version=no
12527 else
12528 need_version=yes
12529 fi
12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12532 shlibpath_var=LD_LIBRARY_PATH
12533 shlibpath_overrides_runpath=yes
12534 ;;
12535
12536 os2*)
12537 libname_spec='$name'
12538 version_type=windows
12539 shrext_cmds=.dll
12540 need_version=no
12541 need_lib_prefix=no
12542 # OS/2 can only load a DLL with a base name of 8 characters or less.
12543 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12544 v=$($ECHO $release$versuffix | tr -d .-);
12545 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12546 $ECHO $n$v`$shared_ext'
12547 library_names_spec='${libname}_dll.$libext'
12548 dynamic_linker='OS/2 ld.exe'
12549 shlibpath_var=BEGINLIBPATH
12550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12552 postinstall_cmds='base_file=`basename \$file`~
12553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12554 dldir=$destdir/`dirname \$dlpath`~
12555 test -d \$dldir || mkdir -p \$dldir~
12556 $install_prog $dir/$dlname \$dldir/$dlname~
12557 chmod a+x \$dldir/$dlname~
12558 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12559 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12560 fi'
12561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12562 dlpath=$dir/\$dldll~
12563 $RM \$dlpath'
12564 ;;
12565
12566 osf3* | osf4* | osf5*)
12567 version_type=osf
12568 need_lib_prefix=no
12569 need_version=no
12570 soname_spec='$libname$release$shared_ext$major'
12571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12572 shlibpath_var=LD_LIBRARY_PATH
12573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12575 ;;
12576
12577 rdos*)
12578 dynamic_linker=no
12579 ;;
12580
12581 solaris*)
12582 version_type=linux # correct to gnu/linux during the next big refactor
12583 need_lib_prefix=no
12584 need_version=no
12585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12586 soname_spec='$libname$release$shared_ext$major'
12587 shlibpath_var=LD_LIBRARY_PATH
12588 shlibpath_overrides_runpath=yes
12589 hardcode_into_libs=yes
12590 # ldd complains unless libraries are executable
12591 postinstall_cmds='chmod +x $lib'
12592 ;;
12593
12594 sunos4*)
12595 version_type=sunos
12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath=yes
12600 if test yes = "$with_gnu_ld"; then
12601 need_lib_prefix=no
12602 fi
12603 need_version=yes
12604 ;;
12605
12606 sysv4 | sysv4.3*)
12607 version_type=linux # correct to gnu/linux during the next big refactor
12608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12609 soname_spec='$libname$release$shared_ext$major'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 case $host_vendor in
12612 sni)
12613 shlibpath_overrides_runpath=no
12614 need_lib_prefix=no
12615 runpath_var=LD_RUN_PATH
12616 ;;
12617 siemens)
12618 need_lib_prefix=no
12619 ;;
12620 motorola)
12621 need_lib_prefix=no
12622 need_version=no
12623 shlibpath_overrides_runpath=no
12624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12625 ;;
12626 esac
12627 ;;
12628
12629 sysv4*MP*)
12630 if test -d /usr/nec; then
12631 version_type=linux # correct to gnu/linux during the next big refactor
12632 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12633 soname_spec='$libname$shared_ext.$major'
12634 shlibpath_var=LD_LIBRARY_PATH
12635 fi
12636 ;;
12637
12638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12639 version_type=sco
12640 need_lib_prefix=no
12641 need_version=no
12642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12643 soname_spec='$libname$release$shared_ext$major'
12644 shlibpath_var=LD_LIBRARY_PATH
12645 shlibpath_overrides_runpath=yes
12646 hardcode_into_libs=yes
12647 if test yes = "$with_gnu_ld"; then
12648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12649 else
12650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12651 case $host_os in
12652 sco3.2v5*)
12653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12654 ;;
12655 esac
12656 fi
12657 sys_lib_dlsearch_path_spec='/usr/lib'
12658 ;;
12659
12660 tpf*)
12661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12662 version_type=linux # correct to gnu/linux during the next big refactor
12663 need_lib_prefix=no
12664 need_version=no
12665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12666 shlibpath_var=LD_LIBRARY_PATH
12667 shlibpath_overrides_runpath=no
12668 hardcode_into_libs=yes
12669 ;;
12670
12671 uts4*)
12672 version_type=linux # correct to gnu/linux during the next big refactor
12673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12674 soname_spec='$libname$release$shared_ext$major'
12675 shlibpath_var=LD_LIBRARY_PATH
12676 ;;
12677
12678 *)
12679 dynamic_linker=no
12680 ;;
12681 esac
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12683 $as_echo "$dynamic_linker" >&6; }
12684 test no = "$dynamic_linker" && can_build_shared=no
12685
12686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12687 if test yes = "$GCC"; then
12688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12689 fi
12690
12691 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12692 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12693 fi
12694
12695 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12696 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12697 fi
12698
12699 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12700 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12701
12702 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12703 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12704
12705 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12706 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12805 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12806 hardcode_action=
12807 if test -n "$hardcode_libdir_flag_spec" ||
12808 test -n "$runpath_var" ||
12809 test yes = "$hardcode_automatic"; then
12810
12811 # We can hardcode non-existent directories.
12812 if test no != "$hardcode_direct" &&
12813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12814 # have to relink, otherwise we might link with an installed library
12815 # when we should be linking with a yet-to-be-installed one
12816 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12817 test no != "$hardcode_minus_L"; then
12818 # Linking always hardcodes the temporary library directory.
12819 hardcode_action=relink
12820 else
12821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12822 hardcode_action=immediate
12823 fi
12824 else
12825 # We cannot hardcode anything, or else we can only hardcode existing
12826 # directories.
12827 hardcode_action=unsupported
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12830 $as_echo "$hardcode_action" >&6; }
12831
12832 if test relink = "$hardcode_action" ||
12833 test yes = "$inherit_rpath"; then
12834 # Fast installation is not supported
12835 enable_fast_install=no
12836 elif test yes = "$shlibpath_overrides_runpath" ||
12837 test no = "$enable_shared"; then
12838 # Fast installation is not necessary
12839 enable_fast_install=needless
12840 fi
12841
12842
12843
12844
12845
12846
12847 if test yes != "$enable_dlopen"; then
12848 enable_dlopen=unknown
12849 enable_dlopen_self=unknown
12850 enable_dlopen_self_static=unknown
12851 else
12852 lt_cv_dlopen=no
12853 lt_cv_dlopen_libs=
12854
12855 case $host_os in
12856 beos*)
12857 lt_cv_dlopen=load_add_on
12858 lt_cv_dlopen_libs=
12859 lt_cv_dlopen_self=yes
12860 ;;
12861
12862 mingw* | pw32* | cegcc*)
12863 lt_cv_dlopen=LoadLibrary
12864 lt_cv_dlopen_libs=
12865 ;;
12866
12867 cygwin*)
12868 lt_cv_dlopen=dlopen
12869 lt_cv_dlopen_libs=
12870 ;;
12871
12872 darwin*)
12873 # if libdl is installed we need to link against it
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12875 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12876 if ${ac_cv_lib_dl_dlopen+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 ac_check_lib_save_LIBS=$LIBS
12880 LIBS="-ldl $LIBS"
12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12883
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 char dlopen ();
12891 int
12892 main ()
12893 {
12894 return dlopen ();
12895 ;
12896 return 0;
12897 }
12898 _ACEOF
12899 if ac_fn_c_try_link "$LINENO"; then :
12900 ac_cv_lib_dl_dlopen=yes
12901 else
12902 ac_cv_lib_dl_dlopen=no
12903 fi
12904 rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12906 LIBS=$ac_check_lib_save_LIBS
12907 fi
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12909 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12910 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12911 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12912 else
12913
12914 lt_cv_dlopen=dyld
12915 lt_cv_dlopen_libs=
12916 lt_cv_dlopen_self=yes
12917
12918 fi
12919
12920 ;;
12921
12922 tpf*)
12923 # Don't try to run any link tests for TPF. We know it's impossible
12924 # because TPF is a cross-compiler, and we know how we open DSOs.
12925 lt_cv_dlopen=dlopen
12926 lt_cv_dlopen_libs=
12927 lt_cv_dlopen_self=no
12928 ;;
12929
12930 *)
12931 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12932 if test "x$ac_cv_func_shl_load" = xyes; then :
12933 lt_cv_dlopen=shl_load
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12936 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12937 if ${ac_cv_lib_dld_shl_load+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 ac_check_lib_save_LIBS=$LIBS
12941 LIBS="-ldld $LIBS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12944
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char shl_load ();
12952 int
12953 main ()
12954 {
12955 return shl_load ();
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 ac_cv_lib_dld_shl_load=yes
12962 else
12963 ac_cv_lib_dld_shl_load=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12968 fi
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12970 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12971 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12972 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12973 else
12974 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12975 if test "x$ac_cv_func_dlopen" = xyes; then :
12976 lt_cv_dlopen=dlopen
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12979 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12980 if ${ac_cv_lib_dl_dlopen+:} false; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 ac_check_lib_save_LIBS=$LIBS
12984 LIBS="-ldl $LIBS"
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12991 #ifdef __cplusplus
12992 extern "C"
12993 #endif
12994 char dlopen ();
12995 int
12996 main ()
12997 {
12998 return dlopen ();
12999 ;
13000 return 0;
13001 }
13002 _ACEOF
13003 if ac_fn_c_try_link "$LINENO"; then :
13004 ac_cv_lib_dl_dlopen=yes
13005 else
13006 ac_cv_lib_dl_dlopen=no
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_lib_save_LIBS
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13013 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13014 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13015 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13018 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13019 if ${ac_cv_lib_svld_dlopen+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-lsvld $LIBS"
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13026
13027 /* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
13030 #ifdef __cplusplus
13031 extern "C"
13032 #endif
13033 char dlopen ();
13034 int
13035 main ()
13036 {
13037 return dlopen ();
13038 ;
13039 return 0;
13040 }
13041 _ACEOF
13042 if ac_fn_c_try_link "$LINENO"; then :
13043 ac_cv_lib_svld_dlopen=yes
13044 else
13045 ac_cv_lib_svld_dlopen=no
13046 fi
13047 rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049 LIBS=$ac_check_lib_save_LIBS
13050 fi
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13052 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13053 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13054 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13055 else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13057 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13058 if ${ac_cv_lib_dld_dld_link+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 ac_check_lib_save_LIBS=$LIBS
13062 LIBS="-ldld $LIBS"
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13069 #ifdef __cplusplus
13070 extern "C"
13071 #endif
13072 char dld_link ();
13073 int
13074 main ()
13075 {
13076 return dld_link ();
13077 ;
13078 return 0;
13079 }
13080 _ACEOF
13081 if ac_fn_c_try_link "$LINENO"; then :
13082 ac_cv_lib_dld_dld_link=yes
13083 else
13084 ac_cv_lib_dld_dld_link=no
13085 fi
13086 rm -f core conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LIBS=$ac_check_lib_save_LIBS
13089 fi
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13091 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13092 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13093 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13094 fi
13095
13096
13097 fi
13098
13099
13100 fi
13101
13102
13103 fi
13104
13105
13106 fi
13107
13108
13109 fi
13110
13111 ;;
13112 esac
13113
13114 if test no = "$lt_cv_dlopen"; then
13115 enable_dlopen=no
13116 else
13117 enable_dlopen=yes
13118 fi
13119
13120 case $lt_cv_dlopen in
13121 dlopen)
13122 save_CPPFLAGS=$CPPFLAGS
13123 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13124
13125 save_LDFLAGS=$LDFLAGS
13126 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13127
13128 save_LIBS=$LIBS
13129 LIBS="$lt_cv_dlopen_libs $LIBS"
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13132 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13133 if ${lt_cv_dlopen_self+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if test yes = "$cross_compiling"; then :
13137 lt_cv_dlopen_self=cross
13138 else
13139 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13140 lt_status=$lt_dlunknown
13141 cat > conftest.$ac_ext <<_LT_EOF
13142 #line $LINENO "configure"
13143 #include "confdefs.h"
13144
13145 #if HAVE_DLFCN_H
13146 #include <dlfcn.h>
13147 #endif
13148
13149 #include <stdio.h>
13150
13151 #ifdef RTLD_GLOBAL
13152 # define LT_DLGLOBAL RTLD_GLOBAL
13153 #else
13154 # ifdef DL_GLOBAL
13155 # define LT_DLGLOBAL DL_GLOBAL
13156 # else
13157 # define LT_DLGLOBAL 0
13158 # endif
13159 #endif
13160
13161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13162 find out it does not work in some platform. */
13163 #ifndef LT_DLLAZY_OR_NOW
13164 # ifdef RTLD_LAZY
13165 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13166 # else
13167 # ifdef DL_LAZY
13168 # define LT_DLLAZY_OR_NOW DL_LAZY
13169 # else
13170 # ifdef RTLD_NOW
13171 # define LT_DLLAZY_OR_NOW RTLD_NOW
13172 # else
13173 # ifdef DL_NOW
13174 # define LT_DLLAZY_OR_NOW DL_NOW
13175 # else
13176 # define LT_DLLAZY_OR_NOW 0
13177 # endif
13178 # endif
13179 # endif
13180 # endif
13181 #endif
13182
13183 /* When -fvisibility=hidden is used, assume the code has been annotated
13184 correspondingly for the symbols needed. */
13185 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13186 int fnord () __attribute__((visibility("default")));
13187 #endif
13188
13189 int fnord () { return 42; }
13190 int main ()
13191 {
13192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13193 int status = $lt_dlunknown;
13194
13195 if (self)
13196 {
13197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13198 else
13199 {
13200 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13201 else puts (dlerror ());
13202 }
13203 /* dlclose (self); */
13204 }
13205 else
13206 puts (dlerror ());
13207
13208 return status;
13209 }
13210 _LT_EOF
13211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13212 (eval $ac_link) 2>&5
13213 ac_status=$?
13214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13215 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13216 (./conftest; exit; ) >&5 2>/dev/null
13217 lt_status=$?
13218 case x$lt_status in
13219 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13220 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13221 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13222 esac
13223 else :
13224 # compilation failed
13225 lt_cv_dlopen_self=no
13226 fi
13227 fi
13228 rm -fr conftest*
13229
13230
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13233 $as_echo "$lt_cv_dlopen_self" >&6; }
13234
13235 if test yes = "$lt_cv_dlopen_self"; then
13236 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13238 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13239 if ${lt_cv_dlopen_self_static+:} false; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 if test yes = "$cross_compiling"; then :
13243 lt_cv_dlopen_self_static=cross
13244 else
13245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13246 lt_status=$lt_dlunknown
13247 cat > conftest.$ac_ext <<_LT_EOF
13248 #line $LINENO "configure"
13249 #include "confdefs.h"
13250
13251 #if HAVE_DLFCN_H
13252 #include <dlfcn.h>
13253 #endif
13254
13255 #include <stdio.h>
13256
13257 #ifdef RTLD_GLOBAL
13258 # define LT_DLGLOBAL RTLD_GLOBAL
13259 #else
13260 # ifdef DL_GLOBAL
13261 # define LT_DLGLOBAL DL_GLOBAL
13262 # else
13263 # define LT_DLGLOBAL 0
13264 # endif
13265 #endif
13266
13267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13268 find out it does not work in some platform. */
13269 #ifndef LT_DLLAZY_OR_NOW
13270 # ifdef RTLD_LAZY
13271 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13272 # else
13273 # ifdef DL_LAZY
13274 # define LT_DLLAZY_OR_NOW DL_LAZY
13275 # else
13276 # ifdef RTLD_NOW
13277 # define LT_DLLAZY_OR_NOW RTLD_NOW
13278 # else
13279 # ifdef DL_NOW
13280 # define LT_DLLAZY_OR_NOW DL_NOW
13281 # else
13282 # define LT_DLLAZY_OR_NOW 0
13283 # endif
13284 # endif
13285 # endif
13286 # endif
13287 #endif
13288
13289 /* When -fvisibility=hidden is used, assume the code has been annotated
13290 correspondingly for the symbols needed. */
13291 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13292 int fnord () __attribute__((visibility("default")));
13293 #endif
13294
13295 int fnord () { return 42; }
13296 int main ()
13297 {
13298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13299 int status = $lt_dlunknown;
13300
13301 if (self)
13302 {
13303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13304 else
13305 {
13306 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13307 else puts (dlerror ());
13308 }
13309 /* dlclose (self); */
13310 }
13311 else
13312 puts (dlerror ());
13313
13314 return status;
13315 }
13316 _LT_EOF
13317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13318 (eval $ac_link) 2>&5
13319 ac_status=$?
13320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13321 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13322 (./conftest; exit; ) >&5 2>/dev/null
13323 lt_status=$?
13324 case x$lt_status in
13325 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13326 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13327 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13328 esac
13329 else :
13330 # compilation failed
13331 lt_cv_dlopen_self_static=no
13332 fi
13333 fi
13334 rm -fr conftest*
13335
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13339 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13340 fi
13341
13342 CPPFLAGS=$save_CPPFLAGS
13343 LDFLAGS=$save_LDFLAGS
13344 LIBS=$save_LIBS
13345 ;;
13346 esac
13347
13348 case $lt_cv_dlopen_self in
13349 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13350 *) enable_dlopen_self=unknown ;;
13351 esac
13352
13353 case $lt_cv_dlopen_self_static in
13354 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13355 *) enable_dlopen_self_static=unknown ;;
13356 esac
13357 fi
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375 striplib=
13376 old_striplib=
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13378 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13379 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13380 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13381 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13383 $as_echo "yes" >&6; }
13384 else
13385 # FIXME - insert some real tests, host_os isn't really good enough
13386 case $host_os in
13387 darwin*)
13388 if test -n "$STRIP"; then
13389 striplib="$STRIP -x"
13390 old_striplib="$STRIP -S"
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13392 $as_echo "yes" >&6; }
13393 else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13396 fi
13397 ;;
13398 *)
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401 ;;
13402 esac
13403 fi
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416 # Report what library types will actually be built
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13418 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13420 $as_echo "$can_build_shared" >&6; }
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13423 $as_echo_n "checking whether to build shared libraries... " >&6; }
13424 test no = "$can_build_shared" && enable_shared=no
13425
13426 # On AIX, shared libraries and static libraries use the same namespace, and
13427 # are all built from PIC.
13428 case $host_os in
13429 aix3*)
13430 test yes = "$enable_shared" && enable_static=no
13431 if test -n "$RANLIB"; then
13432 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13433 postinstall_cmds='$RANLIB $lib'
13434 fi
13435 ;;
13436
13437 aix[4-9]*)
13438 if test ia64 != "$host_cpu"; then
13439 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13440 yes,aix,yes) ;; # shared object as lib.so file only
13441 yes,svr4,*) ;; # shared object as lib.so archive member only
13442 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13443 esac
13444 fi
13445 ;;
13446 esac
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13448 $as_echo "$enable_shared" >&6; }
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13451 $as_echo_n "checking whether to build static libraries... " >&6; }
13452 # Make sure either enable_shared or enable_static is yes.
13453 test yes = "$enable_shared" || enable_static=yes
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13455 $as_echo "$enable_static" >&6; }
13456
13457
13458
13459
13460 fi
13461 ac_ext=c
13462 ac_cpp='$CPP $CPPFLAGS'
13463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13466
13467 CC=$lt_save_CC
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483 ac_config_commands="$ac_config_commands libtool"
13484
13485
13486
13487
13488 # Only expand once:
13489
13490
13491
13492 # Select memory manager depending on user input.
13493 # If no "-enable-maxmem", use jmemnobs
13494 MEMORYMGR='jmemnobs'
13495 MAXMEM="no"
13496 # Check whether --enable-maxmem was given.
13497 if test "${enable_maxmem+set}" = set; then :
13498 enableval=$enable_maxmem; MAXMEM="$enableval"
13499 fi
13500
13501 if test "x$MAXMEM" = xyes; then
13502 MAXMEM=1
13503 fi
13504 if test "x$MAXMEM" != xno; then
13505 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
13506 as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5
13507 fi
13508 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
13509
13510 cat >>confdefs.h <<_ACEOF
13511 #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
13512 _ACEOF
13513
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
13515 $as_echo_n "checking for 'tmpfile()'... " >&6; }
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13518 #include <stdio.h>
13519 int
13520 main ()
13521 {
13522 FILE * tfile = tmpfile();
13523 ;
13524 return 0;
13525 }
13526 _ACEOF
13527 if ac_fn_c_try_link "$LINENO"; then :
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13529 $as_echo "yes" >&6; }
13530 MEMORYMGR='jmemansi'
13531 else
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13534 MEMORYMGR='jmemname'
13535
13536 # Test for the need to remove temporary files using a signal handler
13537 # (for cjpeg/djpeg)
13538
13539 $as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
13540
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
13542 $as_echo_n "checking for 'mktemp()'... " >&6; }
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545
13546 int
13547 main ()
13548 {
13549 char fname[80]; mktemp(fname);
13550 ;
13551 return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_link "$LINENO"; then :
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13556 $as_echo "yes" >&6; }
13557 else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 $as_echo "no" >&6; }
13560
13561 $as_echo "#define NO_MKTEMP 1" >>confdefs.h
13562
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 fi
13570
13571
13572 # Extract the library version IDs from jpeglib.h.
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
13574 $as_echo_n "checking libjpeg version number... " >&6; }
13575 major=`sed -ne 's/^#define JPEG_LIB_VERSION_MAJOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
13576 minor=`sed -ne 's/^#define JPEG_LIB_VERSION_MINOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
13577 JPEG_LIB_VERSION=`expr $major + $minor`:0:$minor
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
13580 $as_echo "$JPEG_LIB_VERSION" >&6; }
13581
13582 ac_config_files="$ac_config_files Makefile"
13583
13584 cat >confcache <<\_ACEOF
13585 # This file is a shell script that caches the results of configure
13586 # tests run on this system so they can be shared between configure
13587 # scripts and configure runs, see configure's option --config-cache.
13588 # It is not useful on other systems. If it contains results you don't
13589 # want to keep, you may remove or edit it.
13590 #
13591 # config.status only pays attention to the cache file if you give it
13592 # the --recheck option to rerun configure.
13593 #
13594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13596 # following values.
13597
13598 _ACEOF
13599
13600 # The following way of writing the cache mishandles newlines in values,
13601 # but we know of no workaround that is simple, portable, and efficient.
13602 # So, we kill variables containing newlines.
13603 # Ultrix sh set writes to stderr and can't be redirected directly,
13604 # and sets the high bit in the cache file unless we assign to the vars.
13605 (
13606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13607 eval ac_val=\$$ac_var
13608 case $ac_val in #(
13609 *${as_nl}*)
13610 case $ac_var in #(
13611 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13612 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13613 esac
13614 case $ac_var in #(
13615 _ | IFS | as_nl) ;; #(
13616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13617 *) { eval $ac_var=; unset $ac_var;} ;;
13618 esac ;;
13619 esac
13620 done
13621
13622 (set) 2>&1 |
13623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13624 *${as_nl}ac_space=\ *)
13625 # `set' does not quote correctly, so add quotes: double-quote
13626 # substitution turns \\\\ into \\, and sed turns \\ into \.
13627 sed -n \
13628 "s/'/'\\\\''/g;
13629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13630 ;; #(
13631 *)
13632 # `set' quotes correctly as required by POSIX, so do not add quotes.
13633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13634 ;;
13635 esac |
13636 sort
13637 ) |
13638 sed '
13639 /^ac_cv_env_/b end
13640 t clear
13641 :clear
13642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13643 t end
13644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13645 :end' >>confcache
13646 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13647 if test -w "$cache_file"; then
13648 if test "x$cache_file" != "x/dev/null"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13650 $as_echo "$as_me: updating cache $cache_file" >&6;}
13651 if test ! -f "$cache_file" || test -h "$cache_file"; then
13652 cat confcache >"$cache_file"
13653 else
13654 case $cache_file in #(
13655 */* | ?:*)
13656 mv -f confcache "$cache_file"$$ &&
13657 mv -f "$cache_file"$$ "$cache_file" ;; #(
13658 *)
13659 mv -f confcache "$cache_file" ;;
13660 esac
13661 fi
13662 fi
13663 else
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13665 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13666 fi
13667 fi
13668 rm -f confcache
13669
13670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13671 # Let make expand exec_prefix.
13672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13673
13674 DEFS=-DHAVE_CONFIG_H
13675
13676 ac_libobjs=
13677 ac_ltlibobjs=
13678 U=
13679 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13680 # 1. Remove the extension, and $U if already installed.
13681 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13682 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13683 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13684 # will be set to the directory where LIBOBJS objects are built.
13685 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13686 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13687 done
13688 LIBOBJS=$ac_libobjs
13689
13690 LTLIBOBJS=$ac_ltlibobjs
13691
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13694 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13695 if test -n "$am_sleep_pid"; then
13696 # Hide warnings about reused PIDs.
13697 wait $am_sleep_pid 2>/dev/null
13698 fi
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13700 $as_echo "done" >&6; }
13701 if test -n "$EXEEXT"; then
13702 am__EXEEXT_TRUE=
13703 am__EXEEXT_FALSE='#'
13704 else
13705 am__EXEEXT_TRUE='#'
13706 am__EXEEXT_FALSE=
13707 fi
13708
13709 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13710 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13712 fi
13713 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13714 as_fn_error $? "conditional \"AMDEP\" was never defined.
13715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13716 fi
13717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13718 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13720 fi
13721 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13722 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13724 fi
13725
13726 : "${CONFIG_STATUS=./config.status}"
13727 ac_write_fail=0
13728 ac_clean_files_save=$ac_clean_files
13729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13732 as_write_fail=0
13733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13734 #! $SHELL
13735 # Generated by $as_me.
13736 # Run this file to recreate the current configuration.
13737 # Compiler output produced by configure, useful for debugging
13738 # configure, is in config.log if it exists.
13739
13740 debug=false
13741 ac_cs_recheck=false
13742 ac_cs_silent=false
13743
13744 SHELL=\${CONFIG_SHELL-$SHELL}
13745 export SHELL
13746 _ASEOF
13747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13748 ## -------------------- ##
13749 ## M4sh Initialization. ##
13750 ## -------------------- ##
13751
13752 # Be more Bourne compatible
13753 DUALCASE=1; export DUALCASE # for MKS sh
13754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13755 emulate sh
13756 NULLCMD=:
13757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13758 # is contrary to our usage. Disable this feature.
13759 alias -g '${1+"$@"}'='"$@"'
13760 setopt NO_GLOB_SUBST
13761 else
13762 case `(set -o) 2>/dev/null` in #(
13763 *posix*) :
13764 set -o posix ;; #(
13765 *) :
13766 ;;
13767 esac
13768 fi
13769
13770
13771 as_nl='
13772 '
13773 export as_nl
13774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13778 # Prefer a ksh shell builtin over an external printf program on Solaris,
13779 # but without wasting forks for bash or zsh.
13780 if test -z "$BASH_VERSION$ZSH_VERSION" \
13781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13782 as_echo='print -r --'
13783 as_echo_n='print -rn --'
13784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13785 as_echo='printf %s\n'
13786 as_echo_n='printf %s'
13787 else
13788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13790 as_echo_n='/usr/ucb/echo -n'
13791 else
13792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13793 as_echo_n_body='eval
13794 arg=$1;
13795 case $arg in #(
13796 *"$as_nl"*)
13797 expr "X$arg" : "X\\(.*\\)$as_nl";
13798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13799 esac;
13800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13801 '
13802 export as_echo_n_body
13803 as_echo_n='sh -c $as_echo_n_body as_echo'
13804 fi
13805 export as_echo_body
13806 as_echo='sh -c $as_echo_body as_echo'
13807 fi
13808
13809 # The user is always right.
13810 if test "${PATH_SEPARATOR+set}" != set; then
13811 PATH_SEPARATOR=:
13812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13814 PATH_SEPARATOR=';'
13815 }
13816 fi
13817
13818
13819 # IFS
13820 # We need space, tab and new line, in precisely that order. Quoting is
13821 # there to prevent editors from complaining about space-tab.
13822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13823 # splitting by setting IFS to empty value.)
13824 IFS=" "" $as_nl"
13825
13826 # Find who we are. Look in the path if we contain no directory separator.
13827 as_myself=
13828 case $0 in #((
13829 *[\\/]* ) as_myself=$0 ;;
13830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13832 do
13833 IFS=$as_save_IFS
13834 test -z "$as_dir" && as_dir=.
13835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13836 done
13837 IFS=$as_save_IFS
13838
13839 ;;
13840 esac
13841 # We did not find ourselves, most probably we were run as `sh COMMAND'
13842 # in which case we are not to be found in the path.
13843 if test "x$as_myself" = x; then
13844 as_myself=$0
13845 fi
13846 if test ! -f "$as_myself"; then
13847 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13848 exit 1
13849 fi
13850
13851 # Unset variables that we do not need and which cause bugs (e.g. in
13852 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13853 # suppresses any "Segmentation fault" message there. '((' could
13854 # trigger a bug in pdksh 5.2.14.
13855 for as_var in BASH_ENV ENV MAIL MAILPATH
13856 do eval test x\${$as_var+set} = xset \
13857 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13858 done
13859 PS1='$ '
13860 PS2='> '
13861 PS4='+ '
13862
13863 # NLS nuisances.
13864 LC_ALL=C
13865 export LC_ALL
13866 LANGUAGE=C
13867 export LANGUAGE
13868
13869 # CDPATH.
13870 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13871
13872
13873 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13874 # ----------------------------------------
13875 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13876 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13877 # script with STATUS, using 1 if that was 0.
13878 as_fn_error ()
13879 {
13880 as_status=$1; test $as_status -eq 0 && as_status=1
13881 if test "$4"; then
13882 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13883 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13884 fi
13885 $as_echo "$as_me: error: $2" >&2
13886 as_fn_exit $as_status
13887 } # as_fn_error
13888
13889
13890 # as_fn_set_status STATUS
13891 # -----------------------
13892 # Set $? to STATUS, without forking.
13893 as_fn_set_status ()
13894 {
13895 return $1
13896 } # as_fn_set_status
13897
13898 # as_fn_exit STATUS
13899 # -----------------
13900 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13901 as_fn_exit ()
13902 {
13903 set +e
13904 as_fn_set_status $1
13905 exit $1
13906 } # as_fn_exit
13907
13908 # as_fn_unset VAR
13909 # ---------------
13910 # Portably unset VAR.
13911 as_fn_unset ()
13912 {
13913 { eval $1=; unset $1;}
13914 }
13915 as_unset=as_fn_unset
13916 # as_fn_append VAR VALUE
13917 # ----------------------
13918 # Append the text in VALUE to the end of the definition contained in VAR. Take
13919 # advantage of any shell optimizations that allow amortized linear growth over
13920 # repeated appends, instead of the typical quadratic growth present in naive
13921 # implementations.
13922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13923 eval 'as_fn_append ()
13924 {
13925 eval $1+=\$2
13926 }'
13927 else
13928 as_fn_append ()
13929 {
13930 eval $1=\$$1\$2
13931 }
13932 fi # as_fn_append
13933
13934 # as_fn_arith ARG...
13935 # ------------------
13936 # Perform arithmetic evaluation on the ARGs, and store the result in the
13937 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13938 # must be portable across $(()) and expr.
13939 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13940 eval 'as_fn_arith ()
13941 {
13942 as_val=$(( $* ))
13943 }'
13944 else
13945 as_fn_arith ()
13946 {
13947 as_val=`expr "$@" || test $? -eq 1`
13948 }
13949 fi # as_fn_arith
13950
13951
13952 if expr a : '\(a\)' >/dev/null 2>&1 &&
13953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13954 as_expr=expr
13955 else
13956 as_expr=false
13957 fi
13958
13959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13960 as_basename=basename
13961 else
13962 as_basename=false
13963 fi
13964
13965 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13966 as_dirname=dirname
13967 else
13968 as_dirname=false
13969 fi
13970
13971 as_me=`$as_basename -- "$0" ||
13972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13973 X"$0" : 'X\(//\)$' \| \
13974 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13975 $as_echo X/"$0" |
13976 sed '/^.*\/\([^/][^/]*\)\/*$/{
13977 s//\1/
13978 q
13979 }
13980 /^X\/\(\/\/\)$/{
13981 s//\1/
13982 q
13983 }
13984 /^X\/\(\/\).*/{
13985 s//\1/
13986 q
13987 }
13988 s/.*/./; q'`
13989
13990 # Avoid depending upon Character Ranges.
13991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13994 as_cr_digits='0123456789'
13995 as_cr_alnum=$as_cr_Letters$as_cr_digits
13996
13997 ECHO_C= ECHO_N= ECHO_T=
13998 case `echo -n x` in #(((((
13999 -n*)
14000 case `echo 'xy\c'` in
14001 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14002 xy) ECHO_C='\c';;
14003 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14004 ECHO_T=' ';;
14005 esac;;
14006 *)
14007 ECHO_N='-n';;
14008 esac
14009
14010 rm -f conf$$ conf$$.exe conf$$.file
14011 if test -d conf$$.dir; then
14012 rm -f conf$$.dir/conf$$.file
14013 else
14014 rm -f conf$$.dir
14015 mkdir conf$$.dir 2>/dev/null
14016 fi
14017 if (echo >conf$$.file) 2>/dev/null; then
14018 if ln -s conf$$.file conf$$ 2>/dev/null; then
14019 as_ln_s='ln -s'
14020 # ... but there are two gotchas:
14021 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14022 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14023 # In both cases, we have to default to `cp -pR'.
14024 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14025 as_ln_s='cp -pR'
14026 elif ln conf$$.file conf$$ 2>/dev/null; then
14027 as_ln_s=ln
14028 else
14029 as_ln_s='cp -pR'
14030 fi
14031 else
14032 as_ln_s='cp -pR'
14033 fi
14034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14035 rmdir conf$$.dir 2>/dev/null
14036
14037
14038 # as_fn_mkdir_p
14039 # -------------
14040 # Create "$as_dir" as a directory, including parents if necessary.
14041 as_fn_mkdir_p ()
14042 {
14043
14044 case $as_dir in #(
14045 -*) as_dir=./$as_dir;;
14046 esac
14047 test -d "$as_dir" || eval $as_mkdir_p || {
14048 as_dirs=
14049 while :; do
14050 case $as_dir in #(
14051 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14052 *) as_qdir=$as_dir;;
14053 esac
14054 as_dirs="'$as_qdir' $as_dirs"
14055 as_dir=`$as_dirname -- "$as_dir" ||
14056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14057 X"$as_dir" : 'X\(//\)[^/]' \| \
14058 X"$as_dir" : 'X\(//\)$' \| \
14059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14060 $as_echo X"$as_dir" |
14061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14062 s//\1/
14063 q
14064 }
14065 /^X\(\/\/\)[^/].*/{
14066 s//\1/
14067 q
14068 }
14069 /^X\(\/\/\)$/{
14070 s//\1/
14071 q
14072 }
14073 /^X\(\/\).*/{
14074 s//\1/
14075 q
14076 }
14077 s/.*/./; q'`
14078 test -d "$as_dir" && break
14079 done
14080 test -z "$as_dirs" || eval "mkdir $as_dirs"
14081 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14082
14083
14084 } # as_fn_mkdir_p
14085 if mkdir -p . 2>/dev/null; then
14086 as_mkdir_p='mkdir -p "$as_dir"'
14087 else
14088 test -d ./-p && rmdir ./-p
14089 as_mkdir_p=false
14090 fi
14091
14092
14093 # as_fn_executable_p FILE
14094 # -----------------------
14095 # Test if FILE is an executable regular file.
14096 as_fn_executable_p ()
14097 {
14098 test -f "$1" && test -x "$1"
14099 } # as_fn_executable_p
14100 as_test_x='test -x'
14101 as_executable_p=as_fn_executable_p
14102
14103 # Sed expression to map a string onto a valid CPP name.
14104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14105
14106 # Sed expression to map a string onto a valid variable name.
14107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14108
14109
14110 exec 6>&1
14111 ## ----------------------------------- ##
14112 ## Main body of $CONFIG_STATUS script. ##
14113 ## ----------------------------------- ##
14114 _ASEOF
14115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14116
14117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118 # Save the log message, to keep $0 and so on meaningful, and to
14119 # report actual input values of CONFIG_FILES etc. instead of their
14120 # values after options handling.
14121 ac_log="
14122 This file was extended by libjpeg $as_me 9.2.0, which was
14123 generated by GNU Autoconf 2.69. Invocation command line was
14124
14125 CONFIG_FILES = $CONFIG_FILES
14126 CONFIG_HEADERS = $CONFIG_HEADERS
14127 CONFIG_LINKS = $CONFIG_LINKS
14128 CONFIG_COMMANDS = $CONFIG_COMMANDS
14129 $ $0 $@
14130
14131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14132 "
14133
14134 _ACEOF
14135
14136 case $ac_config_files in *"
14137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14138 esac
14139
14140 case $ac_config_headers in *"
14141 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14142 esac
14143
14144
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 # Files that config.status was made for.
14147 config_files="$ac_config_files"
14148 config_headers="$ac_config_headers"
14149 config_commands="$ac_config_commands"
14150
14151 _ACEOF
14152
14153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14154 ac_cs_usage="\
14155 \`$as_me' instantiates files and other configuration actions
14156 from templates according to the current configuration. Unless the files
14157 and actions are specified as TAGs, all are instantiated by default.
14158
14159 Usage: $0 [OPTION]... [TAG]...
14160
14161 -h, --help print this help, then exit
14162 -V, --version print version number and configuration settings, then exit
14163 --config print configuration, then exit
14164 -q, --quiet, --silent
14165 do not print progress messages
14166 -d, --debug don't remove temporary files
14167 --recheck update $as_me by reconfiguring in the same conditions
14168 --file=FILE[:TEMPLATE]
14169 instantiate the configuration file FILE
14170 --header=FILE[:TEMPLATE]
14171 instantiate the configuration header FILE
14172
14173 Configuration files:
14174 $config_files
14175
14176 Configuration headers:
14177 $config_headers
14178
14179 Configuration commands:
14180 $config_commands
14181
14182 Report bugs to the package provider."
14183
14184 _ACEOF
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14187 ac_cs_version="\\
14188 libjpeg config.status 9.2.0
14189 configured by $0, generated by GNU Autoconf 2.69,
14190 with options \\"\$ac_cs_config\\"
14191
14192 Copyright (C) 2012 Free Software Foundation, Inc.
14193 This config.status script is free software; the Free Software Foundation
14194 gives unlimited permission to copy, distribute and modify it."
14195
14196 ac_pwd='$ac_pwd'
14197 srcdir='$srcdir'
14198 INSTALL='$INSTALL'
14199 MKDIR_P='$MKDIR_P'
14200 AWK='$AWK'
14201 test -n "\$AWK" || AWK=awk
14202 _ACEOF
14203
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205 # The default lists apply if the user does not specify any file.
14206 ac_need_defaults=:
14207 while test $# != 0
14208 do
14209 case $1 in
14210 --*=?*)
14211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14213 ac_shift=:
14214 ;;
14215 --*=)
14216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14217 ac_optarg=
14218 ac_shift=:
14219 ;;
14220 *)
14221 ac_option=$1
14222 ac_optarg=$2
14223 ac_shift=shift
14224 ;;
14225 esac
14226
14227 case $ac_option in
14228 # Handling of the options.
14229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14230 ac_cs_recheck=: ;;
14231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14232 $as_echo "$ac_cs_version"; exit ;;
14233 --config | --confi | --conf | --con | --co | --c )
14234 $as_echo "$ac_cs_config"; exit ;;
14235 --debug | --debu | --deb | --de | --d | -d )
14236 debug=: ;;
14237 --file | --fil | --fi | --f )
14238 $ac_shift
14239 case $ac_optarg in
14240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14241 '') as_fn_error $? "missing file argument" ;;
14242 esac
14243 as_fn_append CONFIG_FILES " '$ac_optarg'"
14244 ac_need_defaults=false;;
14245 --header | --heade | --head | --hea )
14246 $ac_shift
14247 case $ac_optarg in
14248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14249 esac
14250 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14251 ac_need_defaults=false;;
14252 --he | --h)
14253 # Conflict between --help and --header
14254 as_fn_error $? "ambiguous option: \`$1'
14255 Try \`$0 --help' for more information.";;
14256 --help | --hel | -h )
14257 $as_echo "$ac_cs_usage"; exit ;;
14258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14260 ac_cs_silent=: ;;
14261
14262 # This is an error.
14263 -*) as_fn_error $? "unrecognized option: \`$1'
14264 Try \`$0 --help' for more information." ;;
14265
14266 *) as_fn_append ac_config_targets " $1"
14267 ac_need_defaults=false ;;
14268
14269 esac
14270 shift
14271 done
14272
14273 ac_configure_extra_args=
14274
14275 if $ac_cs_silent; then
14276 exec 6>/dev/null
14277 ac_configure_extra_args="$ac_configure_extra_args --silent"
14278 fi
14279
14280 _ACEOF
14281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14282 if \$ac_cs_recheck; then
14283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14284 shift
14285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14286 CONFIG_SHELL='$SHELL'
14287 export CONFIG_SHELL
14288 exec "\$@"
14289 fi
14290
14291 _ACEOF
14292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14293 exec 5>>config.log
14294 {
14295 echo
14296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14297 ## Running $as_me. ##
14298 _ASBOX
14299 $as_echo "$ac_log"
14300 } >&5
14301
14302 _ACEOF
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14304 #
14305 # INIT-COMMANDS
14306 #
14307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14308
14309
14310 # The HP-UX ksh and POSIX shell print the target directory to stdout
14311 # if CDPATH is set.
14312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14313
14314 sed_quote_subst='$sed_quote_subst'
14315 double_quote_subst='$double_quote_subst'
14316 delay_variable_subst='$delay_variable_subst'
14317 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14318 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14319 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14320 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14321 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14322 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14323 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14324 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14325 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14326 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14327 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14328 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14329 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14330 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14331 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14332 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14333 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14334 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14335 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14336 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14337 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14338 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14339 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14340 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14341 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14342 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14343 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14344 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14345 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14346 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14347 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14348 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14349 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14350 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14351 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14352 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14353 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14354 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14355 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14356 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14357 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14358 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14359 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14360 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14361 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14362 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14363 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14364 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14365 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14366 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14367 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14368 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14369 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14370 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14371 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14372 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14373 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14374 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14375 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14376 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"`'
14377 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14378 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14379 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14380 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14381 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14382 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14383 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14384 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14385 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14386 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14387 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14388 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14389 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14390 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14391 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14392 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14393 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14394 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14395 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14396 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14397 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14398 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14399 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14400 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14401 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14402 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14403 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14404 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14405 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14406 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14407 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14408 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14409 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14410 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14411 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14412 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14413 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14414 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14415 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14416 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14417 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14418 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14419 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14420 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14421 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14422 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14423 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14424 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14425 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14426 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14427 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14428 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14429 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14430 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14431 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14432 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14433 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14434 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14435 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14436 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14437 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14438 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14439 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14440 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14441 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14442 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14443 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14444 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14445 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14446 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14447 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14448 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14449 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14450 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14451 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14452 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14453
14454 LTCC='$LTCC'
14455 LTCFLAGS='$LTCFLAGS'
14456 compiler='$compiler_DEFAULT'
14457
14458 # A function that is used when there is no print builtin or printf.
14459 func_fallback_echo ()
14460 {
14461 eval 'cat <<_LTECHO_EOF
14462 \$1
14463 _LTECHO_EOF'
14464 }
14465
14466 # Quote evaled strings.
14467 for var in AS \
14468 DLLTOOL \
14469 OBJDUMP \
14470 SHELL \
14471 ECHO \
14472 PATH_SEPARATOR \
14473 SED \
14474 GREP \
14475 EGREP \
14476 FGREP \
14477 LD \
14478 NM \
14479 LN_S \
14480 lt_SP2NL \
14481 lt_NL2SP \
14482 reload_flag \
14483 deplibs_check_method \
14484 file_magic_cmd \
14485 file_magic_glob \
14486 want_nocaseglob \
14487 sharedlib_from_linklib_cmd \
14488 AR \
14489 AR_FLAGS \
14490 archiver_list_spec \
14491 STRIP \
14492 RANLIB \
14493 CC \
14494 CFLAGS \
14495 compiler \
14496 lt_cv_sys_global_symbol_pipe \
14497 lt_cv_sys_global_symbol_to_cdecl \
14498 lt_cv_sys_global_symbol_to_import \
14499 lt_cv_sys_global_symbol_to_c_name_address \
14500 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14501 lt_cv_nm_interface \
14502 nm_file_list_spec \
14503 lt_cv_truncate_bin \
14504 lt_prog_compiler_no_builtin_flag \
14505 lt_prog_compiler_pic \
14506 lt_prog_compiler_wl \
14507 lt_prog_compiler_static \
14508 lt_cv_prog_compiler_c_o \
14509 need_locks \
14510 MANIFEST_TOOL \
14511 DSYMUTIL \
14512 NMEDIT \
14513 LIPO \
14514 OTOOL \
14515 OTOOL64 \
14516 shrext_cmds \
14517 export_dynamic_flag_spec \
14518 whole_archive_flag_spec \
14519 compiler_needs_object \
14520 with_gnu_ld \
14521 allow_undefined_flag \
14522 no_undefined_flag \
14523 hardcode_libdir_flag_spec \
14524 hardcode_libdir_separator \
14525 exclude_expsyms \
14526 include_expsyms \
14527 file_list_spec \
14528 variables_saved_for_relink \
14529 libname_spec \
14530 library_names_spec \
14531 soname_spec \
14532 install_override_mode \
14533 finish_eval \
14534 old_striplib \
14535 striplib; do
14536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14537 *[\\\\\\\`\\"\\\$]*)
14538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14539 ;;
14540 *)
14541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14542 ;;
14543 esac
14544 done
14545
14546 # Double-quote double-evaled strings.
14547 for var in reload_cmds \
14548 old_postinstall_cmds \
14549 old_postuninstall_cmds \
14550 old_archive_cmds \
14551 extract_expsyms_cmds \
14552 old_archive_from_new_cmds \
14553 old_archive_from_expsyms_cmds \
14554 archive_cmds \
14555 archive_expsym_cmds \
14556 module_cmds \
14557 module_expsym_cmds \
14558 export_symbols_cmds \
14559 prelink_cmds \
14560 postlink_cmds \
14561 postinstall_cmds \
14562 postuninstall_cmds \
14563 finish_cmds \
14564 sys_lib_search_path_spec \
14565 configure_time_dlsearch_path \
14566 configure_time_lt_sys_library_path; do
14567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14568 *[\\\\\\\`\\"\\\$]*)
14569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14570 ;;
14571 *)
14572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14573 ;;
14574 esac
14575 done
14576
14577 ac_aux_dir='$ac_aux_dir'
14578
14579 # See if we are running on zsh, and set the options that allow our
14580 # commands through without removal of \ escapes INIT.
14581 if test -n "\${ZSH_VERSION+set}"; then
14582 setopt NO_GLOB_SUBST
14583 fi
14584
14585
14586 PACKAGE='$PACKAGE'
14587 VERSION='$VERSION'
14588 RM='$RM'
14589 ofile='$ofile'
14590
14591
14592
14593
14594 _ACEOF
14595
14596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14597
14598 # Handling of arguments.
14599 for ac_config_target in $ac_config_targets
14600 do
14601 case $ac_config_target in
14602 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
14603 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14604 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14605 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14606
14607 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14608 esac
14609 done
14610
14611
14612 # If the user did not use the arguments to specify the items to instantiate,
14613 # then the envvar interface is used. Set only those that are not.
14614 # We use the long form for the default assignment because of an extremely
14615 # bizarre bug on SunOS 4.1.3.
14616 if $ac_need_defaults; then
14617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14620 fi
14621
14622 # Have a temporary directory for convenience. Make it in the build tree
14623 # simply because there is no reason against having it here, and in addition,
14624 # creating and moving files from /tmp can sometimes cause problems.
14625 # Hook for its removal unless debugging.
14626 # Note that there is a small window in which the directory will not be cleaned:
14627 # after its creation but before its name has been assigned to `$tmp'.
14628 $debug ||
14629 {
14630 tmp= ac_tmp=
14631 trap 'exit_status=$?
14632 : "${ac_tmp:=$tmp}"
14633 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14634 ' 0
14635 trap 'as_fn_exit 1' 1 2 13 15
14636 }
14637 # Create a (secure) tmp directory for tmp files.
14638
14639 {
14640 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14641 test -d "$tmp"
14642 } ||
14643 {
14644 tmp=./conf$$-$RANDOM
14645 (umask 077 && mkdir "$tmp")
14646 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14647 ac_tmp=$tmp
14648
14649 # Set up the scripts for CONFIG_FILES section.
14650 # No need to generate them if there are no CONFIG_FILES.
14651 # This happens for instance with `./config.status config.h'.
14652 if test -n "$CONFIG_FILES"; then
14653
14654
14655 ac_cr=`echo X | tr X '\015'`
14656 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14657 # But we know of no other shell where ac_cr would be empty at this
14658 # point, so we can use a bashism as a fallback.
14659 if test "x$ac_cr" = x; then
14660 eval ac_cr=\$\'\\r\'
14661 fi
14662 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14664 ac_cs_awk_cr='\\r'
14665 else
14666 ac_cs_awk_cr=$ac_cr
14667 fi
14668
14669 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14670 _ACEOF
14671
14672
14673 {
14674 echo "cat >conf$$subs.awk <<_ACEOF" &&
14675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14676 echo "_ACEOF"
14677 } >conf$$subs.sh ||
14678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14680 ac_delim='%!_!# '
14681 for ac_last_try in false false false false false :; do
14682 . ./conf$$subs.sh ||
14683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14684
14685 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14686 if test $ac_delim_n = $ac_delim_num; then
14687 break
14688 elif $ac_last_try; then
14689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14690 else
14691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14692 fi
14693 done
14694 rm -f conf$$subs.sh
14695
14696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14697 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14698 _ACEOF
14699 sed -n '
14700 h
14701 s/^/S["/; s/!.*/"]=/
14702 p
14703 g
14704 s/^[^!]*!//
14705 :repl
14706 t repl
14707 s/'"$ac_delim"'$//
14708 t delim
14709 :nl
14710 h
14711 s/\(.\{148\}\)..*/\1/
14712 t more1
14713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14714 p
14715 n
14716 b repl
14717 :more1
14718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14719 p
14720 g
14721 s/.\{148\}//
14722 t nl
14723 :delim
14724 h
14725 s/\(.\{148\}\)..*/\1/
14726 t more2
14727 s/["\\]/\\&/g; s/^/"/; s/$/"/
14728 p
14729 b
14730 :more2
14731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14732 p
14733 g
14734 s/.\{148\}//
14735 t delim
14736 ' <conf$$subs.awk | sed '
14737 /^[^""]/{
14738 N
14739 s/\n//
14740 }
14741 ' >>$CONFIG_STATUS || ac_write_fail=1
14742 rm -f conf$$subs.awk
14743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14744 _ACAWK
14745 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14746 for (key in S) S_is_set[key] = 1
14747 FS = ""
14748
14749 }
14750 {
14751 line = $ 0
14752 nfields = split(line, field, "@")
14753 substed = 0
14754 len = length(field[1])
14755 for (i = 2; i < nfields; i++) {
14756 key = field[i]
14757 keylen = length(key)
14758 if (S_is_set[key]) {
14759 value = S[key]
14760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14761 len += length(value) + length(field[++i])
14762 substed = 1
14763 } else
14764 len += 1 + keylen
14765 }
14766
14767 print line
14768 }
14769
14770 _ACAWK
14771 _ACEOF
14772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14775 else
14776 cat
14777 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14778 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14779 _ACEOF
14780
14781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14783 # trailing colons and then remove the whole line if VPATH becomes empty
14784 # (actually we leave an empty line to preserve line numbers).
14785 if test "x$srcdir" = x.; then
14786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14787 h
14788 s///
14789 s/^/:/
14790 s/[ ]*$/:/
14791 s/:\$(srcdir):/:/g
14792 s/:\${srcdir}:/:/g
14793 s/:@srcdir@:/:/g
14794 s/^:*//
14795 s/:*$//
14796 x
14797 s/\(=[ ]*\).*/\1/
14798 G
14799 s/\n//
14800 s/^[^=]*=[ ]*$//
14801 }'
14802 fi
14803
14804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14805 fi # test -n "$CONFIG_FILES"
14806
14807 # Set up the scripts for CONFIG_HEADERS section.
14808 # No need to generate them if there are no CONFIG_HEADERS.
14809 # This happens for instance with `./config.status Makefile'.
14810 if test -n "$CONFIG_HEADERS"; then
14811 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14812 BEGIN {
14813 _ACEOF
14814
14815 # Transform confdefs.h into an awk script `defines.awk', embedded as
14816 # here-document in config.status, that substitutes the proper values into
14817 # config.h.in to produce config.h.
14818
14819 # Create a delimiter string that does not exist in confdefs.h, to ease
14820 # handling of long lines.
14821 ac_delim='%!_!# '
14822 for ac_last_try in false false :; do
14823 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14824 if test -z "$ac_tt"; then
14825 break
14826 elif $ac_last_try; then
14827 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14828 else
14829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14830 fi
14831 done
14832
14833 # For the awk script, D is an array of macro values keyed by name,
14834 # likewise P contains macro parameters if any. Preserve backslash
14835 # newline sequences.
14836
14837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14838 sed -n '
14839 s/.\{148\}/&'"$ac_delim"'/g
14840 t rset
14841 :rset
14842 s/^[ ]*#[ ]*define[ ][ ]*/ /
14843 t def
14844 d
14845 :def
14846 s/\\$//
14847 t bsnl
14848 s/["\\]/\\&/g
14849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14850 D["\1"]=" \3"/p
14851 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14852 d
14853 :bsnl
14854 s/["\\]/\\&/g
14855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14856 D["\1"]=" \3\\\\\\n"\\/p
14857 t cont
14858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14859 t cont
14860 d
14861 :cont
14862 n
14863 s/.\{148\}/&'"$ac_delim"'/g
14864 t clear
14865 :clear
14866 s/\\$//
14867 t bsnlc
14868 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14869 d
14870 :bsnlc
14871 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14872 b cont
14873 ' <confdefs.h | sed '
14874 s/'"$ac_delim"'/"\\\
14875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14876
14877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14878 for (key in D) D_is_set[key] = 1
14879 FS = ""
14880 }
14881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14882 line = \$ 0
14883 split(line, arg, " ")
14884 if (arg[1] == "#") {
14885 defundef = arg[2]
14886 mac1 = arg[3]
14887 } else {
14888 defundef = substr(arg[1], 2)
14889 mac1 = arg[2]
14890 }
14891 split(mac1, mac2, "(") #)
14892 macro = mac2[1]
14893 prefix = substr(line, 1, index(line, defundef) - 1)
14894 if (D_is_set[macro]) {
14895 # Preserve the white space surrounding the "#".
14896 print prefix "define", macro P[macro] D[macro]
14897 next
14898 } else {
14899 # Replace #undef with comments. This is necessary, for example,
14900 # in the case of _POSIX_SOURCE, which is predefined and required
14901 # on some systems where configure will not decide to define it.
14902 if (defundef == "undef") {
14903 print "/*", prefix defundef, macro, "*/"
14904 next
14905 }
14906 }
14907 }
14908 { print }
14909 _ACAWK
14910 _ACEOF
14911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14912 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14913 fi # test -n "$CONFIG_HEADERS"
14914
14915
14916 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14917 shift
14918 for ac_tag
14919 do
14920 case $ac_tag in
14921 :[FHLC]) ac_mode=$ac_tag; continue;;
14922 esac
14923 case $ac_mode$ac_tag in
14924 :[FHL]*:*);;
14925 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14926 :[FH]-) ac_tag=-:-;;
14927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14928 esac
14929 ac_save_IFS=$IFS
14930 IFS=:
14931 set x $ac_tag
14932 IFS=$ac_save_IFS
14933 shift
14934 ac_file=$1
14935 shift
14936
14937 case $ac_mode in
14938 :L) ac_source=$1;;
14939 :[FH])
14940 ac_file_inputs=
14941 for ac_f
14942 do
14943 case $ac_f in
14944 -) ac_f="$ac_tmp/stdin";;
14945 *) # Look for the file first in the build tree, then in the source tree
14946 # (if the path is not absolute). The absolute path cannot be DOS-style,
14947 # because $ac_f cannot contain `:'.
14948 test -f "$ac_f" ||
14949 case $ac_f in
14950 [\\/$]*) false;;
14951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14952 esac ||
14953 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14954 esac
14955 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14956 as_fn_append ac_file_inputs " '$ac_f'"
14957 done
14958
14959 # Let's still pretend it is `configure' which instantiates (i.e., don't
14960 # use $as_me), people would be surprised to read:
14961 # /* config.h. Generated by config.status. */
14962 configure_input='Generated from '`
14963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14964 `' by configure.'
14965 if test x"$ac_file" != x-; then
14966 configure_input="$ac_file. $configure_input"
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14968 $as_echo "$as_me: creating $ac_file" >&6;}
14969 fi
14970 # Neutralize special characters interpreted by sed in replacement strings.
14971 case $configure_input in #(
14972 *\&* | *\|* | *\\* )
14973 ac_sed_conf_input=`$as_echo "$configure_input" |
14974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14975 *) ac_sed_conf_input=$configure_input;;
14976 esac
14977
14978 case $ac_tag in
14979 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14981 esac
14982 ;;
14983 esac
14984
14985 ac_dir=`$as_dirname -- "$ac_file" ||
14986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14987 X"$ac_file" : 'X\(//\)[^/]' \| \
14988 X"$ac_file" : 'X\(//\)$' \| \
14989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14990 $as_echo X"$ac_file" |
14991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14992 s//\1/
14993 q
14994 }
14995 /^X\(\/\/\)[^/].*/{
14996 s//\1/
14997 q
14998 }
14999 /^X\(\/\/\)$/{
15000 s//\1/
15001 q
15002 }
15003 /^X\(\/\).*/{
15004 s//\1/
15005 q
15006 }
15007 s/.*/./; q'`
15008 as_dir="$ac_dir"; as_fn_mkdir_p
15009 ac_builddir=.
15010
15011 case "$ac_dir" in
15012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15013 *)
15014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15015 # A ".." for each directory in $ac_dir_suffix.
15016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15017 case $ac_top_builddir_sub in
15018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15020 esac ;;
15021 esac
15022 ac_abs_top_builddir=$ac_pwd
15023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15024 # for backward compatibility:
15025 ac_top_builddir=$ac_top_build_prefix
15026
15027 case $srcdir in
15028 .) # We are building in place.
15029 ac_srcdir=.
15030 ac_top_srcdir=$ac_top_builddir_sub
15031 ac_abs_top_srcdir=$ac_pwd ;;
15032 [\\/]* | ?:[\\/]* ) # Absolute name.
15033 ac_srcdir=$srcdir$ac_dir_suffix;
15034 ac_top_srcdir=$srcdir
15035 ac_abs_top_srcdir=$srcdir ;;
15036 *) # Relative name.
15037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15038 ac_top_srcdir=$ac_top_build_prefix$srcdir
15039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15040 esac
15041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15042
15043
15044 case $ac_mode in
15045 :F)
15046 #
15047 # CONFIG_FILE
15048 #
15049
15050 case $INSTALL in
15051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15052 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15053 esac
15054 ac_MKDIR_P=$MKDIR_P
15055 case $MKDIR_P in
15056 [\\/$]* | ?:[\\/]* ) ;;
15057 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15058 esac
15059 _ACEOF
15060
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062 # If the template does not know about datarootdir, expand it.
15063 # FIXME: This hack should be removed a few years after 2.60.
15064 ac_datarootdir_hack=; ac_datarootdir_seen=
15065 ac_sed_dataroot='
15066 /datarootdir/ {
15067 p
15068 q
15069 }
15070 /@datadir@/p
15071 /@docdir@/p
15072 /@infodir@/p
15073 /@localedir@/p
15074 /@mandir@/p'
15075 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15076 *datarootdir*) ac_datarootdir_seen=yes;;
15077 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15079 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15080 _ACEOF
15081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15082 ac_datarootdir_hack='
15083 s&@datadir@&$datadir&g
15084 s&@docdir@&$docdir&g
15085 s&@infodir@&$infodir&g
15086 s&@localedir@&$localedir&g
15087 s&@mandir@&$mandir&g
15088 s&\\\${datarootdir}&$datarootdir&g' ;;
15089 esac
15090 _ACEOF
15091
15092 # Neutralize VPATH when `$srcdir' = `.'.
15093 # Shell code in configure.ac might set extrasub.
15094 # FIXME: do we really want to maintain this feature?
15095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15096 ac_sed_extra="$ac_vpsub
15097 $extrasub
15098 _ACEOF
15099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15100 :t
15101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15102 s|@configure_input@|$ac_sed_conf_input|;t t
15103 s&@top_builddir@&$ac_top_builddir_sub&;t t
15104 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15105 s&@srcdir@&$ac_srcdir&;t t
15106 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15107 s&@top_srcdir@&$ac_top_srcdir&;t t
15108 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15109 s&@builddir@&$ac_builddir&;t t
15110 s&@abs_builddir@&$ac_abs_builddir&;t t
15111 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15112 s&@INSTALL@&$ac_INSTALL&;t t
15113 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15114 $ac_datarootdir_hack
15115 "
15116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15117 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15118
15119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15120 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15122 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15124 which seems to be undefined. Please make sure it is defined" >&5
15125 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15126 which seems to be undefined. Please make sure it is defined" >&2;}
15127
15128 rm -f "$ac_tmp/stdin"
15129 case $ac_file in
15130 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15131 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15132 esac \
15133 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15134 ;;
15135 :H)
15136 #
15137 # CONFIG_HEADER
15138 #
15139 if test x"$ac_file" != x-; then
15140 {
15141 $as_echo "/* $configure_input */" \
15142 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15143 } >"$ac_tmp/config.h" \
15144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15145 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15147 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15148 else
15149 rm -f "$ac_file"
15150 mv "$ac_tmp/config.h" "$ac_file" \
15151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15152 fi
15153 else
15154 $as_echo "/* $configure_input */" \
15155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15156 || as_fn_error $? "could not create -" "$LINENO" 5
15157 fi
15158 # Compute "$ac_file"'s index in $config_headers.
15159 _am_arg="$ac_file"
15160 _am_stamp_count=1
15161 for _am_header in $config_headers :; do
15162 case $_am_header in
15163 $_am_arg | $_am_arg:* )
15164 break ;;
15165 * )
15166 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15167 esac
15168 done
15169 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15170 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15171 X"$_am_arg" : 'X\(//\)[^/]' \| \
15172 X"$_am_arg" : 'X\(//\)$' \| \
15173 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15174 $as_echo X"$_am_arg" |
15175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15176 s//\1/
15177 q
15178 }
15179 /^X\(\/\/\)[^/].*/{
15180 s//\1/
15181 q
15182 }
15183 /^X\(\/\/\)$/{
15184 s//\1/
15185 q
15186 }
15187 /^X\(\/\).*/{
15188 s//\1/
15189 q
15190 }
15191 s/.*/./; q'`/stamp-h$_am_stamp_count
15192 ;;
15193
15194 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15195 $as_echo "$as_me: executing $ac_file commands" >&6;}
15196 ;;
15197 esac
15198
15199
15200 case $ac_file$ac_mode in
15201 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15202 # Older Autoconf quotes --file arguments for eval, but not when files
15203 # are listed without --file. Let's play safe and only enable the eval
15204 # if we detect the quoting.
15205 case $CONFIG_FILES in
15206 *\'*) eval set x "$CONFIG_FILES" ;;
15207 *) set x $CONFIG_FILES ;;
15208 esac
15209 shift
15210 for mf
15211 do
15212 # Strip MF so we end up with the name of the file.
15213 mf=`echo "$mf" | sed -e 's/:.*$//'`
15214 # Check whether this is an Automake generated Makefile or not.
15215 # We used to match only the files named 'Makefile.in', but
15216 # some people rename them; so instead we look at the file content.
15217 # Grep'ing the first line is not enough: some people post-process
15218 # each Makefile.in and add a new line on top of each file to say so.
15219 # Grep'ing the whole file is not good either: AIX grep has a line
15220 # limit of 2048, but all sed's we know have understand at least 4000.
15221 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15222 dirpart=`$as_dirname -- "$mf" ||
15223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15224 X"$mf" : 'X\(//\)[^/]' \| \
15225 X"$mf" : 'X\(//\)$' \| \
15226 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15227 $as_echo X"$mf" |
15228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15229 s//\1/
15230 q
15231 }
15232 /^X\(\/\/\)[^/].*/{
15233 s//\1/
15234 q
15235 }
15236 /^X\(\/\/\)$/{
15237 s//\1/
15238 q
15239 }
15240 /^X\(\/\).*/{
15241 s//\1/
15242 q
15243 }
15244 s/.*/./; q'`
15245 else
15246 continue
15247 fi
15248 # Extract the definition of DEPDIR, am__include, and am__quote
15249 # from the Makefile without running 'make'.
15250 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15251 test -z "$DEPDIR" && continue
15252 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15253 test -z "$am__include" && continue
15254 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15255 # Find all dependency output files, they are included files with
15256 # $(DEPDIR) in their names. We invoke sed twice because it is the
15257 # simplest approach to changing $(DEPDIR) to its actual value in the
15258 # expansion.
15259 for file in `sed -n "
15260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15262 # Make sure the directory exists.
15263 test -f "$dirpart/$file" && continue
15264 fdir=`$as_dirname -- "$file" ||
15265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15266 X"$file" : 'X\(//\)[^/]' \| \
15267 X"$file" : 'X\(//\)$' \| \
15268 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15269 $as_echo X"$file" |
15270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15271 s//\1/
15272 q
15273 }
15274 /^X\(\/\/\)[^/].*/{
15275 s//\1/
15276 q
15277 }
15278 /^X\(\/\/\)$/{
15279 s//\1/
15280 q
15281 }
15282 /^X\(\/\).*/{
15283 s//\1/
15284 q
15285 }
15286 s/.*/./; q'`
15287 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15288 # echo "creating $dirpart/$file"
15289 echo '# dummy' > "$dirpart/$file"
15290 done
15291 done
15292 }
15293 ;;
15294 "libtool":C)
15295
15296 # See if we are running on zsh, and set the options that allow our
15297 # commands through without removal of \ escapes.
15298 if test -n "${ZSH_VERSION+set}"; then
15299 setopt NO_GLOB_SUBST
15300 fi
15301
15302 cfgfile=${ofile}T
15303 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15304 $RM "$cfgfile"
15305
15306 cat <<_LT_EOF >> "$cfgfile"
15307 #! $SHELL
15308 # Generated automatically by $as_me ($PACKAGE) $VERSION
15309 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15310 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15311
15312 # Provide generalized library-building support services.
15313 # Written by Gordon Matzigkeit, 1996
15314
15315 # Copyright (C) 2014 Free Software Foundation, Inc.
15316 # This is free software; see the source for copying conditions. There is NO
15317 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15318
15319 # GNU Libtool is free software; you can redistribute it and/or modify
15320 # it under the terms of the GNU General Public License as published by
15321 # the Free Software Foundation; either version 2 of of the License, or
15322 # (at your option) any later version.
15323 #
15324 # As a special exception to the GNU General Public License, if you
15325 # distribute this file as part of a program or library that is built
15326 # using GNU Libtool, you may include this file under the same
15327 # distribution terms that you use for the rest of that program.
15328 #
15329 # GNU Libtool is distributed in the hope that it will be useful, but
15330 # WITHOUT ANY WARRANTY; without even the implied warranty of
15331 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15332 # GNU General Public License for more details.
15333 #
15334 # You should have received a copy of the GNU General Public License
15335 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15336
15337
15338 # The names of the tagged configurations supported by this script.
15339 available_tags=''
15340
15341 # Configured defaults for sys_lib_dlsearch_path munging.
15342 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15343
15344 # ### BEGIN LIBTOOL CONFIG
15345
15346 # Assembler program.
15347 AS=$lt_AS
15348
15349 # DLL creation program.
15350 DLLTOOL=$lt_DLLTOOL
15351
15352 # Object dumper program.
15353 OBJDUMP=$lt_OBJDUMP
15354
15355 # Which release of libtool.m4 was used?
15356 macro_version=$macro_version
15357 macro_revision=$macro_revision
15358
15359 # Whether or not to build shared libraries.
15360 build_libtool_libs=$enable_shared
15361
15362 # Whether or not to build static libraries.
15363 build_old_libs=$enable_static
15364
15365 # What type of objects to build.
15366 pic_mode=$pic_mode
15367
15368 # Whether or not to optimize for fast installation.
15369 fast_install=$enable_fast_install
15370
15371 # Shared archive member basename,for filename based shared library versioning on AIX.
15372 shared_archive_member_spec=$shared_archive_member_spec
15373
15374 # Shell to use when invoking shell scripts.
15375 SHELL=$lt_SHELL
15376
15377 # An echo program that protects backslashes.
15378 ECHO=$lt_ECHO
15379
15380 # The PATH separator for the build system.
15381 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15382
15383 # The host system.
15384 host_alias=$host_alias
15385 host=$host
15386 host_os=$host_os
15387
15388 # The build system.
15389 build_alias=$build_alias
15390 build=$build
15391 build_os=$build_os
15392
15393 # A sed program that does not truncate output.
15394 SED=$lt_SED
15395
15396 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15397 Xsed="\$SED -e 1s/^X//"
15398
15399 # A grep program that handles long lines.
15400 GREP=$lt_GREP
15401
15402 # An ERE matcher.
15403 EGREP=$lt_EGREP
15404
15405 # A literal string matcher.
15406 FGREP=$lt_FGREP
15407
15408 # A BSD- or MS-compatible name lister.
15409 NM=$lt_NM
15410
15411 # Whether we need soft or hard links.
15412 LN_S=$lt_LN_S
15413
15414 # What is the maximum length of a command?
15415 max_cmd_len=$max_cmd_len
15416
15417 # Object file suffix (normally "o").
15418 objext=$ac_objext
15419
15420 # Executable file suffix (normally "").
15421 exeext=$exeext
15422
15423 # whether the shell understands "unset".
15424 lt_unset=$lt_unset
15425
15426 # turn spaces into newlines.
15427 SP2NL=$lt_lt_SP2NL
15428
15429 # turn newlines into spaces.
15430 NL2SP=$lt_lt_NL2SP
15431
15432 # convert \$build file names to \$host format.
15433 to_host_file_cmd=$lt_cv_to_host_file_cmd
15434
15435 # convert \$build files to toolchain format.
15436 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15437
15438 # Method to check whether dependent libraries are shared objects.
15439 deplibs_check_method=$lt_deplibs_check_method
15440
15441 # Command to use when deplibs_check_method = "file_magic".
15442 file_magic_cmd=$lt_file_magic_cmd
15443
15444 # How to find potential files when deplibs_check_method = "file_magic".
15445 file_magic_glob=$lt_file_magic_glob
15446
15447 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15448 want_nocaseglob=$lt_want_nocaseglob
15449
15450 # Command to associate shared and link libraries.
15451 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15452
15453 # The archiver.
15454 AR=$lt_AR
15455
15456 # Flags to create an archive.
15457 AR_FLAGS=$lt_AR_FLAGS
15458
15459 # How to feed a file listing to the archiver.
15460 archiver_list_spec=$lt_archiver_list_spec
15461
15462 # A symbol stripping program.
15463 STRIP=$lt_STRIP
15464
15465 # Commands used to install an old-style archive.
15466 RANLIB=$lt_RANLIB
15467 old_postinstall_cmds=$lt_old_postinstall_cmds
15468 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15469
15470 # Whether to use a lock for old archive extraction.
15471 lock_old_archive_extraction=$lock_old_archive_extraction
15472
15473 # A C compiler.
15474 LTCC=$lt_CC
15475
15476 # LTCC compiler flags.
15477 LTCFLAGS=$lt_CFLAGS
15478
15479 # Take the output of nm and produce a listing of raw symbols and C names.
15480 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15481
15482 # Transform the output of nm in a proper C declaration.
15483 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15484
15485 # Transform the output of nm into a list of symbols to manually relocate.
15486 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15487
15488 # Transform the output of nm in a C name address pair.
15489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15490
15491 # Transform the output of nm in a C name address pair when lib prefix is needed.
15492 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15493
15494 # The name lister interface.
15495 nm_interface=$lt_lt_cv_nm_interface
15496
15497 # Specify filename containing input files for \$NM.
15498 nm_file_list_spec=$lt_nm_file_list_spec
15499
15500 # The root where to search for dependent libraries,and where our libraries should be installed.
15501 lt_sysroot=$lt_sysroot
15502
15503 # Command to truncate a binary pipe.
15504 lt_truncate_bin=$lt_lt_cv_truncate_bin
15505
15506 # The name of the directory that contains temporary libtool files.
15507 objdir=$objdir
15508
15509 # Used to examine libraries when file_magic_cmd begins with "file".
15510 MAGIC_CMD=$MAGIC_CMD
15511
15512 # Must we lock files when doing compilation?
15513 need_locks=$lt_need_locks
15514
15515 # Manifest tool.
15516 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15517
15518 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15519 DSYMUTIL=$lt_DSYMUTIL
15520
15521 # Tool to change global to local symbols on Mac OS X.
15522 NMEDIT=$lt_NMEDIT
15523
15524 # Tool to manipulate fat objects and archives on Mac OS X.
15525 LIPO=$lt_LIPO
15526
15527 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15528 OTOOL=$lt_OTOOL
15529
15530 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15531 OTOOL64=$lt_OTOOL64
15532
15533 # Old archive suffix (normally "a").
15534 libext=$libext
15535
15536 # Shared library suffix (normally ".so").
15537 shrext_cmds=$lt_shrext_cmds
15538
15539 # The commands to extract the exported symbol list from a shared archive.
15540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15541
15542 # Variables whose values should be saved in libtool wrapper scripts and
15543 # restored at link time.
15544 variables_saved_for_relink=$lt_variables_saved_for_relink
15545
15546 # Do we need the "lib" prefix for modules?
15547 need_lib_prefix=$need_lib_prefix
15548
15549 # Do we need a version for libraries?
15550 need_version=$need_version
15551
15552 # Library versioning type.
15553 version_type=$version_type
15554
15555 # Shared library runtime path variable.
15556 runpath_var=$runpath_var
15557
15558 # Shared library path variable.
15559 shlibpath_var=$shlibpath_var
15560
15561 # Is shlibpath searched before the hard-coded library search path?
15562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15563
15564 # Format of library name prefix.
15565 libname_spec=$lt_libname_spec
15566
15567 # List of archive names. First name is the real one, the rest are links.
15568 # The last name is the one that the linker finds with -lNAME
15569 library_names_spec=$lt_library_names_spec
15570
15571 # The coded name of the library, if different from the real name.
15572 soname_spec=$lt_soname_spec
15573
15574 # Permission mode override for installation of shared libraries.
15575 install_override_mode=$lt_install_override_mode
15576
15577 # Command to use after installation of a shared archive.
15578 postinstall_cmds=$lt_postinstall_cmds
15579
15580 # Command to use after uninstallation of a shared archive.
15581 postuninstall_cmds=$lt_postuninstall_cmds
15582
15583 # Commands used to finish a libtool library installation in a directory.
15584 finish_cmds=$lt_finish_cmds
15585
15586 # As "finish_cmds", except a single script fragment to be evaled but
15587 # not shown.
15588 finish_eval=$lt_finish_eval
15589
15590 # Whether we should hardcode library paths into libraries.
15591 hardcode_into_libs=$hardcode_into_libs
15592
15593 # Compile-time system search path for libraries.
15594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15595
15596 # Detected run-time system search path for libraries.
15597 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15598
15599 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15600 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15601
15602 # Whether dlopen is supported.
15603 dlopen_support=$enable_dlopen
15604
15605 # Whether dlopen of programs is supported.
15606 dlopen_self=$enable_dlopen_self
15607
15608 # Whether dlopen of statically linked programs is supported.
15609 dlopen_self_static=$enable_dlopen_self_static
15610
15611 # Commands to strip libraries.
15612 old_striplib=$lt_old_striplib
15613 striplib=$lt_striplib
15614
15615
15616 # The linker used to build libraries.
15617 LD=$lt_LD
15618
15619 # How to create reloadable object files.
15620 reload_flag=$lt_reload_flag
15621 reload_cmds=$lt_reload_cmds
15622
15623 # Commands used to build an old-style archive.
15624 old_archive_cmds=$lt_old_archive_cmds
15625
15626 # A language specific compiler.
15627 CC=$lt_compiler
15628
15629 # Is the compiler the GNU compiler?
15630 with_gcc=$GCC
15631
15632 # Compiler flag to turn off builtin functions.
15633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15634
15635 # Additional compiler flags for building library objects.
15636 pic_flag=$lt_lt_prog_compiler_pic
15637
15638 # How to pass a linker flag through the compiler.
15639 wl=$lt_lt_prog_compiler_wl
15640
15641 # Compiler flag to prevent dynamic linking.
15642 link_static_flag=$lt_lt_prog_compiler_static
15643
15644 # Does compiler simultaneously support -c and -o options?
15645 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15646
15647 # Whether or not to add -lc for building shared libraries.
15648 build_libtool_need_lc=$archive_cmds_need_lc
15649
15650 # Whether or not to disallow shared libs when runtime libs are static.
15651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15652
15653 # Compiler flag to allow reflexive dlopens.
15654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15655
15656 # Compiler flag to generate shared objects directly from archives.
15657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15658
15659 # Whether the compiler copes with passing no objects directly.
15660 compiler_needs_object=$lt_compiler_needs_object
15661
15662 # Create an old-style archive from a shared archive.
15663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15664
15665 # Create a temporary old-style archive to link instead of a shared archive.
15666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15667
15668 # Commands used to build a shared archive.
15669 archive_cmds=$lt_archive_cmds
15670 archive_expsym_cmds=$lt_archive_expsym_cmds
15671
15672 # Commands used to build a loadable module if different from building
15673 # a shared archive.
15674 module_cmds=$lt_module_cmds
15675 module_expsym_cmds=$lt_module_expsym_cmds
15676
15677 # Whether we are building with GNU ld or not.
15678 with_gnu_ld=$lt_with_gnu_ld
15679
15680 # Flag that allows shared libraries with undefined symbols to be built.
15681 allow_undefined_flag=$lt_allow_undefined_flag
15682
15683 # Flag that enforces no undefined symbols.
15684 no_undefined_flag=$lt_no_undefined_flag
15685
15686 # Flag to hardcode \$libdir into a binary during linking.
15687 # This must work even if \$libdir does not exist
15688 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15689
15690 # Whether we need a single "-rpath" flag with a separated argument.
15691 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15692
15693 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15694 # DIR into the resulting binary.
15695 hardcode_direct=$hardcode_direct
15696
15697 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15698 # DIR into the resulting binary and the resulting library dependency is
15699 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15700 # library is relocated.
15701 hardcode_direct_absolute=$hardcode_direct_absolute
15702
15703 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15704 # into the resulting binary.
15705 hardcode_minus_L=$hardcode_minus_L
15706
15707 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15708 # into the resulting binary.
15709 hardcode_shlibpath_var=$hardcode_shlibpath_var
15710
15711 # Set to "yes" if building a shared library automatically hardcodes DIR
15712 # into the library and all subsequent libraries and executables linked
15713 # against it.
15714 hardcode_automatic=$hardcode_automatic
15715
15716 # Set to yes if linker adds runtime paths of dependent libraries
15717 # to runtime path list.
15718 inherit_rpath=$inherit_rpath
15719
15720 # Whether libtool must link a program against all its dependency libraries.
15721 link_all_deplibs=$link_all_deplibs
15722
15723 # Set to "yes" if exported symbols are required.
15724 always_export_symbols=$always_export_symbols
15725
15726 # The commands to list exported symbols.
15727 export_symbols_cmds=$lt_export_symbols_cmds
15728
15729 # Symbols that should not be listed in the preloaded symbols.
15730 exclude_expsyms=$lt_exclude_expsyms
15731
15732 # Symbols that must always be exported.
15733 include_expsyms=$lt_include_expsyms
15734
15735 # Commands necessary for linking programs (against libraries) with templates.
15736 prelink_cmds=$lt_prelink_cmds
15737
15738 # Commands necessary for finishing linking programs.
15739 postlink_cmds=$lt_postlink_cmds
15740
15741 # Specify filename containing input files.
15742 file_list_spec=$lt_file_list_spec
15743
15744 # How to hardcode a shared library path into an executable.
15745 hardcode_action=$hardcode_action
15746
15747 # ### END LIBTOOL CONFIG
15748
15749 _LT_EOF
15750
15751 cat <<'_LT_EOF' >> "$cfgfile"
15752
15753 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15754
15755 # func_munge_path_list VARIABLE PATH
15756 # -----------------------------------
15757 # VARIABLE is name of variable containing _space_ separated list of
15758 # directories to be munged by the contents of PATH, which is string
15759 # having a format:
15760 # "DIR[:DIR]:"
15761 # string "DIR[ DIR]" will be prepended to VARIABLE
15762 # ":DIR[:DIR]"
15763 # string "DIR[ DIR]" will be appended to VARIABLE
15764 # "DIRP[:DIRP]::[DIRA:]DIRA"
15765 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15766 # "DIRA[ DIRA]" will be appended to VARIABLE
15767 # "DIR[:DIR]"
15768 # VARIABLE will be replaced by "DIR[ DIR]"
15769 func_munge_path_list ()
15770 {
15771 case x$2 in
15772 x)
15773 ;;
15774 *:)
15775 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15776 ;;
15777 x:*)
15778 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15779 ;;
15780 *::*)
15781 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15782 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15783 ;;
15784 *)
15785 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15786 ;;
15787 esac
15788 }
15789
15790
15791 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15792 func_cc_basename ()
15793 {
15794 for cc_temp in $*""; do
15795 case $cc_temp in
15796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15798 \-*) ;;
15799 *) break;;
15800 esac
15801 done
15802 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15803 }
15804
15805
15806 # ### END FUNCTIONS SHARED WITH CONFIGURE
15807
15808 _LT_EOF
15809
15810 case $host_os in
15811 aix3*)
15812 cat <<\_LT_EOF >> "$cfgfile"
15813 # AIX sometimes has problems with the GCC collect2 program. For some
15814 # reason, if we set the COLLECT_NAMES environment variable, the problems
15815 # vanish in a puff of smoke.
15816 if test set != "${COLLECT_NAMES+set}"; then
15817 COLLECT_NAMES=
15818 export COLLECT_NAMES
15819 fi
15820 _LT_EOF
15821 ;;
15822 esac
15823
15824
15825 ltmain=$ac_aux_dir/ltmain.sh
15826
15827
15828 # We use sed instead of cat because bash on DJGPP gets confused if
15829 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15830 # text mode, it properly converts lines to CR/LF. This bash problem
15831 # is reportedly fixed, but why not run on old versions too?
15832 sed '$q' "$ltmain" >> "$cfgfile" \
15833 || (rm -f "$cfgfile"; exit 1)
15834
15835 mv -f "$cfgfile" "$ofile" ||
15836 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15837 chmod +x "$ofile"
15838
15839 ;;
15840
15841 esac
15842 done # for ac_tag
15843
15844
15845 as_fn_exit 0
15846 _ACEOF
15847 ac_clean_files=$ac_clean_files_save
15848
15849 test $ac_write_fail = 0 ||
15850 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15851
15852
15853 # configure is writing to config.log, and then calls config.status.
15854 # config.status does its own redirection, appending to config.log.
15855 # Unfortunately, on DOS this fails, as config.log is still kept open
15856 # by configure, so config.status won't be able to write to it; its
15857 # output is simply discarded. So we exec the FD to /dev/null,
15858 # effectively closing config.log, so it can be properly (re)opened and
15859 # appended to by config.status. When coming back to configure, we
15860 # need to make the FD available again.
15861 if test "$no_create" != yes; then
15862 ac_cs_success=:
15863 ac_config_status_args=
15864 test "$silent" = yes &&
15865 ac_config_status_args="$ac_config_status_args --quiet"
15866 exec 5>/dev/null
15867 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15868 exec 5>>config.log
15869 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15870 # would make configure fail if this is the last instruction.
15871 $ac_cs_success || as_fn_exit 1
15872 fi
15873 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15875 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15876 fi
15877