Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ideviceinstaller 1.2.0.
4 #
5 # Report bugs to <https://github.com/libimobiledevice/ideviceinstaller/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://github.com/libimobiledevice/ideviceinstaller/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME='ideviceinstaller'
617 PACKAGE_TARNAME='ideviceinstaller'
618 PACKAGE_VERSION='1.2.0'
619 PACKAGE_STRING='ideviceinstaller 1.2.0'
620 PACKAGE_BUGREPORT='https://github.com/libimobiledevice/ideviceinstaller/issues'
621 PACKAGE_URL='https://libimobiledevice.org'
622
623 ac_unique_file="src/"
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 GLOBAL_CFLAGS
660 LIBOBJS
661 libzip_LIBS
662 libzip_CFLAGS
663 libplist_LIBS
664 libplist_CFLAGS
665 libimobiledevice_LIBS
666 libimobiledevice_CFLAGS
667 PKG_CONFIG_LIBDIR
668 PKG_CONFIG_PATH
669 PKG_CONFIG
670 LT_SYS_LIBRARY_PATH
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 RANLIB
678 ac_ct_AR
679 AR
680 DLLTOOL
681 OBJDUMP
682 FILECMD
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 am__xargs_n
718 am__rm_f_notfound
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 CSCOPE
724 ETAGS
725 CTAGS
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 runstatedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL
788 am__quote'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_dependency_tracking
794 enable_shared
795 enable_static
796 enable_pic
797 with_pic
798 enable_fast_install
799 enable_aix_soname
800 with_aix_soname
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 '
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 LT_SYS_LIBRARY_PATH
814 PKG_CONFIG
815 PKG_CONFIG_PATH
816 PKG_CONFIG_LIBDIR
817 libimobiledevice_CFLAGS
818 libimobiledevice_LIBS
819 libplist_CFLAGS
820 libplist_LIBS
821 libzip_CFLAGS
822 libzip_LIBS'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 runstatedir='${localstatedir}/run'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
919
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: '$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: '$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
968
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
977
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
981
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
988
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
993
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
999
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1006
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1011
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1016
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1023
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1028
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1035
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1040
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1044
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1048
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1052
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1061
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1066
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1073
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1080
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1097
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1102
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1107
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1111
1112 -runstatedir | --runstatedir | --runstatedi | --runstated \
1113 | --runstate | --runstat | --runsta | --runst | --runs \
1114 | --run | --ru | --r)
1115 ac_prev=runstatedir ;;
1116 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1117 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1118 | --run=* | --ru=* | --r=*)
1119 runstatedir=$ac_optarg ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: '$ac_useropt'"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: '$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: '$ac_option'
1217 Try '$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir runstatedir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: '$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 printf "%s\n" X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 'configure' configures ideviceinstaller 1.2.0 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print 'checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for '--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or '..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, 'make install' will install all the files in
1398 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than '$ac_default_prefix' using '--prefix',
1400 for instance '--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root
1421 [DATAROOTDIR/doc/ideviceinstaller]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of ideviceinstaller 1.2.0:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --enable-aix-soname=aix|svr4|both
1464 shared library versioning (aka "SONAME") variant to
1465 provide on AIX, [default=aix].
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1472 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1473 compiler's sysroot if not specified).
1474
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 LT_SYS_LIBRARY_PATH
1484 User-defined run-time library search path.
1485 PKG_CONFIG path to pkg-config utility
1486 PKG_CONFIG_PATH
1487 directories to add to pkg-config's search path
1488 PKG_CONFIG_LIBDIR
1489 path overriding pkg-config's built-in search path
1490 libimobiledevice_CFLAGS
1491 C compiler flags for libimobiledevice, overriding pkg-config
1492 libimobiledevice_LIBS
1493 linker flags for libimobiledevice, overriding pkg-config
1494 libplist_CFLAGS
1495 C compiler flags for libplist, overriding pkg-config
1496 libplist_LIBS
1497 linker flags for libplist, overriding pkg-config
1498 libzip_CFLAGS
1499 C compiler flags for libzip, overriding pkg-config
1500 libzip_LIBS linker flags for libzip, overriding pkg-config
1501
1502 Use these variables to override the choices made by 'configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to <https://github.com/libimobiledevice/ideviceinstaller/issues>.
1506 ideviceinstaller home page: <https://libimobiledevice.org>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for configure.gnu first; this name is used for a wrapper for
1553 # Metaconfig's "Configure" on case-insensitive file systems.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 ideviceinstaller configure 1.2.0
1571 generated by GNU Autoconf 2.72
1572
1573 Copyright (C) 2023 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest.beam
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 printf "%s\n" "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext
1610 then :
1611 ac_retval=0
1612 else case e in #(
1613 e) printf "%s\n" "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1 ;;
1617 esac
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_compile
1623
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_link ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 printf "%s\n" "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 test -x conftest$ac_exeext
1652 }
1653 then :
1654 ac_retval=0
1655 else case e in #(
1656 e) printf "%s\n" "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1 ;;
1660 esac
1661 fi
1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664 # interfere with the next link command; also delete a directory that is
1665 # left behind by Apple's compiler. We do this before executing the actions.
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_link
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 printf %s "checking for $2... " >&6; }
1681 if eval test \${$3+y}
1682 then :
1683 printf %s "(cached) " >&6
1684 else case e in #(
1685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"
1691 then :
1692 eval "$3=yes"
1693 else case e in #(
1694 e) eval "$3=no" ;;
1695 esac
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1698 esac
1699 fi
1700 eval ac_res=\$$3
1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 printf "%s\n" "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_compile
1706
1707 # ac_fn_c_check_func LINENO FUNC VAR
1708 # ----------------------------------
1709 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1710 ac_fn_c_check_func ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 printf %s "checking for $2... " >&6; }
1715 if eval test \${$3+y}
1716 then :
1717 printf %s "(cached) " >&6
1718 else case e in #(
1719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723 #define $2 innocuous_$2
1724
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (void); below. */
1727
1728 #include <limits.h>
1729 #undef $2
1730
1731 /* Override any GCC internal prototype to avoid an error.
1732 Use char because int might match the return type of a GCC
1733 builtin and then its argument prototype would still apply. */
1734 #ifdef __cplusplus
1735 extern "C"
1736 #endif
1737 char $2 (void);
1738 /* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741 #if defined __stub_$2 || defined __stub___$2
1742 choke me
1743 #endif
1744
1745 int
1746 main (void)
1747 {
1748 return $2 ();
1749 ;
1750 return 0;
1751 }
1752 _ACEOF
1753 if ac_fn_c_try_link "$LINENO"
1754 then :
1755 eval "$3=yes"
1756 else case e in #(
1757 e) eval "$3=no" ;;
1758 esac
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1761 conftest$ac_exeext conftest.$ac_ext ;;
1762 esac
1763 fi
1764 eval ac_res=\$$3
1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 printf "%s\n" "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_func
1770
1771 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1772 # -------------------------------------------
1773 # Tests whether TYPE exists after having included INCLUDES, setting cache
1774 # variable VAR accordingly.
1775 ac_fn_c_check_type ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 printf %s "checking for $2... " >&6; }
1780 if eval test \${$3+y}
1781 then :
1782 printf %s "(cached) " >&6
1783 else case e in #(
1784 e) eval "$3=no"
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 int
1789 main (void)
1790 {
1791 if (sizeof ($2))
1792 return 0;
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"
1798 then :
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 int
1803 main (void)
1804 {
1805 if (sizeof (($2)))
1806 return 0;
1807 ;
1808 return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"
1812 then :
1813
1814 else case e in #(
1815 e) eval "$3=yes" ;;
1816 esac
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1821 esac
1822 fi
1823 eval ac_res=\$$3
1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 printf "%s\n" "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_type
1829
1830 # ac_fn_c_find_uintX_t LINENO BITS VAR
1831 # ------------------------------------
1832 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1833 # accordingly.
1834 ac_fn_c_find_uintX_t ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1838 printf %s "checking for uint$2_t... " >&6; }
1839 if eval test \${$3+y}
1840 then :
1841 printf %s "(cached) " >&6
1842 else case e in #(
1843 e) eval "$3=no"
1844 # Order is important - never check a type that is potentially smaller
1845 # than half of the expected target width.
1846 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1847 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $ac_includes_default
1851 int
1852 main (void)
1853 {
1854 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1855 test_array [0] = 0;
1856 return test_array [0];
1857
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"
1863 then :
1864 case $ac_type in #(
1865 uint$2_t) :
1866 eval "$3=yes" ;; #(
1867 *) :
1868 eval "$3=\$ac_type" ;;
1869 esac
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1872 if eval test \"x\$"$3"\" = x"no"
1873 then :
1874
1875 else case e in #(
1876 e) break ;;
1877 esac
1878 fi
1879 done ;;
1880 esac
1881 fi
1882 eval ac_res=\$$3
1883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 printf "%s\n" "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_find_uintX_t
1888
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1892 # executables *can* be run.
1893 ac_fn_c_try_run ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1897 case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 printf "%s\n" "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1904 ac_status=$?
1905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 printf "%s\n" "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1914 ac_status=$?
1915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }
1917 then :
1918 ac_retval=0
1919 else case e in #(
1920 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1921 printf "%s\n" "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=$ac_status ;;
1925 esac
1926 fi
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_run
1932 ac_configure_args_raw=
1933 for ac_arg
1934 do
1935 case $ac_arg in
1936 *\'*)
1937 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 esac
1939 as_fn_append ac_configure_args_raw " '$ac_arg'"
1940 done
1941
1942 case $ac_configure_args_raw in
1943 *$as_nl*)
1944 ac_safe_unquote= ;;
1945 *)
1946 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1947 ac_unsafe_a="$ac_unsafe_z#~"
1948 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1949 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1950 esac
1951
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1955
1956 It was created by ideviceinstaller $as_me 1.2.0, which was
1957 generated by GNU Autoconf 2.72. Invocation command line was
1958
1959 $ $0$ac_configure_args_raw
1960
1961 _ACEOF
1962 exec 5>>config.log
1963 {
1964 cat <<_ASUNAME
1965 ## --------- ##
1966 ## Platform. ##
1967 ## --------- ##
1968
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1977
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1985
1986 _ASUNAME
1987
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991 IFS=$as_save_IFS
1992 case $as_dir in #(((
1993 '') as_dir=./ ;;
1994 */) ;;
1995 *) as_dir=$as_dir/ ;;
1996 esac
1997 printf "%s\n" "PATH: $as_dir"
1998 done
1999 IFS=$as_save_IFS
2000
2001 } >&5
2002
2003 cat >&5 <<_ACEOF
2004
2005
2006 ## ----------- ##
2007 ## Core tests. ##
2008 ## ----------- ##
2009
2010 _ACEOF
2011
2012
2013 # Keep a trace of the command line.
2014 # Strip out --no-create and --no-recursion so they do not pile up.
2015 # Strip out --silent because we don't want to record it for future runs.
2016 # Also quote any args containing shell meta-characters.
2017 # Make two passes to allow for proper duplicate-argument suppression.
2018 ac_configure_args=
2019 ac_configure_args0=
2020 ac_configure_args1=
2021 ac_must_keep_next=false
2022 for ac_pass in 1 2
2023 do
2024 for ac_arg
2025 do
2026 case $ac_arg in
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2030 continue ;;
2031 *\'*)
2032 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 esac
2034 case $ac_pass in
2035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2036 2)
2037 as_fn_append ac_configure_args1 " '$ac_arg'"
2038 if test $ac_must_keep_next = true; then
2039 ac_must_keep_next=false # Got value, back to normal.
2040 else
2041 case $ac_arg in
2042 *=* | --config-cache | -C | -disable-* | --disable-* \
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2045 | -with-* | --with-* | -without-* | --without-* | --x)
2046 case "$ac_configure_args0 " in
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 esac
2049 ;;
2050 -* ) ac_must_keep_next=true ;;
2051 esac
2052 fi
2053 as_fn_append ac_configure_args " '$ac_arg'"
2054 ;;
2055 esac
2056 done
2057 done
2058 { ac_configure_args0=; unset ac_configure_args0;}
2059 { ac_configure_args1=; unset ac_configure_args1;}
2060
2061 # When interrupted or exit'd, cleanup temporary files, and complete
2062 # config.log. We remove comments because anyway the quotes in there
2063 # would cause problems or look ugly.
2064 # WARNING: Use '\'' to represent an apostrophe within the trap.
2065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2066 trap 'exit_status=$?
2067 # Sanitize IFS.
2068 IFS=" "" $as_nl"
2069 # Save into config.log some information that might help in debugging.
2070 {
2071 echo
2072
2073 printf "%s\n" "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2076 echo
2077 # The following way of writing the cache mishandles newlines in values,
2078 (
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in #(
2082 *${as_nl}*)
2083 case $ac_var in #(
2084 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 esac
2087 case $ac_var in #(
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2091 esac ;;
2092 esac
2093 done
2094 (set) 2>&1 |
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2097 sed -n \
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 ;; #(
2101 *)
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103 ;;
2104 esac |
2105 sort
2106 )
2107 echo
2108
2109 printf "%s\n" "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2112 echo
2113 for ac_var in $ac_subst_vars
2114 do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 printf "%s\n" "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2122
2123 if test -n "$ac_subst_files"; then
2124 printf "%s\n" "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2127 echo
2128 for ac_var in $ac_subst_files
2129 do
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 printf "%s\n" "$ac_var='\''$ac_val'\''"
2135 done | sort
2136 echo
2137 fi
2138
2139 if test -s confdefs.h; then
2140 printf "%s\n" "## ----------- ##
2141 ## confdefs.h. ##
2142 ## ----------- ##"
2143 echo
2144 cat confdefs.h
2145 echo
2146 fi
2147 test "$ac_signal" != 0 &&
2148 printf "%s\n" "$as_me: caught signal $ac_signal"
2149 printf "%s\n" "$as_me: exit $exit_status"
2150 } >&5
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153 exit $exit_status
2154 ' 0
2155 for ac_signal in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2159
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2162
2163 printf "%s\n" "/* confdefs.h */" > confdefs.h
2164
2165 # Predefined preprocessor variables.
2166
2167 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2168
2169 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2170
2171 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2172
2173 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2174
2175 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2176
2177 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2178
2179
2180 # Let the site file select an alternate cache file if it wants to.
2181 # Prefer an explicitly selected file to automatically selected ones.
2182 if test -n "$CONFIG_SITE"; then
2183 ac_site_files="$CONFIG_SITE"
2184 elif test "x$prefix" != xNONE; then
2185 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2186 else
2187 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2188 fi
2189
2190 for ac_site_file in $ac_site_files
2191 do
2192 case $ac_site_file in #(
2193 */*) :
2194 ;; #(
2195 *) :
2196 ac_site_file=./$ac_site_file ;;
2197 esac
2198 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2201 sed 's/^/| /' "$ac_site_file" >&5
2202 . "$ac_site_file" \
2203 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2204 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2205 as_fn_error $? "failed to load site script $ac_site_file
2206 See 'config.log' for more details" "$LINENO" 5; }
2207 fi
2208 done
2209
2210 if test -r "$cache_file"; then
2211 # Some versions of bash will fail to source /dev/null (special files
2212 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2215 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2216 case $cache_file in
2217 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218 *) . "./$cache_file";;
2219 esac
2220 fi
2221 else
2222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2223 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2224 >$cache_file
2225 fi
2226
2227 # Test code for whether the C compiler supports C89 (global declarations)
2228 ac_c_conftest_c89_globals='
2229 /* Does the compiler advertise C89 conformance?
2230 Do not test the value of __STDC__, because some compilers set it to 0
2231 while being otherwise adequately conformant. */
2232 #if !defined __STDC__
2233 # error "Compiler does not advertise C89 conformance"
2234 #endif
2235
2236 #include <stddef.h>
2237 #include <stdarg.h>
2238 struct stat;
2239 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2240 struct buf { int x; };
2241 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2242 static char *e (char **p, int i)
2243 {
2244 return p[i];
2245 }
2246 static char *f (char * (*g) (char **, int), char **p, ...)
2247 {
2248 char *s;
2249 va_list v;
2250 va_start (v,p);
2251 s = g (p, va_arg (v,int));
2252 va_end (v);
2253 return s;
2254 }
2255
2256 /* C89 style stringification. */
2257 #define noexpand_stringify(a) #a
2258 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2259
2260 /* C89 style token pasting. Exercises some of the corner cases that
2261 e.g. old MSVC gets wrong, but not very hard. */
2262 #define noexpand_concat(a,b) a##b
2263 #define expand_concat(a,b) noexpand_concat(a,b)
2264 extern int vA;
2265 extern int vbee;
2266 #define aye A
2267 #define bee B
2268 int *pvA = &expand_concat(v,aye);
2269 int *pvbee = &noexpand_concat(v,bee);
2270
2271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2272 function prototypes and stuff, but not \xHH hex character constants.
2273 These do not provoke an error unfortunately, instead are silently treated
2274 as an "x". The following induces an error, until -std is added to get
2275 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2276 array size at least. It is necessary to write \x00 == 0 to get something
2277 that is true only with -std. */
2278 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2279
2280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2281 inside strings and character constants. */
2282 #define FOO(x) '\''x'\''
2283 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2284
2285 int test (int i, double x);
2286 struct s1 {int (*f) (int a);};
2287 struct s2 {int (*f) (double a);};
2288 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2289 int, int);'
2290
2291 # Test code for whether the C compiler supports C89 (body of main).
2292 ac_c_conftest_c89_main='
2293 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2294 '
2295
2296 # Test code for whether the C compiler supports C99 (global declarations)
2297 ac_c_conftest_c99_globals='
2298 /* Does the compiler advertise C99 conformance? */
2299 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2300 # error "Compiler does not advertise C99 conformance"
2301 #endif
2302
2303 // See if C++-style comments work.
2304
2305 #include <stdbool.h>
2306 extern int puts (const char *);
2307 extern int printf (const char *, ...);
2308 extern int dprintf (int, const char *, ...);
2309 extern void *malloc (size_t);
2310 extern void free (void *);
2311
2312 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2313 // dprintf is used instead of fprintf to avoid needing to declare
2314 // FILE and stderr.
2315 #define debug(...) dprintf (2, __VA_ARGS__)
2316 #define showlist(...) puts (#__VA_ARGS__)
2317 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2318 static void
2319 test_varargs_macros (void)
2320 {
2321 int x = 1234;
2322 int y = 5678;
2323 debug ("Flag");
2324 debug ("X = %d\n", x);
2325 showlist (The first, second, and third items.);
2326 report (x>y, "x is %d but y is %d", x, y);
2327 }
2328
2329 // Check long long types.
2330 #define BIG64 18446744073709551615ull
2331 #define BIG32 4294967295ul
2332 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2333 #if !BIG_OK
2334 #error "your preprocessor is broken"
2335 #endif
2336 #if BIG_OK
2337 #else
2338 #error "your preprocessor is broken"
2339 #endif
2340 static long long int bignum = -9223372036854775807LL;
2341 static unsigned long long int ubignum = BIG64;
2342
2343 struct incomplete_array
2344 {
2345 int datasize;
2346 double data[];
2347 };
2348
2349 struct named_init {
2350 int number;
2351 const wchar_t *name;
2352 double average;
2353 };
2354
2355 typedef const char *ccp;
2356
2357 static inline int
2358 test_restrict (ccp restrict text)
2359 {
2360 // Iterate through items via the restricted pointer.
2361 // Also check for declarations in for loops.
2362 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2363 continue;
2364 return 0;
2365 }
2366
2367 // Check varargs and va_copy.
2368 static bool
2369 test_varargs (const char *format, ...)
2370 {
2371 va_list args;
2372 va_start (args, format);
2373 va_list args_copy;
2374 va_copy (args_copy, args);
2375
2376 const char *str = "";
2377 int number = 0;
2378 float fnumber = 0;
2379
2380 while (*format)
2381 {
2382 switch (*format++)
2383 {
2384 case '\''s'\'': // string
2385 str = va_arg (args_copy, const char *);
2386 break;
2387 case '\''d'\'': // int
2388 number = va_arg (args_copy, int);
2389 break;
2390 case '\''f'\'': // float
2391 fnumber = va_arg (args_copy, double);
2392 break;
2393 default:
2394 break;
2395 }
2396 }
2397 va_end (args_copy);
2398 va_end (args);
2399
2400 return *str && number && fnumber;
2401 }
2402 '
2403
2404 # Test code for whether the C compiler supports C99 (body of main).
2405 ac_c_conftest_c99_main='
2406 // Check bool.
2407 _Bool success = false;
2408 success |= (argc != 0);
2409
2410 // Check restrict.
2411 if (test_restrict ("String literal") == 0)
2412 success = true;
2413 char *restrict newvar = "Another string";
2414
2415 // Check varargs.
2416 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2417 test_varargs_macros ();
2418
2419 // Check flexible array members.
2420 struct incomplete_array *ia =
2421 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2422 ia->datasize = 10;
2423 for (int i = 0; i < ia->datasize; ++i)
2424 ia->data[i] = i * 1.234;
2425 // Work around memory leak warnings.
2426 free (ia);
2427
2428 // Check named initializers.
2429 struct named_init ni = {
2430 .number = 34,
2431 .name = L"Test wide string",
2432 .average = 543.34343,
2433 };
2434
2435 ni.number = 58;
2436
2437 int dynamic_array[ni.number];
2438 dynamic_array[0] = argv[0][0];
2439 dynamic_array[ni.number - 1] = 543;
2440
2441 // work around unused variable warnings
2442 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2443 || dynamic_array[ni.number - 1] != 543);
2444 '
2445
2446 # Test code for whether the C compiler supports C11 (global declarations)
2447 ac_c_conftest_c11_globals='
2448 /* Does the compiler advertise C11 conformance? */
2449 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2450 # error "Compiler does not advertise C11 conformance"
2451 #endif
2452
2453 // Check _Alignas.
2454 char _Alignas (double) aligned_as_double;
2455 char _Alignas (0) no_special_alignment;
2456 extern char aligned_as_int;
2457 char _Alignas (0) _Alignas (int) aligned_as_int;
2458
2459 // Check _Alignof.
2460 enum
2461 {
2462 int_alignment = _Alignof (int),
2463 int_array_alignment = _Alignof (int[100]),
2464 char_alignment = _Alignof (char)
2465 };
2466 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2467
2468 // Check _Noreturn.
2469 int _Noreturn does_not_return (void) { for (;;) continue; }
2470
2471 // Check _Static_assert.
2472 struct test_static_assert
2473 {
2474 int x;
2475 _Static_assert (sizeof (int) <= sizeof (long int),
2476 "_Static_assert does not work in struct");
2477 long int y;
2478 };
2479
2480 // Check UTF-8 literals.
2481 #define u8 syntax error!
2482 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2483
2484 // Check duplicate typedefs.
2485 typedef long *long_ptr;
2486 typedef long int *long_ptr;
2487 typedef long_ptr long_ptr;
2488
2489 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2490 struct anonymous
2491 {
2492 union {
2493 struct { int i; int j; };
2494 struct { int k; long int l; } w;
2495 };
2496 int m;
2497 } v1;
2498 '
2499
2500 # Test code for whether the C compiler supports C11 (body of main).
2501 ac_c_conftest_c11_main='
2502 _Static_assert ((offsetof (struct anonymous, i)
2503 == offsetof (struct anonymous, w.k)),
2504 "Anonymous union alignment botch");
2505 v1.i = 2;
2506 v1.w.k = 5;
2507 ok |= v1.i != 5;
2508 '
2509
2510 # Test code for whether the C compiler supports C11 (complete).
2511 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2512 ${ac_c_conftest_c99_globals}
2513 ${ac_c_conftest_c11_globals}
2514
2515 int
2516 main (int argc, char **argv)
2517 {
2518 int ok = 0;
2519 ${ac_c_conftest_c89_main}
2520 ${ac_c_conftest_c99_main}
2521 ${ac_c_conftest_c11_main}
2522 return ok;
2523 }
2524 "
2525
2526 # Test code for whether the C compiler supports C99 (complete).
2527 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2528 ${ac_c_conftest_c99_globals}
2529
2530 int
2531 main (int argc, char **argv)
2532 {
2533 int ok = 0;
2534 ${ac_c_conftest_c89_main}
2535 ${ac_c_conftest_c99_main}
2536 return ok;
2537 }
2538 "
2539
2540 # Test code for whether the C compiler supports C89 (complete).
2541 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2542
2543 int
2544 main (int argc, char **argv)
2545 {
2546 int ok = 0;
2547 ${ac_c_conftest_c89_main}
2548 return ok;
2549 }
2550 "
2551
2552 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2553 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2554 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2555 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2556 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2557 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2558 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2559 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2560 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2561
2562 # Auxiliary files required by this configure script.
2563 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2564
2565 # Locations in which to look for auxiliary files.
2566 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2567
2568 # Search for a directory containing all of the required auxiliary files,
2569 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2570 # If we don't find one directory that contains all the files we need,
2571 # we report the set of missing files from the *first* directory in
2572 # $ac_aux_dir_candidates and give up.
2573 ac_missing_aux_files=""
2574 ac_first_candidate=:
2575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 as_found=false
2578 for as_dir in $ac_aux_dir_candidates
2579 do
2580 IFS=$as_save_IFS
2581 case $as_dir in #(((
2582 '') as_dir=./ ;;
2583 */) ;;
2584 *) as_dir=$as_dir/ ;;
2585 esac
2586 as_found=:
2587
2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2589 ac_aux_dir_found=yes
2590 ac_install_sh=
2591 for ac_aux in $ac_aux_files
2592 do
2593 # As a special case, if "install-sh" is required, that requirement
2594 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2595 # and $ac_install_sh is set appropriately for whichever one is found.
2596 if test x"$ac_aux" = x"install-sh"
2597 then
2598 if test -f "${as_dir}install-sh"; then
2599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2600 ac_install_sh="${as_dir}install-sh -c"
2601 elif test -f "${as_dir}install.sh"; then
2602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2603 ac_install_sh="${as_dir}install.sh -c"
2604 elif test -f "${as_dir}shtool"; then
2605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2606 ac_install_sh="${as_dir}shtool install -c"
2607 else
2608 ac_aux_dir_found=no
2609 if $ac_first_candidate; then
2610 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2611 else
2612 break
2613 fi
2614 fi
2615 else
2616 if test -f "${as_dir}${ac_aux}"; then
2617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2618 else
2619 ac_aux_dir_found=no
2620 if $ac_first_candidate; then
2621 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2622 else
2623 break
2624 fi
2625 fi
2626 fi
2627 done
2628 if test "$ac_aux_dir_found" = yes; then
2629 ac_aux_dir="$as_dir"
2630 break
2631 fi
2632 ac_first_candidate=false
2633
2634 as_found=false
2635 done
2636 IFS=$as_save_IFS
2637 if $as_found
2638 then :
2639
2640 else case e in #(
2641 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2642 esac
2643 fi
2644
2645
2646 # These three variables are undocumented and unsupported,
2647 # and are intended to be withdrawn in a future Autoconf release.
2648 # They can cause serious problems if a builder's source tree is in a directory
2649 # whose full name contains unusual characters.
2650 if test -f "${ac_aux_dir}config.guess"; then
2651 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2652 fi
2653 if test -f "${ac_aux_dir}config.sub"; then
2654 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2655 fi
2656 if test -f "$ac_aux_dir/configure"; then
2657 ac_configure="$SHELL ${ac_aux_dir}configure"
2658 fi
2659
2660 # Check that the precious variables saved in the cache have kept the same
2661 # value.
2662 ac_cache_corrupted=false
2663 for ac_var in $ac_precious_vars; do
2664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2665 eval ac_new_set=\$ac_env_${ac_var}_set
2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2667 eval ac_new_val=\$ac_env_${ac_var}_value
2668 case $ac_old_set,$ac_new_set in
2669 set,)
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2671 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2673 ,set)
2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2675 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2677 ,);;
2678 *)
2679 if test "x$ac_old_val" != "x$ac_new_val"; then
2680 # differences in whitespace do not lead to failure.
2681 ac_old_val_w=`echo x $ac_old_val`
2682 ac_new_val_w=`echo x $ac_new_val`
2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2685 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2686 ac_cache_corrupted=:
2687 else
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2689 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2690 eval $ac_var=\$ac_old_val
2691 fi
2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2693 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2695 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2696 fi;;
2697 esac
2698 # Pass precious variables to config.status.
2699 if test "$ac_new_set" = set; then
2700 case $ac_new_val in
2701 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2702 *) ac_arg=$ac_var=$ac_new_val ;;
2703 esac
2704 case " $ac_configure_args " in
2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707 esac
2708 fi
2709 done
2710 if $ac_cache_corrupted; then
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2712 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2714 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2715 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2716 and start over" "$LINENO" 5
2717 fi
2718 ## -------------------- ##
2719 ## Main body of script. ##
2720 ## -------------------- ##
2721
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727
2728
2729 am__api_version='1.17'
2730
2731
2732
2733 # Find a good install program. We prefer a C program (faster),
2734 # so one script is as good as another. But avoid the broken or
2735 # incompatible versions:
2736 # SysV /etc/install, /usr/sbin/install
2737 # SunOS /usr/etc/install
2738 # IRIX /sbin/install
2739 # AIX /bin/install
2740 # AmigaOS /C/install, which installs bootblocks on floppy discs
2741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2744 # OS/2's system install, which has a completely different semantic
2745 # ./install, which can be erroneously created by make from ./install.sh.
2746 # Reject install programs that cannot install multiple files.
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2748 printf %s "checking for a BSD-compatible install... " >&6; }
2749 if test -z "$INSTALL"; then
2750 if test ${ac_cv_path_install+y}
2751 then :
2752 printf %s "(cached) " >&6
2753 else case e in #(
2754 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757 IFS=$as_save_IFS
2758 case $as_dir in #(((
2759 '') as_dir=./ ;;
2760 */) ;;
2761 *) as_dir=$as_dir/ ;;
2762 esac
2763 # Account for fact that we put trailing slashes in our PATH walk.
2764 case $as_dir in #((
2765 ./ | /[cC]/* | \
2766 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2767 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2768 /usr/ucb/* ) ;;
2769 *)
2770 # OSF1 and SCO ODT 3.0 have their own names for install.
2771 # Don't use installbsd from OSF since it installs stuff as root
2772 # by default.
2773 for ac_prog in ginstall scoinst install; do
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2776 if test $ac_prog = install &&
2777 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778 # AIX install. It has an incompatible calling convention.
2779 :
2780 elif test $ac_prog = install &&
2781 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782 # program-specific install script used by HP pwplus--don't use.
2783 :
2784 else
2785 rm -rf conftest.one conftest.two conftest.dir
2786 echo one > conftest.one
2787 echo two > conftest.two
2788 mkdir conftest.dir
2789 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2790 test -s conftest.one && test -s conftest.two &&
2791 test -s conftest.dir/conftest.one &&
2792 test -s conftest.dir/conftest.two
2793 then
2794 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2795 break 3
2796 fi
2797 fi
2798 fi
2799 done
2800 done
2801 ;;
2802 esac
2803
2804 done
2805 IFS=$as_save_IFS
2806
2807 rm -rf conftest.one conftest.two conftest.dir
2808 ;;
2809 esac
2810 fi
2811 if test ${ac_cv_path_install+y}; then
2812 INSTALL=$ac_cv_path_install
2813 else
2814 # As a last resort, use the slow shell script. Don't cache a
2815 # value for INSTALL within a source directory, because that will
2816 # break other packages using the cache if that directory is
2817 # removed, or if the value is a relative name.
2818 INSTALL=$ac_install_sh
2819 fi
2820 fi
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2822 printf "%s\n" "$INSTALL" >&6; }
2823
2824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2825 # It thinks the first close brace ends the variable substitution.
2826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2827
2828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2829
2830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2831
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2833 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2834 if test ${am_cv_sleep_fractional_seconds+y}
2835 then :
2836 printf %s "(cached) " >&6
2837 else case e in #(
2838 e) if sleep 0.001 2>/dev/null
2839 then :
2840 am_cv_sleep_fractional_seconds=yes
2841 else case e in #(
2842 e) am_cv_sleep_fractional_seconds=no ;;
2843 esac
2844 fi
2845 ;;
2846 esac
2847 fi
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2849 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2850
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2852 printf %s "checking filesystem timestamp resolution... " >&6; }
2853 if test ${am_cv_filesystem_timestamp_resolution+y}
2854 then :
2855 printf %s "(cached) " >&6
2856 else case e in #(
2857 e) # Default to the worst case.
2858 am_cv_filesystem_timestamp_resolution=2
2859
2860 # Only try to go finer than 1 sec if sleep can do it.
2861 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2862 # - 1 sec is not much of a win compared to 2 sec, and
2863 # - it takes 2 seconds to perform the test whether 1 sec works.
2864 #
2865 # Instead, just use the default 2s on platforms that have 1s resolution,
2866 # accept the extra 1s delay when using $sleep in the Automake tests, in
2867 # exchange for not incurring the 2s delay for running the test for all
2868 # packages.
2869 #
2870 am_try_resolutions=
2871 if test "$am_cv_sleep_fractional_seconds" = yes; then
2872 # Even a millisecond often causes a bunch of false positives,
2873 # so just try a hundredth of a second. The time saved between .001 and
2874 # .01 is not terribly consequential.
2875 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2876 fi
2877
2878 # In order to catch current-generation FAT out, we must *modify* files
2879 # that already exist; the *creation* timestamp is finer. Use names
2880 # that make ls -t sort them differently when they have equal
2881 # timestamps than when they have distinct timestamps, keeping
2882 # in mind that ls -t prints the *newest* file first.
2883 rm -f conftest.ts?
2884 : > conftest.ts1
2885 : > conftest.ts2
2886 : > conftest.ts3
2887
2888 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2889 # clobber the current shell's arguments. (Outer-level square brackets
2890 # are removed by m4; they're present so that m4 does not expand
2891 # <dollar><star>; be careful, easy to get confused.)
2892 if (
2893 set X `ls -t conftest.ts[12]` &&
2894 {
2895 test "$*" != "X conftest.ts1 conftest.ts2" ||
2896 test "$*" != "X conftest.ts2 conftest.ts1";
2897 }
2898 ); then :; else
2899 # If neither matched, then we have a broken ls. This can happen
2900 # if, for instance, CONFIG_SHELL is bash and it inherits a
2901 # broken ls alias from the environment. This has actually
2902 # happened. Such a system could not be considered "sane".
2903 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2905 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2906 as_fn_error $? "ls -t produces unexpected output.
2907 Make sure there is not a broken ls alias in your environment.
2908 See 'config.log' for more details" "$LINENO" 5; }
2909 fi
2910
2911 for am_try_res in $am_try_resolutions; do
2912 # Any one fine-grained sleep might happen to cross the boundary
2913 # between two values of a coarser actual resolution, but if we do
2914 # two fine-grained sleeps in a row, at least one of them will fall
2915 # entirely within a coarse interval.
2916 echo alpha > conftest.ts1
2917 sleep $am_try_res
2918 echo beta > conftest.ts2
2919 sleep $am_try_res
2920 echo gamma > conftest.ts3
2921
2922 # We assume that 'ls -t' will make use of high-resolution
2923 # timestamps if the operating system supports them at all.
2924 if (set X `ls -t conftest.ts?` &&
2925 test "$2" = conftest.ts3 &&
2926 test "$3" = conftest.ts2 &&
2927 test "$4" = conftest.ts1); then
2928 #
2929 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2930 # because we don't need to test make.
2931 make_ok=true
2932 if test $am_try_res != 1; then
2933 # But if we've succeeded so far with a subsecond resolution, we
2934 # have one more thing to check: make. It can happen that
2935 # everything else supports the subsecond mtimes, but make doesn't;
2936 # notably on macOS, which ships make 3.81 from 2006 (the last one
2937 # released under GPLv2). https://bugs.gnu.org/68808
2938 #
2939 # We test $MAKE if it is defined in the environment, else "make".
2940 # It might get overridden later, but our hope is that in practice
2941 # it does not matter: it is the system "make" which is (by far)
2942 # the most likely to be broken, whereas if the user overrides it,
2943 # probably they did so with a better, or at least not worse, make.
2944 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2945 #
2946 # Create a Makefile (real tab character here):
2947 rm -f conftest.mk
2948 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2949 echo ' touch conftest.ts2' >>conftest.mk
2950 #
2951 # Now, running
2952 # touch conftest.ts1; touch conftest.ts2; make
2953 # should touch ts1 because ts2 is newer. This could happen by luck,
2954 # but most often, it will fail if make's support is insufficient. So
2955 # test for several consecutive successes.
2956 #
2957 # (We reuse conftest.ts[12] because we still want to modify existing
2958 # files, not create new ones, per above.)
2959 n=0
2960 make=${MAKE-make}
2961 until test $n -eq 3; do
2962 echo one > conftest.ts1
2963 sleep $am_try_res
2964 echo two > conftest.ts2 # ts2 should now be newer than ts1
2965 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2966 make_ok=false
2967 break # out of $n loop
2968 fi
2969 n=`expr $n + 1`
2970 done
2971 fi
2972 #
2973 if $make_ok; then
2974 # Everything we know to check worked out, so call this resolution good.
2975 am_cv_filesystem_timestamp_resolution=$am_try_res
2976 break # out of $am_try_res loop
2977 fi
2978 # Otherwise, we'll go on to check the next resolution.
2979 fi
2980 done
2981 rm -f conftest.ts?
2982 # (end _am_filesystem_timestamp_resolution)
2983 ;;
2984 esac
2985 fi
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2987 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2988
2989 # This check should not be cached, as it may vary across builds of
2990 # different projects.
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2992 printf %s "checking whether build environment is sane... " >&6; }
2993 # Reject unsafe characters in $srcdir or the absolute working directory
2994 # name. Accept space and tab only in the latter.
2995 am_lf='
2996 '
2997 case `pwd` in
2998 *[\\\"\#\$\&\'\`$am_lf]*)
2999 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3000 esac
3001 case $srcdir in
3002 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3003 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3004 esac
3005
3006 # Do 'set' in a subshell so we don't clobber the current shell's
3007 # arguments. Must try -L first in case configure is actually a
3008 # symlink; some systems play weird games with the mod time of symlinks
3009 # (eg FreeBSD returns the mod time of the symlink's containing
3010 # directory).
3011 am_build_env_is_sane=no
3012 am_has_slept=no
3013 rm -f conftest.file
3014 for am_try in 1 2; do
3015 echo "timestamp, slept: $am_has_slept" > conftest.file
3016 if (
3017 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3018 if test "$*" = "X"; then
3019 # -L didn't work.
3020 set X `ls -t "$srcdir/configure" conftest.file`
3021 fi
3022 test "$2" = conftest.file
3023 ); then
3024 am_build_env_is_sane=yes
3025 break
3026 fi
3027 # Just in case.
3028 sleep "$am_cv_filesystem_timestamp_resolution"
3029 am_has_slept=yes
3030 done
3031
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3033 printf "%s\n" "$am_build_env_is_sane" >&6; }
3034 if test "$am_build_env_is_sane" = no; then
3035 as_fn_error $? "newly created file is older than distributed files!
3036 Check your system clock" "$LINENO" 5
3037 fi
3038
3039 # If we didn't sleep, we still need to ensure time stamps of config.status and
3040 # generated files are strictly newer.
3041 am_sleep_pid=
3042 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3043 then :
3044
3045 else case e in #(
3046 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3047 am_sleep_pid=$!
3048 ;;
3049 esac
3050 fi
3051
3052 rm -f conftest.file
3053
3054 test "$program_prefix" != NONE &&
3055 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3056 # Use a double $ so make ignores it.
3057 test "$program_suffix" != NONE &&
3058 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3059 # Double any \ or $.
3060 # By default was 's,x,x', remove it if useless.
3061 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3062 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3063
3064
3065 # Expand $ac_aux_dir to an absolute path.
3066 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3067
3068
3069 if test x"${MISSING+set}" != xset; then
3070 MISSING="\${SHELL} '$am_aux_dir/missing'"
3071 fi
3072 # Use eval to expand $SHELL
3073 if eval "$MISSING --is-lightweight"; then
3074 am_missing_run="$MISSING "
3075 else
3076 am_missing_run=
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3078 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3079 fi
3080
3081 if test x"${install_sh+set}" != xset; then
3082 case $am_aux_dir in
3083 *\ * | *\ *)
3084 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3085 *)
3086 install_sh="\${SHELL} $am_aux_dir/install-sh"
3087 esac
3088 fi
3089
3090 # Installed binaries are usually stripped using 'strip' when the user
3091 # run "make install-strip". However 'strip' might not be the right
3092 # tool to use in cross-compilation environments, therefore Automake
3093 # will honor the 'STRIP' environment variable to overrule this program.
3094 if test "$cross_compiling" != no; then
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}strip; ac_word=$2
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 printf %s "checking for $ac_word... " >&6; }
3100 if test ${ac_cv_prog_STRIP+y}
3101 then :
3102 printf %s "(cached) " >&6
3103 else case e in #(
3104 e) if test -n "$STRIP"; then
3105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 case $as_dir in #(((
3112 '') as_dir=./ ;;
3113 */) ;;
3114 *) as_dir=$as_dir/ ;;
3115 esac
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi ;;
3127 esac
3128 fi
3129 STRIP=$ac_cv_prog_STRIP
3130 if test -n "$STRIP"; then
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3132 printf "%s\n" "$STRIP" >&6; }
3133 else
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 printf "%s\n" "no" >&6; }
3136 fi
3137
3138
3139 fi
3140 if test -z "$ac_cv_prog_STRIP"; then
3141 ac_ct_STRIP=$STRIP
3142 # Extract the first word of "strip", so it can be a program name with args.
3143 set dummy strip; ac_word=$2
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 printf %s "checking for $ac_word... " >&6; }
3146 if test ${ac_cv_prog_ac_ct_STRIP+y}
3147 then :
3148 printf %s "(cached) " >&6
3149 else case e in #(
3150 e) if test -n "$ac_ct_STRIP"; then
3151 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 case $as_dir in #(((
3158 '') as_dir=./ ;;
3159 */) ;;
3160 *) as_dir=$as_dir/ ;;
3161 esac
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_ac_ct_STRIP="strip"
3165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi ;;
3173 esac
3174 fi
3175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3176 if test -n "$ac_ct_STRIP"; then
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3178 printf "%s\n" "$ac_ct_STRIP" >&6; }
3179 else
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 printf "%s\n" "no" >&6; }
3182 fi
3183
3184 if test "x$ac_ct_STRIP" = x; then
3185 STRIP=":"
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188 yes:)
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 STRIP=$ac_ct_STRIP
3194 fi
3195 else
3196 STRIP="$ac_cv_prog_STRIP"
3197 fi
3198
3199 fi
3200 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3201
3202
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3204 printf %s "checking for a race-free mkdir -p... " >&6; }
3205 if test -z "$MKDIR_P"; then
3206 if test ${ac_cv_path_mkdir+y}
3207 then :
3208 printf %s "(cached) " >&6
3209 else case e in #(
3210 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3212 do
3213 IFS=$as_save_IFS
3214 case $as_dir in #(((
3215 '') as_dir=./ ;;
3216 */) ;;
3217 *) as_dir=$as_dir/ ;;
3218 esac
3219 for ac_prog in mkdir gmkdir; do
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3222 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3223 'mkdir ('*'coreutils) '* | \
3224 *'BusyBox '* | \
3225 'mkdir (fileutils) '4.1*)
3226 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3227 break 3;;
3228 esac
3229 done
3230 done
3231 done
3232 IFS=$as_save_IFS
3233 ;;
3234 esac
3235 fi
3236
3237 test -d ./--version && rmdir ./--version
3238 if test ${ac_cv_path_mkdir+y}; then
3239 MKDIR_P="$ac_cv_path_mkdir -p"
3240 else
3241 # As a last resort, use plain mkdir -p,
3242 # in the hope it doesn't have the bugs of ancient mkdir.
3243 MKDIR_P='mkdir -p'
3244 fi
3245 fi
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3247 printf "%s\n" "$MKDIR_P" >&6; }
3248
3249 for ac_prog in gawk mawk nawk awk
3250 do
3251 # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy $ac_prog; ac_word=$2
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 printf %s "checking for $ac_word... " >&6; }
3255 if test ${ac_cv_prog_AWK+y}
3256 then :
3257 printf %s "(cached) " >&6
3258 else case e in #(
3259 e) if test -n "$AWK"; then
3260 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 case $as_dir in #(((
3267 '') as_dir=./ ;;
3268 */) ;;
3269 *) as_dir=$as_dir/ ;;
3270 esac
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_AWK="$ac_prog"
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi ;;
3282 esac
3283 fi
3284 AWK=$ac_cv_prog_AWK
3285 if test -n "$AWK"; then
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3287 printf "%s\n" "$AWK" >&6; }
3288 else
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 printf "%s\n" "no" >&6; }
3291 fi
3292
3293
3294 test -n "$AWK" && break
3295 done
3296
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3298 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3299 set x ${MAKE-make}
3300 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3301 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3302 then :
3303 printf %s "(cached) " >&6
3304 else case e in #(
3305 e) cat >conftest.make <<\_ACEOF
3306 SHELL = /bin/sh
3307 all:
3308 @echo '@@@%%%=$(MAKE)=@@@%%%'
3309 _ACEOF
3310 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3311 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3312 *@@@%%%=?*=@@@%%%*)
3313 eval ac_cv_prog_make_${ac_make}_set=yes;;
3314 *)
3315 eval ac_cv_prog_make_${ac_make}_set=no;;
3316 esac
3317 rm -f conftest.make ;;
3318 esac
3319 fi
3320 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 printf "%s\n" "yes" >&6; }
3323 SET_MAKE=
3324 else
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 printf "%s\n" "no" >&6; }
3327 SET_MAKE="MAKE=${MAKE-make}"
3328 fi
3329
3330 rm -rf .tst 2>/dev/null
3331 mkdir .tst 2>/dev/null
3332 if test -d .tst; then
3333 am__leading_dot=.
3334 else
3335 am__leading_dot=_
3336 fi
3337 rmdir .tst 2>/dev/null
3338
3339 AM_DEFAULT_VERBOSITY=1
3340 # Check whether --enable-silent-rules was given.
3341 if test ${enable_silent_rules+y}
3342 then :
3343 enableval=$enable_silent_rules;
3344 fi
3345
3346 am_make=${MAKE-make}
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3348 printf %s "checking whether $am_make supports nested variables... " >&6; }
3349 if test ${am_cv_make_support_nested_variables+y}
3350 then :
3351 printf %s "(cached) " >&6
3352 else case e in #(
3353 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3354 BAR0=false
3355 BAR1=true
3356 V=1
3357 am__doit:
3358 @$(TRUE)
3359 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3360 am_cv_make_support_nested_variables=yes
3361 else
3362 am_cv_make_support_nested_variables=no
3363 fi ;;
3364 esac
3365 fi
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3367 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3368 AM_BACKSLASH='\'
3369
3370 am__rm_f_notfound=
3371 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3372 then :
3373
3374 else case e in #(
3375 e) am__rm_f_notfound='""' ;;
3376 esac
3377 fi
3378
3379
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3381 printf %s "checking xargs -n works... " >&6; }
3382 if test ${am_cv_xargs_n_works+y}
3383 then :
3384 printf %s "(cached) " >&6
3385 else case e in #(
3386 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3387 3"
3388 then :
3389 am_cv_xargs_n_works=yes
3390 else case e in #(
3391 e) am_cv_xargs_n_works=no ;;
3392 esac
3393 fi ;;
3394 esac
3395 fi
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3397 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3398 if test "$am_cv_xargs_n_works" = yes
3399 then :
3400 am__xargs_n='xargs -n'
3401 else case e in #(
3402 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3403 ;;
3404 esac
3405 fi
3406
3407 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3408 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3409 # is not polluted with repeated "-I."
3410 am__isrc=' -I$(srcdir)'
3411 # test to see if srcdir already configured
3412 if test -f $srcdir/config.status; then
3413 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3414 fi
3415 fi
3416
3417 # test whether we have cygpath
3418 if test -z "$CYGPATH_W"; then
3419 if (cygpath --version) >/dev/null 2>/dev/null; then
3420 CYGPATH_W='cygpath -w'
3421 else
3422 CYGPATH_W=echo
3423 fi
3424 fi
3425
3426
3427 # Define the identity of the package.
3428 PACKAGE='ideviceinstaller'
3429 VERSION='1.2.0'
3430
3431
3432 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3433
3434
3435 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3436
3437 # Some tools Automake needs.
3438
3439 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3440
3441
3442 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3443
3444
3445 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3446
3447
3448 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3449
3450
3451 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3452
3453 # For better backward compatibility. To be removed once Automake 1.9.x
3454 # dies out for good. For more background, see:
3455 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3456 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3457 mkdir_p='$(MKDIR_P)'
3458
3459 # We need awk for the "check" target (and possibly the TAP driver). The
3460 # system "awk" is bad on some platforms.
3461 # Always define AMTAR for backward compatibility. Yes, it's still used
3462 # in the wild :-( We should find a proper way to deprecate it ...
3463 AMTAR='$${TAR-tar}'
3464
3465
3466 # We'll loop over all known methods to create a tar archive until one works.
3467 _am_tools='gnutar pax cpio none'
3468
3469 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3470
3471
3472
3473
3474
3475 # Variables for tags utilities; see am/tags.am
3476 if test -z "$CTAGS"; then
3477 CTAGS=ctags
3478 fi
3479
3480 if test -z "$ETAGS"; then
3481 ETAGS=etags
3482 fi
3483
3484 if test -z "$CSCOPE"; then
3485 CSCOPE=cscope
3486 fi
3487
3488
3489
3490
3491
3492
3493
3494
3495 AM_DEFAULT_VERBOSITY=1
3496
3497 ac_config_headers="$ac_config_headers config.h"
3498
3499
3500
3501 # Check if we have a version defined
3502 if test -z $PACKAGE_VERSION; then
3503 as_fn_error $? "PACKAGE_VERSION is not defined. Make sure to configure a source tree checked out from git or that .tarball-version is present." "$LINENO" 5
3504 fi
3505
3506 # Checks for programs.
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 printf %s "checking for $ac_word... " >&6; }
3526 if test ${ac_cv_prog_CC+y}
3527 then :
3528 printf %s "(cached) " >&6
3529 else case e in #(
3530 e) if test -n "$CC"; then
3531 ac_cv_prog_CC="$CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536 IFS=$as_save_IFS
3537 case $as_dir in #(((
3538 '') as_dir=./ ;;
3539 */) ;;
3540 *) as_dir=$as_dir/ ;;
3541 esac
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi ;;
3553 esac
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 printf "%s\n" "$CC" >&6; }
3559 else
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 printf "%s\n" "no" >&6; }
3562 fi
3563
3564
3565 fi
3566 if test -z "$ac_cv_prog_CC"; then
3567 ac_ct_CC=$CC
3568 # Extract the first word of "gcc", so it can be a program name with args.
3569 set dummy gcc; ac_word=$2
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 printf %s "checking for $ac_word... " >&6; }
3572 if test ${ac_cv_prog_ac_ct_CC+y}
3573 then :
3574 printf %s "(cached) " >&6
3575 else case e in #(
3576 e) if test -n "$ac_ct_CC"; then
3577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582 IFS=$as_save_IFS
3583 case $as_dir in #(((
3584 '') as_dir=./ ;;
3585 */) ;;
3586 *) as_dir=$as_dir/ ;;
3587 esac
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_ac_ct_CC="gcc"
3591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594 done
3595 done
3596 IFS=$as_save_IFS
3597
3598 fi ;;
3599 esac
3600 fi
3601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602 if test -n "$ac_ct_CC"; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3604 printf "%s\n" "$ac_ct_CC" >&6; }
3605 else
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 printf "%s\n" "no" >&6; }
3608 fi
3609
3610 if test "x$ac_ct_CC" = x; then
3611 CC=""
3612 else
3613 case $cross_compiling:$ac_tool_warned in
3614 yes:)
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned=yes ;;
3618 esac
3619 CC=$ac_ct_CC
3620 fi
3621 else
3622 CC="$ac_cv_prog_CC"
3623 fi
3624
3625 if test -z "$CC"; then
3626 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}cc; ac_word=$2
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 printf %s "checking for $ac_word... " >&6; }
3631 if test ${ac_cv_prog_CC+y}
3632 then :
3633 printf %s "(cached) " >&6
3634 else case e in #(
3635 e) if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 case $as_dir in #(((
3643 '') as_dir=./ ;;
3644 */) ;;
3645 *) as_dir=$as_dir/ ;;
3646 esac
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_CC="${ac_tool_prefix}cc"
3650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653 done
3654 done
3655 IFS=$as_save_IFS
3656
3657 fi ;;
3658 esac
3659 fi
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 printf "%s\n" "$CC" >&6; }
3664 else
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 printf "%s\n" "no" >&6; }
3667 fi
3668
3669
3670 fi
3671 fi
3672 if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674 set dummy cc; ac_word=$2
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 printf %s "checking for $ac_word... " >&6; }
3677 if test ${ac_cv_prog_CC+y}
3678 then :
3679 printf %s "(cached) " >&6
3680 else case e in #(
3681 e) if test -n "$CC"; then
3682 ac_cv_prog_CC="$CC" # Let the user override the test.
3683 else
3684 ac_prog_rejected=no
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 case $as_dir in #(((
3690 '') as_dir=./ ;;
3691 */) ;;
3692 *) as_dir=$as_dir/ ;;
3693 esac
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3696 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3697 ac_prog_rejected=yes
3698 continue
3699 fi
3700 ac_cv_prog_CC="cc"
3701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 if test $ac_prog_rejected = yes; then
3709 # We found a bogon in the path, so make sure we never use it.
3710 set dummy $ac_cv_prog_CC
3711 shift
3712 if test $# != 0; then
3713 # We chose a different compiler from the bogus one.
3714 # However, it has the same basename, so the bogon will be chosen
3715 # first if we set CC to just the basename; use the full file name.
3716 shift
3717 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3718 fi
3719 fi
3720 fi ;;
3721 esac
3722 fi
3723 CC=$ac_cv_prog_CC
3724 if test -n "$CC"; then
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 printf "%s\n" "$CC" >&6; }
3727 else
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 printf "%s\n" "no" >&6; }
3730 fi
3731
3732
3733 fi
3734 if test -z "$CC"; then
3735 if test -n "$ac_tool_prefix"; then
3736 for ac_prog in cl.exe
3737 do
3738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 printf %s "checking for $ac_word... " >&6; }
3742 if test ${ac_cv_prog_CC+y}
3743 then :
3744 printf %s "(cached) " >&6
3745 else case e in #(
3746 e) if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 case $as_dir in #(((
3754 '') as_dir=./ ;;
3755 */) ;;
3756 *) as_dir=$as_dir/ ;;
3757 esac
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766 IFS=$as_save_IFS
3767
3768 fi ;;
3769 esac
3770 fi
3771 CC=$ac_cv_prog_CC
3772 if test -n "$CC"; then
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3774 printf "%s\n" "$CC" >&6; }
3775 else
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 printf "%s\n" "no" >&6; }
3778 fi
3779
3780
3781 test -n "$CC" && break
3782 done
3783 fi
3784 if test -z "$CC"; then
3785 ac_ct_CC=$CC
3786 for ac_prog in cl.exe
3787 do
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 printf %s "checking for $ac_word... " >&6; }
3792 if test ${ac_cv_prog_ac_ct_CC+y}
3793 then :
3794 printf %s "(cached) " >&6
3795 else case e in #(
3796 e) if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802 IFS=$as_save_IFS
3803 case $as_dir in #(((
3804 '') as_dir=./ ;;
3805 */) ;;
3806 *) as_dir=$as_dir/ ;;
3807 esac
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_CC="$ac_prog"
3811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi ;;
3819 esac
3820 fi
3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 printf "%s\n" "$ac_ct_CC" >&6; }
3825 else
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 printf "%s\n" "no" >&6; }
3828 fi
3829
3830
3831 test -n "$ac_ct_CC" && break
3832 done
3833
3834 if test "x$ac_ct_CC" = x; then
3835 CC=""
3836 else
3837 case $cross_compiling:$ac_tool_warned in
3838 yes:)
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3840 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3841 ac_tool_warned=yes ;;
3842 esac
3843 CC=$ac_ct_CC
3844 fi
3845 fi
3846
3847 fi
3848 if test -z "$CC"; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3851 set dummy ${ac_tool_prefix}clang; ac_word=$2
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 printf %s "checking for $ac_word... " >&6; }
3854 if test ${ac_cv_prog_CC+y}
3855 then :
3856 printf %s "(cached) " >&6
3857 else case e in #(
3858 e) if test -n "$CC"; then
3859 ac_cv_prog_CC="$CC" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864 IFS=$as_save_IFS
3865 case $as_dir in #(((
3866 '') as_dir=./ ;;
3867 */) ;;
3868 *) as_dir=$as_dir/ ;;
3869 esac
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_CC="${ac_tool_prefix}clang"
3873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3874 break 2
3875 fi
3876 done
3877 done
3878 IFS=$as_save_IFS
3879
3880 fi ;;
3881 esac
3882 fi
3883 CC=$ac_cv_prog_CC
3884 if test -n "$CC"; then
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3886 printf "%s\n" "$CC" >&6; }
3887 else
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 printf "%s\n" "no" >&6; }
3890 fi
3891
3892
3893 fi
3894 if test -z "$ac_cv_prog_CC"; then
3895 ac_ct_CC=$CC
3896 # Extract the first word of "clang", so it can be a program name with args.
3897 set dummy clang; ac_word=$2
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 printf %s "checking for $ac_word... " >&6; }
3900 if test ${ac_cv_prog_ac_ct_CC+y}
3901 then :
3902 printf %s "(cached) " >&6
3903 else case e in #(
3904 e) if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910 IFS=$as_save_IFS
3911 case $as_dir in #(((
3912 '') as_dir=./ ;;
3913 */) ;;
3914 *) as_dir=$as_dir/ ;;
3915 esac
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_ac_ct_CC="clang"
3919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922 done
3923 done
3924 IFS=$as_save_IFS
3925
3926 fi ;;
3927 esac
3928 fi
3929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3930 if test -n "$ac_ct_CC"; then
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3932 printf "%s\n" "$ac_ct_CC" >&6; }
3933 else
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 printf "%s\n" "no" >&6; }
3936 fi
3937
3938 if test "x$ac_ct_CC" = x; then
3939 CC=""
3940 else
3941 case $cross_compiling:$ac_tool_warned in
3942 yes:)
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945 ac_tool_warned=yes ;;
3946 esac
3947 CC=$ac_ct_CC
3948 fi
3949 else
3950 CC="$ac_cv_prog_CC"
3951 fi
3952
3953 fi
3954
3955
3956 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3957 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3958 as_fn_error $? "no acceptable C compiler found in \$PATH
3959 See 'config.log' for more details" "$LINENO" 5; }
3960
3961 # Provide some information about the compiler.
3962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3963 set X $ac_compile
3964 ac_compiler=$2
3965 for ac_option in --version -v -V -qversion -version; do
3966 { { ac_try="$ac_compiler $ac_option >&5"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 printf "%s\n" "$ac_try_echo"; } >&5
3973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3974 ac_status=$?
3975 if test -s conftest.err; then
3976 sed '10a\
3977 ... rest of stderr output deleted ...
3978 10q' conftest.err >conftest.er1
3979 cat conftest.er1 >&5
3980 fi
3981 rm -f conftest.er1 conftest.err
3982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }
3984 done
3985
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988
3989 int
3990 main (void)
3991 {
3992
3993 ;
3994 return 0;
3995 }
3996 _ACEOF
3997 ac_clean_files_save=$ac_clean_files
3998 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3999 # Try to create an executable without -o first, disregard a.out.
4000 # It will help us diagnose broken compilers, and finding out an intuition
4001 # of exeext.
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4003 printf %s "checking whether the C compiler works... " >&6; }
4004 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4005
4006 # The possible output files:
4007 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4008
4009 ac_rmfiles=
4010 for ac_file in $ac_files
4011 do
4012 case $ac_file in
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4014 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4015 esac
4016 done
4017 rm -f $ac_rmfiles
4018
4019 if { { ac_try="$ac_link_default"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 printf "%s\n" "$ac_try_echo"; } >&5
4026 (eval "$ac_link_default") 2>&5
4027 ac_status=$?
4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }
4030 then :
4031 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4032 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4033 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4034 # so that the user can short-circuit this test for compilers unknown to
4035 # Autoconf.
4036 for ac_file in $ac_files ''
4037 do
4038 test -f "$ac_file" || continue
4039 case $ac_file in
4040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4041 ;;
4042 [ab].out )
4043 # We found the default executable, but exeext='' is most
4044 # certainly right.
4045 break;;
4046 *.* )
4047 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4048 then :; else
4049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4050 fi
4051 # We set ac_cv_exeext here because the later test for it is not
4052 # safe: cross compilers may not add the suffix if given an '-o'
4053 # argument, so we may need to know it at that point already.
4054 # Even if this section looks crufty: it has the advantage of
4055 # actually working.
4056 break;;
4057 * )
4058 break;;
4059 esac
4060 done
4061 test "$ac_cv_exeext" = no && ac_cv_exeext=
4062
4063 else case e in #(
4064 e) ac_file='' ;;
4065 esac
4066 fi
4067 if test -z "$ac_file"
4068 then :
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 printf "%s\n" "no" >&6; }
4071 printf "%s\n" "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4075 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4076 as_fn_error 77 "C compiler cannot create executables
4077 See 'config.log' for more details" "$LINENO" 5; }
4078 else case e in #(
4079 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4080 printf "%s\n" "yes" >&6; } ;;
4081 esac
4082 fi
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4084 printf %s "checking for C compiler default output file name... " >&6; }
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4086 printf "%s\n" "$ac_file" >&6; }
4087 ac_exeext=$ac_cv_exeext
4088
4089 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4090 ac_clean_files=$ac_clean_files_save
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4092 printf %s "checking for suffix of executables... " >&6; }
4093 if { { ac_try="$ac_link"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 printf "%s\n" "$ac_try_echo"; } >&5
4100 (eval "$ac_link") 2>&5
4101 ac_status=$?
4102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }
4104 then :
4105 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4106 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4107 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4108 # 'rm'.
4109 for ac_file in conftest.exe conftest conftest.*; do
4110 test -f "$ac_file" || continue
4111 case $ac_file in
4112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4113 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4114 break;;
4115 * ) break;;
4116 esac
4117 done
4118 else case e in #(
4119 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4120 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4121 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4122 See 'config.log' for more details" "$LINENO" 5; } ;;
4123 esac
4124 fi
4125 rm -f conftest conftest$ac_cv_exeext
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4127 printf "%s\n" "$ac_cv_exeext" >&6; }
4128
4129 rm -f conftest.$ac_ext
4130 EXEEXT=$ac_cv_exeext
4131 ac_exeext=$EXEEXT
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #include <stdio.h>
4135 int
4136 main (void)
4137 {
4138 FILE *f = fopen ("conftest.out", "w");
4139 if (!f)
4140 return 1;
4141 return ferror (f) || fclose (f) != 0;
4142
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 ac_clean_files="$ac_clean_files conftest.out"
4148 # Check that the compiler produces executables we can run. If not, either
4149 # the compiler is broken, or we cross compile.
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4151 printf %s "checking whether we are cross compiling... " >&6; }
4152 if test "$cross_compiling" != yes; then
4153 { { ac_try="$ac_link"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4159 printf "%s\n" "$ac_try_echo"; } >&5
4160 (eval "$ac_link") 2>&5
4161 ac_status=$?
4162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163 test $ac_status = 0; }
4164 if { ac_try='./conftest$ac_cv_exeext'
4165 { { case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4170 printf "%s\n" "$ac_try_echo"; } >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }; }; then
4175 cross_compiling=no
4176 else
4177 if test "$cross_compiling" = maybe; then
4178 cross_compiling=yes
4179 else
4180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4181 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4182 as_fn_error 77 "cannot run C compiled programs.
4183 If you meant to cross compile, use '--host'.
4184 See 'config.log' for more details" "$LINENO" 5; }
4185 fi
4186 fi
4187 fi
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4189 printf "%s\n" "$cross_compiling" >&6; }
4190
4191 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4192 conftest.o conftest.obj conftest.out
4193 ac_clean_files=$ac_clean_files_save
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4195 printf %s "checking for suffix of object files... " >&6; }
4196 if test ${ac_cv_objext+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else case e in #(
4200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202
4203 int
4204 main (void)
4205 {
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.o conftest.obj
4212 if { { ac_try="$ac_compile"
4213 case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218 printf "%s\n" "$ac_try_echo"; } >&5
4219 (eval "$ac_compile") 2>&5
4220 ac_status=$?
4221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4222 test $ac_status = 0; }
4223 then :
4224 for ac_file in conftest.o conftest.obj conftest.*; do
4225 test -f "$ac_file" || continue;
4226 case $ac_file in
4227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4229 break;;
4230 esac
4231 done
4232 else case e in #(
4233 e) printf "%s\n" "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4237 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4238 as_fn_error $? "cannot compute suffix of object files: cannot compile
4239 See 'config.log' for more details" "$LINENO" 5; } ;;
4240 esac
4241 fi
4242 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4243 esac
4244 fi
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4246 printf "%s\n" "$ac_cv_objext" >&6; }
4247 OBJEXT=$ac_cv_objext
4248 ac_objext=$OBJEXT
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4250 printf %s "checking whether the compiler supports GNU C... " >&6; }
4251 if test ${ac_cv_c_compiler_gnu+y}
4252 then :
4253 printf %s "(cached) " >&6
4254 else case e in #(
4255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257
4258 int
4259 main (void)
4260 {
4261 #ifndef __GNUC__
4262 choke me
4263 #endif
4264
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_c_try_compile "$LINENO"
4270 then :
4271 ac_compiler_gnu=yes
4272 else case e in #(
4273 e) ac_compiler_gnu=no ;;
4274 esac
4275 fi
4276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4278 ;;
4279 esac
4280 fi
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4282 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284
4285 if test $ac_compiler_gnu = yes; then
4286 GCC=yes
4287 else
4288 GCC=
4289 fi
4290 ac_test_CFLAGS=${CFLAGS+y}
4291 ac_save_CFLAGS=$CFLAGS
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4293 printf %s "checking whether $CC accepts -g... " >&6; }
4294 if test ${ac_cv_prog_cc_g+y}
4295 then :
4296 printf %s "(cached) " >&6
4297 else case e in #(
4298 e) ac_save_c_werror_flag=$ac_c_werror_flag
4299 ac_c_werror_flag=yes
4300 ac_cv_prog_cc_g=no
4301 CFLAGS="-g"
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304
4305 int
4306 main (void)
4307 {
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"
4314 then :
4315 ac_cv_prog_cc_g=yes
4316 else case e in #(
4317 e) CFLAGS=""
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320
4321 int
4322 main (void)
4323 {
4324
4325 ;
4326 return 0;
4327 }
4328 _ACEOF
4329 if ac_fn_c_try_compile "$LINENO"
4330 then :
4331
4332 else case e in #(
4333 e) ac_c_werror_flag=$ac_save_c_werror_flag
4334 CFLAGS="-g"
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337
4338 int
4339 main (void)
4340 {
4341
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"
4347 then :
4348 ac_cv_prog_cc_g=yes
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4351 esac
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4354 esac
4355 fi
4356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4357 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4358 esac
4359 fi
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4361 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4362 if test $ac_test_CFLAGS; then
4363 CFLAGS=$ac_save_CFLAGS
4364 elif test $ac_cv_prog_cc_g = yes; then
4365 if test "$GCC" = yes; then
4366 CFLAGS="-g -O2"
4367 else
4368 CFLAGS="-g"
4369 fi
4370 else
4371 if test "$GCC" = yes; then
4372 CFLAGS="-O2"
4373 else
4374 CFLAGS=
4375 fi
4376 fi
4377 ac_prog_cc_stdc=no
4378 if test x$ac_prog_cc_stdc = xno
4379 then :
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4381 printf %s "checking for $CC option to enable C11 features... " >&6; }
4382 if test ${ac_cv_prog_cc_c11+y}
4383 then :
4384 printf %s "(cached) " >&6
4385 else case e in #(
4386 e) ac_cv_prog_cc_c11=no
4387 ac_save_CC=$CC
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 $ac_c_conftest_c11_program
4391 _ACEOF
4392 for ac_arg in '' -std=gnu11
4393 do
4394 CC="$ac_save_CC $ac_arg"
4395 if ac_fn_c_try_compile "$LINENO"
4396 then :
4397 ac_cv_prog_cc_c11=$ac_arg
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.beam
4400 test "x$ac_cv_prog_cc_c11" != "xno" && break
4401 done
4402 rm -f conftest.$ac_ext
4403 CC=$ac_save_CC ;;
4404 esac
4405 fi
4406
4407 if test "x$ac_cv_prog_cc_c11" = xno
4408 then :
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4410 printf "%s\n" "unsupported" >&6; }
4411 else case e in #(
4412 e) if test "x$ac_cv_prog_cc_c11" = x
4413 then :
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4415 printf "%s\n" "none needed" >&6; }
4416 else case e in #(
4417 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4418 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4419 CC="$CC $ac_cv_prog_cc_c11" ;;
4420 esac
4421 fi
4422 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4423 ac_prog_cc_stdc=c11 ;;
4424 esac
4425 fi
4426 fi
4427 if test x$ac_prog_cc_stdc = xno
4428 then :
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4430 printf %s "checking for $CC option to enable C99 features... " >&6; }
4431 if test ${ac_cv_prog_cc_c99+y}
4432 then :
4433 printf %s "(cached) " >&6
4434 else case e in #(
4435 e) ac_cv_prog_cc_c99=no
4436 ac_save_CC=$CC
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 $ac_c_conftest_c99_program
4440 _ACEOF
4441 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4442 do
4443 CC="$ac_save_CC $ac_arg"
4444 if ac_fn_c_try_compile "$LINENO"
4445 then :
4446 ac_cv_prog_cc_c99=$ac_arg
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.beam
4449 test "x$ac_cv_prog_cc_c99" != "xno" && break
4450 done
4451 rm -f conftest.$ac_ext
4452 CC=$ac_save_CC ;;
4453 esac
4454 fi
4455
4456 if test "x$ac_cv_prog_cc_c99" = xno
4457 then :
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4459 printf "%s\n" "unsupported" >&6; }
4460 else case e in #(
4461 e) if test "x$ac_cv_prog_cc_c99" = x
4462 then :
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4464 printf "%s\n" "none needed" >&6; }
4465 else case e in #(
4466 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4467 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4468 CC="$CC $ac_cv_prog_cc_c99" ;;
4469 esac
4470 fi
4471 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4472 ac_prog_cc_stdc=c99 ;;
4473 esac
4474 fi
4475 fi
4476 if test x$ac_prog_cc_stdc = xno
4477 then :
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4479 printf %s "checking for $CC option to enable C89 features... " >&6; }
4480 if test ${ac_cv_prog_cc_c89+y}
4481 then :
4482 printf %s "(cached) " >&6
4483 else case e in #(
4484 e) ac_cv_prog_cc_c89=no
4485 ac_save_CC=$CC
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4488 $ac_c_conftest_c89_program
4489 _ACEOF
4490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4491 do
4492 CC="$ac_save_CC $ac_arg"
4493 if ac_fn_c_try_compile "$LINENO"
4494 then :
4495 ac_cv_prog_cc_c89=$ac_arg
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.beam
4498 test "x$ac_cv_prog_cc_c89" != "xno" && break
4499 done
4500 rm -f conftest.$ac_ext
4501 CC=$ac_save_CC ;;
4502 esac
4503 fi
4504
4505 if test "x$ac_cv_prog_cc_c89" = xno
4506 then :
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4508 printf "%s\n" "unsupported" >&6; }
4509 else case e in #(
4510 e) if test "x$ac_cv_prog_cc_c89" = x
4511 then :
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4513 printf "%s\n" "none needed" >&6; }
4514 else case e in #(
4515 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4517 CC="$CC $ac_cv_prog_cc_c89" ;;
4518 esac
4519 fi
4520 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4521 ac_prog_cc_stdc=c89 ;;
4522 esac
4523 fi
4524 fi
4525
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4539 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4540 if test ${am_cv_prog_cc_c_o+y}
4541 then :
4542 printf %s "(cached) " >&6
4543 else case e in #(
4544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546
4547 int
4548 main (void)
4549 {
4550
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 # Make sure it works both with $CC and with simple cc.
4556 # Following AC_PROG_CC_C_O, we do the test twice because some
4557 # compilers refuse to overwrite an existing .o file with -o,
4558 # though they will create one.
4559 am_cv_prog_cc_c_o=yes
4560 for am_i in 1 2; do
4561 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4562 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } \
4566 && test -f conftest2.$ac_objext; then
4567 : OK
4568 else
4569 am_cv_prog_cc_c_o=no
4570 break
4571 fi
4572 done
4573 rm -f core conftest*
4574 unset am_i ;;
4575 esac
4576 fi
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4578 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4579 if test "$am_cv_prog_cc_c_o" != yes; then
4580 # Losing compiler, so override with the script.
4581 # FIXME: It is wrong to rewrite CC.
4582 # But if we don't then we get into trouble of one sort or another.
4583 # A longer-term fix would be to have automake use am__CC in this case,
4584 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4585 CC="$am_aux_dir/compile $CC"
4586 fi
4587 ac_ext=c
4588 ac_cpp='$CPP $CPPFLAGS'
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592
4593 DEPDIR="${am__leading_dot}deps"
4594
4595 ac_config_commands="$ac_config_commands depfiles"
4596
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4598 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4599 cat > confinc.mk << 'END'
4600 am__doit:
4601 @echo this is the am__doit target >confinc.out
4602 .PHONY: am__doit
4603 END
4604 am__include="#"
4605 am__quote=
4606 # BSD make does it like this.
4607 echo '.include "confinc.mk" # ignored' > confmf.BSD
4608 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4609 echo 'include confinc.mk # ignored' > confmf.GNU
4610 _am_result=no
4611 for s in GNU BSD; do
4612 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4613 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }
4617 case $?:`cat confinc.out 2>/dev/null` in #(
4618 '0:this is the am__doit target') :
4619 case $s in #(
4620 BSD) :
4621 am__include='.include' am__quote='"' ;; #(
4622 *) :
4623 am__include='include' am__quote='' ;;
4624 esac ;; #(
4625 *) :
4626 ;;
4627 esac
4628 if test "$am__include" != "#"; then
4629 _am_result="yes ($s style)"
4630 break
4631 fi
4632 done
4633 rm -f confinc.* confmf.*
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4635 printf "%s\n" "${_am_result}" >&6; }
4636
4637 # Check whether --enable-dependency-tracking was given.
4638 if test ${enable_dependency_tracking+y}
4639 then :
4640 enableval=$enable_dependency_tracking;
4641 fi
4642
4643 if test "x$enable_dependency_tracking" != xno; then
4644 am_depcomp="$ac_aux_dir/depcomp"
4645 AMDEPBACKSLASH='\'
4646 am__nodep='_no'
4647 fi
4648 if test "x$enable_dependency_tracking" != xno; then
4649 AMDEP_TRUE=
4650 AMDEP_FALSE='#'
4651 else
4652 AMDEP_TRUE='#'
4653 AMDEP_FALSE=
4654 fi
4655
4656
4657
4658 depcc="$CC" am_compiler_list=
4659
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4661 printf %s "checking dependency style of $depcc... " >&6; }
4662 if test ${am_cv_CC_dependencies_compiler_type+y}
4663 then :
4664 printf %s "(cached) " >&6
4665 else case e in #(
4666 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4667 # We make a subdir and do the tests there. Otherwise we can end up
4668 # making bogus files that we don't know about and never remove. For
4669 # instance it was reported that on HP-UX the gcc test will end up
4670 # making a dummy file named 'D' -- because '-MD' means "put the output
4671 # in D".
4672 rm -rf conftest.dir
4673 mkdir conftest.dir
4674 # Copy depcomp to subdir because otherwise we won't find it if we're
4675 # using a relative directory.
4676 cp "$am_depcomp" conftest.dir
4677 cd conftest.dir
4678 # We will build objects and dependencies in a subdirectory because
4679 # it helps to detect inapplicable dependency modes. For instance
4680 # both Tru64's cc and ICC support -MD to output dependencies as a
4681 # side effect of compilation, but ICC will put the dependencies in
4682 # the current directory while Tru64 will put them in the object
4683 # directory.
4684 mkdir sub
4685
4686 am_cv_CC_dependencies_compiler_type=none
4687 if test "$am_compiler_list" = ""; then
4688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4689 fi
4690 am__universal=false
4691 case " $depcc " in #(
4692 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4693 esac
4694
4695 for depmode in $am_compiler_list; do
4696 # Setup a source with many dependencies, because some compilers
4697 # like to wrap large dependency lists on column 80 (with \), and
4698 # we should not choose a depcomp mode which is confused by this.
4699 #
4700 # We need to recreate these files for each test, as the compiler may
4701 # overwrite some of them when testing with obscure command lines.
4702 # This happens at least with the AIX C compiler.
4703 : > sub/conftest.c
4704 for i in 1 2 3 4 5 6; do
4705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4706 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4707 # Solaris 10 /bin/sh.
4708 echo '/* dummy */' > sub/conftst$i.h
4709 done
4710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4711
4712 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4713 # mode. It turns out that the SunPro C++ compiler does not properly
4714 # handle '-M -o', and we need to detect this. Also, some Intel
4715 # versions had trouble with output in subdirs.
4716 am__obj=sub/conftest.${OBJEXT-o}
4717 am__minus_obj="-o $am__obj"
4718 case $depmode in
4719 gcc)
4720 # This depmode causes a compiler race in universal mode.
4721 test "$am__universal" = false || continue
4722 ;;
4723 nosideeffect)
4724 # After this tag, mechanisms are not by side-effect, so they'll
4725 # only be used when explicitly requested.
4726 if test "x$enable_dependency_tracking" = xyes; then
4727 continue
4728 else
4729 break
4730 fi
4731 ;;
4732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4733 # This compiler won't grok '-c -o', but also, the minuso test has
4734 # not run yet. These depmodes are late enough in the game, and
4735 # so weak that their functioning should not be impacted.
4736 am__obj=conftest.${OBJEXT-o}
4737 am__minus_obj=
4738 ;;
4739 none) break ;;
4740 esac
4741 if depmode=$depmode \
4742 source=sub/conftest.c object=$am__obj \
4743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4745 >/dev/null 2>conftest.err &&
4746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4750 # icc doesn't choke on unknown options, it will just issue warnings
4751 # or remarks (even with -Werror). So we grep stderr for any message
4752 # that says an option was ignored or not supported.
4753 # When given -MP, icc 7.0 and 7.1 complain thus:
4754 # icc: Command line warning: ignoring option '-M'; no argument required
4755 # The diagnosis changed in icc 8.0:
4756 # icc: Command line remark: option '-MP' not supported
4757 if (grep 'ignoring option' conftest.err ||
4758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4759 am_cv_CC_dependencies_compiler_type=$depmode
4760 break
4761 fi
4762 fi
4763 done
4764
4765 cd ..
4766 rm -rf conftest.dir
4767 else
4768 am_cv_CC_dependencies_compiler_type=none
4769 fi
4770 ;;
4771 esac
4772 fi
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4774 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4775 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4776
4777 if
4778 test "x$enable_dependency_tracking" != xno \
4779 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4780 am__fastdepCC_TRUE=
4781 am__fastdepCC_FALSE='#'
4782 else
4783 am__fastdepCC_TRUE='#'
4784 am__fastdepCC_FALSE=
4785 fi
4786
4787
4788
4789 case `pwd` in
4790 *\ * | *\ *)
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4792 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4793 esac
4794
4795
4796
4797 macro_version='2.5.4'
4798 macro_revision='2.5.4'
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 ltmain=$ac_aux_dir/ltmain.sh
4814
4815
4816
4817 # Make sure we can run config.sub.
4818 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4819 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4820
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4822 printf %s "checking build system type... " >&6; }
4823 if test ${ac_cv_build+y}
4824 then :
4825 printf %s "(cached) " >&6
4826 else case e in #(
4827 e) ac_build_alias=$build_alias
4828 test "x$ac_build_alias" = x &&
4829 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4830 test "x$ac_build_alias" = x &&
4831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4832 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4833 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4834 ;;
4835 esac
4836 fi
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4838 printf "%s\n" "$ac_cv_build" >&6; }
4839 case $ac_cv_build in
4840 *-*-*) ;;
4841 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4842 esac
4843 build=$ac_cv_build
4844 ac_save_IFS=$IFS; IFS='-'
4845 set x $ac_cv_build
4846 shift
4847 build_cpu=$1
4848 build_vendor=$2
4849 shift; shift
4850 # Remember, the first character of IFS is used to create $*,
4851 # except with old shells:
4852 build_os=$*
4853 IFS=$ac_save_IFS
4854 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4855
4856
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4858 printf %s "checking host system type... " >&6; }
4859 if test ${ac_cv_host+y}
4860 then :
4861 printf %s "(cached) " >&6
4862 else case e in #(
4863 e) if test "x$host_alias" = x; then
4864 ac_cv_host=$ac_cv_build
4865 else
4866 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4867 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4868 fi
4869 ;;
4870 esac
4871 fi
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4873 printf "%s\n" "$ac_cv_host" >&6; }
4874 case $ac_cv_host in
4875 *-*-*) ;;
4876 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4877 esac
4878 host=$ac_cv_host
4879 ac_save_IFS=$IFS; IFS='-'
4880 set x $ac_cv_host
4881 shift
4882 host_cpu=$1
4883 host_vendor=$2
4884 shift; shift
4885 # Remember, the first character of IFS is used to create $*,
4886 # except with old shells:
4887 host_os=$*
4888 IFS=$ac_save_IFS
4889 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4890
4891
4892 # Backslashify metacharacters that are still active within
4893 # double-quoted strings.
4894 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4895
4896 # Same as above, but do not quote variable references.
4897 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4898
4899 # Sed substitution to delay expansion of an escaped shell variable in a
4900 # double_quote_subst'ed string.
4901 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4902
4903 # Sed substitution to delay expansion of an escaped single quote.
4904 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4905
4906 # Sed substitution to avoid accidental globbing in evaled expressions
4907 no_glob_subst='s/\*/\\\*/g'
4908
4909 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4910 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4912
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4914 printf %s "checking how to print strings... " >&6; }
4915 # Test print first, because it will be a builtin if present.
4916 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4917 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4918 ECHO='print -r --'
4919 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4920 ECHO='printf %s\n'
4921 else
4922 # Use this function as a fallback that always works.
4923 func_fallback_echo ()
4924 {
4925 eval 'cat <<_LTECHO_EOF
4926 $1
4927 _LTECHO_EOF'
4928 }
4929 ECHO='func_fallback_echo'
4930 fi
4931
4932 # func_echo_all arg...
4933 # Invoke $ECHO with all args, space-separated.
4934 func_echo_all ()
4935 {
4936 $ECHO ""
4937 }
4938
4939 case $ECHO in
4940 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4941 printf "%s\n" "printf" >&6; } ;;
4942 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4943 printf "%s\n" "print -r" >&6; } ;;
4944 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4945 printf "%s\n" "cat" >&6; } ;;
4946 esac
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4962 printf %s "checking for a sed that does not truncate output... " >&6; }
4963 if test ${ac_cv_path_SED+y}
4964 then :
4965 printf %s "(cached) " >&6
4966 else case e in #(
4967 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4968 for ac_i in 1 2 3 4 5 6 7; do
4969 ac_script="$ac_script$as_nl$ac_script"
4970 done
4971 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4972 { ac_script=; unset ac_script;}
4973 if test -z "$SED"; then
4974 ac_path_SED_found=false
4975 # Loop through the user's path and test for each of PROGNAME-LIST
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 case $as_dir in #(((
4981 '') as_dir=./ ;;
4982 */) ;;
4983 *) as_dir=$as_dir/ ;;
4984 esac
4985 for ac_prog in sed gsed
4986 do
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4989 as_fn_executable_p "$ac_path_SED" || continue
4990 # Check for GNU ac_path_SED and select it if it is found.
4991 # Check for GNU $ac_path_SED
4992 case `"$ac_path_SED" --version 2>&1` in #(
4993 *GNU*)
4994 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4995 #(
4996 *)
4997 ac_count=0
4998 printf %s 0123456789 >"conftest.in"
4999 while :
5000 do
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 printf "%s\n" '' >> "conftest.nl"
5005 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 as_fn_arith $ac_count + 1 && ac_count=$as_val
5008 if test $ac_count -gt ${ac_path_SED_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_SED="$ac_path_SED"
5011 ac_path_SED_max=$ac_count
5012 fi
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5015 done
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 esac
5018
5019 $ac_path_SED_found && break 3
5020 done
5021 done
5022 done
5023 IFS=$as_save_IFS
5024 if test -z "$ac_cv_path_SED"; then
5025 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5026 fi
5027 else
5028 ac_cv_path_SED=$SED
5029 fi
5030 ;;
5031 esac
5032 fi
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5034 printf "%s\n" "$ac_cv_path_SED" >&6; }
5035 SED="$ac_cv_path_SED"
5036 rm -f conftest.sed
5037
5038 test -z "$SED" && SED=sed
5039 Xsed="$SED -e 1s/^X//"
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5052 printf %s "checking for grep that handles long lines and -e... " >&6; }
5053 if test ${ac_cv_path_GREP+y}
5054 then :
5055 printf %s "(cached) " >&6
5056 else case e in #(
5057 e) if test -z "$GREP"; then
5058 ac_path_GREP_found=false
5059 # Loop through the user's path and test for each of PROGNAME-LIST
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5062 do
5063 IFS=$as_save_IFS
5064 case $as_dir in #(((
5065 '') as_dir=./ ;;
5066 */) ;;
5067 *) as_dir=$as_dir/ ;;
5068 esac
5069 for ac_prog in grep ggrep
5070 do
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5073 as_fn_executable_p "$ac_path_GREP" || continue
5074 # Check for GNU ac_path_GREP and select it if it is found.
5075 # Check for GNU $ac_path_GREP
5076 case `"$ac_path_GREP" --version 2>&1` in #(
5077 *GNU*)
5078 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5079 #(
5080 *)
5081 ac_count=0
5082 printf %s 0123456789 >"conftest.in"
5083 while :
5084 do
5085 cat "conftest.in" "conftest.in" >"conftest.tmp"
5086 mv "conftest.tmp" "conftest.in"
5087 cp "conftest.in" "conftest.nl"
5088 printf "%s\n" 'GREP' >> "conftest.nl"
5089 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5091 as_fn_arith $ac_count + 1 && ac_count=$as_val
5092 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5093 # Best one so far, save it but keep looking for a better one
5094 ac_cv_path_GREP="$ac_path_GREP"
5095 ac_path_GREP_max=$ac_count
5096 fi
5097 # 10*(2^10) chars as input seems more than enough
5098 test $ac_count -gt 10 && break
5099 done
5100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5101 esac
5102
5103 $ac_path_GREP_found && break 3
5104 done
5105 done
5106 done
5107 IFS=$as_save_IFS
5108 if test -z "$ac_cv_path_GREP"; then
5109 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5110 fi
5111 else
5112 ac_cv_path_GREP=$GREP
5113 fi
5114 ;;
5115 esac
5116 fi
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5118 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5119 GREP="$ac_cv_path_GREP"
5120
5121
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5123 printf %s "checking for egrep... " >&6; }
5124 if test ${ac_cv_path_EGREP+y}
5125 then :
5126 printf %s "(cached) " >&6
5127 else case e in #(
5128 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5129 then ac_cv_path_EGREP="$GREP -E"
5130 else
5131 if test -z "$EGREP"; then
5132 ac_path_EGREP_found=false
5133 # Loop through the user's path and test for each of PROGNAME-LIST
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5136 do
5137 IFS=$as_save_IFS
5138 case $as_dir in #(((
5139 '') as_dir=./ ;;
5140 */) ;;
5141 *) as_dir=$as_dir/ ;;
5142 esac
5143 for ac_prog in egrep
5144 do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_EGREP" || continue
5148 # Check for GNU ac_path_EGREP and select it if it is found.
5149 # Check for GNU $ac_path_EGREP
5150 case `"$ac_path_EGREP" --version 2>&1` in #(
5151 *GNU*)
5152 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5153 #(
5154 *)
5155 ac_count=0
5156 printf %s 0123456789 >"conftest.in"
5157 while :
5158 do
5159 cat "conftest.in" "conftest.in" >"conftest.tmp"
5160 mv "conftest.tmp" "conftest.in"
5161 cp "conftest.in" "conftest.nl"
5162 printf "%s\n" 'EGREP' >> "conftest.nl"
5163 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165 as_fn_arith $ac_count + 1 && ac_count=$as_val
5166 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5167 # Best one so far, save it but keep looking for a better one
5168 ac_cv_path_EGREP="$ac_path_EGREP"
5169 ac_path_EGREP_max=$ac_count
5170 fi
5171 # 10*(2^10) chars as input seems more than enough
5172 test $ac_count -gt 10 && break
5173 done
5174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175 esac
5176
5177 $ac_path_EGREP_found && break 3
5178 done
5179 done
5180 done
5181 IFS=$as_save_IFS
5182 if test -z "$ac_cv_path_EGREP"; then
5183 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5184 fi
5185 else
5186 ac_cv_path_EGREP=$EGREP
5187 fi
5188
5189 fi ;;
5190 esac
5191 fi
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5193 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5194 EGREP="$ac_cv_path_EGREP"
5195
5196 EGREP_TRADITIONAL=$EGREP
5197 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5198
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5200 printf %s "checking for fgrep... " >&6; }
5201 if test ${ac_cv_path_FGREP+y}
5202 then :
5203 printf %s "(cached) " >&6
5204 else case e in #(
5205 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5206 then ac_cv_path_FGREP="$GREP -F"
5207 else
5208 if test -z "$FGREP"; then
5209 ac_path_FGREP_found=false
5210 # Loop through the user's path and test for each of PROGNAME-LIST
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5213 do
5214 IFS=$as_save_IFS
5215 case $as_dir in #(((
5216 '') as_dir=./ ;;
5217 */) ;;
5218 *) as_dir=$as_dir/ ;;
5219 esac
5220 for ac_prog in fgrep
5221 do
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5224 as_fn_executable_p "$ac_path_FGREP" || continue
5225 # Check for GNU ac_path_FGREP and select it if it is found.
5226 # Check for GNU $ac_path_FGREP
5227 case `"$ac_path_FGREP" --version 2>&1` in #(
5228 *GNU*)
5229 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5230 #(
5231 *)
5232 ac_count=0
5233 printf %s 0123456789 >"conftest.in"
5234 while :
5235 do
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 printf "%s\n" 'FGREP' >> "conftest.nl"
5240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_FGREP="$ac_path_FGREP"
5246 ac_path_FGREP_max=$ac_count
5247 fi
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252 esac
5253
5254 $ac_path_FGREP_found && break 3
5255 done
5256 done
5257 done
5258 IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_FGREP"; then
5260 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5261 fi
5262 else
5263 ac_cv_path_FGREP=$FGREP
5264 fi
5265
5266 fi ;;
5267 esac
5268 fi
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5270 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5271 FGREP="$ac_cv_path_FGREP"
5272
5273
5274 test -z "$GREP" && GREP=grep
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 # Check whether --with-gnu-ld was given.
5295 if test ${with_gnu_ld+y}
5296 then :
5297 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5298 else case e in #(
5299 e) with_gnu_ld=no ;;
5300 esac
5301 fi
5302
5303 ac_prog=ld
5304 if test yes = "$GCC"; then
5305 # Check if gcc -print-prog-name=ld gives a path.
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5307 printf %s "checking for ld used by $CC... " >&6; }
5308 case $host in
5309 *-*-mingw* | *-*-windows*)
5310 # gcc leaves a trailing carriage return, which upsets mingw
5311 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5312 *)
5313 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5314 esac
5315 case $ac_prog in
5316 # Accept absolute paths.
5317 [\\/]* | ?:[\\/]*)
5318 re_direlt='/[^/][^/]*/\.\./'
5319 # Canonicalize the pathname of ld
5320 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5321 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5322 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5323 done
5324 test -z "$LD" && LD=$ac_prog
5325 ;;
5326 "")
5327 # If it fails, then pretend we aren't using GCC.
5328 ac_prog=ld
5329 ;;
5330 *)
5331 # If it is relative, then search for the first ld in PATH.
5332 with_gnu_ld=unknown
5333 ;;
5334 esac
5335 elif test yes = "$with_gnu_ld"; then
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5337 printf %s "checking for GNU ld... " >&6; }
5338 else
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5340 printf %s "checking for non-GNU ld... " >&6; }
5341 fi
5342 if test ${lt_cv_path_LD+y}
5343 then :
5344 printf %s "(cached) " >&6
5345 else case e in #(
5346 e) if test -z "$LD"; then
5347 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5348 for ac_dir in $PATH; do
5349 IFS=$lt_save_ifs
5350 test -z "$ac_dir" && ac_dir=.
5351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5352 lt_cv_path_LD=$ac_dir/$ac_prog
5353 # Check to see if the program is GNU ld. I'd rather use --version,
5354 # but apparently some variants of GNU ld only accept -v.
5355 # Break only if it was the GNU/non-GNU ld that we prefer.
5356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5357 *GNU* | *'with BFD'*)
5358 test no != "$with_gnu_ld" && break
5359 ;;
5360 *)
5361 test yes != "$with_gnu_ld" && break
5362 ;;
5363 esac
5364 fi
5365 done
5366 IFS=$lt_save_ifs
5367 else
5368 lt_cv_path_LD=$LD # Let the user override the test with a path.
5369 fi ;;
5370 esac
5371 fi
5372
5373 LD=$lt_cv_path_LD
5374 if test -n "$LD"; then
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5376 printf "%s\n" "$LD" >&6; }
5377 else
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 printf "%s\n" "no" >&6; }
5380 fi
5381 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5383 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5384 if test ${lt_cv_prog_gnu_ld+y}
5385 then :
5386 printf %s "(cached) " >&6
5387 else case e in #(
5388 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5389 case `$LD -v 2>&1 </dev/null` in
5390 *GNU* | *'with BFD'*)
5391 lt_cv_prog_gnu_ld=yes
5392 ;;
5393 *)
5394 lt_cv_prog_gnu_ld=no
5395 ;;
5396 esac ;;
5397 esac
5398 fi
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5400 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5401 with_gnu_ld=$lt_cv_prog_gnu_ld
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5412 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5413 if test ${lt_cv_path_NM+y}
5414 then :
5415 printf %s "(cached) " >&6
5416 else case e in #(
5417 e) if test -n "$NM"; then
5418 # Let the user override the test.
5419 lt_cv_path_NM=$NM
5420 else
5421 lt_nm_to_check=${ac_tool_prefix}nm
5422 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5423 lt_nm_to_check="$lt_nm_to_check nm"
5424 fi
5425 for lt_tmp_nm in $lt_nm_to_check; do
5426 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5427 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5428 IFS=$lt_save_ifs
5429 test -z "$ac_dir" && ac_dir=.
5430 tmp_nm=$ac_dir/$lt_tmp_nm
5431 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5432 # Check to see if the nm accepts a BSD-compat flag.
5433 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5434 # nm: unknown option "B" ignored
5435 # Tru64's nm complains that /dev/null is an invalid object file
5436 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5437 case $build_os in
5438 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5439 *) lt_bad_file=/dev/null ;;
5440 esac
5441 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5442 *$lt_bad_file* | *'Invalid file or object type'*)
5443 lt_cv_path_NM="$tmp_nm -B"
5444 break 2
5445 ;;
5446 *)
5447 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5448 */dev/null*)
5449 lt_cv_path_NM="$tmp_nm -p"
5450 break 2
5451 ;;
5452 *)
5453 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5454 continue # so that we can try to find one that supports BSD flags
5455 ;;
5456 esac
5457 ;;
5458 esac
5459 fi
5460 done
5461 IFS=$lt_save_ifs
5462 done
5463 : ${lt_cv_path_NM=no}
5464 fi ;;
5465 esac
5466 fi
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5468 printf "%s\n" "$lt_cv_path_NM" >&6; }
5469 if test no != "$lt_cv_path_NM"; then
5470 NM=$lt_cv_path_NM
5471 else
5472 # Didn't find any BSD compatible name lister, look for dumpbin.
5473 if test -n "$DUMPBIN"; then :
5474 # Let the user override the test.
5475 else
5476 if test -n "$ac_tool_prefix"; then
5477 for ac_prog in dumpbin "link -dump"
5478 do
5479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 printf %s "checking for $ac_word... " >&6; }
5483 if test ${ac_cv_prog_DUMPBIN+y}
5484 then :
5485 printf %s "(cached) " >&6
5486 else case e in #(
5487 e) if test -n "$DUMPBIN"; then
5488 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493 IFS=$as_save_IFS
5494 case $as_dir in #(((
5495 '') as_dir=./ ;;
5496 */) ;;
5497 *) as_dir=$as_dir/ ;;
5498 esac
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi ;;
5510 esac
5511 fi
5512 DUMPBIN=$ac_cv_prog_DUMPBIN
5513 if test -n "$DUMPBIN"; then
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5515 printf "%s\n" "$DUMPBIN" >&6; }
5516 else
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 printf "%s\n" "no" >&6; }
5519 fi
5520
5521
5522 test -n "$DUMPBIN" && break
5523 done
5524 fi
5525 if test -z "$DUMPBIN"; then
5526 ac_ct_DUMPBIN=$DUMPBIN
5527 for ac_prog in dumpbin "link -dump"
5528 do
5529 # Extract the first word of "$ac_prog", so it can be a program name with args.
5530 set dummy $ac_prog; ac_word=$2
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 printf %s "checking for $ac_word... " >&6; }
5533 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5534 then :
5535 printf %s "(cached) " >&6
5536 else case e in #(
5537 e) if test -n "$ac_ct_DUMPBIN"; then
5538 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 case $as_dir in #(((
5545 '') as_dir=./ ;;
5546 */) ;;
5547 *) as_dir=$as_dir/ ;;
5548 esac
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi ;;
5560 esac
5561 fi
5562 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5563 if test -n "$ac_ct_DUMPBIN"; then
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5565 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5566 else
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 printf "%s\n" "no" >&6; }
5569 fi
5570
5571
5572 test -n "$ac_ct_DUMPBIN" && break
5573 done
5574
5575 if test "x$ac_ct_DUMPBIN" = x; then
5576 DUMPBIN=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584 DUMPBIN=$ac_ct_DUMPBIN
5585 fi
5586 fi
5587
5588 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5589 *COFF*)
5590 DUMPBIN="$DUMPBIN -symbols -headers"
5591 ;;
5592 *)
5593 DUMPBIN=:
5594 ;;
5595 esac
5596 fi
5597
5598 if test : != "$DUMPBIN"; then
5599 NM=$DUMPBIN
5600 fi
5601 fi
5602 test -z "$NM" && NM=nm
5603
5604
5605
5606
5607
5608
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5610 printf %s "checking the name lister ($NM) interface... " >&6; }
5611 if test ${lt_cv_nm_interface+y}
5612 then :
5613 printf %s "(cached) " >&6
5614 else case e in #(
5615 e) lt_cv_nm_interface="BSD nm"
5616 echo "int some_variable = 0;" > conftest.$ac_ext
5617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5618 (eval "$ac_compile" 2>conftest.err)
5619 cat conftest.err >&5
5620 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5621 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5622 cat conftest.err >&5
5623 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5624 cat conftest.out >&5
5625 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5626 lt_cv_nm_interface="MS dumpbin"
5627 fi
5628 rm -f conftest* ;;
5629 esac
5630 fi
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5632 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5633
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5635 printf %s "checking whether ln -s works... " >&6; }
5636 LN_S=$as_ln_s
5637 if test "$LN_S" = "ln -s"; then
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639 printf "%s\n" "yes" >&6; }
5640 else
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5642 printf "%s\n" "no, using $LN_S" >&6; }
5643 fi
5644
5645 # find the maximum length of command line arguments
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5647 printf %s "checking the maximum length of command line arguments... " >&6; }
5648 if test ${lt_cv_sys_max_cmd_len+y}
5649 then :
5650 printf %s "(cached) " >&6
5651 else case e in #(
5652 e) i=0
5653 teststring=ABCD
5654
5655 case $build_os in
5656 msdosdjgpp*)
5657 # On DJGPP, this test can blow up pretty badly due to problems in libc
5658 # (any single argument exceeding 2000 bytes causes a buffer overrun
5659 # during glob expansion). Even if it were fixed, the result of this
5660 # check would be larger than it should be.
5661 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5662 ;;
5663
5664 gnu* | ironclad*)
5665 # Under GNU Hurd and Ironclad, this test is not required because there
5666 # is no limit to the length of command line arguments.
5667 # Libtool will interpret -1 as no limit whatsoever
5668 lt_cv_sys_max_cmd_len=-1;
5669 ;;
5670
5671 cygwin* | mingw* | windows* | cegcc*)
5672 # On Win9x/ME, this test blows up -- it succeeds, but takes
5673 # about 5 minutes as the teststring grows exponentially.
5674 # Worse, since 9x/ME are not pre-emptively multitasking,
5675 # you end up with a "frozen" computer, even though with patience
5676 # the test eventually succeeds (with a max line length of 256k).
5677 # Instead, let's just punt: use the minimum linelength reported by
5678 # all of the supported platforms: 8192 (on NT/2K/XP).
5679 lt_cv_sys_max_cmd_len=8192;
5680 ;;
5681
5682 mint*)
5683 # On MiNT this can take a long time and run out of memory.
5684 lt_cv_sys_max_cmd_len=8192;
5685 ;;
5686
5687 amigaos*)
5688 # On AmigaOS with pdksh, this test takes hours, literally.
5689 # So we just punt and use a minimum line length of 8192.
5690 lt_cv_sys_max_cmd_len=8192;
5691 ;;
5692
5693 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5694 # This has been around since 386BSD, at least. Likely further.
5695 if test -x /sbin/sysctl; then
5696 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5697 elif test -x /usr/sbin/sysctl; then
5698 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5699 else
5700 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5701 fi
5702 # And add a safety zone
5703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5705 ;;
5706
5707 interix*)
5708 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5709 lt_cv_sys_max_cmd_len=196608
5710 ;;
5711
5712 os2*)
5713 # The test takes a long time on OS/2.
5714 lt_cv_sys_max_cmd_len=8192
5715 ;;
5716
5717 osf*)
5718 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5719 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5720 # nice to cause kernel panics so lets avoid the loop below.
5721 # First set a reasonable default.
5722 lt_cv_sys_max_cmd_len=16384
5723 #
5724 if test -x /sbin/sysconfig; then
5725 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5726 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5727 esac
5728 fi
5729 ;;
5730 sco3.2v5*)
5731 lt_cv_sys_max_cmd_len=102400
5732 ;;
5733 sysv5* | sco5v6* | sysv4.2uw2*)
5734 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5735 if test -n "$kargmax"; then
5736 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5737 else
5738 lt_cv_sys_max_cmd_len=32768
5739 fi
5740 ;;
5741 *)
5742 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5743 if test -n "$lt_cv_sys_max_cmd_len" && \
5744 test undefined != "$lt_cv_sys_max_cmd_len"; then
5745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5747 else
5748 # Make teststring a little bigger before we do anything with it.
5749 # a 1K string should be a reasonable start.
5750 for i in 1 2 3 4 5 6 7 8; do
5751 teststring=$teststring$teststring
5752 done
5753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5754 # If test is not a shell built-in, we'll probably end up computing a
5755 # maximum length that is only half of the actual maximum length, but
5756 # we can't tell.
5757 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5758 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5759 test 17 != "$i" # 1/2 MB should be enough
5760 do
5761 i=`expr $i + 1`
5762 teststring=$teststring$teststring
5763 done
5764 # Only check the string length outside the loop.
5765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5766 teststring=
5767 # Add a significant safety factor because C++ compilers can tack on
5768 # massive amounts of additional arguments before passing them to the
5769 # linker. It appears as though 1/2 is a usable value.
5770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5771 fi
5772 ;;
5773 esac
5774 ;;
5775 esac
5776 fi
5777
5778 if test -n "$lt_cv_sys_max_cmd_len"; then
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5780 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5781 else
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5783 printf "%s\n" "none" >&6; }
5784 fi
5785 max_cmd_len=$lt_cv_sys_max_cmd_len
5786
5787
5788
5789
5790
5791
5792 : ${CP="cp -f"}
5793 : ${MV="mv -f"}
5794 : ${RM="rm -f"}
5795
5796 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5797 lt_unset=unset
5798 else
5799 lt_unset=false
5800 fi
5801
5802
5803
5804
5805
5806 # test EBCDIC or ASCII
5807 case `echo X|tr X '\101'` in
5808 A) # ASCII based system
5809 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5810 lt_SP2NL='tr \040 \012'
5811 lt_NL2SP='tr \015\012 \040\040'
5812 ;;
5813 *) # EBCDIC based system
5814 lt_SP2NL='tr \100 \n'
5815 lt_NL2SP='tr \r\n \100\100'
5816 ;;
5817 esac
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5828 printf %s "checking how to convert $build file names to $host format... " >&6; }
5829 if test ${lt_cv_to_host_file_cmd+y}
5830 then :
5831 printf %s "(cached) " >&6
5832 else case e in #(
5833 e) case $host in
5834 *-*-mingw* )
5835 case $build in
5836 *-*-mingw* | *-*-windows* ) # actually msys
5837 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5838 ;;
5839 *-*-cygwin* )
5840 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5841 ;;
5842 * ) # otherwise, assume *nix
5843 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5844 ;;
5845 esac
5846 ;;
5847 *-*-cygwin* )
5848 case $build in
5849 *-*-mingw* | *-*-windows* ) # actually msys
5850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5851 ;;
5852 *-*-cygwin* )
5853 lt_cv_to_host_file_cmd=func_convert_file_noop
5854 ;;
5855 * ) # otherwise, assume *nix
5856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5857 ;;
5858 esac
5859 ;;
5860 * ) # unhandled hosts (and "normal" native builds)
5861 lt_cv_to_host_file_cmd=func_convert_file_noop
5862 ;;
5863 esac
5864 ;;
5865 esac
5866 fi
5867
5868 to_host_file_cmd=$lt_cv_to_host_file_cmd
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5870 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5871
5872
5873
5874
5875
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5877 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5878 if test ${lt_cv_to_tool_file_cmd+y}
5879 then :
5880 printf %s "(cached) " >&6
5881 else case e in #(
5882 e) #assume ordinary cross tools, or native build.
5883 lt_cv_to_tool_file_cmd=func_convert_file_noop
5884 case $host in
5885 *-*-mingw* | *-*-windows* )
5886 case $build in
5887 *-*-mingw* | *-*-windows* ) # actually msys
5888 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5889 ;;
5890 esac
5891 ;;
5892 esac
5893 ;;
5894 esac
5895 fi
5896
5897 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5899 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5900
5901
5902
5903
5904
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5906 printf %s "checking for $LD option to reload object files... " >&6; }
5907 if test ${lt_cv_ld_reload_flag+y}
5908 then :
5909 printf %s "(cached) " >&6
5910 else case e in #(
5911 e) lt_cv_ld_reload_flag='-r' ;;
5912 esac
5913 fi
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5915 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5916 reload_flag=$lt_cv_ld_reload_flag
5917 case $reload_flag in
5918 "" | " "*) ;;
5919 *) reload_flag=" $reload_flag" ;;
5920 esac
5921 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5922 case $host_os in
5923 cygwin* | mingw* | windows* | pw32* | cegcc*)
5924 if test yes != "$GCC"; then
5925 reload_cmds=false
5926 fi
5927 ;;
5928 darwin*)
5929 if test yes = "$GCC"; then
5930 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5931 else
5932 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5933 fi
5934 ;;
5935 esac
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945 # Extract the first word of "file", so it can be a program name with args.
5946 set dummy file; ac_word=$2
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 printf %s "checking for $ac_word... " >&6; }
5949 if test ${ac_cv_prog_FILECMD+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else case e in #(
5953 e) if test -n "$FILECMD"; then
5954 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 case $as_dir in #(((
5961 '') as_dir=./ ;;
5962 */) ;;
5963 *) as_dir=$as_dir/ ;;
5964 esac
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_FILECMD="file"
5968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
5976 fi ;;
5977 esac
5978 fi
5979 FILECMD=$ac_cv_prog_FILECMD
5980 if test -n "$FILECMD"; then
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5982 printf "%s\n" "$FILECMD" >&6; }
5983 else
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 printf "%s\n" "no" >&6; }
5986 fi
5987
5988
5989
5990
5991
5992
5993
5994
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 printf %s "checking for $ac_word... " >&6; }
6000 if test ${ac_cv_prog_OBJDUMP+y}
6001 then :
6002 printf %s "(cached) " >&6
6003 else case e in #(
6004 e) if test -n "$OBJDUMP"; then
6005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010 IFS=$as_save_IFS
6011 case $as_dir in #(((
6012 '') as_dir=./ ;;
6013 */) ;;
6014 *) as_dir=$as_dir/ ;;
6015 esac
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6018 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6020 break 2
6021 fi
6022 done
6023 done
6024 IFS=$as_save_IFS
6025
6026 fi ;;
6027 esac
6028 fi
6029 OBJDUMP=$ac_cv_prog_OBJDUMP
6030 if test -n "$OBJDUMP"; then
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6032 printf "%s\n" "$OBJDUMP" >&6; }
6033 else
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 printf "%s\n" "no" >&6; }
6036 fi
6037
6038
6039 fi
6040 if test -z "$ac_cv_prog_OBJDUMP"; then
6041 ac_ct_OBJDUMP=$OBJDUMP
6042 # Extract the first word of "objdump", so it can be a program name with args.
6043 set dummy objdump; ac_word=$2
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 printf %s "checking for $ac_word... " >&6; }
6046 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6047 then :
6048 printf %s "(cached) " >&6
6049 else case e in #(
6050 e) if test -n "$ac_ct_OBJDUMP"; then
6051 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 case $as_dir in #(((
6058 '') as_dir=./ ;;
6059 */) ;;
6060 *) as_dir=$as_dir/ ;;
6061 esac
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi ;;
6073 esac
6074 fi
6075 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6076 if test -n "$ac_ct_OBJDUMP"; then
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6078 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6079 else
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 printf "%s\n" "no" >&6; }
6082 fi
6083
6084 if test "x$ac_ct_OBJDUMP" = x; then
6085 OBJDUMP="false"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088 yes:)
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6092 esac
6093 OBJDUMP=$ac_ct_OBJDUMP
6094 fi
6095 else
6096 OBJDUMP="$ac_cv_prog_OBJDUMP"
6097 fi
6098
6099 test -z "$OBJDUMP" && OBJDUMP=objdump
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6110 printf %s "checking how to recognize dependent libraries... " >&6; }
6111 if test ${lt_cv_deplibs_check_method+y}
6112 then :
6113 printf %s "(cached) " >&6
6114 else case e in #(
6115 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6116 lt_cv_file_magic_test_file=
6117 lt_cv_deplibs_check_method='unknown'
6118 # Need to set the preceding variable on all platforms that support
6119 # interlibrary dependencies.
6120 # 'none' -- dependencies not supported.
6121 # 'unknown' -- same as none, but documents that we really don't know.
6122 # 'pass_all' -- all dependencies passed with no checks.
6123 # 'file_magic [[regex]]' -- check by looking for files in library path
6124 # that responds to the $file_magic_cmd with a given extended regex.
6125 # If you have 'file' or equivalent on your system and you're not sure
6126 # whether 'pass_all' will *always* work, you probably want this one.
6127
6128 case $host_os in
6129 aix[4-9]*)
6130 lt_cv_deplibs_check_method=pass_all
6131 ;;
6132
6133 beos*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136
6137 bsdi[45]*)
6138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6139 lt_cv_file_magic_cmd='$FILECMD -L'
6140 lt_cv_file_magic_test_file=/shlib/libc.so
6141 ;;
6142
6143 cygwin*)
6144 # func_win32_libid is a shell function defined in ltmain.sh
6145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6146 lt_cv_file_magic_cmd='func_win32_libid'
6147 ;;
6148
6149 mingw* | windows* | pw32*)
6150 # Base MSYS/MinGW do not provide the 'file' command needed by
6151 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6152 # unless we find 'file', for example because we are cross-compiling.
6153 if ( file / ) >/dev/null 2>&1; then
6154 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6155 lt_cv_file_magic_cmd='func_win32_libid'
6156 else
6157 # Keep this pattern in sync with the one in func_win32_libid.
6158 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6159 lt_cv_file_magic_cmd='$OBJDUMP -f'
6160 fi
6161 ;;
6162
6163 cegcc*)
6164 # use the weaker test based on 'objdump'. See mingw*.
6165 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6166 lt_cv_file_magic_cmd='$OBJDUMP -f'
6167 ;;
6168
6169 darwin* | rhapsody*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172
6173 freebsd* | dragonfly* | midnightbsd*)
6174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6175 case $host_cpu in
6176 i*86 )
6177 # Not sure whether the presence of OpenBSD here was a mistake.
6178 # Let's accept both of them until this is cleared up.
6179 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6180 lt_cv_file_magic_cmd=$FILECMD
6181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6182 ;;
6183 esac
6184 else
6185 lt_cv_deplibs_check_method=pass_all
6186 fi
6187 ;;
6188
6189 haiku*)
6190 lt_cv_deplibs_check_method=pass_all
6191 ;;
6192
6193 hpux10.20* | hpux11*)
6194 lt_cv_file_magic_cmd=$FILECMD
6195 case $host_cpu in
6196 ia64*)
6197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6198 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6199 ;;
6200 hppa*64*)
6201 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]'
6202 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6203 ;;
6204 *)
6205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6206 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6207 ;;
6208 esac
6209 ;;
6210
6211 interix[3-9]*)
6212 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6214 ;;
6215
6216 irix5* | irix6* | nonstopux*)
6217 case $LD in
6218 *-32|*"-32 ") libmagic=32-bit;;
6219 *-n32|*"-n32 ") libmagic=N32;;
6220 *-64|*"-64 ") libmagic=64-bit;;
6221 *) libmagic=never-match;;
6222 esac
6223 lt_cv_deplibs_check_method=pass_all
6224 ;;
6225
6226 # This must be glibc/ELF.
6227 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6228 lt_cv_deplibs_check_method=pass_all
6229 ;;
6230
6231 *-mlibc)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234
6235 netbsd* | netbsdelf*-gnu)
6236 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6238 else
6239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6240 fi
6241 ;;
6242
6243 newos6*)
6244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6245 lt_cv_file_magic_cmd=$FILECMD
6246 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6247 ;;
6248
6249 *nto* | *qnx*)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252
6253 openbsd*)
6254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6256 else
6257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6258 fi
6259 ;;
6260
6261 osf3* | osf4* | osf5*)
6262 lt_cv_deplibs_check_method=pass_all
6263 ;;
6264
6265 rdos*)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268
6269 serenity*)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272
6273 solaris*)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276
6277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280
6281 sysv4 | sysv4.3*)
6282 case $host_vendor in
6283 motorola)
6284 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]'
6285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6286 ;;
6287 ncr)
6288 lt_cv_deplibs_check_method=pass_all
6289 ;;
6290 sequent)
6291 lt_cv_file_magic_cmd='/bin/file'
6292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6293 ;;
6294 sni)
6295 lt_cv_file_magic_cmd='/bin/file'
6296 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6297 lt_cv_file_magic_test_file=/lib/libc.so
6298 ;;
6299 siemens)
6300 lt_cv_deplibs_check_method=pass_all
6301 ;;
6302 pc)
6303 lt_cv_deplibs_check_method=pass_all
6304 ;;
6305 esac
6306 ;;
6307
6308 tpf*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311 os2*)
6312 lt_cv_deplibs_check_method=pass_all
6313 ;;
6314 esac
6315 ;;
6316 esac
6317 fi
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6319 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6320
6321 file_magic_glob=
6322 want_nocaseglob=no
6323 if test "$build" = "$host"; then
6324 case $host_os in
6325 mingw* | windows* | pw32*)
6326 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6327 want_nocaseglob=yes
6328 else
6329 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6330 fi
6331 ;;
6332 esac
6333 fi
6334
6335 file_magic_cmd=$lt_cv_file_magic_cmd
6336 deplibs_check_method=$lt_cv_deplibs_check_method
6337 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 printf %s "checking for $ac_word... " >&6; }
6365 if test ${ac_cv_prog_DLLTOOL+y}
6366 then :
6367 printf %s "(cached) " >&6
6368 else case e in #(
6369 e) if test -n "$DLLTOOL"; then
6370 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375 IFS=$as_save_IFS
6376 case $as_dir in #(((
6377 '') as_dir=./ ;;
6378 */) ;;
6379 *) as_dir=$as_dir/ ;;
6380 esac
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391 fi ;;
6392 esac
6393 fi
6394 DLLTOOL=$ac_cv_prog_DLLTOOL
6395 if test -n "$DLLTOOL"; then
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6397 printf "%s\n" "$DLLTOOL" >&6; }
6398 else
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 printf "%s\n" "no" >&6; }
6401 fi
6402
6403
6404 fi
6405 if test -z "$ac_cv_prog_DLLTOOL"; then
6406 ac_ct_DLLTOOL=$DLLTOOL
6407 # Extract the first word of "dlltool", so it can be a program name with args.
6408 set dummy dlltool; ac_word=$2
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 printf %s "checking for $ac_word... " >&6; }
6411 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6412 then :
6413 printf %s "(cached) " >&6
6414 else case e in #(
6415 e) if test -n "$ac_ct_DLLTOOL"; then
6416 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421 IFS=$as_save_IFS
6422 case $as_dir in #(((
6423 '') as_dir=./ ;;
6424 */) ;;
6425 *) as_dir=$as_dir/ ;;
6426 esac
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi ;;
6438 esac
6439 fi
6440 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6441 if test -n "$ac_ct_DLLTOOL"; then
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6443 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6444 else
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 printf "%s\n" "no" >&6; }
6447 fi
6448
6449 if test "x$ac_ct_DLLTOOL" = x; then
6450 DLLTOOL="false"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458 DLLTOOL=$ac_ct_DLLTOOL
6459 fi
6460 else
6461 DLLTOOL="$ac_cv_prog_DLLTOOL"
6462 fi
6463
6464 test -z "$DLLTOOL" && DLLTOOL=dlltool
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6476 printf %s "checking how to associate runtime and link libraries... " >&6; }
6477 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6478 then :
6479 printf %s "(cached) " >&6
6480 else case e in #(
6481 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6482
6483 case $host_os in
6484 cygwin* | mingw* | windows* | pw32* | cegcc*)
6485 # two different shell functions defined in ltmain.sh;
6486 # decide which one to use based on capabilities of $DLLTOOL
6487 case `$DLLTOOL --help 2>&1` in
6488 *--identify-strict*)
6489 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6490 ;;
6491 *)
6492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6493 ;;
6494 esac
6495 ;;
6496 *)
6497 # fallback: assume linklib IS sharedlib
6498 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6499 ;;
6500 esac
6501 ;;
6502 esac
6503 fi
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6505 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6506 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6507 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6508
6509
6510
6511
6512
6513
6514
6515
6516 if test -n "$ac_tool_prefix"; then
6517 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 printf %s "checking for $ac_word... " >&6; }
6521 if test ${ac_cv_prog_RANLIB+y}
6522 then :
6523 printf %s "(cached) " >&6
6524 else case e in #(
6525 e) if test -n "$RANLIB"; then
6526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531 IFS=$as_save_IFS
6532 case $as_dir in #(((
6533 '') as_dir=./ ;;
6534 */) ;;
6535 *) as_dir=$as_dir/ ;;
6536 esac
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi ;;
6548 esac
6549 fi
6550 RANLIB=$ac_cv_prog_RANLIB
6551 if test -n "$RANLIB"; then
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6553 printf "%s\n" "$RANLIB" >&6; }
6554 else
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 printf "%s\n" "no" >&6; }
6557 fi
6558
6559
6560 fi
6561 if test -z "$ac_cv_prog_RANLIB"; then
6562 ac_ct_RANLIB=$RANLIB
6563 # Extract the first word of "ranlib", so it can be a program name with args.
6564 set dummy ranlib; ac_word=$2
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 printf %s "checking for $ac_word... " >&6; }
6567 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6568 then :
6569 printf %s "(cached) " >&6
6570 else case e in #(
6571 e) if test -n "$ac_ct_RANLIB"; then
6572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577 IFS=$as_save_IFS
6578 case $as_dir in #(((
6579 '') as_dir=./ ;;
6580 */) ;;
6581 *) as_dir=$as_dir/ ;;
6582 esac
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6585 ac_cv_prog_ac_ct_RANLIB="ranlib"
6586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi ;;
6594 esac
6595 fi
6596 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6597 if test -n "$ac_ct_RANLIB"; then
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6599 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6600 else
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 printf "%s\n" "no" >&6; }
6603 fi
6604
6605 if test "x$ac_ct_RANLIB" = x; then
6606 RANLIB=":"
6607 else
6608 case $cross_compiling:$ac_tool_warned in
6609 yes:)
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612 ac_tool_warned=yes ;;
6613 esac
6614 RANLIB=$ac_ct_RANLIB
6615 fi
6616 else
6617 RANLIB="$ac_cv_prog_RANLIB"
6618 fi
6619
6620 if test -n "$ac_tool_prefix"; then
6621 for ac_prog in ar
6622 do
6623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 printf %s "checking for $ac_word... " >&6; }
6627 if test ${ac_cv_prog_AR+y}
6628 then :
6629 printf %s "(cached) " >&6
6630 else case e in #(
6631 e) if test -n "$AR"; then
6632 ac_cv_prog_AR="$AR" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637 IFS=$as_save_IFS
6638 case $as_dir in #(((
6639 '') as_dir=./ ;;
6640 */) ;;
6641 *) as_dir=$as_dir/ ;;
6642 esac
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653 fi ;;
6654 esac
6655 fi
6656 AR=$ac_cv_prog_AR
6657 if test -n "$AR"; then
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6659 printf "%s\n" "$AR" >&6; }
6660 else
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 printf "%s\n" "no" >&6; }
6663 fi
6664
6665
6666 test -n "$AR" && break
6667 done
6668 fi
6669 if test -z "$AR"; then
6670 ac_ct_AR=$AR
6671 for ac_prog in ar
6672 do
6673 # Extract the first word of "$ac_prog", so it can be a program name with args.
6674 set dummy $ac_prog; ac_word=$2
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 printf %s "checking for $ac_word... " >&6; }
6677 if test ${ac_cv_prog_ac_ct_AR+y}
6678 then :
6679 printf %s "(cached) " >&6
6680 else case e in #(
6681 e) if test -n "$ac_ct_AR"; then
6682 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687 IFS=$as_save_IFS
6688 case $as_dir in #(((
6689 '') as_dir=./ ;;
6690 */) ;;
6691 *) as_dir=$as_dir/ ;;
6692 esac
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_AR="$ac_prog"
6696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi ;;
6704 esac
6705 fi
6706 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6707 if test -n "$ac_ct_AR"; then
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6709 printf "%s\n" "$ac_ct_AR" >&6; }
6710 else
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 printf "%s\n" "no" >&6; }
6713 fi
6714
6715
6716 test -n "$ac_ct_AR" && break
6717 done
6718
6719 if test "x$ac_ct_AR" = x; then
6720 AR="false"
6721 else
6722 case $cross_compiling:$ac_tool_warned in
6723 yes:)
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728 AR=$ac_ct_AR
6729 fi
6730 fi
6731
6732 : ${AR=ar}
6733
6734
6735
6736
6737
6738
6739 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6740 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6741 # higher priority because that's what people were doing historically (setting
6742 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6743 # variable obsoleted/removed.
6744
6745 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6746 lt_ar_flags=$AR_FLAGS
6747
6748
6749
6750
6751
6752
6753 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6754 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6755
6756
6757
6758
6759
6760
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6762 printf %s "checking for archiver @FILE support... " >&6; }
6763 if test ${lt_cv_ar_at_file+y}
6764 then :
6765 printf %s "(cached) " >&6
6766 else case e in #(
6767 e) lt_cv_ar_at_file=no
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770
6771 int
6772 main (void)
6773 {
6774
6775 ;
6776 return 0;
6777 }
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"
6780 then :
6781 echo conftest.$ac_objext > conftest.lst
6782 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6784 (eval $lt_ar_try) 2>&5
6785 ac_status=$?
6786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787 test $ac_status = 0; }
6788 if test 0 -eq "$ac_status"; then
6789 # Ensure the archiver fails upon bogus file names.
6790 rm -f conftest.$ac_objext libconftest.a
6791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6792 (eval $lt_ar_try) 2>&5
6793 ac_status=$?
6794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; }
6796 if test 0 -ne "$ac_status"; then
6797 lt_cv_ar_at_file=@
6798 fi
6799 fi
6800 rm -f conftest.* libconftest.a
6801
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6804 ;;
6805 esac
6806 fi
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6808 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6809
6810 if test no = "$lt_cv_ar_at_file"; then
6811 archiver_list_spec=
6812 else
6813 archiver_list_spec=$lt_cv_ar_at_file
6814 fi
6815
6816
6817
6818
6819
6820
6821
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}strip; ac_word=$2
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 printf %s "checking for $ac_word... " >&6; }
6827 if test ${ac_cv_prog_STRIP+y}
6828 then :
6829 printf %s "(cached) " >&6
6830 else case e in #(
6831 e) if test -n "$STRIP"; then
6832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837 IFS=$as_save_IFS
6838 case $as_dir in #(((
6839 '') as_dir=./ ;;
6840 */) ;;
6841 *) as_dir=$as_dir/ ;;
6842 esac
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_STRIP="${ac_tool_prefix}strip"
6846 printf "%s\n" "$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 esac
6855 fi
6856 STRIP=$ac_cv_prog_STRIP
6857 if test -n "$STRIP"; then
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6859 printf "%s\n" "$STRIP" >&6; }
6860 else
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 printf "%s\n" "no" >&6; }
6863 fi
6864
6865
6866 fi
6867 if test -z "$ac_cv_prog_STRIP"; then
6868 ac_ct_STRIP=$STRIP
6869 # Extract the first word of "strip", so it can be a program name with args.
6870 set dummy strip; ac_word=$2
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 printf %s "checking for $ac_word... " >&6; }
6873 if test ${ac_cv_prog_ac_ct_STRIP+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else case e in #(
6877 e) if test -n "$ac_ct_STRIP"; then
6878 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 case $as_dir in #(((
6885 '') as_dir=./ ;;
6886 */) ;;
6887 *) as_dir=$as_dir/ ;;
6888 esac
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_STRIP="strip"
6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi ;;
6900 esac
6901 fi
6902 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6903 if test -n "$ac_ct_STRIP"; then
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6905 printf "%s\n" "$ac_ct_STRIP" >&6; }
6906 else
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 printf "%s\n" "no" >&6; }
6909 fi
6910
6911 if test "x$ac_ct_STRIP" = x; then
6912 STRIP=":"
6913 else
6914 case $cross_compiling:$ac_tool_warned in
6915 yes:)
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918 ac_tool_warned=yes ;;
6919 esac
6920 STRIP=$ac_ct_STRIP
6921 fi
6922 else
6923 STRIP="$ac_cv_prog_STRIP"
6924 fi
6925
6926 test -z "$STRIP" && STRIP=:
6927
6928
6929
6930
6931
6932
6933
6934 test -z "$RANLIB" && RANLIB=:
6935
6936
6937
6938
6939
6940
6941 # Determine commands to create old-style static archives.
6942 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6943 old_postinstall_cmds='chmod 644 $oldlib'
6944 old_postuninstall_cmds=
6945
6946 if test -n "$RANLIB"; then
6947 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6948 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6949 fi
6950
6951 case $host_os in
6952 darwin*)
6953 lock_old_archive_extraction=yes ;;
6954 *)
6955 lock_old_archive_extraction=no ;;
6956 esac
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996 # If no C compiler was specified, use CC.
6997 LTCC=${LTCC-"$CC"}
6998
6999 # If no C compiler flags were specified, use CFLAGS.
7000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7001
7002 # Allow CC to be a program name with arguments.
7003 compiler=$CC
7004
7005
7006 # Check for command to grab the raw symbol name followed by C symbol from nm.
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7008 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7009 if test ${lt_cv_sys_global_symbol_pipe+y}
7010 then :
7011 printf %s "(cached) " >&6
7012 else case e in #(
7013 e)
7014 # These are sane defaults that work on at least a few old systems.
7015 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7016
7017 # Character class describing NM global symbol codes.
7018 symcode='[BCDEGRST]'
7019
7020 # Regexp to match symbols that can be accessed directly from C.
7021 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7022
7023 # Define system-specific variables.
7024 case $host_os in
7025 aix*)
7026 symcode='[BCDT]'
7027 ;;
7028 cygwin* | mingw* | windows* | pw32* | cegcc*)
7029 symcode='[ABCDGISTW]'
7030 ;;
7031 hpux*)
7032 if test ia64 = "$host_cpu"; then
7033 symcode='[ABCDEGRST]'
7034 fi
7035 ;;
7036 irix* | nonstopux*)
7037 symcode='[BCDEGRST]'
7038 ;;
7039 osf*)
7040 symcode='[BCDEGQRST]'
7041 ;;
7042 solaris*)
7043 symcode='[BCDRT]'
7044 ;;
7045 sco3.2v5*)
7046 symcode='[DT]'
7047 ;;
7048 sysv4.2uw2*)
7049 symcode='[DT]'
7050 ;;
7051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7052 symcode='[ABDT]'
7053 ;;
7054 sysv4)
7055 symcode='[DFNSTU]'
7056 ;;
7057 esac
7058
7059 # If we're using GNU nm, then use its standard symbol codes.
7060 case `$NM -V 2>&1` in
7061 *GNU* | *'with BFD'*)
7062 symcode='[ABCDGIRSTW]' ;;
7063 esac
7064
7065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7066 # Gets list of data symbols to import.
7067 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7068 # Adjust the below global symbol transforms to fixup imported variables.
7069 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7070 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7071 lt_c_name_lib_hook="\
7072 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7073 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7074 else
7075 # Disable hooks by default.
7076 lt_cv_sys_global_symbol_to_import=
7077 lt_cdecl_hook=
7078 lt_c_name_hook=
7079 lt_c_name_lib_hook=
7080 fi
7081
7082 # Transform an extracted symbol line into a proper C declaration.
7083 # Some systems (esp. on ia64) link data and code symbols differently,
7084 # so use this general approach.
7085 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7086 $lt_cdecl_hook\
7087 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7088 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7089
7090 # Transform an extracted symbol line into symbol name and symbol address
7091 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7092 $lt_c_name_hook\
7093 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7094 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7095
7096 # Transform an extracted symbol line into symbol name with lib prefix and
7097 # symbol address.
7098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7099 $lt_c_name_lib_hook\
7100 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7101 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7102 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7103
7104 # Handle CRLF in mingw tool chain
7105 opt_cr=
7106 case $build_os in
7107 mingw* | windows*)
7108 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7109 ;;
7110 esac
7111
7112 # Try without a prefix underscore, then with it.
7113 for ac_symprfx in "" "_"; do
7114
7115 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7116 symxfrm="\\1 $ac_symprfx\\2 \\2"
7117
7118 # Write the raw and C identifiers.
7119 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7120 # Fake it for dumpbin and say T for any non-static function,
7121 # D for any global variable and I for any imported variable.
7122 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7123 # which start with @ or ?.
7124 lt_cv_sys_global_symbol_pipe="$AWK '"\
7125 " {last_section=section; section=\$ 3};"\
7126 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7127 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7128 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7129 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7130 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7131 " \$ 0!~/External *\|/{next};"\
7132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7133 " {if(hide[section]) next};"\
7134 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7135 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7136 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7137 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7138 " ' prfx=^$ac_symprfx"
7139 else
7140 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7141 fi
7142 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7143
7144 # Check to see that the pipe works correctly.
7145 pipe_works=no
7146
7147 rm -f conftest*
7148 cat > conftest.$ac_ext <<_LT_EOF
7149 #ifdef __cplusplus
7150 extern "C" {
7151 #endif
7152 char nm_test_var;
7153 void nm_test_func(void);
7154 void nm_test_func(void){}
7155 #ifdef __cplusplus
7156 }
7157 #endif
7158 int main(void){nm_test_var='a';nm_test_func();return(0);}
7159 _LT_EOF
7160
7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7162 (eval $ac_compile) 2>&5
7163 ac_status=$?
7164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165 test $ac_status = 0; }; then
7166 # Now try to grab the symbols.
7167 nlist=conftest.nm
7168 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7169 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7170 # Try sorting and uniquifying the output.
7171 if sort "$nlist" | uniq > "$nlist"T; then
7172 mv -f "$nlist"T "$nlist"
7173 else
7174 rm -f "$nlist"T
7175 fi
7176
7177 # Make sure that we snagged all the symbols we need.
7178 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7179 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7180 cat <<_LT_EOF > conftest.$ac_ext
7181 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7182 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7183 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7184 relocations are performed -- see ld's documentation on pseudo-relocs. */
7185 # define LT_DLSYM_CONST
7186 #elif defined __osf__
7187 /* This system does not cope well with relocations in const data. */
7188 # define LT_DLSYM_CONST
7189 #else
7190 # define LT_DLSYM_CONST const
7191 #endif
7192
7193 #ifdef __cplusplus
7194 extern "C" {
7195 #endif
7196
7197 _LT_EOF
7198 # Now generate the symbol file.
7199 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7200
7201 cat <<_LT_EOF >> conftest.$ac_ext
7202
7203 /* The mapping between symbol names and symbols. */
7204 LT_DLSYM_CONST struct {
7205 const char *name;
7206 void *address;
7207 }
7208 lt__PROGRAM__LTX_preloaded_symbols[] =
7209 {
7210 { "@PROGRAM@", (void *) 0 },
7211 _LT_EOF
7212 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7213 cat <<\_LT_EOF >> conftest.$ac_ext
7214 {0, (void *) 0}
7215 };
7216
7217 /* This works around a problem in FreeBSD linker */
7218 #ifdef FREEBSD_WORKAROUND
7219 static const void *lt_preloaded_setup() {
7220 return lt__PROGRAM__LTX_preloaded_symbols;
7221 }
7222 #endif
7223
7224 #ifdef __cplusplus
7225 }
7226 #endif
7227 _LT_EOF
7228 # Now try linking the two files.
7229 mv conftest.$ac_objext conftstm.$ac_objext
7230 lt_globsym_save_LIBS=$LIBS
7231 lt_globsym_save_CFLAGS=$CFLAGS
7232 LIBS=conftstm.$ac_objext
7233 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7235 (eval $ac_link) 2>&5
7236 ac_status=$?
7237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7239 pipe_works=yes
7240 fi
7241 LIBS=$lt_globsym_save_LIBS
7242 CFLAGS=$lt_globsym_save_CFLAGS
7243 else
7244 echo "cannot find nm_test_func in $nlist" >&5
7245 fi
7246 else
7247 echo "cannot find nm_test_var in $nlist" >&5
7248 fi
7249 else
7250 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7251 fi
7252 else
7253 echo "$progname: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7255 fi
7256 rm -rf conftest* conftst*
7257
7258 # Do not use the global_symbol_pipe unless it works.
7259 if test yes = "$pipe_works"; then
7260 break
7261 else
7262 lt_cv_sys_global_symbol_pipe=
7263 fi
7264 done
7265 ;;
7266 esac
7267 fi
7268
7269 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7270 lt_cv_sys_global_symbol_to_cdecl=
7271 fi
7272 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7274 printf "%s\n" "failed" >&6; }
7275 else
7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7277 printf "%s\n" "ok" >&6; }
7278 fi
7279
7280 # Response file support.
7281 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7282 nm_file_list_spec='@'
7283 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7284 nm_file_list_spec='@'
7285 fi
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7324 printf %s "checking for sysroot... " >&6; }
7325
7326 # Check whether --with-sysroot was given.
7327 if test ${with_sysroot+y}
7328 then :
7329 withval=$with_sysroot;
7330 else case e in #(
7331 e) with_sysroot=no ;;
7332 esac
7333 fi
7334
7335
7336 lt_sysroot=
7337 case $with_sysroot in #(
7338 yes)
7339 if test yes = "$GCC"; then
7340 # Trim trailing / since we'll always append absolute paths and we want
7341 # to avoid //, if only for less confusing output for the user.
7342 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7343 fi
7344 ;; #(
7345 /*)
7346 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7347 ;; #(
7348 no|'')
7349 ;; #(
7350 *)
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7352 printf "%s\n" "$with_sysroot" >&6; }
7353 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7354 ;;
7355 esac
7356
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7358 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7359
7360
7361
7362
7363
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7365 printf %s "checking for a working dd... " >&6; }
7366 if test ${ac_cv_path_lt_DD+y}
7367 then :
7368 printf %s "(cached) " >&6
7369 else case e in #(
7370 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7371 cat conftest.i conftest.i >conftest2.i
7372 : ${lt_DD:=$DD}
7373 if test -z "$lt_DD"; then
7374 ac_path_lt_DD_found=false
7375 # Loop through the user's path and test for each of PROGNAME-LIST
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379 IFS=$as_save_IFS
7380 case $as_dir in #(((
7381 '') as_dir=./ ;;
7382 */) ;;
7383 *) as_dir=$as_dir/ ;;
7384 esac
7385 for ac_prog in dd
7386 do
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7389 as_fn_executable_p "$ac_path_lt_DD" || continue
7390 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7391 cmp -s conftest.i conftest.out \
7392 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7393 fi
7394 $ac_path_lt_DD_found && break 3
7395 done
7396 done
7397 done
7398 IFS=$as_save_IFS
7399 if test -z "$ac_cv_path_lt_DD"; then
7400 :
7401 fi
7402 else
7403 ac_cv_path_lt_DD=$lt_DD
7404 fi
7405
7406 rm -f conftest.i conftest2.i conftest.out ;;
7407 esac
7408 fi
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7410 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7411
7412
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7414 printf %s "checking how to truncate binary pipes... " >&6; }
7415 if test ${lt_cv_truncate_bin+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else case e in #(
7419 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7420 cat conftest.i conftest.i >conftest2.i
7421 lt_cv_truncate_bin=
7422 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7423 cmp -s conftest.i conftest.out \
7424 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7425 fi
7426 rm -f conftest.i conftest2.i conftest.out
7427 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7428 esac
7429 fi
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7431 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7432
7433
7434
7435
7436
7437
7438
7439 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7440 func_cc_basename ()
7441 {
7442 for cc_temp in $*""; do
7443 case $cc_temp in
7444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7446 \-*) ;;
7447 *) break;;
7448 esac
7449 done
7450 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7451 }
7452
7453 # Check whether --enable-libtool-lock was given.
7454 if test ${enable_libtool_lock+y}
7455 then :
7456 enableval=$enable_libtool_lock;
7457 fi
7458
7459 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7460
7461 # Some flags need to be propagated to the compiler or linker for good
7462 # libtool support.
7463 case $host in
7464 ia64-*-hpux*)
7465 # Find out what ABI is being produced by ac_compile, and set mode
7466 # options accordingly.
7467 echo 'int i;' > conftest.$ac_ext
7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469 (eval $ac_compile) 2>&5
7470 ac_status=$?
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }; then
7473 case `$FILECMD conftest.$ac_objext` in
7474 *ELF-32*)
7475 HPUX_IA64_MODE=32
7476 ;;
7477 *ELF-64*)
7478 HPUX_IA64_MODE=64
7479 ;;
7480 esac
7481 fi
7482 rm -rf conftest*
7483 ;;
7484 *-*-irix6*)
7485 # Find out what ABI is being produced by ac_compile, and set linker
7486 # options accordingly.
7487 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7489 (eval $ac_compile) 2>&5
7490 ac_status=$?
7491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492 test $ac_status = 0; }; then
7493 if test yes = "$lt_cv_prog_gnu_ld"; then
7494 case `$FILECMD conftest.$ac_objext` in
7495 *32-bit*)
7496 LD="${LD-ld} -melf32bsmip"
7497 ;;
7498 *N32*)
7499 LD="${LD-ld} -melf32bmipn32"
7500 ;;
7501 *64-bit*)
7502 LD="${LD-ld} -melf64bmip"
7503 ;;
7504 esac
7505 else
7506 case `$FILECMD conftest.$ac_objext` in
7507 *32-bit*)
7508 LD="${LD-ld} -32"
7509 ;;
7510 *N32*)
7511 LD="${LD-ld} -n32"
7512 ;;
7513 *64-bit*)
7514 LD="${LD-ld} -64"
7515 ;;
7516 esac
7517 fi
7518 fi
7519 rm -rf conftest*
7520 ;;
7521
7522 mips64*-*linux*)
7523 # Find out what ABI is being produced by ac_compile, and set linker
7524 # options accordingly.
7525 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7528 ac_status=$?
7529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 emul=elf
7532 case `$FILECMD conftest.$ac_objext` in
7533 *32-bit*)
7534 emul="${emul}32"
7535 ;;
7536 *64-bit*)
7537 emul="${emul}64"
7538 ;;
7539 esac
7540 case `$FILECMD conftest.$ac_objext` in
7541 *MSB*)
7542 emul="${emul}btsmip"
7543 ;;
7544 *LSB*)
7545 emul="${emul}ltsmip"
7546 ;;
7547 esac
7548 case `$FILECMD conftest.$ac_objext` in
7549 *N32*)
7550 emul="${emul}n32"
7551 ;;
7552 esac
7553 LD="${LD-ld} -m $emul"
7554 fi
7555 rm -rf conftest*
7556 ;;
7557
7558 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7559 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7560 # Find out what ABI is being produced by ac_compile, and set linker
7561 # options accordingly. Note that the listed cases only cover the
7562 # situations where additional linker options are needed (such as when
7563 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7564 # vice versa); the common cases where no linker options are needed do
7565 # not appear in the list.
7566 echo 'int i;' > conftest.$ac_ext
7567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7568 (eval $ac_compile) 2>&5
7569 ac_status=$?
7570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; }; then
7572 case `$FILECMD conftest.o` in
7573 *32-bit*)
7574 case $host in
7575 x86_64-*kfreebsd*-gnu)
7576 LD="${LD-ld} -m elf_i386_fbsd"
7577 ;;
7578 x86_64-*linux*|x86_64-gnu*)
7579 case `$FILECMD conftest.o` in
7580 *x86-64*)
7581 LD="${LD-ld} -m elf32_x86_64"
7582 ;;
7583 *)
7584 LD="${LD-ld} -m elf_i386"
7585 ;;
7586 esac
7587 ;;
7588 powerpc64le-*linux*)
7589 LD="${LD-ld} -m elf32lppclinux"
7590 ;;
7591 powerpc64-*linux*)
7592 LD="${LD-ld} -m elf32ppclinux"
7593 ;;
7594 s390x-*linux*)
7595 LD="${LD-ld} -m elf_s390"
7596 ;;
7597 sparc64-*linux*)
7598 LD="${LD-ld} -m elf32_sparc"
7599 ;;
7600 esac
7601 ;;
7602 *64-bit*)
7603 case $host in
7604 x86_64-*kfreebsd*-gnu)
7605 LD="${LD-ld} -m elf_x86_64_fbsd"
7606 ;;
7607 x86_64-*linux*|x86_64-gnu*)
7608 LD="${LD-ld} -m elf_x86_64"
7609 ;;
7610 powerpcle-*linux*)
7611 LD="${LD-ld} -m elf64lppc"
7612 ;;
7613 powerpc-*linux*)
7614 LD="${LD-ld} -m elf64ppc"
7615 ;;
7616 s390*-*linux*|s390*-*tpf*)
7617 LD="${LD-ld} -m elf64_s390"
7618 ;;
7619 sparc*-*linux*)
7620 LD="${LD-ld} -m elf64_sparc"
7621 ;;
7622 esac
7623 ;;
7624 esac
7625 fi
7626 rm -rf conftest*
7627 ;;
7628
7629 *-*-sco3.2v5*)
7630 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7631 SAVE_CFLAGS=$CFLAGS
7632 CFLAGS="$CFLAGS -belf"
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7634 printf %s "checking whether the C compiler needs -belf... " >&6; }
7635 if test ${lt_cv_cc_needs_belf+y}
7636 then :
7637 printf %s "(cached) " >&6
7638 else case e in #(
7639 e) ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647
7648 int
7649 main (void)
7650 {
7651
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 if ac_fn_c_try_link "$LINENO"
7657 then :
7658 lt_cv_cc_needs_belf=yes
7659 else case e in #(
7660 e) lt_cv_cc_needs_belf=no ;;
7661 esac
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7664 conftest$ac_exeext conftest.$ac_ext
7665 ac_ext=c
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670 ;;
7671 esac
7672 fi
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7674 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7675 if test yes != "$lt_cv_cc_needs_belf"; then
7676 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7677 CFLAGS=$SAVE_CFLAGS
7678 fi
7679 ;;
7680 *-*solaris*)
7681 # Find out what ABI is being produced by ac_compile, and set linker
7682 # options accordingly.
7683 echo 'int i;' > conftest.$ac_ext
7684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7685 (eval $ac_compile) 2>&5
7686 ac_status=$?
7687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688 test $ac_status = 0; }; then
7689 case `$FILECMD conftest.o` in
7690 *64-bit*)
7691 case $lt_cv_prog_gnu_ld in
7692 yes*)
7693 case $host in
7694 i?86-*-solaris*|x86_64-*-solaris*)
7695 LD="${LD-ld} -m elf_x86_64"
7696 ;;
7697 sparc*-*-solaris*)
7698 LD="${LD-ld} -m elf64_sparc"
7699 ;;
7700 esac
7701 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7702 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7703 LD=${LD-ld}_sol2
7704 fi
7705 ;;
7706 *)
7707 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7708 LD="${LD-ld} -64"
7709 fi
7710 ;;
7711 esac
7712 ;;
7713 esac
7714 fi
7715 rm -rf conftest*
7716 ;;
7717 esac
7718
7719 need_locks=$enable_libtool_lock
7720
7721 if test -n "$ac_tool_prefix"; then
7722 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}mt; ac_word=$2
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 printf %s "checking for $ac_word... " >&6; }
7726 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7727 then :
7728 printf %s "(cached) " >&6
7729 else case e in #(
7730 e) if test -n "$MANIFEST_TOOL"; then
7731 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736 IFS=$as_save_IFS
7737 case $as_dir in #(((
7738 '') as_dir=./ ;;
7739 */) ;;
7740 *) as_dir=$as_dir/ ;;
7741 esac
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752 fi ;;
7753 esac
7754 fi
7755 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7756 if test -n "$MANIFEST_TOOL"; then
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7758 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7759 else
7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 printf "%s\n" "no" >&6; }
7762 fi
7763
7764
7765 fi
7766 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7767 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7768 # Extract the first word of "mt", so it can be a program name with args.
7769 set dummy mt; ac_word=$2
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 printf %s "checking for $ac_word... " >&6; }
7772 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7773 then :
7774 printf %s "(cached) " >&6
7775 else case e in #(
7776 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7777 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782 IFS=$as_save_IFS
7783 case $as_dir in #(((
7784 '') as_dir=./ ;;
7785 */) ;;
7786 *) as_dir=$as_dir/ ;;
7787 esac
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7790 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794 done
7795 done
7796 IFS=$as_save_IFS
7797
7798 fi ;;
7799 esac
7800 fi
7801 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7802 if test -n "$ac_ct_MANIFEST_TOOL"; then
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7804 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7805 else
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 printf "%s\n" "no" >&6; }
7808 fi
7809
7810 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7811 MANIFEST_TOOL=":"
7812 else
7813 case $cross_compiling:$ac_tool_warned in
7814 yes:)
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7818 esac
7819 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7820 fi
7821 else
7822 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7823 fi
7824
7825 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7827 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7828 if test ${lt_cv_path_manifest_tool+y}
7829 then :
7830 printf %s "(cached) " >&6
7831 else case e in #(
7832 e) lt_cv_path_manifest_tool=no
7833 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7834 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7835 cat conftest.err >&5
7836 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7837 lt_cv_path_manifest_tool=yes
7838 fi
7839 rm -f conftest* ;;
7840 esac
7841 fi
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7843 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7844 if test yes != "$lt_cv_path_manifest_tool"; then
7845 MANIFEST_TOOL=:
7846 fi
7847
7848
7849
7850
7851
7852
7853 case $host_os in
7854 rhapsody* | darwin*)
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 printf %s "checking for $ac_word... " >&6; }
7860 if test ${ac_cv_prog_DSYMUTIL+y}
7861 then :
7862 printf %s "(cached) " >&6
7863 else case e in #(
7864 e) if test -n "$DSYMUTIL"; then
7865 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi ;;
7887 esac
7888 fi
7889 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7890 if test -n "$DSYMUTIL"; then
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7892 printf "%s\n" "$DSYMUTIL" >&6; }
7893 else
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 printf "%s\n" "no" >&6; }
7896 fi
7897
7898
7899 fi
7900 if test -z "$ac_cv_prog_DSYMUTIL"; then
7901 ac_ct_DSYMUTIL=$DSYMUTIL
7902 # Extract the first word of "dsymutil", so it can be a program name with args.
7903 set dummy dsymutil; ac_word=$2
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 printf %s "checking for $ac_word... " >&6; }
7906 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7907 then :
7908 printf %s "(cached) " >&6
7909 else case e in #(
7910 e) if test -n "$ac_ct_DSYMUTIL"; then
7911 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916 IFS=$as_save_IFS
7917 case $as_dir in #(((
7918 '') as_dir=./ ;;
7919 */) ;;
7920 *) as_dir=$as_dir/ ;;
7921 esac
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7924 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7926 break 2
7927 fi
7928 done
7929 done
7930 IFS=$as_save_IFS
7931
7932 fi ;;
7933 esac
7934 fi
7935 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7936 if test -n "$ac_ct_DSYMUTIL"; then
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7938 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7939 else
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 printf "%s\n" "no" >&6; }
7942 fi
7943
7944 if test "x$ac_ct_DSYMUTIL" = x; then
7945 DSYMUTIL=":"
7946 else
7947 case $cross_compiling:$ac_tool_warned in
7948 yes:)
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7951 ac_tool_warned=yes ;;
7952 esac
7953 DSYMUTIL=$ac_ct_DSYMUTIL
7954 fi
7955 else
7956 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7957 fi
7958
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 printf %s "checking for $ac_word... " >&6; }
7964 if test ${ac_cv_prog_NMEDIT+y}
7965 then :
7966 printf %s "(cached) " >&6
7967 else case e in #(
7968 e) if test -n "$NMEDIT"; then
7969 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974 IFS=$as_save_IFS
7975 case $as_dir in #(((
7976 '') as_dir=./ ;;
7977 */) ;;
7978 *) as_dir=$as_dir/ ;;
7979 esac
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7982 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986 done
7987 done
7988 IFS=$as_save_IFS
7989
7990 fi ;;
7991 esac
7992 fi
7993 NMEDIT=$ac_cv_prog_NMEDIT
7994 if test -n "$NMEDIT"; then
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7996 printf "%s\n" "$NMEDIT" >&6; }
7997 else
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 printf "%s\n" "no" >&6; }
8000 fi
8001
8002
8003 fi
8004 if test -z "$ac_cv_prog_NMEDIT"; then
8005 ac_ct_NMEDIT=$NMEDIT
8006 # Extract the first word of "nmedit", so it can be a program name with args.
8007 set dummy nmedit; ac_word=$2
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 printf %s "checking for $ac_word... " >&6; }
8010 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8011 then :
8012 printf %s "(cached) " >&6
8013 else case e in #(
8014 e) if test -n "$ac_ct_NMEDIT"; then
8015 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 case $as_dir in #(((
8022 '') as_dir=./ ;;
8023 */) ;;
8024 *) as_dir=$as_dir/ ;;
8025 esac
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034 IFS=$as_save_IFS
8035
8036 fi ;;
8037 esac
8038 fi
8039 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8040 if test -n "$ac_ct_NMEDIT"; then
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8042 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8043 else
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 printf "%s\n" "no" >&6; }
8046 fi
8047
8048 if test "x$ac_ct_NMEDIT" = x; then
8049 NMEDIT=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052 yes:)
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055 ac_tool_warned=yes ;;
8056 esac
8057 NMEDIT=$ac_ct_NMEDIT
8058 fi
8059 else
8060 NMEDIT="$ac_cv_prog_NMEDIT"
8061 fi
8062
8063 if test -n "$ac_tool_prefix"; then
8064 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8065 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 printf %s "checking for $ac_word... " >&6; }
8068 if test ${ac_cv_prog_LIPO+y}
8069 then :
8070 printf %s "(cached) " >&6
8071 else case e in #(
8072 e) if test -n "$LIPO"; then
8073 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 case $as_dir in #(((
8080 '') as_dir=./ ;;
8081 */) ;;
8082 *) as_dir=$as_dir/ ;;
8083 esac
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090 done
8091 done
8092 IFS=$as_save_IFS
8093
8094 fi ;;
8095 esac
8096 fi
8097 LIPO=$ac_cv_prog_LIPO
8098 if test -n "$LIPO"; then
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8100 printf "%s\n" "$LIPO" >&6; }
8101 else
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 printf "%s\n" "no" >&6; }
8104 fi
8105
8106
8107 fi
8108 if test -z "$ac_cv_prog_LIPO"; then
8109 ac_ct_LIPO=$LIPO
8110 # Extract the first word of "lipo", so it can be a program name with args.
8111 set dummy lipo; ac_word=$2
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 printf %s "checking for $ac_word... " >&6; }
8114 if test ${ac_cv_prog_ac_ct_LIPO+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else case e in #(
8118 e) if test -n "$ac_ct_LIPO"; then
8119 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 case $as_dir in #(((
8126 '') as_dir=./ ;;
8127 */) ;;
8128 *) as_dir=$as_dir/ ;;
8129 esac
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_ac_ct_LIPO="lipo"
8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 fi ;;
8141 esac
8142 fi
8143 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8144 if test -n "$ac_ct_LIPO"; then
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8146 printf "%s\n" "$ac_ct_LIPO" >&6; }
8147 else
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8150 fi
8151
8152 if test "x$ac_ct_LIPO" = x; then
8153 LIPO=":"
8154 else
8155 case $cross_compiling:$ac_tool_warned in
8156 yes:)
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8158 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8159 ac_tool_warned=yes ;;
8160 esac
8161 LIPO=$ac_ct_LIPO
8162 fi
8163 else
8164 LIPO="$ac_cv_prog_LIPO"
8165 fi
8166
8167 if test -n "$ac_tool_prefix"; then
8168 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8169 set dummy ${ac_tool_prefix}otool; ac_word=$2
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 printf %s "checking for $ac_word... " >&6; }
8172 if test ${ac_cv_prog_OTOOL+y}
8173 then :
8174 printf %s "(cached) " >&6
8175 else case e in #(
8176 e) if test -n "$OTOOL"; then
8177 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182 IFS=$as_save_IFS
8183 case $as_dir in #(((
8184 '') as_dir=./ ;;
8185 */) ;;
8186 *) as_dir=$as_dir/ ;;
8187 esac
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8190 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194 done
8195 done
8196 IFS=$as_save_IFS
8197
8198 fi ;;
8199 esac
8200 fi
8201 OTOOL=$ac_cv_prog_OTOOL
8202 if test -n "$OTOOL"; then
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8204 printf "%s\n" "$OTOOL" >&6; }
8205 else
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 printf "%s\n" "no" >&6; }
8208 fi
8209
8210
8211 fi
8212 if test -z "$ac_cv_prog_OTOOL"; then
8213 ac_ct_OTOOL=$OTOOL
8214 # Extract the first word of "otool", so it can be a program name with args.
8215 set dummy otool; ac_word=$2
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 printf %s "checking for $ac_word... " >&6; }
8218 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8219 then :
8220 printf %s "(cached) " >&6
8221 else case e in #(
8222 e) if test -n "$ac_ct_OTOOL"; then
8223 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228 IFS=$as_save_IFS
8229 case $as_dir in #(((
8230 '') as_dir=./ ;;
8231 */) ;;
8232 *) as_dir=$as_dir/ ;;
8233 esac
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_ac_ct_OTOOL="otool"
8237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8238 break 2
8239 fi
8240 done
8241 done
8242 IFS=$as_save_IFS
8243
8244 fi ;;
8245 esac
8246 fi
8247 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8248 if test -n "$ac_ct_OTOOL"; then
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8250 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8251 else
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 printf "%s\n" "no" >&6; }
8254 fi
8255
8256 if test "x$ac_ct_OTOOL" = x; then
8257 OTOOL=":"
8258 else
8259 case $cross_compiling:$ac_tool_warned in
8260 yes:)
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8262 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8263 ac_tool_warned=yes ;;
8264 esac
8265 OTOOL=$ac_ct_OTOOL
8266 fi
8267 else
8268 OTOOL="$ac_cv_prog_OTOOL"
8269 fi
8270
8271 if test -n "$ac_tool_prefix"; then
8272 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8273 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 printf %s "checking for $ac_word... " >&6; }
8276 if test ${ac_cv_prog_OTOOL64+y}
8277 then :
8278 printf %s "(cached) " >&6
8279 else case e in #(
8280 e) if test -n "$OTOOL64"; then
8281 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8285 do
8286 IFS=$as_save_IFS
8287 case $as_dir in #(((
8288 '') as_dir=./ ;;
8289 */) ;;
8290 *) as_dir=$as_dir/ ;;
8291 esac
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8296 break 2
8297 fi
8298 done
8299 done
8300 IFS=$as_save_IFS
8301
8302 fi ;;
8303 esac
8304 fi
8305 OTOOL64=$ac_cv_prog_OTOOL64
8306 if test -n "$OTOOL64"; then
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8308 printf "%s\n" "$OTOOL64" >&6; }
8309 else
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 printf "%s\n" "no" >&6; }
8312 fi
8313
8314
8315 fi
8316 if test -z "$ac_cv_prog_OTOOL64"; then
8317 ac_ct_OTOOL64=$OTOOL64
8318 # Extract the first word of "otool64", so it can be a program name with args.
8319 set dummy otool64; ac_word=$2
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 printf %s "checking for $ac_word... " >&6; }
8322 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else case e in #(
8326 e) if test -n "$ac_ct_OTOOL64"; then
8327 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332 IFS=$as_save_IFS
8333 case $as_dir in #(((
8334 '') as_dir=./ ;;
8335 */) ;;
8336 *) as_dir=$as_dir/ ;;
8337 esac
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8340 ac_cv_prog_ac_ct_OTOOL64="otool64"
8341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344 done
8345 done
8346 IFS=$as_save_IFS
8347
8348 fi ;;
8349 esac
8350 fi
8351 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8352 if test -n "$ac_ct_OTOOL64"; then
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8354 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8355 else
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 printf "%s\n" "no" >&6; }
8358 fi
8359
8360 if test "x$ac_ct_OTOOL64" = x; then
8361 OTOOL64=":"
8362 else
8363 case $cross_compiling:$ac_tool_warned in
8364 yes:)
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8366 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8367 ac_tool_warned=yes ;;
8368 esac
8369 OTOOL64=$ac_ct_OTOOL64
8370 fi
8371 else
8372 OTOOL64="$ac_cv_prog_OTOOL64"
8373 fi
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8402 printf %s "checking for -single_module linker flag... " >&6; }
8403 if test ${lt_cv_apple_cc_single_mod+y}
8404 then :
8405 printf %s "(cached) " >&6
8406 else case e in #(
8407 e) lt_cv_apple_cc_single_mod=no
8408 if test -z "$LT_MULTI_MODULE"; then
8409 # By default we will add the -single_module flag. You can override
8410 # by either setting the environment variable LT_MULTI_MODULE
8411 # non-empty at configure time, or by adding -multi_module to the
8412 # link flags.
8413 rm -rf libconftest.dylib*
8414 echo "int foo(void){return 1;}" > conftest.c
8415 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8416 -dynamiclib -Wl,-single_module conftest.c" >&5
8417 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8418 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8419 _lt_result=$?
8420 # If there is a non-empty error log, and "single_module"
8421 # appears in it, assume the flag caused a linker warning
8422 if test -s conftest.err && $GREP single_module conftest.err; then
8423 cat conftest.err >&5
8424 # Otherwise, if the output was created with a 0 exit code from
8425 # the compiler, it worked.
8426 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8427 lt_cv_apple_cc_single_mod=yes
8428 else
8429 cat conftest.err >&5
8430 fi
8431 rm -rf libconftest.dylib*
8432 rm -f conftest.*
8433 fi ;;
8434 esac
8435 fi
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8437 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8438
8439 # Feature test to disable chained fixups since it is not
8440 # compatible with '-undefined dynamic_lookup'
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8442 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8443 if test ${lt_cv_support_no_fixup_chains+y}
8444 then :
8445 printf %s "(cached) " >&6
8446 else case e in #(
8447 e) save_LDFLAGS=$LDFLAGS
8448 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451
8452 int
8453 main (void)
8454 {
8455
8456 ;
8457 return 0;
8458 }
8459 _ACEOF
8460 if ac_fn_c_try_link "$LINENO"
8461 then :
8462 lt_cv_support_no_fixup_chains=yes
8463 else case e in #(
8464 e) lt_cv_support_no_fixup_chains=no
8465 ;;
8466 esac
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8469 conftest$ac_exeext conftest.$ac_ext
8470 LDFLAGS=$save_LDFLAGS
8471
8472 ;;
8473 esac
8474 fi
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8476 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8477
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8479 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8480 if test ${lt_cv_ld_exported_symbols_list+y}
8481 then :
8482 printf %s "(cached) " >&6
8483 else case e in #(
8484 e) lt_cv_ld_exported_symbols_list=no
8485 save_LDFLAGS=$LDFLAGS
8486 echo "_main" > conftest.sym
8487 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490
8491 int
8492 main (void)
8493 {
8494
8495 ;
8496 return 0;
8497 }
8498 _ACEOF
8499 if ac_fn_c_try_link "$LINENO"
8500 then :
8501 lt_cv_ld_exported_symbols_list=yes
8502 else case e in #(
8503 e) lt_cv_ld_exported_symbols_list=no ;;
8504 esac
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8507 conftest$ac_exeext conftest.$ac_ext
8508 LDFLAGS=$save_LDFLAGS
8509 ;;
8510 esac
8511 fi
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8513 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8514
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8516 printf %s "checking for -force_load linker flag... " >&6; }
8517 if test ${lt_cv_ld_force_load+y}
8518 then :
8519 printf %s "(cached) " >&6
8520 else case e in #(
8521 e) lt_cv_ld_force_load=no
8522 cat > conftest.c << _LT_EOF
8523 int forced_loaded() { return 2;}
8524 _LT_EOF
8525 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8526 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8527 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8528 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8529 echo "$RANLIB libconftest.a" >&5
8530 $RANLIB libconftest.a 2>&5
8531 cat > conftest.c << _LT_EOF
8532 int main(void) { return 0;}
8533 _LT_EOF
8534 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8535 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8536 _lt_result=$?
8537 if test -s conftest.err && $GREP force_load conftest.err; then
8538 cat conftest.err >&5
8539 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8540 lt_cv_ld_force_load=yes
8541 else
8542 cat conftest.err >&5
8543 fi
8544 rm -f conftest.err libconftest.a conftest conftest.c
8545 rm -rf conftest.dSYM
8546 ;;
8547 esac
8548 fi
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8550 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8551 case $host_os in
8552 rhapsody* | darwin1.[012])
8553 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8554 darwin1.*)
8555 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8556 darwin*)
8557 case $MACOSX_DEPLOYMENT_TARGET,$host in
8558 10.[012],*|,*powerpc*-darwin[5-8]*)
8559 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8560 *)
8561 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8562 if test yes = "$lt_cv_support_no_fixup_chains"; then
8563 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8564 fi
8565 ;;
8566 esac
8567 ;;
8568 esac
8569 if test yes = "$lt_cv_apple_cc_single_mod"; then
8570 _lt_dar_single_mod='$single_module'
8571 fi
8572 _lt_dar_needs_single_mod=no
8573 case $host_os in
8574 rhapsody* | darwin1.*)
8575 _lt_dar_needs_single_mod=yes ;;
8576 darwin*)
8577 # When targeting Mac OS X 10.4 (darwin 8) or later,
8578 # -single_module is the default and -multi_module is unsupported.
8579 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8580 # target any OS version that needs -single_module.
8581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8582 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8583 _lt_dar_needs_single_mod=yes ;;
8584 esac
8585 ;;
8586 esac
8587 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8588 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8589 else
8590 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8591 fi
8592 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8593 _lt_dsymutil='~$DSYMUTIL $lib || :'
8594 else
8595 _lt_dsymutil=
8596 fi
8597 ;;
8598 esac
8599
8600 # func_munge_path_list VARIABLE PATH
8601 # -----------------------------------
8602 # VARIABLE is name of variable containing _space_ separated list of
8603 # directories to be munged by the contents of PATH, which is string
8604 # having a format:
8605 # "DIR[:DIR]:"
8606 # string "DIR[ DIR]" will be prepended to VARIABLE
8607 # ":DIR[:DIR]"
8608 # string "DIR[ DIR]" will be appended to VARIABLE
8609 # "DIRP[:DIRP]::[DIRA:]DIRA"
8610 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8611 # "DIRA[ DIRA]" will be appended to VARIABLE
8612 # "DIR[:DIR]"
8613 # VARIABLE will be replaced by "DIR[ DIR]"
8614 func_munge_path_list ()
8615 {
8616 case x$2 in
8617 x)
8618 ;;
8619 *:)
8620 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8621 ;;
8622 x:*)
8623 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8624 ;;
8625 *::*)
8626 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8627 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8628 ;;
8629 *)
8630 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8631 ;;
8632 esac
8633 }
8634
8635 ac_header= ac_cache=
8636 for ac_item in $ac_header_c_list
8637 do
8638 if test $ac_cache; then
8639 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8640 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8641 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8642 fi
8643 ac_header= ac_cache=
8644 elif test $ac_header; then
8645 ac_cache=$ac_item
8646 else
8647 ac_header=$ac_item
8648 fi
8649 done
8650
8651
8652
8653
8654
8655
8656
8657
8658 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8659 then :
8660
8661 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8662
8663 fi
8664 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8665 "
8666 if test "x$ac_cv_header_dlfcn_h" = xyes
8667 then :
8668 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8669
8670 fi
8671
8672
8673
8674
8675
8676 # Set options
8677
8678
8679
8680 enable_dlopen=no
8681
8682
8683 enable_win32_dll=no
8684
8685
8686 # Check whether --enable-shared was given.
8687 if test ${enable_shared+y}
8688 then :
8689 enableval=$enable_shared; p=${PACKAGE-default}
8690 case $enableval in
8691 yes) enable_shared=yes ;;
8692 no) enable_shared=no ;;
8693 *)
8694 enable_shared=no
8695 # Look at the argument we got. We use all the common list separators.
8696 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8697 for pkg in $enableval; do
8698 IFS=$lt_save_ifs
8699 if test "X$pkg" = "X$p"; then
8700 enable_shared=yes
8701 fi
8702 done
8703 IFS=$lt_save_ifs
8704 ;;
8705 esac
8706 else case e in #(
8707 e) enable_shared=yes ;;
8708 esac
8709 fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719 # Check whether --enable-static was given.
8720 if test ${enable_static+y}
8721 then :
8722 enableval=$enable_static; p=${PACKAGE-default}
8723 case $enableval in
8724 yes) enable_static=yes ;;
8725 no) enable_static=no ;;
8726 *)
8727 enable_static=no
8728 # Look at the argument we got. We use all the common list separators.
8729 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8730 for pkg in $enableval; do
8731 IFS=$lt_save_ifs
8732 if test "X$pkg" = "X$p"; then
8733 enable_static=yes
8734 fi
8735 done
8736 IFS=$lt_save_ifs
8737 ;;
8738 esac
8739 else case e in #(
8740 e) enable_static=yes ;;
8741 esac
8742 fi
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 # Check whether --enable-pic was given.
8753 if test ${enable_pic+y}
8754 then :
8755 enableval=$enable_pic; lt_p=${PACKAGE-default}
8756 case $enableval in
8757 yes|no) pic_mode=$enableval ;;
8758 *)
8759 pic_mode=default
8760 # Look at the argument we got. We use all the common list separators.
8761 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8762 for lt_pkg in $enableval; do
8763 IFS=$lt_save_ifs
8764 if test "X$lt_pkg" = "X$lt_p"; then
8765 pic_mode=yes
8766 fi
8767 done
8768 IFS=$lt_save_ifs
8769 ;;
8770 esac
8771 else case e in #(
8772 e) # Check whether --with-pic was given.
8773 if test ${with_pic+y}
8774 then :
8775 withval=$with_pic; lt_p=${PACKAGE-default}
8776 case $withval in
8777 yes|no) pic_mode=$withval ;;
8778 *)
8779 pic_mode=default
8780 # Look at the argument we got. We use all the common list separators.
8781 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8782 for lt_pkg in $withval; do
8783 IFS=$lt_save_ifs
8784 if test "X$lt_pkg" = "X$lt_p"; then
8785 pic_mode=yes
8786 fi
8787 done
8788 IFS=$lt_save_ifs
8789 ;;
8790 esac
8791 else case e in #(
8792 e) pic_mode=default ;;
8793 esac
8794 fi
8795
8796 ;;
8797 esac
8798 fi
8799
8800
8801
8802
8803
8804
8805
8806
8807 # Check whether --enable-fast-install was given.
8808 if test ${enable_fast_install+y}
8809 then :
8810 enableval=$enable_fast_install; p=${PACKAGE-default}
8811 case $enableval in
8812 yes) enable_fast_install=yes ;;
8813 no) enable_fast_install=no ;;
8814 *)
8815 enable_fast_install=no
8816 # Look at the argument we got. We use all the common list separators.
8817 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8818 for pkg in $enableval; do
8819 IFS=$lt_save_ifs
8820 if test "X$pkg" = "X$p"; then
8821 enable_fast_install=yes
8822 fi
8823 done
8824 IFS=$lt_save_ifs
8825 ;;
8826 esac
8827 else case e in #(
8828 e) enable_fast_install=yes ;;
8829 esac
8830 fi
8831
8832
8833
8834
8835
8836
8837
8838
8839 shared_archive_member_spec=
8840 case $host,$enable_shared in
8841 power*-*-aix[5-9]*,yes)
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8843 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8844 # Check whether --enable-aix-soname was given.
8845 if test ${enable_aix_soname+y}
8846 then :
8847 enableval=$enable_aix_soname; case $enableval in
8848 aix|svr4|both)
8849 ;;
8850 *)
8851 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8852 ;;
8853 esac
8854 lt_cv_with_aix_soname=$enable_aix_soname
8855 else case e in #(
8856 e) # Check whether --with-aix-soname was given.
8857 if test ${with_aix_soname+y}
8858 then :
8859 withval=$with_aix_soname; case $withval in
8860 aix|svr4|both)
8861 ;;
8862 *)
8863 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8864 ;;
8865 esac
8866 lt_cv_with_aix_soname=$with_aix_soname
8867 else case e in #(
8868 e) if test ${lt_cv_with_aix_soname+y}
8869 then :
8870 printf %s "(cached) " >&6
8871 else case e in #(
8872 e) lt_cv_with_aix_soname=aix ;;
8873 esac
8874 fi
8875 ;;
8876 esac
8877 fi
8878
8879 enable_aix_soname=$lt_cv_with_aix_soname ;;
8880 esac
8881 fi
8882
8883 with_aix_soname=$enable_aix_soname
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8885 printf "%s\n" "$with_aix_soname" >&6; }
8886 if test aix != "$with_aix_soname"; then
8887 # For the AIX way of multilib, we name the shared archive member
8888 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8889 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8890 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8891 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8892 if test 64 = "${OBJECT_MODE-32}"; then
8893 shared_archive_member_spec=shr_64
8894 else
8895 shared_archive_member_spec=shr
8896 fi
8897 fi
8898 ;;
8899 *)
8900 with_aix_soname=aix
8901 ;;
8902 esac
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913 # This can be used to rebuild libtool when needed
8914 LIBTOOL_DEPS=$ltmain
8915
8916 # Always use our own libtool.
8917 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948 test -z "$LN_S" && LN_S="ln -s"
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963 if test -n "${ZSH_VERSION+set}"; then
8964 setopt NO_GLOB_SUBST
8965 fi
8966
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8968 printf %s "checking for objdir... " >&6; }
8969 if test ${lt_cv_objdir+y}
8970 then :
8971 printf %s "(cached) " >&6
8972 else case e in #(
8973 e) rm -f .libs 2>/dev/null
8974 mkdir .libs 2>/dev/null
8975 if test -d .libs; then
8976 lt_cv_objdir=.libs
8977 else
8978 # MS-DOS does not allow filenames that begin with a dot.
8979 lt_cv_objdir=_libs
8980 fi
8981 rmdir .libs 2>/dev/null ;;
8982 esac
8983 fi
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8985 printf "%s\n" "$lt_cv_objdir" >&6; }
8986 objdir=$lt_cv_objdir
8987
8988
8989
8990
8991
8992 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8993
8994
8995
8996
8997 case $host_os in
8998 aix3*)
8999 # AIX sometimes has problems with the GCC collect2 program. For some
9000 # reason, if we set the COLLECT_NAMES environment variable, the problems
9001 # vanish in a puff of smoke.
9002 if test set != "${COLLECT_NAMES+set}"; then
9003 COLLECT_NAMES=
9004 export COLLECT_NAMES
9005 fi
9006 ;;
9007 esac
9008
9009 # Global variables:
9010 ofile=libtool
9011 can_build_shared=yes
9012
9013 # All known linkers require a '.a' archive for static linking (except MSVC and
9014 # ICC, which need '.lib').
9015 libext=a
9016
9017 with_gnu_ld=$lt_cv_prog_gnu_ld
9018
9019 old_CC=$CC
9020 old_CFLAGS=$CFLAGS
9021
9022 # Set sane defaults for various variables
9023 test -z "$CC" && CC=cc
9024 test -z "$LTCC" && LTCC=$CC
9025 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9026 test -z "$LD" && LD=ld
9027 test -z "$ac_objext" && ac_objext=o
9028
9029 func_cc_basename $compiler
9030 cc_basename=$func_cc_basename_result
9031
9032
9033 # Only perform the check for file, if the check method requires it
9034 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9035 case $deplibs_check_method in
9036 file_magic*)
9037 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9039 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9040 if test ${lt_cv_path_MAGIC_CMD+y}
9041 then :
9042 printf %s "(cached) " >&6
9043 else case e in #(
9044 e) case $MAGIC_CMD in
9045 [\\/*] | ?:[\\/]*)
9046 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9047 ;;
9048 *)
9049 lt_save_MAGIC_CMD=$MAGIC_CMD
9050 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9051 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9052 for ac_dir in $ac_dummy; do
9053 IFS=$lt_save_ifs
9054 test -z "$ac_dir" && ac_dir=.
9055 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9056 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9057 if test -n "$file_magic_test_file"; then
9058 case $deplibs_check_method in
9059 "file_magic "*)
9060 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9061 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9062 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9063 $EGREP "$file_magic_regex" > /dev/null; then
9064 :
9065 else
9066 cat <<_LT_EOF 1>&2
9067
9068 *** Warning: the command libtool uses to detect shared libraries,
9069 *** $file_magic_cmd, produces output that libtool cannot recognize.
9070 *** The result is that libtool may fail to recognize shared libraries
9071 *** as such. This will affect the creation of libtool libraries that
9072 *** depend on shared libraries, but programs linked with such libtool
9073 *** libraries will work regardless of this problem. Nevertheless, you
9074 *** may want to report the problem to your system manager and/or to
9075 *** [email protected]
9076
9077 _LT_EOF
9078 fi ;;
9079 esac
9080 fi
9081 break
9082 fi
9083 done
9084 IFS=$lt_save_ifs
9085 MAGIC_CMD=$lt_save_MAGIC_CMD
9086 ;;
9087 esac ;;
9088 esac
9089 fi
9090
9091 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9092 if test -n "$MAGIC_CMD"; then
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9094 printf "%s\n" "$MAGIC_CMD" >&6; }
9095 else
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 printf "%s\n" "no" >&6; }
9098 fi
9099
9100
9101
9102
9103
9104 if test -z "$lt_cv_path_MAGIC_CMD"; then
9105 if test -n "$ac_tool_prefix"; then
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9107 printf %s "checking for file... " >&6; }
9108 if test ${lt_cv_path_MAGIC_CMD+y}
9109 then :
9110 printf %s "(cached) " >&6
9111 else case e in #(
9112 e) case $MAGIC_CMD in
9113 [\\/*] | ?:[\\/]*)
9114 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9115 ;;
9116 *)
9117 lt_save_MAGIC_CMD=$MAGIC_CMD
9118 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9120 for ac_dir in $ac_dummy; do
9121 IFS=$lt_save_ifs
9122 test -z "$ac_dir" && ac_dir=.
9123 if test -f "$ac_dir/file"; then
9124 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9125 if test -n "$file_magic_test_file"; then
9126 case $deplibs_check_method in
9127 "file_magic "*)
9128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9129 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9131 $EGREP "$file_magic_regex" > /dev/null; then
9132 :
9133 else
9134 cat <<_LT_EOF 1>&2
9135
9136 *** Warning: the command libtool uses to detect shared libraries,
9137 *** $file_magic_cmd, produces output that libtool cannot recognize.
9138 *** The result is that libtool may fail to recognize shared libraries
9139 *** as such. This will affect the creation of libtool libraries that
9140 *** depend on shared libraries, but programs linked with such libtool
9141 *** libraries will work regardless of this problem. Nevertheless, you
9142 *** may want to report the problem to your system manager and/or to
9143 *** [email protected]
9144
9145 _LT_EOF
9146 fi ;;
9147 esac
9148 fi
9149 break
9150 fi
9151 done
9152 IFS=$lt_save_ifs
9153 MAGIC_CMD=$lt_save_MAGIC_CMD
9154 ;;
9155 esac ;;
9156 esac
9157 fi
9158
9159 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9160 if test -n "$MAGIC_CMD"; then
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9162 printf "%s\n" "$MAGIC_CMD" >&6; }
9163 else
9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165 printf "%s\n" "no" >&6; }
9166 fi
9167
9168
9169 else
9170 MAGIC_CMD=:
9171 fi
9172 fi
9173
9174 fi
9175 ;;
9176 esac
9177
9178 # Use C for the default configuration in the libtool script
9179
9180 lt_save_CC=$CC
9181 ac_ext=c
9182 ac_cpp='$CPP $CPPFLAGS'
9183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9186
9187
9188 # Source file extension for C test sources.
9189 ac_ext=c
9190
9191 # Object file extension for compiled C test sources.
9192 objext=o
9193 objext=$objext
9194
9195 # Code to be used in simple compile tests
9196 lt_simple_compile_test_code="int some_variable = 0;"
9197
9198 # Code to be used in simple link tests
9199 lt_simple_link_test_code='int main(void){return(0);}'
9200
9201
9202
9203
9204
9205
9206
9207 # If no C compiler was specified, use CC.
9208 LTCC=${LTCC-"$CC"}
9209
9210 # If no C compiler flags were specified, use CFLAGS.
9211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9212
9213 # Allow CC to be a program name with arguments.
9214 compiler=$CC
9215
9216 # Save the default compiler, since it gets overwritten when the other
9217 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9218 compiler_DEFAULT=$CC
9219
9220 # save warnings/boilerplate of simple test code
9221 ac_outfile=conftest.$ac_objext
9222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9224 _lt_compiler_boilerplate=`cat conftest.err`
9225 $RM conftest*
9226
9227 ac_outfile=conftest.$ac_objext
9228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9230 _lt_linker_boilerplate=`cat conftest.err`
9231 $RM -r conftest*
9232
9233
9234 ## CAVEAT EMPTOR:
9235 ## There is no encapsulation within the following macros, do not change
9236 ## the running order or otherwise move them around unless you know exactly
9237 ## what you are doing...
9238 if test -n "$compiler"; then
9239
9240 lt_prog_compiler_no_builtin_flag=
9241
9242 if test yes = "$GCC"; then
9243 case $cc_basename in
9244 nvcc*)
9245 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9246 *)
9247 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9248 esac
9249
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9251 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9252 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9253 then :
9254 printf %s "(cached) " >&6
9255 else case e in #(
9256 e) lt_cv_prog_compiler_rtti_exceptions=no
9257 ac_outfile=conftest.$ac_objext
9258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9259 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9260 # Insert the option either (1) after the last *FLAGS variable, or
9261 # (2) before a word containing "conftest.", or (3) at the end.
9262 # Note that $ac_compile itself does not contain backslashes and begins
9263 # with a dollar sign (not a hyphen), so the echo should work correctly.
9264 # The option is referenced via a variable to avoid confusing sed.
9265 lt_compile=`echo "$ac_compile" | $SED \
9266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268 -e 's:$: $lt_compiler_flag:'`
9269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9270 (eval "$lt_compile" 2>conftest.err)
9271 ac_status=$?
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 if (exit $ac_status) && test -s "$ac_outfile"; then
9275 # The compiler can only warn and ignore the option if not recognized
9276 # So say no if there are warnings other than the usual output.
9277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9280 lt_cv_prog_compiler_rtti_exceptions=yes
9281 fi
9282 fi
9283 $RM conftest*
9284 ;;
9285 esac
9286 fi
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9288 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9289
9290 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9291 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9292 else
9293 :
9294 fi
9295
9296 fi
9297
9298
9299
9300
9301
9302
9303 lt_prog_compiler_wl=
9304 lt_prog_compiler_pic=
9305 lt_prog_compiler_static=
9306
9307
9308 if test yes = "$GCC"; then
9309 lt_prog_compiler_wl='-Wl,'
9310 lt_prog_compiler_static='-static'
9311
9312 case $host_os in
9313 aix*)
9314 # All AIX code is PIC.
9315 if test ia64 = "$host_cpu"; then
9316 # AIX 5 now supports IA64 processor
9317 lt_prog_compiler_static='-Bstatic'
9318 fi
9319 lt_prog_compiler_pic='-fPIC'
9320 ;;
9321
9322 amigaos*)
9323 case $host_cpu in
9324 powerpc)
9325 # see comment about AmigaOS4 .so support
9326 lt_prog_compiler_pic='-fPIC'
9327 ;;
9328 m68k)
9329 # FIXME: we need at least 68020 code to build shared libraries, but
9330 # adding the '-m68020' flag to GCC prevents building anything better,
9331 # like '-m68040'.
9332 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9333 ;;
9334 esac
9335 ;;
9336
9337 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9338 # PIC is the default for these OSes.
9339 ;;
9340
9341 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9342 # This hack is so that the source file can tell whether it is being
9343 # built for inclusion in a dll (and should export symbols for example).
9344 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9345 # (--disable-auto-import) libraries
9346 lt_prog_compiler_pic='-DDLL_EXPORT'
9347 case $host_os in
9348 os2*)
9349 lt_prog_compiler_static='$wl-static'
9350 ;;
9351 esac
9352 ;;
9353
9354 darwin* | rhapsody*)
9355 # PIC is the default on this platform
9356 # Common symbols not allowed in MH_DYLIB files
9357 lt_prog_compiler_pic='-fno-common'
9358 ;;
9359
9360 haiku*)
9361 # PIC is the default for Haiku.
9362 # The "-static" flag exists, but is broken.
9363 lt_prog_compiler_static=
9364 ;;
9365
9366 hpux*)
9367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9369 # sets the default TLS model and affects inlining.
9370 case $host_cpu in
9371 hppa*64*)
9372 # +Z the default
9373 ;;
9374 *)
9375 lt_prog_compiler_pic='-fPIC'
9376 ;;
9377 esac
9378 ;;
9379
9380 interix[3-9]*)
9381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9382 # Instead, we relocate shared libraries at runtime.
9383 ;;
9384
9385 msdosdjgpp*)
9386 # Just because we use GCC doesn't mean we suddenly get shared libraries
9387 # on systems that don't support them.
9388 lt_prog_compiler_can_build_shared=no
9389 enable_shared=no
9390 ;;
9391
9392 *nto* | *qnx*)
9393 # QNX uses GNU C++, but need to define -shared option too, otherwise
9394 # it will coredump.
9395 lt_prog_compiler_pic='-fPIC -shared'
9396 ;;
9397
9398 sysv4*MP*)
9399 if test -d /usr/nec; then
9400 lt_prog_compiler_pic=-Kconform_pic
9401 fi
9402 ;;
9403
9404 *)
9405 lt_prog_compiler_pic='-fPIC'
9406 ;;
9407 esac
9408
9409 case $cc_basename in
9410 nvcc*) # Cuda Compiler Driver 2.2
9411 lt_prog_compiler_wl='-Xlinker '
9412 if test -n "$lt_prog_compiler_pic"; then
9413 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9414 fi
9415 ;;
9416 esac
9417 else
9418 # PORTME Check for flag to pass linker flags through the system compiler.
9419 case $host_os in
9420 aix*)
9421 lt_prog_compiler_wl='-Wl,'
9422 if test ia64 = "$host_cpu"; then
9423 # AIX 5 now supports IA64 processor
9424 lt_prog_compiler_static='-Bstatic'
9425 else
9426 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9427 fi
9428 ;;
9429
9430 darwin* | rhapsody*)
9431 # PIC is the default on this platform
9432 # Common symbols not allowed in MH_DYLIB files
9433 lt_prog_compiler_pic='-fno-common'
9434 case $cc_basename in
9435 nagfor*)
9436 # NAG Fortran compiler
9437 lt_prog_compiler_wl='-Wl,-Wl,,'
9438 lt_prog_compiler_pic='-PIC'
9439 lt_prog_compiler_static='-Bstatic'
9440 ;;
9441 esac
9442 ;;
9443
9444 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9445 # This hack is so that the source file can tell whether it is being
9446 # built for inclusion in a dll (and should export symbols for example).
9447 lt_prog_compiler_pic='-DDLL_EXPORT'
9448 case $host_os in
9449 os2*)
9450 lt_prog_compiler_static='$wl-static'
9451 ;;
9452 esac
9453 ;;
9454
9455 hpux9* | hpux10* | hpux11*)
9456 lt_prog_compiler_wl='-Wl,'
9457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9458 # not for PA HP-UX.
9459 case $host_cpu in
9460 hppa*64*|ia64*)
9461 # +Z the default
9462 ;;
9463 *)
9464 lt_prog_compiler_pic='+Z'
9465 ;;
9466 esac
9467 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9468 lt_prog_compiler_static='$wl-a ${wl}archive'
9469 ;;
9470
9471 irix5* | irix6* | nonstopux*)
9472 lt_prog_compiler_wl='-Wl,'
9473 # PIC (with -KPIC) is the default.
9474 lt_prog_compiler_static='-non_shared'
9475 ;;
9476
9477 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9478 case $cc_basename in
9479 # old Intel for x86_64, which still supported -KPIC.
9480 ecc*)
9481 lt_prog_compiler_wl='-Wl,'
9482 lt_prog_compiler_pic='-KPIC'
9483 lt_prog_compiler_static='-static'
9484 ;;
9485 *flang* | ftn | f18* | f95*)
9486 # Flang compiler.
9487 lt_prog_compiler_wl='-Wl,'
9488 lt_prog_compiler_pic='-fPIC'
9489 lt_prog_compiler_static='-static'
9490 ;;
9491 # icc used to be incompatible with GCC.
9492 # ICC 10 doesn't accept -KPIC any more.
9493 icc* | ifort*)
9494 lt_prog_compiler_wl='-Wl,'
9495 lt_prog_compiler_pic='-fPIC'
9496 lt_prog_compiler_static='-static'
9497 ;;
9498 # Lahey Fortran 8.1.
9499 lf95*)
9500 lt_prog_compiler_wl='-Wl,'
9501 lt_prog_compiler_pic='--shared'
9502 lt_prog_compiler_static='--static'
9503 ;;
9504 nagfor*)
9505 # NAG Fortran compiler
9506 lt_prog_compiler_wl='-Wl,-Wl,,'
9507 lt_prog_compiler_pic='-PIC'
9508 lt_prog_compiler_static='-Bstatic'
9509 ;;
9510 tcc*)
9511 # Fabrice Bellard et al's Tiny C Compiler
9512 lt_prog_compiler_wl='-Wl,'
9513 lt_prog_compiler_pic='-fPIC'
9514 lt_prog_compiler_static='-static'
9515 ;;
9516 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9517 # Portland Group compilers (*not* the Pentium gcc compiler,
9518 # which looks to be a dead project)
9519 lt_prog_compiler_wl='-Wl,'
9520 lt_prog_compiler_pic='-fpic'
9521 lt_prog_compiler_static='-Bstatic'
9522 ;;
9523 ccc*)
9524 lt_prog_compiler_wl='-Wl,'
9525 # All Alpha code is PIC.
9526 lt_prog_compiler_static='-non_shared'
9527 ;;
9528 xl* | bgxl* | bgf* | mpixl*)
9529 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-qpic'
9532 lt_prog_compiler_static='-qstaticlink'
9533 ;;
9534 *)
9535 case `$CC -V 2>&1 | $SED 5q` in
9536 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9537 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9538 lt_prog_compiler_pic='-KPIC'
9539 lt_prog_compiler_static='-Bstatic'
9540 lt_prog_compiler_wl=''
9541 ;;
9542 *Sun\ F* | *Sun*Fortran*)
9543 lt_prog_compiler_pic='-KPIC'
9544 lt_prog_compiler_static='-Bstatic'
9545 lt_prog_compiler_wl='-Qoption ld '
9546 ;;
9547 *Sun\ C*)
9548 # Sun C 5.9
9549 lt_prog_compiler_pic='-KPIC'
9550 lt_prog_compiler_static='-Bstatic'
9551 lt_prog_compiler_wl='-Wl,'
9552 ;;
9553 *Intel*\ [CF]*Compiler*)
9554 lt_prog_compiler_wl='-Wl,'
9555 lt_prog_compiler_pic='-fPIC'
9556 lt_prog_compiler_static='-static'
9557 ;;
9558 *Portland\ Group*)
9559 lt_prog_compiler_wl='-Wl,'
9560 lt_prog_compiler_pic='-fpic'
9561 lt_prog_compiler_static='-Bstatic'
9562 ;;
9563 esac
9564 ;;
9565 esac
9566 ;;
9567
9568 newsos6)
9569 lt_prog_compiler_pic='-KPIC'
9570 lt_prog_compiler_static='-Bstatic'
9571 ;;
9572
9573 *-mlibc)
9574 lt_prog_compiler_wl='-Wl,'
9575 lt_prog_compiler_pic='-fPIC'
9576 lt_prog_compiler_static='-static'
9577 ;;
9578
9579 *nto* | *qnx*)
9580 # QNX uses GNU C++, but need to define -shared option too, otherwise
9581 # it will coredump.
9582 lt_prog_compiler_pic='-fPIC -shared'
9583 ;;
9584
9585 osf3* | osf4* | osf5*)
9586 lt_prog_compiler_wl='-Wl,'
9587 # All OSF/1 code is PIC.
9588 lt_prog_compiler_static='-non_shared'
9589 ;;
9590
9591 rdos*)
9592 lt_prog_compiler_static='-non_shared'
9593 ;;
9594
9595 serenity*)
9596 ;;
9597
9598 solaris*)
9599 lt_prog_compiler_pic='-KPIC'
9600 lt_prog_compiler_static='-Bstatic'
9601 case $cc_basename in
9602 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9603 lt_prog_compiler_wl='-Qoption ld ';;
9604 *)
9605 lt_prog_compiler_wl='-Wl,';;
9606 esac
9607 ;;
9608
9609 sunos4*)
9610 lt_prog_compiler_wl='-Qoption ld '
9611 lt_prog_compiler_pic='-PIC'
9612 lt_prog_compiler_static='-Bstatic'
9613 ;;
9614
9615 sysv4 | sysv4.2uw2* | sysv4.3*)
9616 lt_prog_compiler_wl='-Wl,'
9617 lt_prog_compiler_pic='-KPIC'
9618 lt_prog_compiler_static='-Bstatic'
9619 ;;
9620
9621 sysv4*MP*)
9622 if test -d /usr/nec; then
9623 lt_prog_compiler_pic='-Kconform_pic'
9624 lt_prog_compiler_static='-Bstatic'
9625 fi
9626 ;;
9627
9628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9629 lt_prog_compiler_wl='-Wl,'
9630 lt_prog_compiler_pic='-KPIC'
9631 lt_prog_compiler_static='-Bstatic'
9632 ;;
9633
9634 unicos*)
9635 lt_prog_compiler_wl='-Wl,'
9636 lt_prog_compiler_can_build_shared=no
9637 ;;
9638
9639 uts4*)
9640 lt_prog_compiler_pic='-pic'
9641 lt_prog_compiler_static='-Bstatic'
9642 ;;
9643
9644 *)
9645 lt_prog_compiler_can_build_shared=no
9646 ;;
9647 esac
9648 fi
9649
9650 case $host_os in
9651 # For platforms that do not support PIC, -DPIC is meaningless:
9652 *djgpp*)
9653 lt_prog_compiler_pic=
9654 ;;
9655 *)
9656 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9657 ;;
9658 esac
9659
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9661 printf %s "checking for $compiler option to produce PIC... " >&6; }
9662 if test ${lt_cv_prog_compiler_pic+y}
9663 then :
9664 printf %s "(cached) " >&6
9665 else case e in #(
9666 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9667 esac
9668 fi
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9670 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9671 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9672
9673 #
9674 # Check to make sure the PIC flag actually works.
9675 #
9676 if test -n "$lt_prog_compiler_pic"; then
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9678 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9679 if test ${lt_cv_prog_compiler_pic_works+y}
9680 then :
9681 printf %s "(cached) " >&6
9682 else case e in #(
9683 e) lt_cv_prog_compiler_pic_works=no
9684 ac_outfile=conftest.$ac_objext
9685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9686 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9687 # Insert the option either (1) after the last *FLAGS variable, or
9688 # (2) before a word containing "conftest.", or (3) at the end.
9689 # Note that $ac_compile itself does not contain backslashes and begins
9690 # with a dollar sign (not a hyphen), so the echo should work correctly.
9691 # The option is referenced via a variable to avoid confusing sed.
9692 lt_compile=`echo "$ac_compile" | $SED \
9693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9695 -e 's:$: $lt_compiler_flag:'`
9696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9697 (eval "$lt_compile" 2>conftest.err)
9698 ac_status=$?
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 if (exit $ac_status) && test -s "$ac_outfile"; then
9702 # The compiler can only warn and ignore the option if not recognized
9703 # So say no if there are warnings other than the usual output.
9704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9707 lt_cv_prog_compiler_pic_works=yes
9708 fi
9709 fi
9710 $RM conftest*
9711 ;;
9712 esac
9713 fi
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9715 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9716
9717 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9718 case $lt_prog_compiler_pic in
9719 "" | " "*) ;;
9720 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9721 esac
9722 else
9723 lt_prog_compiler_pic=
9724 lt_prog_compiler_can_build_shared=no
9725 fi
9726
9727 fi
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739 #
9740 # Check to make sure the static flag actually works.
9741 #
9742 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9744 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9745 if test ${lt_cv_prog_compiler_static_works+y}
9746 then :
9747 printf %s "(cached) " >&6
9748 else case e in #(
9749 e) lt_cv_prog_compiler_static_works=no
9750 save_LDFLAGS=$LDFLAGS
9751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9752 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9754 # The linker can only warn and ignore the option if not recognized
9755 # So say no if there are warnings
9756 if test -s conftest.err; then
9757 # Append any errors to the config.log.
9758 cat conftest.err 1>&5
9759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9761 if diff conftest.exp conftest.er2 >/dev/null; then
9762 lt_cv_prog_compiler_static_works=yes
9763 fi
9764 else
9765 lt_cv_prog_compiler_static_works=yes
9766 fi
9767 fi
9768 $RM -r conftest*
9769 LDFLAGS=$save_LDFLAGS
9770 ;;
9771 esac
9772 fi
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9774 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9775
9776 if test yes = "$lt_cv_prog_compiler_static_works"; then
9777 :
9778 else
9779 lt_prog_compiler_static=
9780 fi
9781
9782
9783
9784
9785
9786
9787
9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9789 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9790 if test ${lt_cv_prog_compiler_c_o+y}
9791 then :
9792 printf %s "(cached) " >&6
9793 else case e in #(
9794 e) lt_cv_prog_compiler_c_o=no
9795 $RM -r conftest 2>/dev/null
9796 mkdir conftest
9797 cd conftest
9798 mkdir out
9799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9800
9801 lt_compiler_flag="-o out/conftest2.$ac_objext"
9802 # Insert the option either (1) after the last *FLAGS variable, or
9803 # (2) before a word containing "conftest.", or (3) at the end.
9804 # Note that $ac_compile itself does not contain backslashes and begins
9805 # with a dollar sign (not a hyphen), so the echo should work correctly.
9806 lt_compile=`echo "$ac_compile" | $SED \
9807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9809 -e 's:$: $lt_compiler_flag:'`
9810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9811 (eval "$lt_compile" 2>out/conftest.err)
9812 ac_status=$?
9813 cat out/conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9816 then
9817 # The compiler can only warn and ignore the option if not recognized
9818 # So say no if there are warnings
9819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9822 lt_cv_prog_compiler_c_o=yes
9823 fi
9824 fi
9825 chmod u+w . 2>&5
9826 $RM conftest*
9827 # SGI C++ compiler will create directory out/ii_files/ for
9828 # template instantiation
9829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9830 $RM out/* && rmdir out
9831 cd ..
9832 $RM -r conftest
9833 $RM conftest*
9834 ;;
9835 esac
9836 fi
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9838 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9839
9840
9841
9842
9843
9844
9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9846 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9847 if test ${lt_cv_prog_compiler_c_o+y}
9848 then :
9849 printf %s "(cached) " >&6
9850 else case e in #(
9851 e) lt_cv_prog_compiler_c_o=no
9852 $RM -r conftest 2>/dev/null
9853 mkdir conftest
9854 cd conftest
9855 mkdir out
9856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9857
9858 lt_compiler_flag="-o out/conftest2.$ac_objext"
9859 # Insert the option either (1) after the last *FLAGS variable, or
9860 # (2) before a word containing "conftest.", or (3) at the end.
9861 # Note that $ac_compile itself does not contain backslashes and begins
9862 # with a dollar sign (not a hyphen), so the echo should work correctly.
9863 lt_compile=`echo "$ac_compile" | $SED \
9864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9866 -e 's:$: $lt_compiler_flag:'`
9867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9868 (eval "$lt_compile" 2>out/conftest.err)
9869 ac_status=$?
9870 cat out/conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9873 then
9874 # The compiler can only warn and ignore the option if not recognized
9875 # So say no if there are warnings
9876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9879 lt_cv_prog_compiler_c_o=yes
9880 fi
9881 fi
9882 chmod u+w . 2>&5
9883 $RM conftest*
9884 # SGI C++ compiler will create directory out/ii_files/ for
9885 # template instantiation
9886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9887 $RM out/* && rmdir out
9888 cd ..
9889 $RM -r conftest
9890 $RM conftest*
9891 ;;
9892 esac
9893 fi
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9895 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9896
9897
9898
9899
9900 hard_links=nottested
9901 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9902 # do not overwrite the value of need_locks provided by the user
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9904 printf %s "checking if we can lock with hard links... " >&6; }
9905 hard_links=yes
9906 $RM conftest*
9907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9908 touch conftest.a
9909 ln conftest.a conftest.b 2>&5 || hard_links=no
9910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9912 printf "%s\n" "$hard_links" >&6; }
9913 if test no = "$hard_links"; then
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9915 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9916 need_locks=warn
9917 fi
9918 else
9919 need_locks=no
9920 fi
9921
9922
9923
9924
9925
9926
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9928 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9929
9930 runpath_var=
9931 allow_undefined_flag=
9932 always_export_symbols=no
9933 archive_cmds=
9934 archive_expsym_cmds=
9935 compiler_needs_object=no
9936 enable_shared_with_static_runtimes=no
9937 export_dynamic_flag_spec=
9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9939 hardcode_automatic=no
9940 hardcode_direct=no
9941 hardcode_direct_absolute=no
9942 hardcode_libdir_flag_spec=
9943 hardcode_libdir_separator=
9944 hardcode_minus_L=no
9945 hardcode_shlibpath_var=unsupported
9946 inherit_rpath=no
9947 link_all_deplibs=unknown
9948 module_cmds=
9949 module_expsym_cmds=
9950 old_archive_from_new_cmds=
9951 old_archive_from_expsyms_cmds=
9952 thread_safe_flag_spec=
9953 whole_archive_flag_spec=
9954 # include_expsyms should be a list of space-separated symbols to be *always*
9955 # included in the symbol list
9956 include_expsyms=
9957 # exclude_expsyms can be an extended regexp of symbols to exclude
9958 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9959 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9960 # as well as any symbol that contains 'd'.
9961 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9963 # platforms (ab)use it in PIC code, but their linkers get confused if
9964 # the symbol is explicitly referenced. Since portable code cannot
9965 # rely on this symbol name, it's probably fine to never include it in
9966 # preloaded symbol tables.
9967 # Exclude shared library initialization/finalization symbols.
9968 extract_expsyms_cmds=
9969
9970 case $host_os in
9971 cygwin* | mingw* | windows* | pw32* | cegcc*)
9972 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9973 # When not using gcc, we currently assume that we are using
9974 # Microsoft Visual C++ or Intel C++ Compiler.
9975 if test yes != "$GCC"; then
9976 with_gnu_ld=no
9977 fi
9978 ;;
9979 interix*)
9980 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9981 with_gnu_ld=yes
9982 ;;
9983 esac
9984
9985 ld_shlibs=yes
9986
9987 # On some targets, GNU ld is compatible enough with the native linker
9988 # that we're better off using the native interface for both.
9989 lt_use_gnu_ld_interface=no
9990 if test yes = "$with_gnu_ld"; then
9991 case $host_os in
9992 aix*)
9993 # The AIX port of GNU ld has always aspired to compatibility
9994 # with the native linker. However, as the warning in the GNU ld
9995 # block says, versions before 2.19.5* couldn't really create working
9996 # shared libraries, regardless of the interface used.
9997 case `$LD -v 2>&1` in
9998 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9999 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10000 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10001 *)
10002 lt_use_gnu_ld_interface=yes
10003 ;;
10004 esac
10005 ;;
10006 *)
10007 lt_use_gnu_ld_interface=yes
10008 ;;
10009 esac
10010 fi
10011
10012 if test yes = "$lt_use_gnu_ld_interface"; then
10013 # If archive_cmds runs LD, not CC, wlarc should be empty
10014 wlarc='$wl'
10015
10016 # Set some defaults for GNU ld with shared library support. These
10017 # are reset later if shared libraries are not supported. Putting them
10018 # here allows them to be overridden if necessary.
10019 runpath_var=LD_RUN_PATH
10020 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10021 export_dynamic_flag_spec='$wl--export-dynamic'
10022 # ancient GNU ld didn't support --whole-archive et. al.
10023 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10024 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10025 else
10026 whole_archive_flag_spec=
10027 fi
10028 supports_anon_versioning=no
10029 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10030 *GNU\ gold*) supports_anon_versioning=yes ;;
10031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10034 *\ 2.11.*) ;; # other 2.11 versions
10035 *) supports_anon_versioning=yes ;;
10036 esac
10037
10038 # See if GNU ld supports shared libraries.
10039 case $host_os in
10040 aix[3-9]*)
10041 # On AIX/PPC, the GNU linker is very broken
10042 if test ia64 != "$host_cpu"; then
10043 ld_shlibs=no
10044 cat <<_LT_EOF 1>&2
10045
10046 *** Warning: the GNU linker, at least up to release 2.19, is reported
10047 *** to be unable to reliably create shared libraries on AIX.
10048 *** Therefore, libtool is disabling shared libraries support. If you
10049 *** really care for shared libraries, you may want to install binutils
10050 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10051 *** You will then need to restart the configuration process.
10052
10053 _LT_EOF
10054 fi
10055 ;;
10056
10057 amigaos*)
10058 case $host_cpu in
10059 powerpc)
10060 # see comment about AmigaOS4 .so support
10061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10062 archive_expsym_cmds=''
10063 ;;
10064 m68k)
10065 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)'
10066 hardcode_libdir_flag_spec='-L$libdir'
10067 hardcode_minus_L=yes
10068 ;;
10069 esac
10070 ;;
10071
10072 beos*)
10073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10074 allow_undefined_flag=unsupported
10075 # Joseph Beckenbach <[email protected]> says some releases of gcc
10076 # support --undefined. This deserves some investigation. FIXME
10077 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10078 else
10079 ld_shlibs=no
10080 fi
10081 ;;
10082
10083 cygwin* | mingw* | windows* | pw32* | cegcc*)
10084 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10085 # as there is no search path for DLLs.
10086 hardcode_libdir_flag_spec='-L$libdir'
10087 export_dynamic_flag_spec='$wl--export-all-symbols'
10088 allow_undefined_flag=unsupported
10089 always_export_symbols=no
10090 enable_shared_with_static_runtimes=yes
10091 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'
10092 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10093 file_list_spec='@'
10094
10095 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10097 # If the export-symbols file already is a .def file, use it as
10098 # is; otherwise, prepend EXPORTS...
10099 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10100 cp $export_symbols $output_objdir/$soname.def;
10101 else
10102 echo EXPORTS > $output_objdir/$soname.def;
10103 cat $export_symbols >> $output_objdir/$soname.def;
10104 fi~
10105 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10106 else
10107 ld_shlibs=no
10108 fi
10109 ;;
10110
10111 haiku*)
10112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10113 link_all_deplibs=no
10114 ;;
10115
10116 os2*)
10117 hardcode_libdir_flag_spec='-L$libdir'
10118 hardcode_minus_L=yes
10119 allow_undefined_flag=unsupported
10120 shrext_cmds=.dll
10121 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10122 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10123 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10124 $ECHO EXPORTS >> $output_objdir/$libname.def~
10125 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10126 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10127 emximp -o $lib $output_objdir/$libname.def'
10128 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10129 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10130 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10131 $ECHO EXPORTS >> $output_objdir/$libname.def~
10132 prefix_cmds="$SED"~
10133 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10134 prefix_cmds="$prefix_cmds -e 1d";
10135 fi~
10136 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10137 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10138 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10139 emximp -o $lib $output_objdir/$libname.def'
10140 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10141 enable_shared_with_static_runtimes=yes
10142 file_list_spec='@'
10143 ;;
10144
10145 interix[3-9]*)
10146 hardcode_direct=no
10147 hardcode_shlibpath_var=no
10148 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10149 export_dynamic_flag_spec='$wl-E'
10150 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10151 # Instead, shared libraries are loaded at an image base (0x10000000 by
10152 # default) and relocated if they conflict, which is a slow very memory
10153 # consuming and fragmenting process. To avoid this, we pick a random,
10154 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10155 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10157 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'
10158 ;;
10159
10160 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10161 tmp_diet=no
10162 if test linux-dietlibc = "$host_os"; then
10163 case $cc_basename in
10164 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10165 esac
10166 fi
10167 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10168 && test no = "$tmp_diet"
10169 then
10170 tmp_addflag=' $pic_flag'
10171 tmp_sharedflag='-shared'
10172 case $cc_basename,$host_cpu in
10173 pgcc*) # Portland Group C compiler
10174 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'
10175 tmp_addflag=' $pic_flag'
10176 ;;
10177 pgf77* | pgf90* | pgf95* | pgfortran*)
10178 # Portland Group f77 and f90 compilers
10179 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'
10180 tmp_addflag=' $pic_flag -Mnomain' ;;
10181 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10182 tmp_addflag=' -i_dynamic' ;;
10183 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10184 tmp_addflag=' -i_dynamic -nofor_main' ;;
10185 ifc* | ifort*) # Intel Fortran compiler
10186 tmp_addflag=' -nofor_main' ;;
10187 lf95*) # Lahey Fortran 8.1
10188 whole_archive_flag_spec=
10189 tmp_sharedflag='--shared' ;;
10190 nagfor*) # NAGFOR 5.3
10191 tmp_sharedflag='-Wl,-shared' ;;
10192 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10193 tmp_sharedflag='-qmkshrobj'
10194 tmp_addflag= ;;
10195 nvcc*) # Cuda Compiler Driver 2.2
10196 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'
10197 compiler_needs_object=yes
10198 ;;
10199 esac
10200 case `$CC -V 2>&1 | $SED 5q` in
10201 *Sun\ C*) # Sun C 5.9
10202 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'
10203 compiler_needs_object=yes
10204 tmp_sharedflag='-G' ;;
10205 *Sun\ F*) # Sun Fortran 8.3
10206 tmp_sharedflag='-G' ;;
10207 esac
10208 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10209
10210 if test yes = "$supports_anon_versioning"; then
10211 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10212 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10213 echo "local: *; };" >> $output_objdir/$libname.ver~
10214 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10215 fi
10216
10217 case $cc_basename in
10218 tcc*)
10219 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10220 export_dynamic_flag_spec='-rdynamic'
10221 ;;
10222 xlf* | bgf* | bgxlf* | mpixlf*)
10223 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10224 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10225 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10226 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10227 if test yes = "$supports_anon_versioning"; then
10228 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10229 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10230 echo "local: *; };" >> $output_objdir/$libname.ver~
10231 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10232 fi
10233 ;;
10234 esac
10235 else
10236 ld_shlibs=no
10237 fi
10238 ;;
10239
10240 *-mlibc)
10241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10242 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10243 ;;
10244
10245 netbsd* | netbsdelf*-gnu)
10246 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10247 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10248 wlarc=
10249 else
10250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10251 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10252 fi
10253 ;;
10254
10255 solaris*)
10256 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10257 ld_shlibs=no
10258 cat <<_LT_EOF 1>&2
10259
10260 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10261 *** create shared libraries on Solaris systems. Therefore, libtool
10262 *** is disabling shared libraries support. We urge you to upgrade GNU
10263 *** binutils to release 2.9.1 or newer. Another option is to modify
10264 *** your PATH or compiler configuration so that the native linker is
10265 *** used, and then restart.
10266
10267 _LT_EOF
10268 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10270 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10271 else
10272 ld_shlibs=no
10273 fi
10274 ;;
10275
10276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10277 case `$LD -v 2>&1` in
10278 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10279 ld_shlibs=no
10280 cat <<_LT_EOF 1>&2
10281
10282 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10283 *** reliably create shared libraries on SCO systems. Therefore, libtool
10284 *** is disabling shared libraries support. We urge you to upgrade GNU
10285 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10286 *** your PATH or compiler configuration so that the native linker is
10287 *** used, and then restart.
10288
10289 _LT_EOF
10290 ;;
10291 *)
10292 # For security reasons, it is highly recommended that you always
10293 # use absolute paths for naming shared libraries, and exclude the
10294 # DT_RUNPATH tag from executables and libraries. But doing so
10295 # requires that you compile everything twice, which is a pain.
10296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10300 else
10301 ld_shlibs=no
10302 fi
10303 ;;
10304 esac
10305 ;;
10306
10307 sunos4*)
10308 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10309 wlarc=
10310 hardcode_direct=yes
10311 hardcode_shlibpath_var=no
10312 ;;
10313
10314 *)
10315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10317 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10318 else
10319 ld_shlibs=no
10320 fi
10321 ;;
10322 esac
10323
10324 if test no = "$ld_shlibs"; then
10325 runpath_var=
10326 hardcode_libdir_flag_spec=
10327 export_dynamic_flag_spec=
10328 whole_archive_flag_spec=
10329 fi
10330 else
10331 # PORTME fill in a description of your system's linker (not GNU ld)
10332 case $host_os in
10333 aix3*)
10334 allow_undefined_flag=unsupported
10335 always_export_symbols=yes
10336 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'
10337 # Note: this linker hardcodes the directories in LIBPATH if there
10338 # are no directories specified by -L.
10339 hardcode_minus_L=yes
10340 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10341 # Neither direct hardcoding nor static linking is supported with a
10342 # broken collect2.
10343 hardcode_direct=unsupported
10344 fi
10345 ;;
10346
10347 aix[4-9]*)
10348 if test ia64 = "$host_cpu"; then
10349 # On IA64, the linker does run time linking by default, so we don't
10350 # have to do anything special.
10351 aix_use_runtimelinking=no
10352 exp_sym_flag='-Bexport'
10353 no_entry_flag=
10354 else
10355 # If we're using GNU nm, then we don't want the "-C" option.
10356 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10357 # Without the "-l" option, or with the "-B" option, AIX nm treats
10358 # weak defined symbols like other global defined symbols, whereas
10359 # GNU nm marks them as "W".
10360 # While the 'weak' keyword is ignored in the Export File, we need
10361 # it in the Import File for the 'aix-soname' feature, so we have
10362 # to replace the "-B" option with "-P" for AIX nm.
10363 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10364 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'
10365 else
10366 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 == "L") || (\$ 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'
10367 fi
10368 aix_use_runtimelinking=no
10369
10370 # Test if we are trying to use run time linking or normal
10371 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10372 # have runtime linking enabled, and use it for executables.
10373 # For shared libraries, we enable/disable runtime linking
10374 # depending on the kind of the shared library created -
10375 # when "with_aix_soname,aix_use_runtimelinking" is:
10376 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10377 # "aix,yes" lib.so shared, rtl:yes, for executables
10378 # lib.a static archive
10379 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10380 # lib.a(lib.so.V) shared, rtl:no, for executables
10381 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10382 # lib.a(lib.so.V) shared, rtl:no
10383 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10384 # lib.a static archive
10385 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10386 for ld_flag in $LDFLAGS; do
10387 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10388 aix_use_runtimelinking=yes
10389 break
10390 fi
10391 done
10392 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10393 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10394 # so we don't have lib.a shared libs to link our executables.
10395 # We have to force runtime linking in this case.
10396 aix_use_runtimelinking=yes
10397 LDFLAGS="$LDFLAGS -Wl,-brtl"
10398 fi
10399 ;;
10400 esac
10401
10402 exp_sym_flag='-bexport'
10403 no_entry_flag='-bnoentry'
10404 fi
10405
10406 # When large executables or shared objects are built, AIX ld can
10407 # have problems creating the table of contents. If linking a library
10408 # or program results in "error TOC overflow" add -mminimal-toc to
10409 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10410 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10411
10412 archive_cmds=''
10413 hardcode_direct=yes
10414 hardcode_direct_absolute=yes
10415 hardcode_libdir_separator=':'
10416 link_all_deplibs=yes
10417 file_list_spec='$wl-f,'
10418 case $with_aix_soname,$aix_use_runtimelinking in
10419 aix,*) ;; # traditional, no import file
10420 svr4,* | *,yes) # use import file
10421 # The Import File defines what to hardcode.
10422 hardcode_direct=no
10423 hardcode_direct_absolute=no
10424 ;;
10425 esac
10426
10427 if test yes = "$GCC"; then
10428 case $host_os in aix4.[012]|aix4.[012].*)
10429 # We only want to do this on AIX 4.2 and lower, the check
10430 # below for broken collect2 doesn't work under 4.3+
10431 collect2name=`$CC -print-prog-name=collect2`
10432 if test -f "$collect2name" &&
10433 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10434 then
10435 # We have reworked collect2
10436 :
10437 else
10438 # We have old collect2
10439 hardcode_direct=unsupported
10440 # It fails to find uninstalled libraries when the uninstalled
10441 # path is not listed in the libpath. Setting hardcode_minus_L
10442 # to unsupported forces relinking
10443 hardcode_minus_L=yes
10444 hardcode_libdir_flag_spec='-L$libdir'
10445 hardcode_libdir_separator=
10446 fi
10447 ;;
10448 esac
10449 shared_flag='-shared'
10450 if test yes = "$aix_use_runtimelinking"; then
10451 shared_flag="$shared_flag "'$wl-G'
10452 fi
10453 # Need to ensure runtime linking is disabled for the traditional
10454 # shared library, or the linker may eventually find shared libraries
10455 # /with/ Import File - we do not want to mix them.
10456 shared_flag_aix='-shared'
10457 shared_flag_svr4='-shared $wl-G'
10458 else
10459 # not using gcc
10460 if test ia64 = "$host_cpu"; then
10461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10462 # chokes on -Wl,-G. The following line is correct:
10463 shared_flag='-G'
10464 else
10465 if test yes = "$aix_use_runtimelinking"; then
10466 shared_flag='$wl-G'
10467 else
10468 shared_flag='$wl-bM:SRE'
10469 fi
10470 shared_flag_aix='$wl-bM:SRE'
10471 shared_flag_svr4='$wl-G'
10472 fi
10473 fi
10474
10475 export_dynamic_flag_spec='$wl-bexpall'
10476 # It seems that -bexpall does not export symbols beginning with
10477 # underscore (_), so it is better to generate a list of symbols to export.
10478 always_export_symbols=yes
10479 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10480 # Warning - without using the other runtime loading flags (-brtl),
10481 # -berok will link without error, but may produce a broken library.
10482 allow_undefined_flag='-berok'
10483 # Determine the default libpath from the value encoded in an
10484 # empty executable.
10485 if test set = "${lt_cv_aix_libpath+set}"; then
10486 aix_libpath=$lt_cv_aix_libpath
10487 else
10488 if test ${lt_cv_aix_libpath_+y}
10489 then :
10490 printf %s "(cached) " >&6
10491 else case e in #(
10492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494
10495 int
10496 main (void)
10497 {
10498
10499 ;
10500 return 0;
10501 }
10502 _ACEOF
10503 if ac_fn_c_try_link "$LINENO"
10504 then :
10505
10506 lt_aix_libpath_sed='
10507 /Import File Strings/,/^$/ {
10508 /^0/ {
10509 s/^0 *\([^ ]*\) *$/\1/
10510 p
10511 }
10512 }'
10513 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10514 # Check for a 64-bit object if we didn't find anything.
10515 if test -z "$lt_cv_aix_libpath_"; then
10516 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10517 fi
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10520 conftest$ac_exeext conftest.$ac_ext
10521 if test -z "$lt_cv_aix_libpath_"; then
10522 lt_cv_aix_libpath_=/usr/lib:/lib
10523 fi
10524 ;;
10525 esac
10526 fi
10527
10528 aix_libpath=$lt_cv_aix_libpath_
10529 fi
10530
10531 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10532 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
10533 else
10534 if test ia64 = "$host_cpu"; then
10535 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10536 allow_undefined_flag="-z nodefs"
10537 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"
10538 else
10539 # Determine the default libpath from the value encoded in an
10540 # empty executable.
10541 if test set = "${lt_cv_aix_libpath+set}"; then
10542 aix_libpath=$lt_cv_aix_libpath
10543 else
10544 if test ${lt_cv_aix_libpath_+y}
10545 then :
10546 printf %s "(cached) " >&6
10547 else case e in #(
10548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10550
10551 int
10552 main (void)
10553 {
10554
10555 ;
10556 return 0;
10557 }
10558 _ACEOF
10559 if ac_fn_c_try_link "$LINENO"
10560 then :
10561
10562 lt_aix_libpath_sed='
10563 /Import File Strings/,/^$/ {
10564 /^0/ {
10565 s/^0 *\([^ ]*\) *$/\1/
10566 p
10567 }
10568 }'
10569 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10570 # Check for a 64-bit object if we didn't find anything.
10571 if test -z "$lt_cv_aix_libpath_"; then
10572 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10573 fi
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10576 conftest$ac_exeext conftest.$ac_ext
10577 if test -z "$lt_cv_aix_libpath_"; then
10578 lt_cv_aix_libpath_=/usr/lib:/lib
10579 fi
10580 ;;
10581 esac
10582 fi
10583
10584 aix_libpath=$lt_cv_aix_libpath_
10585 fi
10586
10587 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10588 # Warning - without using the other run time loading flags,
10589 # -berok will link without error, but may produce a broken library.
10590 no_undefined_flag=' $wl-bernotok'
10591 allow_undefined_flag=' $wl-berok'
10592 if test yes = "$with_gnu_ld"; then
10593 # We only use this code for GNU lds that support --whole-archive.
10594 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10595 else
10596 # Exported symbols can be pulled into shared objects from archives
10597 whole_archive_flag_spec='$convenience'
10598 fi
10599 archive_cmds_need_lc=yes
10600 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10601 # -brtl affects multiple linker settings, -berok does not and is overridden later
10602 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10603 if test svr4 != "$with_aix_soname"; then
10604 # This is similar to how AIX traditionally builds its shared libraries.
10605 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'
10606 fi
10607 if test aix != "$with_aix_soname"; then
10608 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'
10609 else
10610 # used by -dlpreopen to get the symbols
10611 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10612 fi
10613 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10614 fi
10615 fi
10616 ;;
10617
10618 amigaos*)
10619 case $host_cpu in
10620 powerpc)
10621 # see comment about AmigaOS4 .so support
10622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10623 archive_expsym_cmds=''
10624 ;;
10625 m68k)
10626 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)'
10627 hardcode_libdir_flag_spec='-L$libdir'
10628 hardcode_minus_L=yes
10629 ;;
10630 esac
10631 ;;
10632
10633 bsdi[45]*)
10634 export_dynamic_flag_spec=-rdynamic
10635 ;;
10636
10637 cygwin* | mingw* | windows* | pw32* | cegcc*)
10638 # When not using gcc, we currently assume that we are using
10639 # Microsoft Visual C++ or Intel C++ Compiler.
10640 # hardcode_libdir_flag_spec is actually meaningless, as there is
10641 # no search path for DLLs.
10642 case $cc_basename in
10643 cl* | icl*)
10644 # Native MSVC or ICC
10645 hardcode_libdir_flag_spec=' '
10646 allow_undefined_flag=unsupported
10647 always_export_symbols=yes
10648 file_list_spec='@'
10649 # Tell ltmain to make .lib files, not .a files.
10650 libext=lib
10651 # Tell ltmain to make .dll files, not .so files.
10652 shrext_cmds=.dll
10653 # FIXME: Setting linknames here is a bad hack.
10654 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10655 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10656 cp "$export_symbols" "$output_objdir/$soname.def";
10657 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10658 else
10659 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10660 fi~
10661 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10662 linknames='
10663 # The linker will not automatically build a static lib if we build a DLL.
10664 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10665 enable_shared_with_static_runtimes=yes
10666 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10668 # Don't use ranlib
10669 old_postinstall_cmds='chmod 644 $oldlib'
10670 postlink_cmds='lt_outputfile="@OUTPUT@"~
10671 lt_tool_outputfile="@TOOL_OUTPUT@"~
10672 case $lt_outputfile in
10673 *.exe|*.EXE) ;;
10674 *)
10675 lt_outputfile=$lt_outputfile.exe
10676 lt_tool_outputfile=$lt_tool_outputfile.exe
10677 ;;
10678 esac~
10679 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10680 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10681 $RM "$lt_outputfile.manifest";
10682 fi'
10683 ;;
10684 *)
10685 # Assume MSVC and ICC wrapper
10686 hardcode_libdir_flag_spec=' '
10687 allow_undefined_flag=unsupported
10688 # Tell ltmain to make .lib files, not .a files.
10689 libext=lib
10690 # Tell ltmain to make .dll files, not .so files.
10691 shrext_cmds=.dll
10692 # FIXME: Setting linknames here is a bad hack.
10693 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10694 # The linker will automatically build a .lib file if we build a DLL.
10695 old_archive_from_new_cmds='true'
10696 # FIXME: Should let the user specify the lib program.
10697 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10698 enable_shared_with_static_runtimes=yes
10699 ;;
10700 esac
10701 ;;
10702
10703 darwin* | rhapsody*)
10704
10705
10706 archive_cmds_need_lc=no
10707 hardcode_direct=no
10708 hardcode_automatic=yes
10709 hardcode_shlibpath_var=unsupported
10710 if test yes = "$lt_cv_ld_force_load"; then
10711 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\"`'
10712
10713 else
10714 whole_archive_flag_spec=''
10715 fi
10716 link_all_deplibs=yes
10717 allow_undefined_flag=$_lt_dar_allow_undefined
10718 case $cc_basename in
10719 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10720 *) _lt_dar_can_shared=$GCC ;;
10721 esac
10722 if test yes = "$_lt_dar_can_shared"; then
10723 output_verbose_link_cmd=func_echo_all
10724 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10725 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10726 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"
10727 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"
10728
10729 else
10730 ld_shlibs=no
10731 fi
10732
10733 ;;
10734
10735 dgux*)
10736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737 hardcode_libdir_flag_spec='-L$libdir'
10738 hardcode_shlibpath_var=no
10739 ;;
10740
10741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10742 # support. Future versions do this automatically, but an explicit c++rt0.o
10743 # does not break anything, and helps significantly (at the cost of a little
10744 # extra space).
10745 freebsd2.2*)
10746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10747 hardcode_libdir_flag_spec='-R$libdir'
10748 hardcode_direct=yes
10749 hardcode_shlibpath_var=no
10750 ;;
10751
10752 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10753 freebsd2.*)
10754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_direct=yes
10756 hardcode_minus_L=yes
10757 hardcode_shlibpath_var=no
10758 ;;
10759
10760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10761 freebsd* | dragonfly* | midnightbsd*)
10762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10763 hardcode_libdir_flag_spec='-R$libdir'
10764 hardcode_direct=yes
10765 hardcode_shlibpath_var=no
10766 ;;
10767
10768 hpux9*)
10769 if test yes = "$GCC"; then
10770 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'
10771 else
10772 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'
10773 fi
10774 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10775 hardcode_libdir_separator=:
10776 hardcode_direct=yes
10777
10778 # hardcode_minus_L: Not really in the search PATH,
10779 # but as the default location of the library.
10780 hardcode_minus_L=yes
10781 export_dynamic_flag_spec='$wl-E'
10782 ;;
10783
10784 hpux10*)
10785 if test yes,no = "$GCC,$with_gnu_ld"; then
10786 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10787 else
10788 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10789 fi
10790 if test no = "$with_gnu_ld"; then
10791 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10792 hardcode_libdir_separator=:
10793 hardcode_direct=yes
10794 hardcode_direct_absolute=yes
10795 export_dynamic_flag_spec='$wl-E'
10796 # hardcode_minus_L: Not really in the search PATH,
10797 # but as the default location of the library.
10798 hardcode_minus_L=yes
10799 fi
10800 ;;
10801
10802 hpux11*)
10803 if test yes,no = "$GCC,$with_gnu_ld"; then
10804 case $host_cpu in
10805 hppa*64*)
10806 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10807 ;;
10808 ia64*)
10809 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10810 ;;
10811 *)
10812 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10813 ;;
10814 esac
10815 else
10816 case $host_cpu in
10817 hppa*64*)
10818 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10819 ;;
10820 ia64*)
10821 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10822 ;;
10823 *)
10824
10825 # Older versions of the 11.00 compiler do not understand -b yet
10826 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10828 printf %s "checking if $CC understands -b... " >&6; }
10829 if test ${lt_cv_prog_compiler__b+y}
10830 then :
10831 printf %s "(cached) " >&6
10832 else case e in #(
10833 e) lt_cv_prog_compiler__b=no
10834 save_LDFLAGS=$LDFLAGS
10835 LDFLAGS="$LDFLAGS -b"
10836 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10838 # The linker can only warn and ignore the option if not recognized
10839 # So say no if there are warnings
10840 if test -s conftest.err; then
10841 # Append any errors to the config.log.
10842 cat conftest.err 1>&5
10843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10845 if diff conftest.exp conftest.er2 >/dev/null; then
10846 lt_cv_prog_compiler__b=yes
10847 fi
10848 else
10849 lt_cv_prog_compiler__b=yes
10850 fi
10851 fi
10852 $RM -r conftest*
10853 LDFLAGS=$save_LDFLAGS
10854 ;;
10855 esac
10856 fi
10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10858 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10859
10860 if test yes = "$lt_cv_prog_compiler__b"; then
10861 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10862 else
10863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10864 fi
10865
10866 ;;
10867 esac
10868 fi
10869 if test no = "$with_gnu_ld"; then
10870 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10871 hardcode_libdir_separator=:
10872
10873 case $host_cpu in
10874 hppa*64*|ia64*)
10875 hardcode_direct=no
10876 hardcode_shlibpath_var=no
10877 ;;
10878 *)
10879 hardcode_direct=yes
10880 hardcode_direct_absolute=yes
10881 export_dynamic_flag_spec='$wl-E'
10882
10883 # hardcode_minus_L: Not really in the search PATH,
10884 # but as the default location of the library.
10885 hardcode_minus_L=yes
10886 ;;
10887 esac
10888 fi
10889 ;;
10890
10891 irix5* | irix6* | nonstopux*)
10892 if test yes = "$GCC"; then
10893 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'
10894 # Try to use the -exported_symbol ld option, if it does not
10895 # work, assume that -exports_file does not work either and
10896 # implicitly export all symbols.
10897 # This should be the same for all languages, so no per-tag cache variable.
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10899 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10900 if test ${lt_cv_irix_exported_symbol+y}
10901 then :
10902 printf %s "(cached) " >&6
10903 else case e in #(
10904 e) save_LDFLAGS=$LDFLAGS
10905 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 int foo (void) { return 0; }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"
10911 then :
10912 lt_cv_irix_exported_symbol=yes
10913 else case e in #(
10914 e) lt_cv_irix_exported_symbol=no ;;
10915 esac
10916 fi
10917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LDFLAGS=$save_LDFLAGS ;;
10920 esac
10921 fi
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10923 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10924 if test yes = "$lt_cv_irix_exported_symbol"; then
10925 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'
10926 fi
10927 else
10928 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'
10929 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'
10930 fi
10931 archive_cmds_need_lc='no'
10932 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10933 hardcode_libdir_separator=:
10934 inherit_rpath=yes
10935 link_all_deplibs=yes
10936 ;;
10937
10938 linux*)
10939 case $cc_basename in
10940 tcc*)
10941 # Fabrice Bellard et al's Tiny C Compiler
10942 ld_shlibs=yes
10943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10944 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10945 ;;
10946 esac
10947 ;;
10948
10949 *-mlibc)
10950 ;;
10951
10952 netbsd* | netbsdelf*-gnu)
10953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10955 else
10956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10957 fi
10958 hardcode_libdir_flag_spec='-R$libdir'
10959 hardcode_direct=yes
10960 hardcode_shlibpath_var=no
10961 ;;
10962
10963 newsos6)
10964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_direct=yes
10966 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10967 hardcode_libdir_separator=:
10968 hardcode_shlibpath_var=no
10969 ;;
10970
10971 *nto* | *qnx*)
10972 ;;
10973
10974 openbsd*)
10975 if test -f /usr/libexec/ld.so; then
10976 hardcode_direct=yes
10977 hardcode_shlibpath_var=no
10978 hardcode_direct_absolute=yes
10979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10982 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10983 export_dynamic_flag_spec='$wl-E'
10984 else
10985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10986 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10987 fi
10988 else
10989 ld_shlibs=no
10990 fi
10991 ;;
10992
10993 os2*)
10994 hardcode_libdir_flag_spec='-L$libdir'
10995 hardcode_minus_L=yes
10996 allow_undefined_flag=unsupported
10997 shrext_cmds=.dll
10998 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10999 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11000 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11001 $ECHO EXPORTS >> $output_objdir/$libname.def~
11002 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11003 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11004 emximp -o $lib $output_objdir/$libname.def'
11005 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11006 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11007 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11008 $ECHO EXPORTS >> $output_objdir/$libname.def~
11009 prefix_cmds="$SED"~
11010 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11011 prefix_cmds="$prefix_cmds -e 1d";
11012 fi~
11013 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11014 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11015 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11016 emximp -o $lib $output_objdir/$libname.def'
11017 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11018 enable_shared_with_static_runtimes=yes
11019 file_list_spec='@'
11020 ;;
11021
11022 osf3*)
11023 if test yes = "$GCC"; then
11024 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11025 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'
11026 else
11027 allow_undefined_flag=' -expect_unresolved \*'
11028 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'
11029 fi
11030 archive_cmds_need_lc='no'
11031 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11032 hardcode_libdir_separator=:
11033 ;;
11034
11035 osf4* | osf5*) # as osf3* with the addition of -msym flag
11036 if test yes = "$GCC"; then
11037 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11038 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'
11039 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11040 else
11041 allow_undefined_flag=' -expect_unresolved \*'
11042 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'
11043 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~
11044 $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'
11045
11046 # Both c and cxx compiler support -rpath directly
11047 hardcode_libdir_flag_spec='-rpath $libdir'
11048 fi
11049 archive_cmds_need_lc='no'
11050 hardcode_libdir_separator=:
11051 ;;
11052
11053 serenity*)
11054 ;;
11055
11056 solaris*)
11057 no_undefined_flag=' -z defs'
11058 if test yes = "$GCC"; then
11059 wlarc='$wl'
11060 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11062 $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'
11063 else
11064 case `$CC -V 2>&1` in
11065 *"Compilers 5.0"*)
11066 wlarc=''
11067 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11069 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11070 ;;
11071 *)
11072 wlarc='$wl'
11073 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11075 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11076 ;;
11077 esac
11078 fi
11079 hardcode_libdir_flag_spec='-R$libdir'
11080 hardcode_shlibpath_var=no
11081 case $host_os in
11082 solaris2.[0-5] | solaris2.[0-5].*) ;;
11083 *)
11084 # The compiler driver will combine and reorder linker options,
11085 # but understands '-z linker_flag'. GCC discards it without '$wl',
11086 # but is careful enough not to reorder.
11087 # Supported since Solaris 2.6 (maybe 2.5.1?)
11088 if test yes = "$GCC"; then
11089 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11090 else
11091 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11092 fi
11093 ;;
11094 esac
11095 link_all_deplibs=yes
11096 ;;
11097
11098 sunos4*)
11099 if test sequent = "$host_vendor"; then
11100 # Use $CC to link under sequent, because it throws in some extra .o
11101 # files that make .init and .fini sections work.
11102 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11103 else
11104 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11105 fi
11106 hardcode_libdir_flag_spec='-L$libdir'
11107 hardcode_direct=yes
11108 hardcode_minus_L=yes
11109 hardcode_shlibpath_var=no
11110 ;;
11111
11112 sysv4)
11113 case $host_vendor in
11114 sni)
11115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11116 hardcode_direct=yes # is this really true???
11117 ;;
11118 siemens)
11119 ## LD is ld it makes a PLAMLIB
11120 ## CC just makes a GrossModule.
11121 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11122 reload_cmds='$CC -r -o $output$reload_objs'
11123 hardcode_direct=no
11124 ;;
11125 motorola)
11126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11127 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11128 ;;
11129 esac
11130 runpath_var='LD_RUN_PATH'
11131 hardcode_shlibpath_var=no
11132 ;;
11133
11134 sysv4.3*)
11135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136 hardcode_shlibpath_var=no
11137 export_dynamic_flag_spec='-Bexport'
11138 ;;
11139
11140 sysv4*MP*)
11141 if test -d /usr/nec; then
11142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11143 hardcode_shlibpath_var=no
11144 runpath_var=LD_RUN_PATH
11145 hardcode_runpath_var=yes
11146 ld_shlibs=yes
11147 fi
11148 ;;
11149
11150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11151 no_undefined_flag='$wl-z,text'
11152 archive_cmds_need_lc=no
11153 hardcode_shlibpath_var=no
11154 runpath_var='LD_RUN_PATH'
11155
11156 if test yes = "$GCC"; then
11157 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11158 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159 else
11160 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11161 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11162 fi
11163 ;;
11164
11165 sysv5* | sco3.2v5* | sco5v6*)
11166 # Note: We CANNOT use -z defs as we might desire, because we do not
11167 # link with -lc, and that would cause any symbols used from libc to
11168 # always be unresolved, which means just about no library would
11169 # ever link correctly. If we're not using GNU ld we use -z text
11170 # though, which does catch some bad symbols but isn't as heavy-handed
11171 # as -z defs.
11172 no_undefined_flag='$wl-z,text'
11173 allow_undefined_flag='$wl-z,nodefs'
11174 archive_cmds_need_lc=no
11175 hardcode_shlibpath_var=no
11176 hardcode_libdir_flag_spec='$wl-R,$libdir'
11177 hardcode_libdir_separator=':'
11178 link_all_deplibs=yes
11179 export_dynamic_flag_spec='$wl-Bexport'
11180 runpath_var='LD_RUN_PATH'
11181
11182 if test yes = "$GCC"; then
11183 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11184 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185 else
11186 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11187 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11188 fi
11189 ;;
11190
11191 uts4*)
11192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11193 hardcode_libdir_flag_spec='-L$libdir'
11194 hardcode_shlibpath_var=no
11195 ;;
11196
11197 *)
11198 ld_shlibs=no
11199 ;;
11200 esac
11201
11202 if test sni = "$host_vendor"; then
11203 case $host in
11204 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11205 export_dynamic_flag_spec='$wl-Blargedynsym'
11206 ;;
11207 esac
11208 fi
11209 fi
11210
11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11212 printf "%s\n" "$ld_shlibs" >&6; }
11213 test no = "$ld_shlibs" && can_build_shared=no
11214
11215 with_gnu_ld=$with_gnu_ld
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231 #
11232 # Do we need to explicitly link libc?
11233 #
11234 case "x$archive_cmds_need_lc" in
11235 x|xyes)
11236 # Assume -lc should be added
11237 archive_cmds_need_lc=yes
11238
11239 if test yes,yes = "$GCC,$enable_shared"; then
11240 case $archive_cmds in
11241 *'~'*)
11242 # FIXME: we may have to deal with multi-command sequences.
11243 ;;
11244 '$CC '*)
11245 # Test whether the compiler implicitly links with -lc since on some
11246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11247 # to ld, don't add -lc before -lgcc.
11248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11249 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11250 if test ${lt_cv_archive_cmds_need_lc+y}
11251 then :
11252 printf %s "(cached) " >&6
11253 else case e in #(
11254 e) $RM conftest*
11255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11256
11257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11258 (eval $ac_compile) 2>&5
11259 ac_status=$?
11260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11261 test $ac_status = 0; } 2>conftest.err; then
11262 soname=conftest
11263 lib=conftest
11264 libobjs=conftest.$ac_objext
11265 deplibs=
11266 wl=$lt_prog_compiler_wl
11267 pic_flag=$lt_prog_compiler_pic
11268 compiler_flags=-v
11269 linker_flags=-v
11270 verstring=
11271 output_objdir=.
11272 libname=conftest
11273 lt_save_allow_undefined_flag=$allow_undefined_flag
11274 allow_undefined_flag=
11275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11277 ac_status=$?
11278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11279 test $ac_status = 0; }
11280 then
11281 lt_cv_archive_cmds_need_lc=no
11282 else
11283 lt_cv_archive_cmds_need_lc=yes
11284 fi
11285 allow_undefined_flag=$lt_save_allow_undefined_flag
11286 else
11287 cat conftest.err 1>&5
11288 fi
11289 $RM conftest*
11290 ;;
11291 esac
11292 fi
11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11294 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11295 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11296 ;;
11297 esac
11298 fi
11299 ;;
11300 esac
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11454 printf %s "checking dynamic linker characteristics... " >&6; }
11455
11456 if test yes = "$GCC"; then
11457 case $host_os in
11458 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11459 *) lt_awk_arg='/^libraries:/' ;;
11460 esac
11461 case $host_os in
11462 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11463 *) lt_sed_strip_eq='s|=/|/|g' ;;
11464 esac
11465 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11466 case $lt_search_path_spec in
11467 *\;*)
11468 # if the path contains ";" then we assume it to be the separator
11469 # otherwise default to the standard path separator (i.e. ":") - it is
11470 # assumed that no part of a normal pathname contains ";" but that should
11471 # okay in the real world where ";" in dirpaths is itself problematic.
11472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11473 ;;
11474 *)
11475 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11476 ;;
11477 esac
11478 # Ok, now we have the path, separated by spaces, we can step through it
11479 # and add multilib dir if necessary...
11480 lt_tmp_lt_search_path_spec=
11481 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11482 # ...but if some path component already ends with the multilib dir we assume
11483 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11484 case "$lt_multi_os_dir; $lt_search_path_spec " in
11485 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11486 lt_multi_os_dir=
11487 ;;
11488 esac
11489 for lt_sys_path in $lt_search_path_spec; do
11490 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11491 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11492 elif test -n "$lt_multi_os_dir"; then
11493 test -d "$lt_sys_path" && \
11494 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11495 fi
11496 done
11497 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11498 BEGIN {RS = " "; FS = "/|\n";} {
11499 lt_foo = "";
11500 lt_count = 0;
11501 for (lt_i = NF; lt_i > 0; lt_i--) {
11502 if ($lt_i != "" && $lt_i != ".") {
11503 if ($lt_i == "..") {
11504 lt_count++;
11505 } else {
11506 if (lt_count == 0) {
11507 lt_foo = "/" $lt_i lt_foo;
11508 } else {
11509 lt_count--;
11510 }
11511 }
11512 }
11513 }
11514 if (lt_foo != "") { lt_freq[lt_foo]++; }
11515 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11516 }'`
11517 # AWK program above erroneously prepends '/' to C:/dos/paths
11518 # for these hosts.
11519 case $host_os in
11520 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11521 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11522 esac
11523 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11524 else
11525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11526 fi
11527 library_names_spec=
11528 libname_spec='lib$name'
11529 soname_spec=
11530 shrext_cmds=.so
11531 postinstall_cmds=
11532 postuninstall_cmds=
11533 finish_cmds=
11534 finish_eval=
11535 shlibpath_var=
11536 shlibpath_overrides_runpath=unknown
11537 version_type=none
11538 dynamic_linker="$host_os ld.so"
11539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11540 need_lib_prefix=unknown
11541 hardcode_into_libs=no
11542
11543 # when you set need_version to no, make sure it does not cause -set_version
11544 # flags to be left without arguments
11545 need_version=unknown
11546
11547
11548
11549 case $host_os in
11550 aix3*)
11551 version_type=linux # correct to gnu/linux during the next big refactor
11552 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11553 shlibpath_var=LIBPATH
11554
11555 # AIX 3 has no versioning support, so we append a major version to the name.
11556 soname_spec='$libname$release$shared_ext$major'
11557 ;;
11558
11559 aix[4-9]*)
11560 version_type=linux # correct to gnu/linux during the next big refactor
11561 need_lib_prefix=no
11562 need_version=no
11563 hardcode_into_libs=yes
11564 if test ia64 = "$host_cpu"; then
11565 # AIX 5 supports IA64
11566 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 else
11569 # With GCC up to 2.95.x, collect2 would create an import file
11570 # for dependence libraries. The import file would start with
11571 # the line '#! .'. This would cause the generated library to
11572 # depend on '.', always an invalid library. This was fixed in
11573 # development snapshots of GCC prior to 3.0.
11574 case $host_os in
11575 aix4 | aix4.[01] | aix4.[01].*)
11576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11577 echo ' yes '
11578 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11579 :
11580 else
11581 can_build_shared=no
11582 fi
11583 ;;
11584 esac
11585 # Using Import Files as archive members, it is possible to support
11586 # filename-based versioning of shared library archives on AIX. While
11587 # this would work for both with and without runtime linking, it will
11588 # prevent static linking of such archives. So we do filename-based
11589 # shared library versioning with .so extension only, which is used
11590 # when both runtime linking and shared linking is enabled.
11591 # Unfortunately, runtime linking may impact performance, so we do
11592 # not want this to be the default eventually. Also, we use the
11593 # versioned .so libs for executables only if there is the -brtl
11594 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11595 # To allow for filename-based versioning support, we need to create
11596 # libNAME.so.V as an archive file, containing:
11597 # *) an Import File, referring to the versioned filename of the
11598 # archive as well as the shared archive member, telling the
11599 # bitwidth (32 or 64) of that shared object, and providing the
11600 # list of exported symbols of that shared object, eventually
11601 # decorated with the 'weak' keyword
11602 # *) the shared object with the F_LOADONLY flag set, to really avoid
11603 # it being seen by the linker.
11604 # At run time we better use the real file rather than another symlink,
11605 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11606
11607 case $with_aix_soname,$aix_use_runtimelinking in
11608 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11609 # soname into executable. Probably we can add versioning support to
11610 # collect2, so additional links can be useful in future.
11611 aix,yes) # traditional libtool
11612 dynamic_linker='AIX unversionable lib.so'
11613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11614 # instead of lib<name>.a to let people know that these are not
11615 # typical AIX shared libraries.
11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11617 ;;
11618 aix,no) # traditional AIX only
11619 dynamic_linker='AIX lib.a(lib.so.V)'
11620 # We preserve .a as extension for shared libraries through AIX4.2
11621 # and later when we are not doing run time linking.
11622 library_names_spec='$libname$release.a $libname.a'
11623 soname_spec='$libname$release$shared_ext$major'
11624 ;;
11625 svr4,*) # full svr4 only
11626 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11627 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11628 # We do not specify a path in Import Files, so LIBPATH fires.
11629 shlibpath_overrides_runpath=yes
11630 ;;
11631 *,yes) # both, prefer svr4
11632 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11633 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11634 # unpreferred sharedlib libNAME.a needs extra handling
11635 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"'
11636 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"'
11637 # We do not specify a path in Import Files, so LIBPATH fires.
11638 shlibpath_overrides_runpath=yes
11639 ;;
11640 *,no) # both, prefer aix
11641 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11642 library_names_spec='$libname$release.a $libname.a'
11643 soname_spec='$libname$release$shared_ext$major'
11644 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11645 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)'
11646 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"'
11647 ;;
11648 esac
11649 shlibpath_var=LIBPATH
11650 fi
11651 ;;
11652
11653 amigaos*)
11654 case $host_cpu in
11655 powerpc)
11656 # Since July 2007 AmigaOS4 officially supports .so libraries.
11657 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 ;;
11660 m68k)
11661 library_names_spec='$libname.ixlibrary $libname.a'
11662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11663 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'
11664 ;;
11665 esac
11666 ;;
11667
11668 beos*)
11669 library_names_spec='$libname$shared_ext'
11670 dynamic_linker="$host_os ld.so"
11671 shlibpath_var=LIBRARY_PATH
11672 ;;
11673
11674 bsdi[45]*)
11675 version_type=linux # correct to gnu/linux during the next big refactor
11676 need_version=no
11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11678 soname_spec='$libname$release$shared_ext$major'
11679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11683 # the default ld.so.conf also contains /usr/contrib/lib and
11684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11685 # libtool to hard-code these into programs
11686 ;;
11687
11688 cygwin* | mingw* | windows* | pw32* | cegcc*)
11689 version_type=windows
11690 shrext_cmds=.dll
11691 need_version=no
11692 need_lib_prefix=no
11693
11694 case $GCC,$cc_basename in
11695 yes,*)
11696 # gcc
11697 library_names_spec='$libname.dll.a'
11698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11699 # If user builds GCC with multilib enabled,
11700 # it should just install on $(libdir)
11701 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11702 if test xyes = x"$multilib"; then
11703 postinstall_cmds='base_file=`basename \$file`~
11704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11705 dldir=$destdir/`dirname \$dlpath`~
11706 $install_prog $dir/$dlname $destdir/$dlname~
11707 chmod a+x $destdir/$dlname~
11708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11709 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11710 fi'
11711 else
11712 postinstall_cmds='base_file=`basename \$file`~
11713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11714 dldir=$destdir/`dirname \$dlpath`~
11715 test -d \$dldir || mkdir -p \$dldir~
11716 $install_prog $dir/$dlname \$dldir/$dlname~
11717 chmod a+x \$dldir/$dlname~
11718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11720 fi'
11721 fi
11722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11723 dlpath=$dir/\$dldll~
11724 $RM \$dlpath'
11725 shlibpath_overrides_runpath=yes
11726
11727 case $host_os in
11728 cygwin*)
11729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11730 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11731
11732 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11733 ;;
11734 mingw* | windows* | cegcc*)
11735 # MinGW DLLs use traditional 'lib' prefix
11736 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11737 ;;
11738 pw32*)
11739 # pw32 DLLs use 'pw' prefix rather than 'lib'
11740 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11741 ;;
11742 esac
11743 dynamic_linker='Win32 ld.exe'
11744 ;;
11745
11746 *,cl* | *,icl*)
11747 # Native MSVC or ICC
11748 libname_spec='$name'
11749 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11750 library_names_spec='$libname.dll.lib'
11751
11752 case $build_os in
11753 mingw* | windows*)
11754 sys_lib_search_path_spec=
11755 lt_save_ifs=$IFS
11756 IFS=';'
11757 for lt_path in $LIB
11758 do
11759 IFS=$lt_save_ifs
11760 # Let DOS variable expansion print the short 8.3 style file name.
11761 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11762 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11763 done
11764 IFS=$lt_save_ifs
11765 # Convert to MSYS style.
11766 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11767 ;;
11768 cygwin*)
11769 # Convert to unix form, then to dos form, then back to unix form
11770 # but this time dos style (no spaces!) so that the unix form looks
11771 # like /cygdrive/c/PROGRA~1:/cygdr...
11772 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11773 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11774 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11775 ;;
11776 *)
11777 sys_lib_search_path_spec=$LIB
11778 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11779 # It is most probably a Windows format PATH.
11780 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11781 else
11782 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11783 fi
11784 # FIXME: find the short name or the path components, as spaces are
11785 # common. (e.g. "Program Files" -> "PROGRA~1")
11786 ;;
11787 esac
11788
11789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11790 postinstall_cmds='base_file=`basename \$file`~
11791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11792 dldir=$destdir/`dirname \$dlpath`~
11793 test -d \$dldir || mkdir -p \$dldir~
11794 $install_prog $dir/$dlname \$dldir/$dlname'
11795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11796 dlpath=$dir/\$dldll~
11797 $RM \$dlpath'
11798 shlibpath_overrides_runpath=yes
11799 dynamic_linker='Win32 link.exe'
11800 ;;
11801
11802 *)
11803 # Assume MSVC and ICC wrapper
11804 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11805 dynamic_linker='Win32 ld.exe'
11806 ;;
11807 esac
11808 # FIXME: first we should search . and the directory the executable is in
11809 shlibpath_var=PATH
11810 ;;
11811
11812 darwin* | rhapsody*)
11813 dynamic_linker="$host_os dyld"
11814 version_type=darwin
11815 need_lib_prefix=no
11816 need_version=no
11817 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11818 soname_spec='$libname$release$major$shared_ext'
11819 shlibpath_overrides_runpath=yes
11820 shlibpath_var=DYLD_LIBRARY_PATH
11821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11822
11823 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11825 ;;
11826
11827 dgux*)
11828 version_type=linux # correct to gnu/linux during the next big refactor
11829 need_lib_prefix=no
11830 need_version=no
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832 soname_spec='$libname$release$shared_ext$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 ;;
11835
11836 freebsd* | dragonfly* | midnightbsd*)
11837 # DragonFly does not have aout. When/if they implement a new
11838 # versioning mechanism, adjust this.
11839 if test -x /usr/bin/objformat; then
11840 objformat=`/usr/bin/objformat`
11841 else
11842 case $host_os in
11843 freebsd[23].*) objformat=aout ;;
11844 *) objformat=elf ;;
11845 esac
11846 fi
11847 version_type=freebsd-$objformat
11848 case $version_type in
11849 freebsd-elf*)
11850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11851 soname_spec='$libname$release$shared_ext$major'
11852 need_version=no
11853 need_lib_prefix=no
11854 ;;
11855 freebsd-*)
11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11857 need_version=yes
11858 ;;
11859 esac
11860 case $host_cpu in
11861 powerpc64)
11862 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11863 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 int test_pointer_size[sizeof (void *) - 5];
11867
11868 _ACEOF
11869 if ac_fn_c_try_compile "$LINENO"
11870 then :
11871 shlibpath_var=LD_LIBRARY_PATH
11872 else case e in #(
11873 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11874 esac
11875 fi
11876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11877 ;;
11878 *)
11879 shlibpath_var=LD_LIBRARY_PATH
11880 ;;
11881 esac
11882 case $host_os in
11883 freebsd2.*)
11884 shlibpath_overrides_runpath=yes
11885 ;;
11886 freebsd3.[01]* | freebsdelf3.[01]*)
11887 shlibpath_overrides_runpath=yes
11888 hardcode_into_libs=yes
11889 ;;
11890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11892 shlibpath_overrides_runpath=no
11893 hardcode_into_libs=yes
11894 ;;
11895 *) # from 4.6 on, and DragonFly
11896 shlibpath_overrides_runpath=yes
11897 hardcode_into_libs=yes
11898 ;;
11899 esac
11900 ;;
11901
11902 haiku*)
11903 version_type=linux # correct to gnu/linux during the next big refactor
11904 need_lib_prefix=no
11905 need_version=no
11906 dynamic_linker="$host_os runtime_loader"
11907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11908 soname_spec='$libname$release$shared_ext$major'
11909 shlibpath_var=LIBRARY_PATH
11910 shlibpath_overrides_runpath=no
11911 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11912 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11913 hardcode_into_libs=no
11914 ;;
11915
11916 hpux9* | hpux10* | hpux11*)
11917 # Give a soname corresponding to the major version so that dld.sl refuses to
11918 # link against other versions.
11919 version_type=sunos
11920 need_lib_prefix=no
11921 need_version=no
11922 case $host_cpu in
11923 ia64*)
11924 shrext_cmds='.so'
11925 hardcode_into_libs=yes
11926 dynamic_linker="$host_os dld.so"
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11930 soname_spec='$libname$release$shared_ext$major'
11931 if test 32 = "$HPUX_IA64_MODE"; then
11932 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11933 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11934 else
11935 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11936 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11937 fi
11938 ;;
11939 hppa*64*)
11940 shrext_cmds='.sl'
11941 hardcode_into_libs=yes
11942 dynamic_linker="$host_os dld.sl"
11943 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11946 soname_spec='$libname$release$shared_ext$major'
11947 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11949 ;;
11950 *)
11951 shrext_cmds='.sl'
11952 dynamic_linker="$host_os dld.sl"
11953 shlibpath_var=SHLIB_PATH
11954 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11956 soname_spec='$libname$release$shared_ext$major'
11957 ;;
11958 esac
11959 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11960 postinstall_cmds='chmod 555 $lib'
11961 # or fails outright, so override atomically:
11962 install_override_mode=555
11963 ;;
11964
11965 interix[3-9]*)
11966 version_type=linux # correct to gnu/linux during the next big refactor
11967 need_lib_prefix=no
11968 need_version=no
11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11970 soname_spec='$libname$release$shared_ext$major'
11971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 shlibpath_overrides_runpath=no
11974 hardcode_into_libs=yes
11975 ;;
11976
11977 irix5* | irix6* | nonstopux*)
11978 case $host_os in
11979 nonstopux*) version_type=nonstopux ;;
11980 *)
11981 if test yes = "$lt_cv_prog_gnu_ld"; then
11982 version_type=linux # correct to gnu/linux during the next big refactor
11983 else
11984 version_type=irix
11985 fi ;;
11986 esac
11987 need_lib_prefix=no
11988 need_version=no
11989 soname_spec='$libname$release$shared_ext$major'
11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11991 case $host_os in
11992 irix5* | nonstopux*)
11993 libsuff= shlibsuff=
11994 ;;
11995 *)
11996 case $LD in # libtool.m4 will add one of these switches to LD
11997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11998 libsuff= shlibsuff= libmagic=32-bit;;
11999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12000 libsuff=32 shlibsuff=N32 libmagic=N32;;
12001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12003 *) libsuff= shlibsuff= libmagic=never-match;;
12004 esac
12005 ;;
12006 esac
12007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12008 shlibpath_overrides_runpath=no
12009 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12010 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12011 hardcode_into_libs=yes
12012 ;;
12013
12014 # No shared lib support for Linux oldld, aout, or coff.
12015 linux*oldld* | linux*aout* | linux*coff*)
12016 dynamic_linker=no
12017 ;;
12018
12019 linux*android*)
12020 version_type=none # Android doesn't support versioned libraries.
12021 need_lib_prefix=no
12022 need_version=no
12023 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12024 soname_spec='$libname$release$shared_ext'
12025 finish_cmds=
12026 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=yes
12028
12029 # This implies no fast_install, which is unacceptable.
12030 # Some rework will be needed to allow for fast_install
12031 # before this can be enabled.
12032 hardcode_into_libs=yes
12033
12034 dynamic_linker='Android linker'
12035 # -rpath works at least for libraries that are not overridden by
12036 # libraries installed in system locations.
12037 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12038 ;;
12039
12040 # This must be glibc/ELF.
12041 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12042 version_type=linux # correct to gnu/linux during the next big refactor
12043 need_lib_prefix=no
12044 need_version=no
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046 soname_spec='$libname$release$shared_ext$major'
12047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=no
12050
12051 # Some binutils ld are patched to set DT_RUNPATH
12052 if test ${lt_cv_shlibpath_overrides_runpath+y}
12053 then :
12054 printf %s "(cached) " >&6
12055 else case e in #(
12056 e) lt_cv_shlibpath_overrides_runpath=no
12057 save_LDFLAGS=$LDFLAGS
12058 save_libdir=$libdir
12059 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12060 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12063
12064 int
12065 main (void)
12066 {
12067
12068 ;
12069 return 0;
12070 }
12071 _ACEOF
12072 if ac_fn_c_try_link "$LINENO"
12073 then :
12074 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12075 then :
12076 lt_cv_shlibpath_overrides_runpath=yes
12077 fi
12078 fi
12079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LDFLAGS=$save_LDFLAGS
12082 libdir=$save_libdir
12083 ;;
12084 esac
12085 fi
12086
12087 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12088
12089 # This implies no fast_install, which is unacceptable.
12090 # Some rework will be needed to allow for fast_install
12091 # before this can be enabled.
12092 hardcode_into_libs=yes
12093
12094 # Ideally, we could use ldconfig to report *all* directories which are
12095 # searched for libraries, however this is still not possible. Aside from not
12096 # being certain /sbin/ldconfig is available, command
12097 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12098 # even though it is searched at run-time. Try to do the best guess by
12099 # appending ld.so.conf contents (and includes) to the search path.
12100 if test -f /etc/ld.so.conf; then
12101 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' ' '`
12102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12103 fi
12104
12105 # We used to test for /lib/ld.so.1 and disable shared libraries on
12106 # powerpc, because MkLinux only supported shared libraries with the
12107 # GNU dynamic linker. Since this was broken with cross compilers,
12108 # most powerpc-linux boxes support dynamic linking these days and
12109 # people can always --disable-shared, the test was removed, and we
12110 # assume the GNU/Linux dynamic linker is in use.
12111 dynamic_linker='GNU/Linux ld.so'
12112 ;;
12113
12114 netbsdelf*-gnu)
12115 version_type=linux
12116 need_lib_prefix=no
12117 need_version=no
12118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12119 soname_spec='$libname$release$shared_ext$major'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath=no
12122 hardcode_into_libs=yes
12123 dynamic_linker='NetBSD ld.elf_so'
12124 ;;
12125
12126 netbsd*)
12127 version_type=sunos
12128 need_lib_prefix=no
12129 need_version=no
12130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12131 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12133 dynamic_linker='NetBSD (a.out) ld.so'
12134 else
12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136 soname_spec='$libname$release$shared_ext$major'
12137 dynamic_linker='NetBSD ld.elf_so'
12138 fi
12139 shlibpath_var=LD_LIBRARY_PATH
12140 shlibpath_overrides_runpath=yes
12141 hardcode_into_libs=yes
12142 ;;
12143
12144 *-mlibc)
12145 version_type=linux # correct to gnu/linux during the next big refactor
12146 need_lib_prefix=no
12147 need_version=no
12148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12149 soname_spec='$libname$release$shared_ext$major'
12150 dynamic_linker='mlibc ld.so'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=no
12153 hardcode_into_libs=yes
12154 ;;
12155
12156 newsos6)
12157 version_type=linux # correct to gnu/linux during the next big refactor
12158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 shlibpath_overrides_runpath=yes
12161 ;;
12162
12163 *nto* | *qnx*)
12164 version_type=qnx
12165 need_lib_prefix=no
12166 need_version=no
12167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12168 soname_spec='$libname$release$shared_ext$major'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=no
12171 hardcode_into_libs=yes
12172 dynamic_linker='ldqnx.so'
12173 ;;
12174
12175 openbsd*)
12176 version_type=sunos
12177 sys_lib_dlsearch_path_spec=/usr/lib
12178 need_lib_prefix=no
12179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12180 need_version=no
12181 else
12182 need_version=yes
12183 fi
12184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12186 shlibpath_var=LD_LIBRARY_PATH
12187 shlibpath_overrides_runpath=yes
12188 ;;
12189
12190 os2*)
12191 libname_spec='$name'
12192 version_type=windows
12193 shrext_cmds=.dll
12194 need_version=no
12195 need_lib_prefix=no
12196 # OS/2 can only load a DLL with a base name of 8 characters or less.
12197 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12198 v=$($ECHO $release$versuffix | tr -d .-);
12199 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12200 $ECHO $n$v`$shared_ext'
12201 library_names_spec='${libname}_dll.$libext'
12202 dynamic_linker='OS/2 ld.exe'
12203 shlibpath_var=BEGINLIBPATH
12204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12206 postinstall_cmds='base_file=`basename \$file`~
12207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12208 dldir=$destdir/`dirname \$dlpath`~
12209 test -d \$dldir || mkdir -p \$dldir~
12210 $install_prog $dir/$dlname \$dldir/$dlname~
12211 chmod a+x \$dldir/$dlname~
12212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12214 fi'
12215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12216 dlpath=$dir/\$dldll~
12217 $RM \$dlpath'
12218 ;;
12219
12220 osf3* | osf4* | osf5*)
12221 version_type=osf
12222 need_lib_prefix=no
12223 need_version=no
12224 soname_spec='$libname$release$shared_ext$major'
12225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12229 ;;
12230
12231 rdos*)
12232 dynamic_linker=no
12233 ;;
12234
12235 serenity*)
12236 version_type=linux # correct to gnu/linux during the next big refactor
12237 need_lib_prefix=no
12238 need_version=no
12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240 soname_spec='$libname$release$shared_ext$major'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=no
12243 dynamic_linker='SerenityOS LibELF'
12244 ;;
12245
12246 solaris*)
12247 version_type=linux # correct to gnu/linux during the next big refactor
12248 need_lib_prefix=no
12249 need_version=no
12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12251 soname_spec='$libname$release$shared_ext$major'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=yes
12254 hardcode_into_libs=yes
12255 # ldd complains unless libraries are executable
12256 postinstall_cmds='chmod +x $lib'
12257 ;;
12258
12259 sunos4*)
12260 version_type=sunos
12261 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=yes
12265 if test yes = "$with_gnu_ld"; then
12266 need_lib_prefix=no
12267 fi
12268 need_version=yes
12269 ;;
12270
12271 sysv4 | sysv4.3*)
12272 version_type=linux # correct to gnu/linux during the next big refactor
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274 soname_spec='$libname$release$shared_ext$major'
12275 shlibpath_var=LD_LIBRARY_PATH
12276 case $host_vendor in
12277 sni)
12278 shlibpath_overrides_runpath=no
12279 need_lib_prefix=no
12280 runpath_var=LD_RUN_PATH
12281 ;;
12282 siemens)
12283 need_lib_prefix=no
12284 ;;
12285 motorola)
12286 need_lib_prefix=no
12287 need_version=no
12288 shlibpath_overrides_runpath=no
12289 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12290 ;;
12291 esac
12292 ;;
12293
12294 sysv4*MP*)
12295 if test -d /usr/nec; then
12296 version_type=linux # correct to gnu/linux during the next big refactor
12297 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12298 soname_spec='$libname$shared_ext.$major'
12299 shlibpath_var=LD_LIBRARY_PATH
12300 fi
12301 ;;
12302
12303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12304 version_type=sco
12305 need_lib_prefix=no
12306 need_version=no
12307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12308 soname_spec='$libname$release$shared_ext$major'
12309 shlibpath_var=LD_LIBRARY_PATH
12310 shlibpath_overrides_runpath=yes
12311 hardcode_into_libs=yes
12312 if test yes = "$with_gnu_ld"; then
12313 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12314 else
12315 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12316 case $host_os in
12317 sco3.2v5*)
12318 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12319 ;;
12320 esac
12321 fi
12322 sys_lib_dlsearch_path_spec='/usr/lib'
12323 ;;
12324
12325 tpf*)
12326 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12327 version_type=linux # correct to gnu/linux during the next big refactor
12328 need_lib_prefix=no
12329 need_version=no
12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=no
12333 hardcode_into_libs=yes
12334 ;;
12335
12336 uts4*)
12337 version_type=linux # correct to gnu/linux during the next big refactor
12338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12339 soname_spec='$libname$release$shared_ext$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 ;;
12342
12343 emscripten*)
12344 version_type=none
12345 need_lib_prefix=no
12346 need_version=no
12347 library_names_spec='$libname$release$shared_ext'
12348 soname_spec='$libname$release$shared_ext'
12349 finish_cmds=
12350 dynamic_linker="Emscripten linker"
12351 lt_prog_compiler_wl=
12352 lt_prog_compiler_pic=
12353 lt_prog_compiler_static=
12354
12355
12356 if test yes = "$GCC"; then
12357 lt_prog_compiler_wl='-Wl,'
12358 lt_prog_compiler_static='-static'
12359
12360 case $host_os in
12361 aix*)
12362 # All AIX code is PIC.
12363 if test ia64 = "$host_cpu"; then
12364 # AIX 5 now supports IA64 processor
12365 lt_prog_compiler_static='-Bstatic'
12366 fi
12367 lt_prog_compiler_pic='-fPIC'
12368 ;;
12369
12370 amigaos*)
12371 case $host_cpu in
12372 powerpc)
12373 # see comment about AmigaOS4 .so support
12374 lt_prog_compiler_pic='-fPIC'
12375 ;;
12376 m68k)
12377 # FIXME: we need at least 68020 code to build shared libraries, but
12378 # adding the '-m68020' flag to GCC prevents building anything better,
12379 # like '-m68040'.
12380 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12381 ;;
12382 esac
12383 ;;
12384
12385 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12386 # PIC is the default for these OSes.
12387 ;;
12388
12389 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12390 # This hack is so that the source file can tell whether it is being
12391 # built for inclusion in a dll (and should export symbols for example).
12392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12393 # (--disable-auto-import) libraries
12394 lt_prog_compiler_pic='-DDLL_EXPORT'
12395 case $host_os in
12396 os2*)
12397 lt_prog_compiler_static='$wl-static'
12398 ;;
12399 esac
12400 ;;
12401
12402 darwin* | rhapsody*)
12403 # PIC is the default on this platform
12404 # Common symbols not allowed in MH_DYLIB files
12405 lt_prog_compiler_pic='-fno-common'
12406 ;;
12407
12408 haiku*)
12409 # PIC is the default for Haiku.
12410 # The "-static" flag exists, but is broken.
12411 lt_prog_compiler_static=
12412 ;;
12413
12414 hpux*)
12415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12417 # sets the default TLS model and affects inlining.
12418 case $host_cpu in
12419 hppa*64*)
12420 # +Z the default
12421 ;;
12422 *)
12423 lt_prog_compiler_pic='-fPIC'
12424 ;;
12425 esac
12426 ;;
12427
12428 interix[3-9]*)
12429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12430 # Instead, we relocate shared libraries at runtime.
12431 ;;
12432
12433 msdosdjgpp*)
12434 # Just because we use GCC doesn't mean we suddenly get shared libraries
12435 # on systems that don't support them.
12436 lt_prog_compiler_can_build_shared=no
12437 enable_shared=no
12438 ;;
12439
12440 *nto* | *qnx*)
12441 # QNX uses GNU C++, but need to define -shared option too, otherwise
12442 # it will coredump.
12443 lt_prog_compiler_pic='-fPIC -shared'
12444 ;;
12445
12446 sysv4*MP*)
12447 if test -d /usr/nec; then
12448 lt_prog_compiler_pic=-Kconform_pic
12449 fi
12450 ;;
12451
12452 *)
12453 lt_prog_compiler_pic='-fPIC'
12454 ;;
12455 esac
12456
12457 case $cc_basename in
12458 nvcc*) # Cuda Compiler Driver 2.2
12459 lt_prog_compiler_wl='-Xlinker '
12460 if test -n "$lt_prog_compiler_pic"; then
12461 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12462 fi
12463 ;;
12464 esac
12465 else
12466 # PORTME Check for flag to pass linker flags through the system compiler.
12467 case $host_os in
12468 aix*)
12469 lt_prog_compiler_wl='-Wl,'
12470 if test ia64 = "$host_cpu"; then
12471 # AIX 5 now supports IA64 processor
12472 lt_prog_compiler_static='-Bstatic'
12473 else
12474 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12475 fi
12476 ;;
12477
12478 darwin* | rhapsody*)
12479 # PIC is the default on this platform
12480 # Common symbols not allowed in MH_DYLIB files
12481 lt_prog_compiler_pic='-fno-common'
12482 case $cc_basename in
12483 nagfor*)
12484 # NAG Fortran compiler
12485 lt_prog_compiler_wl='-Wl,-Wl,,'
12486 lt_prog_compiler_pic='-PIC'
12487 lt_prog_compiler_static='-Bstatic'
12488 ;;
12489 esac
12490 ;;
12491
12492 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12493 # This hack is so that the source file can tell whether it is being
12494 # built for inclusion in a dll (and should export symbols for example).
12495 lt_prog_compiler_pic='-DDLL_EXPORT'
12496 case $host_os in
12497 os2*)
12498 lt_prog_compiler_static='$wl-static'
12499 ;;
12500 esac
12501 ;;
12502
12503 hpux9* | hpux10* | hpux11*)
12504 lt_prog_compiler_wl='-Wl,'
12505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12506 # not for PA HP-UX.
12507 case $host_cpu in
12508 hppa*64*|ia64*)
12509 # +Z the default
12510 ;;
12511 *)
12512 lt_prog_compiler_pic='+Z'
12513 ;;
12514 esac
12515 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12516 lt_prog_compiler_static='$wl-a ${wl}archive'
12517 ;;
12518
12519 irix5* | irix6* | nonstopux*)
12520 lt_prog_compiler_wl='-Wl,'
12521 # PIC (with -KPIC) is the default.
12522 lt_prog_compiler_static='-non_shared'
12523 ;;
12524
12525 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12526 case $cc_basename in
12527 # old Intel for x86_64, which still supported -KPIC.
12528 ecc*)
12529 lt_prog_compiler_wl='-Wl,'
12530 lt_prog_compiler_pic='-KPIC'
12531 lt_prog_compiler_static='-static'
12532 ;;
12533 *flang* | ftn | f18* | f95*)
12534 # Flang compiler.
12535 lt_prog_compiler_wl='-Wl,'
12536 lt_prog_compiler_pic='-fPIC'
12537 lt_prog_compiler_static='-static'
12538 ;;
12539 # icc used to be incompatible with GCC.
12540 # ICC 10 doesn't accept -KPIC any more.
12541 icc* | ifort*)
12542 lt_prog_compiler_wl='-Wl,'
12543 lt_prog_compiler_pic='-fPIC'
12544 lt_prog_compiler_static='-static'
12545 ;;
12546 # Lahey Fortran 8.1.
12547 lf95*)
12548 lt_prog_compiler_wl='-Wl,'
12549 lt_prog_compiler_pic='--shared'
12550 lt_prog_compiler_static='--static'
12551 ;;
12552 nagfor*)
12553 # NAG Fortran compiler
12554 lt_prog_compiler_wl='-Wl,-Wl,,'
12555 lt_prog_compiler_pic='-PIC'
12556 lt_prog_compiler_static='-Bstatic'
12557 ;;
12558 tcc*)
12559 # Fabrice Bellard et al's Tiny C Compiler
12560 lt_prog_compiler_wl='-Wl,'
12561 lt_prog_compiler_pic='-fPIC'
12562 lt_prog_compiler_static='-static'
12563 ;;
12564 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12565 # Portland Group compilers (*not* the Pentium gcc compiler,
12566 # which looks to be a dead project)
12567 lt_prog_compiler_wl='-Wl,'
12568 lt_prog_compiler_pic='-fpic'
12569 lt_prog_compiler_static='-Bstatic'
12570 ;;
12571 ccc*)
12572 lt_prog_compiler_wl='-Wl,'
12573 # All Alpha code is PIC.
12574 lt_prog_compiler_static='-non_shared'
12575 ;;
12576 xl* | bgxl* | bgf* | mpixl*)
12577 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12578 lt_prog_compiler_wl='-Wl,'
12579 lt_prog_compiler_pic='-qpic'
12580 lt_prog_compiler_static='-qstaticlink'
12581 ;;
12582 *)
12583 case `$CC -V 2>&1 | $SED 5q` in
12584 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12585 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12586 lt_prog_compiler_pic='-KPIC'
12587 lt_prog_compiler_static='-Bstatic'
12588 lt_prog_compiler_wl=''
12589 ;;
12590 *Sun\ F* | *Sun*Fortran*)
12591 lt_prog_compiler_pic='-KPIC'
12592 lt_prog_compiler_static='-Bstatic'
12593 lt_prog_compiler_wl='-Qoption ld '
12594 ;;
12595 *Sun\ C*)
12596 # Sun C 5.9
12597 lt_prog_compiler_pic='-KPIC'
12598 lt_prog_compiler_static='-Bstatic'
12599 lt_prog_compiler_wl='-Wl,'
12600 ;;
12601 *Intel*\ [CF]*Compiler*)
12602 lt_prog_compiler_wl='-Wl,'
12603 lt_prog_compiler_pic='-fPIC'
12604 lt_prog_compiler_static='-static'
12605 ;;
12606 *Portland\ Group*)
12607 lt_prog_compiler_wl='-Wl,'
12608 lt_prog_compiler_pic='-fpic'
12609 lt_prog_compiler_static='-Bstatic'
12610 ;;
12611 esac
12612 ;;
12613 esac
12614 ;;
12615
12616 newsos6)
12617 lt_prog_compiler_pic='-KPIC'
12618 lt_prog_compiler_static='-Bstatic'
12619 ;;
12620
12621 *-mlibc)
12622 lt_prog_compiler_wl='-Wl,'
12623 lt_prog_compiler_pic='-fPIC'
12624 lt_prog_compiler_static='-static'
12625 ;;
12626
12627 *nto* | *qnx*)
12628 # QNX uses GNU C++, but need to define -shared option too, otherwise
12629 # it will coredump.
12630 lt_prog_compiler_pic='-fPIC -shared'
12631 ;;
12632
12633 osf3* | osf4* | osf5*)
12634 lt_prog_compiler_wl='-Wl,'
12635 # All OSF/1 code is PIC.
12636 lt_prog_compiler_static='-non_shared'
12637 ;;
12638
12639 rdos*)
12640 lt_prog_compiler_static='-non_shared'
12641 ;;
12642
12643 serenity*)
12644 ;;
12645
12646 solaris*)
12647 lt_prog_compiler_pic='-KPIC'
12648 lt_prog_compiler_static='-Bstatic'
12649 case $cc_basename in
12650 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12651 lt_prog_compiler_wl='-Qoption ld ';;
12652 *)
12653 lt_prog_compiler_wl='-Wl,';;
12654 esac
12655 ;;
12656
12657 sunos4*)
12658 lt_prog_compiler_wl='-Qoption ld '
12659 lt_prog_compiler_pic='-PIC'
12660 lt_prog_compiler_static='-Bstatic'
12661 ;;
12662
12663 sysv4 | sysv4.2uw2* | sysv4.3*)
12664 lt_prog_compiler_wl='-Wl,'
12665 lt_prog_compiler_pic='-KPIC'
12666 lt_prog_compiler_static='-Bstatic'
12667 ;;
12668
12669 sysv4*MP*)
12670 if test -d /usr/nec; then
12671 lt_prog_compiler_pic='-Kconform_pic'
12672 lt_prog_compiler_static='-Bstatic'
12673 fi
12674 ;;
12675
12676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12677 lt_prog_compiler_wl='-Wl,'
12678 lt_prog_compiler_pic='-KPIC'
12679 lt_prog_compiler_static='-Bstatic'
12680 ;;
12681
12682 unicos*)
12683 lt_prog_compiler_wl='-Wl,'
12684 lt_prog_compiler_can_build_shared=no
12685 ;;
12686
12687 uts4*)
12688 lt_prog_compiler_pic='-pic'
12689 lt_prog_compiler_static='-Bstatic'
12690 ;;
12691
12692 *)
12693 lt_prog_compiler_can_build_shared=no
12694 ;;
12695 esac
12696 fi
12697
12698 case $host_os in
12699 # For platforms that do not support PIC, -DPIC is meaningless:
12700 *djgpp*)
12701 lt_prog_compiler_pic=
12702 ;;
12703 *)
12704 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12705 ;;
12706 esac
12707
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12709 printf %s "checking for $compiler option to produce PIC... " >&6; }
12710 if test ${lt_cv_prog_compiler_pic+y}
12711 then :
12712 printf %s "(cached) " >&6
12713 else case e in #(
12714 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12715 esac
12716 fi
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12718 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12719 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12720
12721 #
12722 # Check to make sure the PIC flag actually works.
12723 #
12724 if test -n "$lt_prog_compiler_pic"; then
12725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12726 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12727 if test ${lt_cv_prog_compiler_pic_works+y}
12728 then :
12729 printf %s "(cached) " >&6
12730 else case e in #(
12731 e) lt_cv_prog_compiler_pic_works=no
12732 ac_outfile=conftest.$ac_objext
12733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12734 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12735 # Insert the option either (1) after the last *FLAGS variable, or
12736 # (2) before a word containing "conftest.", or (3) at the end.
12737 # Note that $ac_compile itself does not contain backslashes and begins
12738 # with a dollar sign (not a hyphen), so the echo should work correctly.
12739 # The option is referenced via a variable to avoid confusing sed.
12740 lt_compile=`echo "$ac_compile" | $SED \
12741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12743 -e 's:$: $lt_compiler_flag:'`
12744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12745 (eval "$lt_compile" 2>conftest.err)
12746 ac_status=$?
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 if (exit $ac_status) && test -s "$ac_outfile"; then
12750 # The compiler can only warn and ignore the option if not recognized
12751 # So say no if there are warnings other than the usual output.
12752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12755 lt_cv_prog_compiler_pic_works=yes
12756 fi
12757 fi
12758 $RM conftest*
12759 ;;
12760 esac
12761 fi
12762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12763 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12764
12765 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12766 case $lt_prog_compiler_pic in
12767 "" | " "*) ;;
12768 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12769 esac
12770 else
12771 lt_prog_compiler_pic=
12772 lt_prog_compiler_can_build_shared=no
12773 fi
12774
12775 fi
12776
12777
12778
12779
12780
12781 #
12782 # Check to make sure the static flag actually works.
12783 #
12784 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12786 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12787 if test ${lt_cv_prog_compiler_static_works+y}
12788 then :
12789 printf %s "(cached) " >&6
12790 else case e in #(
12791 e) lt_cv_prog_compiler_static_works=no
12792 save_LDFLAGS=$LDFLAGS
12793 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12794 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12795 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12796 # The linker can only warn and ignore the option if not recognized
12797 # So say no if there are warnings
12798 if test -s conftest.err; then
12799 # Append any errors to the config.log.
12800 cat conftest.err 1>&5
12801 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12803 if diff conftest.exp conftest.er2 >/dev/null; then
12804 lt_cv_prog_compiler_static_works=yes
12805 fi
12806 else
12807 lt_cv_prog_compiler_static_works=yes
12808 fi
12809 fi
12810 $RM -r conftest*
12811 LDFLAGS=$save_LDFLAGS
12812 ;;
12813 esac
12814 fi
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12816 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12817
12818 if test yes = "$lt_cv_prog_compiler_static_works"; then
12819 :
12820 else
12821 lt_prog_compiler_static=
12822 fi
12823
12824
12825
12826 ='-fPIC'
12827 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12828 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12829 archive_cmds_need_lc=no
12830 no_undefined_flag=
12831 ;;
12832
12833 *)
12834 dynamic_linker=no
12835 ;;
12836 esac
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12838 printf "%s\n" "$dynamic_linker" >&6; }
12839 test no = "$dynamic_linker" && can_build_shared=no
12840
12841 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12842 if test yes = "$GCC"; then
12843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12844 fi
12845
12846 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12847 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12848 fi
12849
12850 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12851 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12852 fi
12853
12854 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12855 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12856
12857 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12858 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12859
12860 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12861 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12960 printf %s "checking how to hardcode library paths into programs... " >&6; }
12961 hardcode_action=
12962 if test -n "$hardcode_libdir_flag_spec" ||
12963 test -n "$runpath_var" ||
12964 test yes = "$hardcode_automatic"; then
12965
12966 # We can hardcode non-existent directories.
12967 if test no != "$hardcode_direct" &&
12968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12969 # have to relink, otherwise we might link with an installed library
12970 # when we should be linking with a yet-to-be-installed one
12971 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12972 test no != "$hardcode_minus_L"; then
12973 # Linking always hardcodes the temporary library directory.
12974 hardcode_action=relink
12975 else
12976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12977 hardcode_action=immediate
12978 fi
12979 else
12980 # We cannot hardcode anything, or else we can only hardcode existing
12981 # directories.
12982 hardcode_action=unsupported
12983 fi
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12985 printf "%s\n" "$hardcode_action" >&6; }
12986
12987 if test relink = "$hardcode_action" ||
12988 test yes = "$inherit_rpath"; then
12989 # Fast installation is not supported
12990 enable_fast_install=no
12991 elif test yes = "$shlibpath_overrides_runpath" ||
12992 test no = "$enable_shared"; then
12993 # Fast installation is not necessary
12994 enable_fast_install=needless
12995 fi
12996
12997
12998
12999
13000
13001
13002 if test yes != "$enable_dlopen"; then
13003 enable_dlopen=unknown
13004 enable_dlopen_self=unknown
13005 enable_dlopen_self_static=unknown
13006 else
13007 lt_cv_dlopen=no
13008 lt_cv_dlopen_libs=
13009
13010 case $host_os in
13011 beos*)
13012 lt_cv_dlopen=load_add_on
13013 lt_cv_dlopen_libs=
13014 lt_cv_dlopen_self=yes
13015 ;;
13016
13017 mingw* | windows* | pw32* | cegcc*)
13018 lt_cv_dlopen=LoadLibrary
13019 lt_cv_dlopen_libs=
13020 ;;
13021
13022 cygwin*)
13023 lt_cv_dlopen=dlopen
13024 lt_cv_dlopen_libs=
13025 ;;
13026
13027 darwin*)
13028 # if libdl is installed we need to link against it
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13030 printf %s "checking for dlopen in -ldl... " >&6; }
13031 if test ${ac_cv_lib_dl_dlopen+y}
13032 then :
13033 printf %s "(cached) " >&6
13034 else case e in #(
13035 e) ac_check_lib_save_LIBS=$LIBS
13036 LIBS="-ldl $LIBS"
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply.
13043 The 'extern "C"' is for builds by C++ compilers;
13044 although this is not generally supported in C code supporting it here
13045 has little cost and some practical benefit (sr 110532). */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char dlopen (void);
13050 int
13051 main (void)
13052 {
13053 return dlopen ();
13054 ;
13055 return 0;
13056 }
13057 _ACEOF
13058 if ac_fn_c_try_link "$LINENO"
13059 then :
13060 ac_cv_lib_dl_dlopen=yes
13061 else case e in #(
13062 e) ac_cv_lib_dl_dlopen=no ;;
13063 esac
13064 fi
13065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_lib_save_LIBS ;;
13068 esac
13069 fi
13070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13071 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13072 if test "x$ac_cv_lib_dl_dlopen" = xyes
13073 then :
13074 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13075 else case e in #(
13076 e)
13077 lt_cv_dlopen=dyld
13078 lt_cv_dlopen_libs=
13079 lt_cv_dlopen_self=yes
13080 ;;
13081 esac
13082 fi
13083
13084 ;;
13085
13086 tpf*)
13087 # Don't try to run any link tests for TPF. We know it's impossible
13088 # because TPF is a cross-compiler, and we know how we open DSOs.
13089 lt_cv_dlopen=dlopen
13090 lt_cv_dlopen_libs=
13091 lt_cv_dlopen_self=no
13092 ;;
13093
13094 *)
13095 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13096 if test "x$ac_cv_func_shl_load" = xyes
13097 then :
13098 lt_cv_dlopen=shl_load
13099 else case e in #(
13100 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13101 printf %s "checking for shl_load in -ldld... " >&6; }
13102 if test ${ac_cv_lib_dld_shl_load+y}
13103 then :
13104 printf %s "(cached) " >&6
13105 else case e in #(
13106 e) ac_check_lib_save_LIBS=$LIBS
13107 LIBS="-ldld $LIBS"
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110
13111 /* Override any GCC internal prototype to avoid an error.
13112 Use char because int might match the return type of a GCC
13113 builtin and then its argument prototype would still apply.
13114 The 'extern "C"' is for builds by C++ compilers;
13115 although this is not generally supported in C code supporting it here
13116 has little cost and some practical benefit (sr 110532). */
13117 #ifdef __cplusplus
13118 extern "C"
13119 #endif
13120 char shl_load (void);
13121 int
13122 main (void)
13123 {
13124 return shl_load ();
13125 ;
13126 return 0;
13127 }
13128 _ACEOF
13129 if ac_fn_c_try_link "$LINENO"
13130 then :
13131 ac_cv_lib_dld_shl_load=yes
13132 else case e in #(
13133 e) ac_cv_lib_dld_shl_load=no ;;
13134 esac
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13137 conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS ;;
13139 esac
13140 fi
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13142 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13143 if test "x$ac_cv_lib_dld_shl_load" = xyes
13144 then :
13145 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13146 else case e in #(
13147 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13148 if test "x$ac_cv_func_dlopen" = xyes
13149 then :
13150 lt_cv_dlopen=dlopen
13151 else case e in #(
13152 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13153 printf %s "checking for dlopen in -ldl... " >&6; }
13154 if test ${ac_cv_lib_dl_dlopen+y}
13155 then :
13156 printf %s "(cached) " >&6
13157 else case e in #(
13158 e) ac_check_lib_save_LIBS=$LIBS
13159 LIBS="-ldl $LIBS"
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply.
13166 The 'extern "C"' is for builds by C++ compilers;
13167 although this is not generally supported in C code supporting it here
13168 has little cost and some practical benefit (sr 110532). */
13169 #ifdef __cplusplus
13170 extern "C"
13171 #endif
13172 char dlopen (void);
13173 int
13174 main (void)
13175 {
13176 return dlopen ();
13177 ;
13178 return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"
13182 then :
13183 ac_cv_lib_dl_dlopen=yes
13184 else case e in #(
13185 e) ac_cv_lib_dl_dlopen=no ;;
13186 esac
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13189 conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS ;;
13191 esac
13192 fi
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13194 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13195 if test "x$ac_cv_lib_dl_dlopen" = xyes
13196 then :
13197 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13198 else case e in #(
13199 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13200 printf %s "checking for dlopen in -lsvld... " >&6; }
13201 if test ${ac_cv_lib_svld_dlopen+y}
13202 then :
13203 printf %s "(cached) " >&6
13204 else case e in #(
13205 e) ac_check_lib_save_LIBS=$LIBS
13206 LIBS="-lsvld $LIBS"
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209
13210 /* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply.
13213 The 'extern "C"' is for builds by C++ compilers;
13214 although this is not generally supported in C code supporting it here
13215 has little cost and some practical benefit (sr 110532). */
13216 #ifdef __cplusplus
13217 extern "C"
13218 #endif
13219 char dlopen (void);
13220 int
13221 main (void)
13222 {
13223 return dlopen ();
13224 ;
13225 return 0;
13226 }
13227 _ACEOF
13228 if ac_fn_c_try_link "$LINENO"
13229 then :
13230 ac_cv_lib_svld_dlopen=yes
13231 else case e in #(
13232 e) ac_cv_lib_svld_dlopen=no ;;
13233 esac
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13236 conftest$ac_exeext conftest.$ac_ext
13237 LIBS=$ac_check_lib_save_LIBS ;;
13238 esac
13239 fi
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13241 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13242 if test "x$ac_cv_lib_svld_dlopen" = xyes
13243 then :
13244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13245 else case e in #(
13246 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13247 printf %s "checking for dld_link in -ldld... " >&6; }
13248 if test ${ac_cv_lib_dld_dld_link+y}
13249 then :
13250 printf %s "(cached) " >&6
13251 else case e in #(
13252 e) ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-ldld $LIBS"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply.
13260 The 'extern "C"' is for builds by C++ compilers;
13261 although this is not generally supported in C code supporting it here
13262 has little cost and some practical benefit (sr 110532). */
13263 #ifdef __cplusplus
13264 extern "C"
13265 #endif
13266 char dld_link (void);
13267 int
13268 main (void)
13269 {
13270 return dld_link ();
13271 ;
13272 return 0;
13273 }
13274 _ACEOF
13275 if ac_fn_c_try_link "$LINENO"
13276 then :
13277 ac_cv_lib_dld_dld_link=yes
13278 else case e in #(
13279 e) ac_cv_lib_dld_dld_link=no ;;
13280 esac
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13283 conftest$ac_exeext conftest.$ac_ext
13284 LIBS=$ac_check_lib_save_LIBS ;;
13285 esac
13286 fi
13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13288 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13289 if test "x$ac_cv_lib_dld_dld_link" = xyes
13290 then :
13291 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13292 fi
13293
13294 ;;
13295 esac
13296 fi
13297
13298 ;;
13299 esac
13300 fi
13301
13302 ;;
13303 esac
13304 fi
13305
13306 ;;
13307 esac
13308 fi
13309
13310 ;;
13311 esac
13312 fi
13313
13314 ;;
13315 esac
13316
13317 if test no = "$lt_cv_dlopen"; then
13318 enable_dlopen=no
13319 else
13320 enable_dlopen=yes
13321 fi
13322
13323 case $lt_cv_dlopen in
13324 dlopen)
13325 save_CPPFLAGS=$CPPFLAGS
13326 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13327
13328 save_LDFLAGS=$LDFLAGS
13329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13330
13331 save_LIBS=$LIBS
13332 LIBS="$lt_cv_dlopen_libs $LIBS"
13333
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13335 printf %s "checking whether a program can dlopen itself... " >&6; }
13336 if test ${lt_cv_dlopen_self+y}
13337 then :
13338 printf %s "(cached) " >&6
13339 else case e in #(
13340 e) if test yes = "$cross_compiling"; then :
13341 lt_cv_dlopen_self=cross
13342 else
13343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13344 lt_status=$lt_dlunknown
13345 cat > conftest.$ac_ext <<_LT_EOF
13346 #line $LINENO "configure"
13347 #include "confdefs.h"
13348
13349 #if HAVE_DLFCN_H
13350 #include <dlfcn.h>
13351 #endif
13352
13353 #include <stdio.h>
13354
13355 #ifdef RTLD_GLOBAL
13356 # define LT_DLGLOBAL RTLD_GLOBAL
13357 #else
13358 # ifdef DL_GLOBAL
13359 # define LT_DLGLOBAL DL_GLOBAL
13360 # else
13361 # define LT_DLGLOBAL 0
13362 # endif
13363 #endif
13364
13365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13366 find out it does not work in some platform. */
13367 #ifndef LT_DLLAZY_OR_NOW
13368 # ifdef RTLD_LAZY
13369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13370 # else
13371 # ifdef DL_LAZY
13372 # define LT_DLLAZY_OR_NOW DL_LAZY
13373 # else
13374 # ifdef RTLD_NOW
13375 # define LT_DLLAZY_OR_NOW RTLD_NOW
13376 # else
13377 # ifdef DL_NOW
13378 # define LT_DLLAZY_OR_NOW DL_NOW
13379 # else
13380 # define LT_DLLAZY_OR_NOW 0
13381 # endif
13382 # endif
13383 # endif
13384 # endif
13385 #endif
13386
13387 /* When -fvisibility=hidden is used, assume the code has been annotated
13388 correspondingly for the symbols needed. */
13389 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13390 int fnord (void) __attribute__((visibility("default")));
13391 #endif
13392
13393 int fnord (void) { return 42; }
13394 int main (void)
13395 {
13396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13397 int status = $lt_dlunknown;
13398
13399 if (self)
13400 {
13401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13402 else
13403 {
13404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13405 else puts (dlerror ());
13406 }
13407 /* dlclose (self); */
13408 }
13409 else
13410 puts (dlerror ());
13411
13412 return status;
13413 }
13414 _LT_EOF
13415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13416 (eval $ac_link) 2>&5
13417 ac_status=$?
13418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13419 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13420 (./conftest; exit; ) >&5 2>/dev/null
13421 lt_status=$?
13422 case x$lt_status in
13423 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13424 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13425 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13426 esac
13427 else :
13428 # compilation failed
13429 lt_cv_dlopen_self=no
13430 fi
13431 fi
13432 rm -fr conftest*
13433
13434 ;;
13435 esac
13436 fi
13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13438 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13439
13440 if test yes = "$lt_cv_dlopen_self"; then
13441 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13443 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13444 if test ${lt_cv_dlopen_self_static+y}
13445 then :
13446 printf %s "(cached) " >&6
13447 else case e in #(
13448 e) if test yes = "$cross_compiling"; then :
13449 lt_cv_dlopen_self_static=cross
13450 else
13451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13452 lt_status=$lt_dlunknown
13453 cat > conftest.$ac_ext <<_LT_EOF
13454 #line $LINENO "configure"
13455 #include "confdefs.h"
13456
13457 #if HAVE_DLFCN_H
13458 #include <dlfcn.h>
13459 #endif
13460
13461 #include <stdio.h>
13462
13463 #ifdef RTLD_GLOBAL
13464 # define LT_DLGLOBAL RTLD_GLOBAL
13465 #else
13466 # ifdef DL_GLOBAL
13467 # define LT_DLGLOBAL DL_GLOBAL
13468 # else
13469 # define LT_DLGLOBAL 0
13470 # endif
13471 #endif
13472
13473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13474 find out it does not work in some platform. */
13475 #ifndef LT_DLLAZY_OR_NOW
13476 # ifdef RTLD_LAZY
13477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13478 # else
13479 # ifdef DL_LAZY
13480 # define LT_DLLAZY_OR_NOW DL_LAZY
13481 # else
13482 # ifdef RTLD_NOW
13483 # define LT_DLLAZY_OR_NOW RTLD_NOW
13484 # else
13485 # ifdef DL_NOW
13486 # define LT_DLLAZY_OR_NOW DL_NOW
13487 # else
13488 # define LT_DLLAZY_OR_NOW 0
13489 # endif
13490 # endif
13491 # endif
13492 # endif
13493 #endif
13494
13495 /* When -fvisibility=hidden is used, assume the code has been annotated
13496 correspondingly for the symbols needed. */
13497 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13498 int fnord (void) __attribute__((visibility("default")));
13499 #endif
13500
13501 int fnord (void) { return 42; }
13502 int main (void)
13503 {
13504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13505 int status = $lt_dlunknown;
13506
13507 if (self)
13508 {
13509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13510 else
13511 {
13512 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13513 else puts (dlerror ());
13514 }
13515 /* dlclose (self); */
13516 }
13517 else
13518 puts (dlerror ());
13519
13520 return status;
13521 }
13522 _LT_EOF
13523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13524 (eval $ac_link) 2>&5
13525 ac_status=$?
13526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13527 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13528 (./conftest; exit; ) >&5 2>/dev/null
13529 lt_status=$?
13530 case x$lt_status in
13531 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13532 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13533 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13534 esac
13535 else :
13536 # compilation failed
13537 lt_cv_dlopen_self_static=no
13538 fi
13539 fi
13540 rm -fr conftest*
13541
13542 ;;
13543 esac
13544 fi
13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13546 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13547 fi
13548
13549 CPPFLAGS=$save_CPPFLAGS
13550 LDFLAGS=$save_LDFLAGS
13551 LIBS=$save_LIBS
13552 ;;
13553 esac
13554
13555 case $lt_cv_dlopen_self in
13556 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13557 *) enable_dlopen_self=unknown ;;
13558 esac
13559
13560 case $lt_cv_dlopen_self_static in
13561 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13562 *) enable_dlopen_self_static=unknown ;;
13563 esac
13564 fi
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582 striplib=
13583 old_striplib=
13584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13585 printf %s "checking whether stripping libraries is possible... " >&6; }
13586 if test -z "$STRIP"; then
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 printf "%s\n" "no" >&6; }
13589 else
13590 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13591 old_striplib="$STRIP --strip-debug"
13592 striplib="$STRIP --strip-unneeded"
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13594 printf "%s\n" "yes" >&6; }
13595 else
13596 case $host_os in
13597 darwin*)
13598 # FIXME - insert some real tests, host_os isn't really good enough
13599 striplib="$STRIP -x"
13600 old_striplib="$STRIP -S"
13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602 printf "%s\n" "yes" >&6; }
13603 ;;
13604 freebsd*)
13605 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13606 old_striplib="$STRIP --strip-debug"
13607 striplib="$STRIP --strip-unneeded"
13608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13609 printf "%s\n" "yes" >&6; }
13610 else
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 printf "%s\n" "no" >&6; }
13613 fi
13614 ;;
13615 *)
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 printf "%s\n" "no" >&6; }
13618 ;;
13619 esac
13620 fi
13621 fi
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634 # Report what library types will actually be built
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13636 printf %s "checking if libtool supports shared libraries... " >&6; }
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13638 printf "%s\n" "$can_build_shared" >&6; }
13639
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13641 printf %s "checking whether to build shared libraries... " >&6; }
13642 test no = "$can_build_shared" && enable_shared=no
13643
13644 # On AIX, shared libraries and static libraries use the same namespace, and
13645 # are all built from PIC.
13646 case $host_os in
13647 aix3*)
13648 test yes = "$enable_shared" && enable_static=no
13649 if test -n "$RANLIB"; then
13650 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13651 postinstall_cmds='$RANLIB $lib'
13652 fi
13653 ;;
13654
13655 aix[4-9]*)
13656 if test ia64 != "$host_cpu"; then
13657 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13658 yes,aix,yes) ;; # shared object as lib.so file only
13659 yes,svr4,*) ;; # shared object as lib.so archive member only
13660 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13661 esac
13662 fi
13663 ;;
13664 esac
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13666 printf "%s\n" "$enable_shared" >&6; }
13667
13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13669 printf %s "checking whether to build static libraries... " >&6; }
13670 # Make sure either enable_shared or enable_static is yes.
13671 test yes = "$enable_shared" || enable_static=yes
13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13673 printf "%s\n" "$enable_static" >&6; }
13674
13675
13676
13677
13678 fi
13679 ac_ext=c
13680 ac_cpp='$CPP $CPPFLAGS'
13681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13684
13685 CC=$lt_save_CC
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701 ac_config_commands="$ac_config_commands libtool"
13702
13703
13704
13705
13706 # Only expand once:
13707
13708
13709
13710 # Checks for libraries.
13711
13712
13713
13714
13715
13716
13717
13718 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13719 if test -n "$ac_tool_prefix"; then
13720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13721 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723 printf %s "checking for $ac_word... " >&6; }
13724 if test ${ac_cv_path_PKG_CONFIG+y}
13725 then :
13726 printf %s "(cached) " >&6
13727 else case e in #(
13728 e) case $PKG_CONFIG in
13729 [\\/]* | ?:[\\/]*)
13730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13731 ;;
13732 *)
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736 IFS=$as_save_IFS
13737 case $as_dir in #(((
13738 '') as_dir=./ ;;
13739 */) ;;
13740 *) as_dir=$as_dir/ ;;
13741 esac
13742 for ac_exec_ext in '' $ac_executable_extensions; do
13743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13744 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13746 break 2
13747 fi
13748 done
13749 done
13750 IFS=$as_save_IFS
13751
13752 ;;
13753 esac ;;
13754 esac
13755 fi
13756 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13757 if test -n "$PKG_CONFIG"; then
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13759 printf "%s\n" "$PKG_CONFIG" >&6; }
13760 else
13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762 printf "%s\n" "no" >&6; }
13763 fi
13764
13765
13766 fi
13767 if test -z "$ac_cv_path_PKG_CONFIG"; then
13768 ac_pt_PKG_CONFIG=$PKG_CONFIG
13769 # Extract the first word of "pkg-config", so it can be a program name with args.
13770 set dummy pkg-config; ac_word=$2
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772 printf %s "checking for $ac_word... " >&6; }
13773 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13774 then :
13775 printf %s "(cached) " >&6
13776 else case e in #(
13777 e) case $ac_pt_PKG_CONFIG in
13778 [\\/]* | ?:[\\/]*)
13779 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13780 ;;
13781 *)
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13784 do
13785 IFS=$as_save_IFS
13786 case $as_dir in #(((
13787 '') as_dir=./ ;;
13788 */) ;;
13789 *) as_dir=$as_dir/ ;;
13790 esac
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13793 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13795 break 2
13796 fi
13797 done
13798 done
13799 IFS=$as_save_IFS
13800
13801 ;;
13802 esac ;;
13803 esac
13804 fi
13805 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13806 if test -n "$ac_pt_PKG_CONFIG"; then
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13808 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13809 else
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 printf "%s\n" "no" >&6; }
13812 fi
13813
13814 if test "x$ac_pt_PKG_CONFIG" = x; then
13815 PKG_CONFIG=""
13816 else
13817 case $cross_compiling:$ac_tool_warned in
13818 yes:)
13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13821 ac_tool_warned=yes ;;
13822 esac
13823 PKG_CONFIG=$ac_pt_PKG_CONFIG
13824 fi
13825 else
13826 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13827 fi
13828
13829 fi
13830 if test -n "$PKG_CONFIG"; then
13831 _pkg_min_version=0.9.0
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13833 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13834 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13836 printf "%s\n" "yes" >&6; }
13837 else
13838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 printf "%s\n" "no" >&6; }
13840 PKG_CONFIG=""
13841 fi
13842 fi
13843
13844 pkg_failed=no
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libimobiledevice-1.0 >= 1.3.0" >&5
13846 printf %s "checking for libimobiledevice-1.0 >= 1.3.0... " >&6; }
13847
13848 if test -n "$libimobiledevice_CFLAGS"; then
13849 pkg_cv_libimobiledevice_CFLAGS="$libimobiledevice_CFLAGS"
13850 elif test -n "$PKG_CONFIG"; then
13851 if test -n "$PKG_CONFIG" && \
13852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= 1.3.0\""; } >&5
13853 ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= 1.3.0") 2>&5
13854 ac_status=$?
13855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856 test $ac_status = 0; }; then
13857 pkg_cv_libimobiledevice_CFLAGS=`$PKG_CONFIG --cflags "libimobiledevice-1.0 >= 1.3.0" 2>/dev/null`
13858 test "x$?" != "x0" && pkg_failed=yes
13859 else
13860 pkg_failed=yes
13861 fi
13862 else
13863 pkg_failed=untried
13864 fi
13865 if test -n "$libimobiledevice_LIBS"; then
13866 pkg_cv_libimobiledevice_LIBS="$libimobiledevice_LIBS"
13867 elif test -n "$PKG_CONFIG"; then
13868 if test -n "$PKG_CONFIG" && \
13869 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= 1.3.0\""; } >&5
13870 ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= 1.3.0") 2>&5
13871 ac_status=$?
13872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13873 test $ac_status = 0; }; then
13874 pkg_cv_libimobiledevice_LIBS=`$PKG_CONFIG --libs "libimobiledevice-1.0 >= 1.3.0" 2>/dev/null`
13875 test "x$?" != "x0" && pkg_failed=yes
13876 else
13877 pkg_failed=yes
13878 fi
13879 else
13880 pkg_failed=untried
13881 fi
13882
13883
13884
13885 if test $pkg_failed = yes; then
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 printf "%s\n" "no" >&6; }
13888
13889 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13890 _pkg_short_errors_supported=yes
13891 else
13892 _pkg_short_errors_supported=no
13893 fi
13894 if test $_pkg_short_errors_supported = yes; then
13895 libimobiledevice_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libimobiledevice-1.0 >= 1.3.0" 2>&1`
13896 else
13897 libimobiledevice_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libimobiledevice-1.0 >= 1.3.0" 2>&1`
13898 fi
13899 # Put the nasty error message in config.log where it belongs
13900 echo "$libimobiledevice_PKG_ERRORS" >&5
13901
13902 as_fn_error $? "Package requirements (libimobiledevice-1.0 >= 1.3.0) were not met:
13903
13904 $libimobiledevice_PKG_ERRORS
13905
13906 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13907 installed software in a non-standard prefix.
13908
13909 Alternatively, you may set the environment variables libimobiledevice_CFLAGS
13910 and libimobiledevice_LIBS to avoid the need to call pkg-config.
13911 See the pkg-config man page for more details." "$LINENO" 5
13912 elif test $pkg_failed = untried; then
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 printf "%s\n" "no" >&6; }
13915 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13916 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13917 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13918 is in your PATH or set the PKG_CONFIG environment variable to the full
13919 path to pkg-config.
13920
13921 Alternatively, you may set the environment variables libimobiledevice_CFLAGS
13922 and libimobiledevice_LIBS to avoid the need to call pkg-config.
13923 See the pkg-config man page for more details.
13924
13925 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13926 See 'config.log' for more details" "$LINENO" 5; }
13927 else
13928 libimobiledevice_CFLAGS=$pkg_cv_libimobiledevice_CFLAGS
13929 libimobiledevice_LIBS=$pkg_cv_libimobiledevice_LIBS
13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13931 printf "%s\n" "yes" >&6; }
13932
13933 fi
13934
13935 pkg_failed=no
13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libplist-2.0 >= 2.3.0" >&5
13937 printf %s "checking for libplist-2.0 >= 2.3.0... " >&6; }
13938
13939 if test -n "$libplist_CFLAGS"; then
13940 pkg_cv_libplist_CFLAGS="$libplist_CFLAGS"
13941 elif test -n "$PKG_CONFIG"; then
13942 if test -n "$PKG_CONFIG" && \
13943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist-2.0 >= 2.3.0\""; } >&5
13944 ($PKG_CONFIG --exists --print-errors "libplist-2.0 >= 2.3.0") 2>&5
13945 ac_status=$?
13946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13947 test $ac_status = 0; }; then
13948 pkg_cv_libplist_CFLAGS=`$PKG_CONFIG --cflags "libplist-2.0 >= 2.3.0" 2>/dev/null`
13949 test "x$?" != "x0" && pkg_failed=yes
13950 else
13951 pkg_failed=yes
13952 fi
13953 else
13954 pkg_failed=untried
13955 fi
13956 if test -n "$libplist_LIBS"; then
13957 pkg_cv_libplist_LIBS="$libplist_LIBS"
13958 elif test -n "$PKG_CONFIG"; then
13959 if test -n "$PKG_CONFIG" && \
13960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist-2.0 >= 2.3.0\""; } >&5
13961 ($PKG_CONFIG --exists --print-errors "libplist-2.0 >= 2.3.0") 2>&5
13962 ac_status=$?
13963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964 test $ac_status = 0; }; then
13965 pkg_cv_libplist_LIBS=`$PKG_CONFIG --libs "libplist-2.0 >= 2.3.0" 2>/dev/null`
13966 test "x$?" != "x0" && pkg_failed=yes
13967 else
13968 pkg_failed=yes
13969 fi
13970 else
13971 pkg_failed=untried
13972 fi
13973
13974
13975
13976 if test $pkg_failed = yes; then
13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13978 printf "%s\n" "no" >&6; }
13979
13980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13981 _pkg_short_errors_supported=yes
13982 else
13983 _pkg_short_errors_supported=no
13984 fi
13985 if test $_pkg_short_errors_supported = yes; then
13986 libplist_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libplist-2.0 >= 2.3.0" 2>&1`
13987 else
13988 libplist_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libplist-2.0 >= 2.3.0" 2>&1`
13989 fi
13990 # Put the nasty error message in config.log where it belongs
13991 echo "$libplist_PKG_ERRORS" >&5
13992
13993 as_fn_error $? "Package requirements (libplist-2.0 >= 2.3.0) were not met:
13994
13995 $libplist_PKG_ERRORS
13996
13997 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13998 installed software in a non-standard prefix.
13999
14000 Alternatively, you may set the environment variables libplist_CFLAGS
14001 and libplist_LIBS to avoid the need to call pkg-config.
14002 See the pkg-config man page for more details." "$LINENO" 5
14003 elif test $pkg_failed = untried; then
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005 printf "%s\n" "no" >&6; }
14006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14007 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14008 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14009 is in your PATH or set the PKG_CONFIG environment variable to the full
14010 path to pkg-config.
14011
14012 Alternatively, you may set the environment variables libplist_CFLAGS
14013 and libplist_LIBS to avoid the need to call pkg-config.
14014 See the pkg-config man page for more details.
14015
14016 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14017 See 'config.log' for more details" "$LINENO" 5; }
14018 else
14019 libplist_CFLAGS=$pkg_cv_libplist_CFLAGS
14020 libplist_LIBS=$pkg_cv_libplist_LIBS
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14022 printf "%s\n" "yes" >&6; }
14023
14024 fi
14025
14026 pkg_failed=no
14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzip >= 0.10" >&5
14028 printf %s "checking for libzip >= 0.10... " >&6; }
14029
14030 if test -n "$libzip_CFLAGS"; then
14031 pkg_cv_libzip_CFLAGS="$libzip_CFLAGS"
14032 elif test -n "$PKG_CONFIG"; then
14033 if test -n "$PKG_CONFIG" && \
14034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.10\""; } >&5
14035 ($PKG_CONFIG --exists --print-errors "libzip >= 0.10") 2>&5
14036 ac_status=$?
14037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14038 test $ac_status = 0; }; then
14039 pkg_cv_libzip_CFLAGS=`$PKG_CONFIG --cflags "libzip >= 0.10" 2>/dev/null`
14040 test "x$?" != "x0" && pkg_failed=yes
14041 else
14042 pkg_failed=yes
14043 fi
14044 else
14045 pkg_failed=untried
14046 fi
14047 if test -n "$libzip_LIBS"; then
14048 pkg_cv_libzip_LIBS="$libzip_LIBS"
14049 elif test -n "$PKG_CONFIG"; then
14050 if test -n "$PKG_CONFIG" && \
14051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.10\""; } >&5
14052 ($PKG_CONFIG --exists --print-errors "libzip >= 0.10") 2>&5
14053 ac_status=$?
14054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14055 test $ac_status = 0; }; then
14056 pkg_cv_libzip_LIBS=`$PKG_CONFIG --libs "libzip >= 0.10" 2>/dev/null`
14057 test "x$?" != "x0" && pkg_failed=yes
14058 else
14059 pkg_failed=yes
14060 fi
14061 else
14062 pkg_failed=untried
14063 fi
14064
14065
14066
14067 if test $pkg_failed = yes; then
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 printf "%s\n" "no" >&6; }
14070
14071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14072 _pkg_short_errors_supported=yes
14073 else
14074 _pkg_short_errors_supported=no
14075 fi
14076 if test $_pkg_short_errors_supported = yes; then
14077 libzip_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzip >= 0.10" 2>&1`
14078 else
14079 libzip_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzip >= 0.10" 2>&1`
14080 fi
14081 # Put the nasty error message in config.log where it belongs
14082 echo "$libzip_PKG_ERRORS" >&5
14083
14084 as_fn_error $? "Package requirements (libzip >= 0.10) were not met:
14085
14086 $libzip_PKG_ERRORS
14087
14088 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14089 installed software in a non-standard prefix.
14090
14091 Alternatively, you may set the environment variables libzip_CFLAGS
14092 and libzip_LIBS to avoid the need to call pkg-config.
14093 See the pkg-config man page for more details." "$LINENO" 5
14094 elif test $pkg_failed = untried; then
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096 printf "%s\n" "no" >&6; }
14097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14098 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14099 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14100 is in your PATH or set the PKG_CONFIG environment variable to the full
14101 path to pkg-config.
14102
14103 Alternatively, you may set the environment variables libzip_CFLAGS
14104 and libzip_LIBS to avoid the need to call pkg-config.
14105 See the pkg-config man page for more details.
14106
14107 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14108 See 'config.log' for more details" "$LINENO" 5; }
14109 else
14110 libzip_CFLAGS=$pkg_cv_libzip_CFLAGS
14111 libzip_LIBS=$pkg_cv_libzip_LIBS
14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14113 printf "%s\n" "yes" >&6; }
14114
14115 fi
14116
14117 # Checks for header files.
14118 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14119 if test "x$ac_cv_header_stdint_h" = xyes
14120 then :
14121 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14122
14123 fi
14124 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14125 if test "x$ac_cv_header_stdlib_h" = xyes
14126 then :
14127 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14128
14129 fi
14130 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14131 if test "x$ac_cv_header_string_h" = xyes
14132 then :
14133 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14134
14135 fi
14136
14137
14138 # Checks for typedefs, structures, and compiler characteristics.
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14140 printf %s "checking for an ANSI C-conforming const... " >&6; }
14141 if test ${ac_cv_c_const+y}
14142 then :
14143 printf %s "(cached) " >&6
14144 else case e in #(
14145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147
14148 int
14149 main (void)
14150 {
14151
14152 #ifndef __cplusplus
14153 /* Ultrix mips cc rejects this sort of thing. */
14154 typedef int charset[2];
14155 const charset cs = { 0, 0 };
14156 /* SunOS 4.1.1 cc rejects this. */
14157 char const *const *pcpcc;
14158 char **ppc;
14159 /* NEC SVR4.0.2 mips cc rejects this. */
14160 struct point {int x, y;};
14161 static struct point const zero = {0,0};
14162 /* IBM XL C 1.02.0.0 rejects this.
14163 It does not let you subtract one const X* pointer from another in
14164 an arm of an if-expression whose if-part is not a constant
14165 expression */
14166 const char *g = "string";
14167 pcpcc = &g + (g ? g-g : 0);
14168 /* HPUX 7.0 cc rejects these. */
14169 ++pcpcc;
14170 ppc = (char**) pcpcc;
14171 pcpcc = (char const *const *) ppc;
14172 { /* SCO 3.2v4 cc rejects this sort of thing. */
14173 char tx;
14174 char *t = &tx;
14175 char const *s = 0 ? (char *) 0 : (char const *) 0;
14176
14177 *t++ = 0;
14178 if (s) return 0;
14179 }
14180 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14181 int x[] = {25, 17};
14182 const int *foo = &x[0];
14183 ++foo;
14184 }
14185 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14186 typedef const int *iptr;
14187 iptr p = 0;
14188 ++p;
14189 }
14190 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14191 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14192 struct s { int j; const int *ap[3]; } bx;
14193 struct s *b = &bx; b->j = 5;
14194 }
14195 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14196 const int foo = 10;
14197 if (!foo) return 0;
14198 }
14199 return !cs[0] && !zero.x;
14200 #endif
14201
14202 ;
14203 return 0;
14204 }
14205 _ACEOF
14206 if ac_fn_c_try_compile "$LINENO"
14207 then :
14208 ac_cv_c_const=yes
14209 else case e in #(
14210 e) ac_cv_c_const=no ;;
14211 esac
14212 fi
14213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14214 esac
14215 fi
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14217 printf "%s\n" "$ac_cv_c_const" >&6; }
14218 if test $ac_cv_c_const = no; then
14219
14220 printf "%s\n" "#define const /**/" >>confdefs.h
14221
14222 fi
14223
14224 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14225 if test "x$ac_cv_type_size_t" = xyes
14226 then :
14227
14228 else case e in #(
14229 e)
14230 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
14231 ;;
14232 esac
14233 fi
14234
14235 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14236 if test "x$ac_cv_type_ssize_t" = xyes
14237 then :
14238
14239 else case e in #(
14240 e)
14241 printf "%s\n" "#define ssize_t int" >>confdefs.h
14242 ;;
14243 esac
14244 fi
14245
14246 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14247 case $ac_cv_c_uint16_t in #(
14248 no|yes) ;; #(
14249 *)
14250
14251
14252 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
14253 ;;
14254 esac
14255
14256 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14257 case $ac_cv_c_uint32_t in #(
14258 no|yes) ;; #(
14259 *)
14260
14261 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
14262
14263
14264 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
14265 ;;
14266 esac
14267
14268 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14269 case $ac_cv_c_uint8_t in #(
14270 no|yes) ;; #(
14271 *)
14272
14273 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
14274
14275
14276 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
14277 ;;
14278 esac
14279
14280
14281 # Checks for library functions.
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14283 printf %s "checking for GNU libc compatible malloc... " >&6; }
14284 if test ${ac_cv_func_malloc_0_nonnull+y}
14285 then :
14286 printf %s "(cached) " >&6
14287 else case e in #(
14288 e) if test "$cross_compiling" = yes
14289 then :
14290 case "$host_os" in # ((
14291 # Guess yes on platforms where we know the result.
14292 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
14293 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
14294 ac_cv_func_malloc_0_nonnull=yes ;;
14295 # If we don't know, assume the worst.
14296 *) ac_cv_func_malloc_0_nonnull=no ;;
14297 esac
14298 else case e in #(
14299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14301 #include <stdlib.h>
14302
14303 int
14304 main (void)
14305 {
14306 void *p = malloc (0);
14307 int result = !p;
14308 free (p);
14309 return result;
14310 ;
14311 return 0;
14312 }
14313 _ACEOF
14314 if ac_fn_c_try_run "$LINENO"
14315 then :
14316 ac_cv_func_malloc_0_nonnull=yes
14317 else case e in #(
14318 e) ac_cv_func_malloc_0_nonnull=no ;;
14319 esac
14320 fi
14321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14322 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14323 esac
14324 fi
14325 ;;
14326 esac
14327 fi
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14329 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
14330 if test $ac_cv_func_malloc_0_nonnull = yes
14331 then :
14332
14333 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
14334
14335 else case e in #(
14336 e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
14337
14338 case " $LIBOBJS " in
14339 *" malloc.$ac_objext "* ) ;;
14340 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14341 ;;
14342 esac
14343
14344
14345 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
14346 ;;
14347 esac
14348 fi
14349
14350
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
14352 printf %s "checking for GNU libc compatible realloc... " >&6; }
14353 if test ${ac_cv_func_realloc_0_nonnull+y}
14354 then :
14355 printf %s "(cached) " >&6
14356 else case e in #(
14357 e) if test "$cross_compiling" = yes
14358 then :
14359 case "$host_os" in # ((
14360 # Guess yes on platforms where we know the result.
14361 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
14362 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
14363 ac_cv_func_realloc_0_nonnull=yes ;;
14364 # If we don't know, assume the worst.
14365 *) ac_cv_func_realloc_0_nonnull=no ;;
14366 esac
14367 else case e in #(
14368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370 #include <stdlib.h>
14371
14372 int
14373 main (void)
14374 {
14375 void *p = realloc (0, 0);
14376 int result = !p;
14377 free (p);
14378 return result;
14379 ;
14380 return 0;
14381 }
14382 _ACEOF
14383 if ac_fn_c_try_run "$LINENO"
14384 then :
14385 ac_cv_func_realloc_0_nonnull=yes
14386 else case e in #(
14387 e) ac_cv_func_realloc_0_nonnull=no ;;
14388 esac
14389 fi
14390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14391 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14392 esac
14393 fi
14394 ;;
14395 esac
14396 fi
14397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
14398 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
14399 if test $ac_cv_func_realloc_0_nonnull = yes
14400 then :
14401
14402 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
14403
14404 else case e in #(
14405 e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
14406
14407 case " $LIBOBJS " in
14408 *" realloc.$ac_objext "* ) ;;
14409 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
14410 ;;
14411 esac
14412
14413
14414 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
14415 ;;
14416 esac
14417 fi
14418
14419
14420 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
14421 if test "x$ac_cv_func_strdup" = xyes
14422 then :
14423 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
14424
14425 fi
14426 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14427 if test "x$ac_cv_func_strerror" = xyes
14428 then :
14429 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
14430
14431 fi
14432 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14433 if test "x$ac_cv_func_asprintf" = xyes
14434 then :
14435 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
14436
14437 fi
14438 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14439 if test "x$ac_cv_func_vasprintf" = xyes
14440 then :
14441 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
14442
14443 fi
14444
14445
14446 # Check for lstat
14447
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat is available" >&5
14449 printf %s "checking whether lstat is available... " >&6; }
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452
14453 #include <sys/types.h>
14454 #include <sys/stat.h>
14455 #if defined(HAVE_UNISTD_H)
14456 #include <unistd.h>
14457 #endif
14458
14459 int
14460 main (void)
14461 {
14462
14463 struct stat st;
14464 lstat("/tmp", &st);
14465
14466 ;
14467 return 0;
14468 }
14469 _ACEOF
14470 if ac_fn_c_try_link "$LINENO"
14471 then :
14472 have_lstat="yes"
14473 else case e in #(
14474 e) have_lstat="no" ;;
14475 esac
14476 fi
14477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14478 conftest$ac_exeext conftest.$ac_ext
14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${have_lstat}" >&5
14480 printf "%s\n" "${have_lstat}" >&6; }
14481
14482 if test "x${have_lstat}" = "xyes" ; then
14483
14484 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
14485
14486 fi
14487
14488
14489 list="-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Werror -g"
14490 flags_supported=""
14491 flags_unsupported=""
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
14493 printf %s "checking for supported compiler flags... " >&6; }
14494 for each in $list
14495 do
14496 save_CFLAGS="$CFLAGS"
14497 CFLAGS="$CFLAGS $each"
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500
14501 int
14502 main (void)
14503 {
14504
14505 ;
14506 return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"
14510 then :
14511 flag_ok=yes
14512 else case e in #(
14513 e) flag_ok=no ;;
14514 esac
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14517 CFLAGS="$save_CFLAGS"
14518
14519 if test "X$flag_ok" = Xyes ; then
14520 flags_supported="$flags_supported $each"
14521 else
14522 flags_unsupported="$flags_unsupported $each"
14523 fi
14524 done
14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
14526 printf "%s\n" "$flags_supported" >&6; }
14527 if test "X$flags_unsupported" != X ; then
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
14529 printf "%s\n" "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
14530 fi
14531 GLOBAL_CFLAGS="$GLOBAL_CFLAGS $flags_supported"
14532
14533
14534
14535
14536 AM_DEFAULT_VERBOSITY=0
14537
14538 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
14539
14540 cat >confcache <<\_ACEOF
14541 # This file is a shell script that caches the results of configure
14542 # tests run on this system so they can be shared between configure
14543 # scripts and configure runs, see configure's option --config-cache.
14544 # It is not useful on other systems. If it contains results you don't
14545 # want to keep, you may remove or edit it.
14546 #
14547 # config.status only pays attention to the cache file if you give it
14548 # the --recheck option to rerun configure.
14549 #
14550 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
14551 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
14552 # following values.
14553
14554 _ACEOF
14555
14556 # The following way of writing the cache mishandles newlines in values,
14557 # but we know of no workaround that is simple, portable, and efficient.
14558 # So, we kill variables containing newlines.
14559 # Ultrix sh set writes to stderr and can't be redirected directly,
14560 # and sets the high bit in the cache file unless we assign to the vars.
14561 (
14562 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14563 eval ac_val=\$$ac_var
14564 case $ac_val in #(
14565 *${as_nl}*)
14566 case $ac_var in #(
14567 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14568 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14569 esac
14570 case $ac_var in #(
14571 _ | IFS | as_nl) ;; #(
14572 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14573 *) { eval $ac_var=; unset $ac_var;} ;;
14574 esac ;;
14575 esac
14576 done
14577
14578 (set) 2>&1 |
14579 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14580 *${as_nl}ac_space=\ *)
14581 # 'set' does not quote correctly, so add quotes: double-quote
14582 # substitution turns \\\\ into \\, and sed turns \\ into \.
14583 sed -n \
14584 "s/'/'\\\\''/g;
14585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14586 ;; #(
14587 *)
14588 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14590 ;;
14591 esac |
14592 sort
14593 ) |
14594 sed '
14595 /^ac_cv_env_/b end
14596 t clear
14597 :clear
14598 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14599 t end
14600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14601 :end' >>confcache
14602 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14603 if test -w "$cache_file"; then
14604 if test "x$cache_file" != "x/dev/null"; then
14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14606 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14607 if test ! -f "$cache_file" || test -h "$cache_file"; then
14608 cat confcache >"$cache_file"
14609 else
14610 case $cache_file in #(
14611 */* | ?:*)
14612 mv -f confcache "$cache_file"$$ &&
14613 mv -f "$cache_file"$$ "$cache_file" ;; #(
14614 *)
14615 mv -f confcache "$cache_file" ;;
14616 esac
14617 fi
14618 fi
14619 else
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14621 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14622 fi
14623 fi
14624 rm -f confcache
14625
14626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14627 # Let make expand exec_prefix.
14628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14629
14630 DEFS=-DHAVE_CONFIG_H
14631
14632 ac_libobjs=
14633 ac_ltlibobjs=
14634 U=
14635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14636 # 1. Remove the extension, and $U if already installed.
14637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14638 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14640 # will be set to the directory where LIBOBJS objects are built.
14641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14643 done
14644 LIBOBJS=$ac_libobjs
14645
14646 LTLIBOBJS=$ac_ltlibobjs
14647
14648
14649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14650 printf %s "checking that generated files are newer than configure... " >&6; }
14651 if test -n "$am_sleep_pid"; then
14652 # Hide warnings about reused PIDs.
14653 wait $am_sleep_pid 2>/dev/null
14654 fi
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14656 printf "%s\n" "done" >&6; }
14657 case $enable_silent_rules in # (((
14658 yes) AM_DEFAULT_VERBOSITY=0;;
14659 no) AM_DEFAULT_VERBOSITY=1;;
14660 esac
14661 if test $am_cv_make_support_nested_variables = yes; then
14662 AM_V='$(V)'
14663 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14664 else
14665 AM_V=$AM_DEFAULT_VERBOSITY
14666 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14667 fi
14668
14669 if test -n "$EXEEXT"; then
14670 am__EXEEXT_TRUE=
14671 am__EXEEXT_FALSE='#'
14672 else
14673 am__EXEEXT_TRUE='#'
14674 am__EXEEXT_FALSE=
14675 fi
14676
14677 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14678 as_fn_error $? "conditional \"AMDEP\" was never defined.
14679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14680 fi
14681 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14682 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14684 fi
14685
14686 : "${CONFIG_STATUS=./config.status}"
14687 ac_write_fail=0
14688 ac_clean_files_save=$ac_clean_files
14689 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14691 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14692 as_write_fail=0
14693 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14694 #! $SHELL
14695 # Generated by $as_me.
14696 # Run this file to recreate the current configuration.
14697 # Compiler output produced by configure, useful for debugging
14698 # configure, is in config.log if it exists.
14699
14700 debug=false
14701 ac_cs_recheck=false
14702 ac_cs_silent=false
14703
14704 SHELL=\${CONFIG_SHELL-$SHELL}
14705 export SHELL
14706 _ASEOF
14707 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14708 ## -------------------- ##
14709 ## M4sh Initialization. ##
14710 ## -------------------- ##
14711
14712 # Be more Bourne compatible
14713 DUALCASE=1; export DUALCASE # for MKS sh
14714 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14715 then :
14716 emulate sh
14717 NULLCMD=:
14718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14719 # is contrary to our usage. Disable this feature.
14720 alias -g '${1+"$@"}'='"$@"'
14721 setopt NO_GLOB_SUBST
14722 else case e in #(
14723 e) case `(set -o) 2>/dev/null` in #(
14724 *posix*) :
14725 set -o posix ;; #(
14726 *) :
14727 ;;
14728 esac ;;
14729 esac
14730 fi
14731
14732
14733
14734 # Reset variables that may have inherited troublesome values from
14735 # the environment.
14736
14737 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14738 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14739 # side effect of setting IFS to empty, thus disabling word splitting.)
14740 # Quoting is to prevent editors from complaining about space-tab.
14741 as_nl='
14742 '
14743 export as_nl
14744 IFS=" "" $as_nl"
14745
14746 PS1='$ '
14747 PS2='> '
14748 PS4='+ '
14749
14750 # Ensure predictable behavior from utilities with locale-dependent output.
14751 LC_ALL=C
14752 export LC_ALL
14753 LANGUAGE=C
14754 export LANGUAGE
14755
14756 # We cannot yet rely on "unset" to work, but we need these variables
14757 # to be unset--not just set to an empty or harmless value--now, to
14758 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14759 # also avoids known problems related to "unset" and subshell syntax
14760 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14761 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14762 do eval test \${$as_var+y} \
14763 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14764 done
14765
14766 # Ensure that fds 0, 1, and 2 are open.
14767 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14768 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14769 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14770
14771 # The user is always right.
14772 if ${PATH_SEPARATOR+false} :; then
14773 PATH_SEPARATOR=:
14774 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14775 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14776 PATH_SEPARATOR=';'
14777 }
14778 fi
14779
14780
14781 # Find who we are. Look in the path if we contain no directory separator.
14782 as_myself=
14783 case $0 in #((
14784 *[\\/]* ) as_myself=$0 ;;
14785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14786 for as_dir in $PATH
14787 do
14788 IFS=$as_save_IFS
14789 case $as_dir in #(((
14790 '') as_dir=./ ;;
14791 */) ;;
14792 *) as_dir=$as_dir/ ;;
14793 esac
14794 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14795 done
14796 IFS=$as_save_IFS
14797
14798 ;;
14799 esac
14800 # We did not find ourselves, most probably we were run as 'sh COMMAND'
14801 # in which case we are not to be found in the path.
14802 if test "x$as_myself" = x; then
14803 as_myself=$0
14804 fi
14805 if test ! -f "$as_myself"; then
14806 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14807 exit 1
14808 fi
14809
14810
14811
14812 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14813 # ----------------------------------------
14814 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14815 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14816 # script with STATUS, using 1 if that was 0.
14817 as_fn_error ()
14818 {
14819 as_status=$1; test $as_status -eq 0 && as_status=1
14820 if test "$4"; then
14821 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14823 fi
14824 printf "%s\n" "$as_me: error: $2" >&2
14825 as_fn_exit $as_status
14826 } # as_fn_error
14827
14828
14829 # as_fn_set_status STATUS
14830 # -----------------------
14831 # Set $? to STATUS, without forking.
14832 as_fn_set_status ()
14833 {
14834 return $1
14835 } # as_fn_set_status
14836
14837 # as_fn_exit STATUS
14838 # -----------------
14839 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14840 as_fn_exit ()
14841 {
14842 set +e
14843 as_fn_set_status $1
14844 exit $1
14845 } # as_fn_exit
14846
14847 # as_fn_unset VAR
14848 # ---------------
14849 # Portably unset VAR.
14850 as_fn_unset ()
14851 {
14852 { eval $1=; unset $1;}
14853 }
14854 as_unset=as_fn_unset
14855
14856 # as_fn_append VAR VALUE
14857 # ----------------------
14858 # Append the text in VALUE to the end of the definition contained in VAR. Take
14859 # advantage of any shell optimizations that allow amortized linear growth over
14860 # repeated appends, instead of the typical quadratic growth present in naive
14861 # implementations.
14862 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14863 then :
14864 eval 'as_fn_append ()
14865 {
14866 eval $1+=\$2
14867 }'
14868 else case e in #(
14869 e) as_fn_append ()
14870 {
14871 eval $1=\$$1\$2
14872 } ;;
14873 esac
14874 fi # as_fn_append
14875
14876 # as_fn_arith ARG...
14877 # ------------------
14878 # Perform arithmetic evaluation on the ARGs, and store the result in the
14879 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14880 # must be portable across $(()) and expr.
14881 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14882 then :
14883 eval 'as_fn_arith ()
14884 {
14885 as_val=$(( $* ))
14886 }'
14887 else case e in #(
14888 e) as_fn_arith ()
14889 {
14890 as_val=`expr "$@" || test $? -eq 1`
14891 } ;;
14892 esac
14893 fi # as_fn_arith
14894
14895
14896 if expr a : '\(a\)' >/dev/null 2>&1 &&
14897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14898 as_expr=expr
14899 else
14900 as_expr=false
14901 fi
14902
14903 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14904 as_basename=basename
14905 else
14906 as_basename=false
14907 fi
14908
14909 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14910 as_dirname=dirname
14911 else
14912 as_dirname=false
14913 fi
14914
14915 as_me=`$as_basename -- "$0" ||
14916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14917 X"$0" : 'X\(//\)$' \| \
14918 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14919 printf "%s\n" X/"$0" |
14920 sed '/^.*\/\([^/][^/]*\)\/*$/{
14921 s//\1/
14922 q
14923 }
14924 /^X\/\(\/\/\)$/{
14925 s//\1/
14926 q
14927 }
14928 /^X\/\(\/\).*/{
14929 s//\1/
14930 q
14931 }
14932 s/.*/./; q'`
14933
14934 # Avoid depending upon Character Ranges.
14935 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14936 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14937 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14938 as_cr_digits='0123456789'
14939 as_cr_alnum=$as_cr_Letters$as_cr_digits
14940
14941
14942 # Determine whether it's possible to make 'echo' print without a newline.
14943 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14944 # for compatibility with existing Makefiles.
14945 ECHO_C= ECHO_N= ECHO_T=
14946 case `echo -n x` in #(((((
14947 -n*)
14948 case `echo 'xy\c'` in
14949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14950 xy) ECHO_C='\c';;
14951 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14952 ECHO_T=' ';;
14953 esac;;
14954 *)
14955 ECHO_N='-n';;
14956 esac
14957
14958 # For backward compatibility with old third-party macros, we provide
14959 # the shell variables $as_echo and $as_echo_n. New code should use
14960 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14961 as_echo='printf %s\n'
14962 as_echo_n='printf %s'
14963
14964 rm -f conf$$ conf$$.exe conf$$.file
14965 if test -d conf$$.dir; then
14966 rm -f conf$$.dir/conf$$.file
14967 else
14968 rm -f conf$$.dir
14969 mkdir conf$$.dir 2>/dev/null
14970 fi
14971 if (echo >conf$$.file) 2>/dev/null; then
14972 if ln -s conf$$.file conf$$ 2>/dev/null; then
14973 as_ln_s='ln -s'
14974 # ... but there are two gotchas:
14975 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
14976 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
14977 # In both cases, we have to default to 'cp -pR'.
14978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14979 as_ln_s='cp -pR'
14980 elif ln conf$$.file conf$$ 2>/dev/null; then
14981 as_ln_s=ln
14982 else
14983 as_ln_s='cp -pR'
14984 fi
14985 else
14986 as_ln_s='cp -pR'
14987 fi
14988 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14989 rmdir conf$$.dir 2>/dev/null
14990
14991
14992 # as_fn_mkdir_p
14993 # -------------
14994 # Create "$as_dir" as a directory, including parents if necessary.
14995 as_fn_mkdir_p ()
14996 {
14997
14998 case $as_dir in #(
14999 -*) as_dir=./$as_dir;;
15000 esac
15001 test -d "$as_dir" || eval $as_mkdir_p || {
15002 as_dirs=
15003 while :; do
15004 case $as_dir in #(
15005 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15006 *) as_qdir=$as_dir;;
15007 esac
15008 as_dirs="'$as_qdir' $as_dirs"
15009 as_dir=`$as_dirname -- "$as_dir" ||
15010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15011 X"$as_dir" : 'X\(//\)[^/]' \| \
15012 X"$as_dir" : 'X\(//\)$' \| \
15013 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15014 printf "%s\n" X"$as_dir" |
15015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15016 s//\1/
15017 q
15018 }
15019 /^X\(\/\/\)[^/].*/{
15020 s//\1/
15021 q
15022 }
15023 /^X\(\/\/\)$/{
15024 s//\1/
15025 q
15026 }
15027 /^X\(\/\).*/{
15028 s//\1/
15029 q
15030 }
15031 s/.*/./; q'`
15032 test -d "$as_dir" && break
15033 done
15034 test -z "$as_dirs" || eval "mkdir $as_dirs"
15035 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15036
15037
15038 } # as_fn_mkdir_p
15039 if mkdir -p . 2>/dev/null; then
15040 as_mkdir_p='mkdir -p "$as_dir"'
15041 else
15042 test -d ./-p && rmdir ./-p
15043 as_mkdir_p=false
15044 fi
15045
15046
15047 # as_fn_executable_p FILE
15048 # -----------------------
15049 # Test if FILE is an executable regular file.
15050 as_fn_executable_p ()
15051 {
15052 test -f "$1" && test -x "$1"
15053 } # as_fn_executable_p
15054 as_test_x='test -x'
15055 as_executable_p=as_fn_executable_p
15056
15057 # Sed expression to map a string onto a valid CPP name.
15058 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15059 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15060
15061 # Sed expression to map a string onto a valid variable name.
15062 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15063 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15064
15065
15066 exec 6>&1
15067 ## ----------------------------------- ##
15068 ## Main body of $CONFIG_STATUS script. ##
15069 ## ----------------------------------- ##
15070 _ASEOF
15071 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15072
15073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15074 # Save the log message, to keep $0 and so on meaningful, and to
15075 # report actual input values of CONFIG_FILES etc. instead of their
15076 # values after options handling.
15077 ac_log="
15078 This file was extended by ideviceinstaller $as_me 1.2.0, which was
15079 generated by GNU Autoconf 2.72. Invocation command line was
15080
15081 CONFIG_FILES = $CONFIG_FILES
15082 CONFIG_HEADERS = $CONFIG_HEADERS
15083 CONFIG_LINKS = $CONFIG_LINKS
15084 CONFIG_COMMANDS = $CONFIG_COMMANDS
15085 $ $0 $@
15086
15087 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15088 "
15089
15090 _ACEOF
15091
15092 case $ac_config_files in *"
15093 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15094 esac
15095
15096 case $ac_config_headers in *"
15097 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15098 esac
15099
15100
15101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15102 # Files that config.status was made for.
15103 config_files="$ac_config_files"
15104 config_headers="$ac_config_headers"
15105 config_commands="$ac_config_commands"
15106
15107 _ACEOF
15108
15109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110 ac_cs_usage="\
15111 '$as_me' instantiates files and other configuration actions
15112 from templates according to the current configuration. Unless the files
15113 and actions are specified as TAGs, all are instantiated by default.
15114
15115 Usage: $0 [OPTION]... [TAG]...
15116
15117 -h, --help print this help, then exit
15118 -V, --version print version number and configuration settings, then exit
15119 --config print configuration, then exit
15120 -q, --quiet, --silent
15121 do not print progress messages
15122 -d, --debug don't remove temporary files
15123 --recheck update $as_me by reconfiguring in the same conditions
15124 --file=FILE[:TEMPLATE]
15125 instantiate the configuration file FILE
15126 --header=FILE[:TEMPLATE]
15127 instantiate the configuration header FILE
15128
15129 Configuration files:
15130 $config_files
15131
15132 Configuration headers:
15133 $config_headers
15134
15135 Configuration commands:
15136 $config_commands
15137
15138 Report bugs to <https://github.com/libimobiledevice/ideviceinstaller/issues>.
15139 ideviceinstaller home page: <https://libimobiledevice.org>."
15140
15141 _ACEOF
15142 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15143 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15145 ac_cs_config='$ac_cs_config_escaped'
15146 ac_cs_version="\\
15147 ideviceinstaller config.status 1.2.0
15148 configured by $0, generated by GNU Autoconf 2.72,
15149 with options \\"\$ac_cs_config\\"
15150
15151 Copyright (C) 2023 Free Software Foundation, Inc.
15152 This config.status script is free software; the Free Software Foundation
15153 gives unlimited permission to copy, distribute and modify it."
15154
15155 ac_pwd='$ac_pwd'
15156 srcdir='$srcdir'
15157 INSTALL='$INSTALL'
15158 MKDIR_P='$MKDIR_P'
15159 AWK='$AWK'
15160 test -n "\$AWK" || AWK=awk
15161 _ACEOF
15162
15163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15164 # The default lists apply if the user does not specify any file.
15165 ac_need_defaults=:
15166 while test $# != 0
15167 do
15168 case $1 in
15169 --*=?*)
15170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15171 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15172 ac_shift=:
15173 ;;
15174 --*=)
15175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15176 ac_optarg=
15177 ac_shift=:
15178 ;;
15179 *)
15180 ac_option=$1
15181 ac_optarg=$2
15182 ac_shift=shift
15183 ;;
15184 esac
15185
15186 case $ac_option in
15187 # Handling of the options.
15188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15189 ac_cs_recheck=: ;;
15190 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15191 printf "%s\n" "$ac_cs_version"; exit ;;
15192 --config | --confi | --conf | --con | --co | --c )
15193 printf "%s\n" "$ac_cs_config"; exit ;;
15194 --debug | --debu | --deb | --de | --d | -d )
15195 debug=: ;;
15196 --file | --fil | --fi | --f )
15197 $ac_shift
15198 case $ac_optarg in
15199 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15200 '') as_fn_error $? "missing file argument" ;;
15201 esac
15202 as_fn_append CONFIG_FILES " '$ac_optarg'"
15203 ac_need_defaults=false;;
15204 --header | --heade | --head | --hea )
15205 $ac_shift
15206 case $ac_optarg in
15207 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15208 esac
15209 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15210 ac_need_defaults=false;;
15211 --he | --h)
15212 # Conflict between --help and --header
15213 as_fn_error $? "ambiguous option: '$1'
15214 Try '$0 --help' for more information.";;
15215 --help | --hel | -h )
15216 printf "%s\n" "$ac_cs_usage"; exit ;;
15217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15218 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15219 ac_cs_silent=: ;;
15220
15221 # This is an error.
15222 -*) as_fn_error $? "unrecognized option: '$1'
15223 Try '$0 --help' for more information." ;;
15224
15225 *) as_fn_append ac_config_targets " $1"
15226 ac_need_defaults=false ;;
15227
15228 esac
15229 shift
15230 done
15231
15232 ac_configure_extra_args=
15233
15234 if $ac_cs_silent; then
15235 exec 6>/dev/null
15236 ac_configure_extra_args="$ac_configure_extra_args --silent"
15237 fi
15238
15239 _ACEOF
15240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15241 if \$ac_cs_recheck; then
15242 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15243 shift
15244 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15245 CONFIG_SHELL='$SHELL'
15246 export CONFIG_SHELL
15247 exec "\$@"
15248 fi
15249
15250 _ACEOF
15251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252 exec 5>>config.log
15253 {
15254 echo
15255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15256 ## Running $as_me. ##
15257 _ASBOX
15258 printf "%s\n" "$ac_log"
15259 } >&5
15260
15261 _ACEOF
15262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15263 #
15264 # INIT-COMMANDS
15265 #
15266 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15267
15268
15269 # The HP-UX ksh and POSIX shell print the target directory to stdout
15270 # if CDPATH is set.
15271 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15272
15273 sed_quote_subst='$sed_quote_subst'
15274 double_quote_subst='$double_quote_subst'
15275 delay_variable_subst='$delay_variable_subst'
15276 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15277 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15278 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15279 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15280 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15281 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15282 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15283 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15284 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15285 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15286 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15287 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15288 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15289 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15290 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15291 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15292 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15293 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15294 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15295 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15296 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15297 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15298 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15299 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15300 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15301 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15302 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15303 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15304 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15305 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15306 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15307 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15308 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15309 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15310 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15311 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15312 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15313 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15314 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15315 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15316 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15317 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15318 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15319 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15320 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15321 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15322 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15323 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15324 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15325 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15326 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15327 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15328 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15329 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15330 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15331 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15332 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15334 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15335 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15336 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"`'
15337 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15338 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15339 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15340 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15341 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15342 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15343 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15344 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15345 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15346 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15347 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15348 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15349 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15350 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15351 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15352 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15353 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15354 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15355 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15356 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15357 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15358 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15359 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15360 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15361 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15362 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15363 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15364 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15365 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15366 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15367 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15368 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15369 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15370 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15371 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15372 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15373 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15374 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15375 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15376 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15377 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15378 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15379 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15380 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15381 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15382 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15383 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15384 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15385 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15386 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15387 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15388 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15389 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15390 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15391 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15392 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15393 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15394 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15395 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15396 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15397 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15398 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15399 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15400 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15401 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15402 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15403 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15404 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15405 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15406 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15407 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15408 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15409 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15410 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15411 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15412 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15413
15414 LTCC='$LTCC'
15415 LTCFLAGS='$LTCFLAGS'
15416 compiler='$compiler_DEFAULT'
15417
15418 # A function that is used when there is no print builtin or printf.
15419 func_fallback_echo ()
15420 {
15421 eval 'cat <<_LTECHO_EOF
15422 \$1
15423 _LTECHO_EOF'
15424 }
15425
15426 # Quote evaled strings.
15427 for var in SHELL \
15428 ECHO \
15429 PATH_SEPARATOR \
15430 SED \
15431 GREP \
15432 EGREP \
15433 FGREP \
15434 LD \
15435 NM \
15436 LN_S \
15437 lt_SP2NL \
15438 lt_NL2SP \
15439 reload_flag \
15440 FILECMD \
15441 OBJDUMP \
15442 deplibs_check_method \
15443 file_magic_cmd \
15444 file_magic_glob \
15445 want_nocaseglob \
15446 DLLTOOL \
15447 sharedlib_from_linklib_cmd \
15448 AR \
15449 archiver_list_spec \
15450 STRIP \
15451 RANLIB \
15452 CC \
15453 CFLAGS \
15454 compiler \
15455 lt_cv_sys_global_symbol_pipe \
15456 lt_cv_sys_global_symbol_to_cdecl \
15457 lt_cv_sys_global_symbol_to_import \
15458 lt_cv_sys_global_symbol_to_c_name_address \
15459 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15460 lt_cv_nm_interface \
15461 nm_file_list_spec \
15462 lt_cv_truncate_bin \
15463 lt_prog_compiler_no_builtin_flag \
15464 lt_prog_compiler_pic \
15465 lt_prog_compiler_wl \
15466 lt_prog_compiler_static \
15467 lt_cv_prog_compiler_c_o \
15468 need_locks \
15469 MANIFEST_TOOL \
15470 DSYMUTIL \
15471 NMEDIT \
15472 LIPO \
15473 OTOOL \
15474 OTOOL64 \
15475 shrext_cmds \
15476 export_dynamic_flag_spec \
15477 whole_archive_flag_spec \
15478 compiler_needs_object \
15479 with_gnu_ld \
15480 allow_undefined_flag \
15481 no_undefined_flag \
15482 hardcode_libdir_flag_spec \
15483 hardcode_libdir_separator \
15484 exclude_expsyms \
15485 include_expsyms \
15486 file_list_spec \
15487 variables_saved_for_relink \
15488 libname_spec \
15489 library_names_spec \
15490 soname_spec \
15491 install_override_mode \
15492 finish_eval \
15493 old_striplib \
15494 striplib; do
15495 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15496 *[\\\\\\\`\\"\\\$]*)
15497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15498 ;;
15499 *)
15500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15501 ;;
15502 esac
15503 done
15504
15505 # Double-quote double-evaled strings.
15506 for var in reload_cmds \
15507 old_postinstall_cmds \
15508 old_postuninstall_cmds \
15509 old_archive_cmds \
15510 extract_expsyms_cmds \
15511 old_archive_from_new_cmds \
15512 old_archive_from_expsyms_cmds \
15513 archive_cmds \
15514 archive_expsym_cmds \
15515 module_cmds \
15516 module_expsym_cmds \
15517 export_symbols_cmds \
15518 prelink_cmds \
15519 postlink_cmds \
15520 postinstall_cmds \
15521 postuninstall_cmds \
15522 finish_cmds \
15523 sys_lib_search_path_spec \
15524 configure_time_dlsearch_path \
15525 configure_time_lt_sys_library_path; do
15526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15527 *[\\\\\\\`\\"\\\$]*)
15528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15529 ;;
15530 *)
15531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15532 ;;
15533 esac
15534 done
15535
15536 ac_aux_dir='$ac_aux_dir'
15537
15538 # See if we are running on zsh, and set the options that allow our
15539 # commands through without removal of \ escapes INIT.
15540 if test -n "\${ZSH_VERSION+set}"; then
15541 setopt NO_GLOB_SUBST
15542 fi
15543
15544
15545 PACKAGE='$PACKAGE'
15546 VERSION='$VERSION'
15547 RM='$RM'
15548 ofile='$ofile'
15549
15550
15551
15552
15553 _ACEOF
15554
15555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556
15557 # Handling of arguments.
15558 for ac_config_target in $ac_config_targets
15559 do
15560 case $ac_config_target in
15561 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15562 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15563 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15564 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15565 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15566 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15567
15568 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15569 esac
15570 done
15571
15572
15573 # If the user did not use the arguments to specify the items to instantiate,
15574 # then the envvar interface is used. Set only those that are not.
15575 # We use the long form for the default assignment because of an extremely
15576 # bizarre bug on SunOS 4.1.3.
15577 if $ac_need_defaults; then
15578 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15579 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15580 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15581 fi
15582
15583 # Have a temporary directory for convenience. Make it in the build tree
15584 # simply because there is no reason against having it here, and in addition,
15585 # creating and moving files from /tmp can sometimes cause problems.
15586 # Hook for its removal unless debugging.
15587 # Note that there is a small window in which the directory will not be cleaned:
15588 # after its creation but before its name has been assigned to '$tmp'.
15589 $debug ||
15590 {
15591 tmp= ac_tmp=
15592 trap 'exit_status=$?
15593 : "${ac_tmp:=$tmp}"
15594 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15595 ' 0
15596 trap 'as_fn_exit 1' 1 2 13 15
15597 }
15598 # Create a (secure) tmp directory for tmp files.
15599
15600 {
15601 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15602 test -d "$tmp"
15603 } ||
15604 {
15605 tmp=./conf$$-$RANDOM
15606 (umask 077 && mkdir "$tmp")
15607 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15608 ac_tmp=$tmp
15609
15610 # Set up the scripts for CONFIG_FILES section.
15611 # No need to generate them if there are no CONFIG_FILES.
15612 # This happens for instance with './config.status config.h'.
15613 if test -n "$CONFIG_FILES"; then
15614
15615
15616 ac_cr=`echo X | tr X '\015'`
15617 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15618 # But we know of no other shell where ac_cr would be empty at this
15619 # point, so we can use a bashism as a fallback.
15620 if test "x$ac_cr" = x; then
15621 eval ac_cr=\$\'\\r\'
15622 fi
15623 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15624 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15625 ac_cs_awk_cr='\\r'
15626 else
15627 ac_cs_awk_cr=$ac_cr
15628 fi
15629
15630 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15631 _ACEOF
15632
15633
15634 {
15635 echo "cat >conf$$subs.awk <<_ACEOF" &&
15636 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15637 echo "_ACEOF"
15638 } >conf$$subs.sh ||
15639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15640 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15641 ac_delim='%!_!# '
15642 for ac_last_try in false false false false false :; do
15643 . ./conf$$subs.sh ||
15644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15645
15646 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15647 if test $ac_delim_n = $ac_delim_num; then
15648 break
15649 elif $ac_last_try; then
15650 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15651 else
15652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15653 fi
15654 done
15655 rm -f conf$$subs.sh
15656
15657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15658 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15659 _ACEOF
15660 sed -n '
15661 h
15662 s/^/S["/; s/!.*/"]=/
15663 p
15664 g
15665 s/^[^!]*!//
15666 :repl
15667 t repl
15668 s/'"$ac_delim"'$//
15669 t delim
15670 :nl
15671 h
15672 s/\(.\{148\}\)..*/\1/
15673 t more1
15674 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15675 p
15676 n
15677 b repl
15678 :more1
15679 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15680 p
15681 g
15682 s/.\{148\}//
15683 t nl
15684 :delim
15685 h
15686 s/\(.\{148\}\)..*/\1/
15687 t more2
15688 s/["\\]/\\&/g; s/^/"/; s/$/"/
15689 p
15690 b
15691 :more2
15692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15693 p
15694 g
15695 s/.\{148\}//
15696 t delim
15697 ' <conf$$subs.awk | sed '
15698 /^[^""]/{
15699 N
15700 s/\n//
15701 }
15702 ' >>$CONFIG_STATUS || ac_write_fail=1
15703 rm -f conf$$subs.awk
15704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15705 _ACAWK
15706 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15707 for (key in S) S_is_set[key] = 1
15708 FS = ""
15709
15710 }
15711 {
15712 line = $ 0
15713 nfields = split(line, field, "@")
15714 substed = 0
15715 len = length(field[1])
15716 for (i = 2; i < nfields; i++) {
15717 key = field[i]
15718 keylen = length(key)
15719 if (S_is_set[key]) {
15720 value = S[key]
15721 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15722 len += length(value) + length(field[++i])
15723 substed = 1
15724 } else
15725 len += 1 + keylen
15726 }
15727
15728 print line
15729 }
15730
15731 _ACAWK
15732 _ACEOF
15733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15735 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15736 else
15737 cat
15738 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15739 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15740 _ACEOF
15741
15742 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15743 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15744 # trailing colons and then remove the whole line if VPATH becomes empty
15745 # (actually we leave an empty line to preserve line numbers).
15746 if test "x$srcdir" = x.; then
15747 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15748 h
15749 s///
15750 s/^/:/
15751 s/[ ]*$/:/
15752 s/:\$(srcdir):/:/g
15753 s/:\${srcdir}:/:/g
15754 s/:@srcdir@:/:/g
15755 s/^:*//
15756 s/:*$//
15757 x
15758 s/\(=[ ]*\).*/\1/
15759 G
15760 s/\n//
15761 s/^[^=]*=[ ]*$//
15762 }'
15763 fi
15764
15765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15766 fi # test -n "$CONFIG_FILES"
15767
15768 # Set up the scripts for CONFIG_HEADERS section.
15769 # No need to generate them if there are no CONFIG_HEADERS.
15770 # This happens for instance with './config.status Makefile'.
15771 if test -n "$CONFIG_HEADERS"; then
15772 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15773 BEGIN {
15774 _ACEOF
15775
15776 # Transform confdefs.h into an awk script 'defines.awk', embedded as
15777 # here-document in config.status, that substitutes the proper values into
15778 # config.h.in to produce config.h.
15779
15780 # Create a delimiter string that does not exist in confdefs.h, to ease
15781 # handling of long lines.
15782 ac_delim='%!_!# '
15783 for ac_last_try in false false :; do
15784 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15785 if test -z "$ac_tt"; then
15786 break
15787 elif $ac_last_try; then
15788 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15789 else
15790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15791 fi
15792 done
15793
15794 # For the awk script, D is an array of macro values keyed by name,
15795 # likewise P contains macro parameters if any. Preserve backslash
15796 # newline sequences.
15797
15798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15799 sed -n '
15800 s/.\{148\}/&'"$ac_delim"'/g
15801 t rset
15802 :rset
15803 s/^[ ]*#[ ]*define[ ][ ]*/ /
15804 t def
15805 d
15806 :def
15807 s/\\$//
15808 t bsnl
15809 s/["\\]/\\&/g
15810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15811 D["\1"]=" \3"/p
15812 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15813 d
15814 :bsnl
15815 s/["\\]/\\&/g
15816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15817 D["\1"]=" \3\\\\\\n"\\/p
15818 t cont
15819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15820 t cont
15821 d
15822 :cont
15823 n
15824 s/.\{148\}/&'"$ac_delim"'/g
15825 t clear
15826 :clear
15827 s/\\$//
15828 t bsnlc
15829 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15830 d
15831 :bsnlc
15832 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15833 b cont
15834 ' <confdefs.h | sed '
15835 s/'"$ac_delim"'/"\\\
15836 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15837
15838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15839 for (key in D) D_is_set[key] = 1
15840 FS = ""
15841 }
15842 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15843 line = \$ 0
15844 split(line, arg, " ")
15845 if (arg[1] == "#") {
15846 defundef = arg[2]
15847 mac1 = arg[3]
15848 } else {
15849 defundef = substr(arg[1], 2)
15850 mac1 = arg[2]
15851 }
15852 split(mac1, mac2, "(") #)
15853 macro = mac2[1]
15854 prefix = substr(line, 1, index(line, defundef) - 1)
15855 if (D_is_set[macro]) {
15856 # Preserve the white space surrounding the "#".
15857 print prefix "define", macro P[macro] D[macro]
15858 next
15859 } else {
15860 # Replace #undef with comments. This is necessary, for example,
15861 # in the case of _POSIX_SOURCE, which is predefined and required
15862 # on some systems where configure will not decide to define it.
15863 if (defundef == "undef") {
15864 print "/*", prefix defundef, macro, "*/"
15865 next
15866 }
15867 }
15868 }
15869 { print }
15870 _ACAWK
15871 _ACEOF
15872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15873 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15874 fi # test -n "$CONFIG_HEADERS"
15875
15876
15877 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15878 shift
15879 for ac_tag
15880 do
15881 case $ac_tag in
15882 :[FHLC]) ac_mode=$ac_tag; continue;;
15883 esac
15884 case $ac_mode$ac_tag in
15885 :[FHL]*:*);;
15886 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
15887 :[FH]-) ac_tag=-:-;;
15888 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15889 esac
15890 ac_save_IFS=$IFS
15891 IFS=:
15892 set x $ac_tag
15893 IFS=$ac_save_IFS
15894 shift
15895 ac_file=$1
15896 shift
15897
15898 case $ac_mode in
15899 :L) ac_source=$1;;
15900 :[FH])
15901 ac_file_inputs=
15902 for ac_f
15903 do
15904 case $ac_f in
15905 -) ac_f="$ac_tmp/stdin";;
15906 *) # Look for the file first in the build tree, then in the source tree
15907 # (if the path is not absolute). The absolute path cannot be DOS-style,
15908 # because $ac_f cannot contain ':'.
15909 test -f "$ac_f" ||
15910 case $ac_f in
15911 [\\/$]*) false;;
15912 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15913 esac ||
15914 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
15915 esac
15916 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15917 as_fn_append ac_file_inputs " '$ac_f'"
15918 done
15919
15920 # Let's still pretend it is 'configure' which instantiates (i.e., don't
15921 # use $as_me), people would be surprised to read:
15922 # /* config.h. Generated by config.status. */
15923 configure_input='Generated from '`
15924 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15925 `' by configure.'
15926 if test x"$ac_file" != x-; then
15927 configure_input="$ac_file. $configure_input"
15928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15929 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15930 fi
15931 # Neutralize special characters interpreted by sed in replacement strings.
15932 case $configure_input in #(
15933 *\&* | *\|* | *\\* )
15934 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15935 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15936 *) ac_sed_conf_input=$configure_input;;
15937 esac
15938
15939 case $ac_tag in
15940 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15942 esac
15943 ;;
15944 esac
15945
15946 ac_dir=`$as_dirname -- "$ac_file" ||
15947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15948 X"$ac_file" : 'X\(//\)[^/]' \| \
15949 X"$ac_file" : 'X\(//\)$' \| \
15950 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15951 printf "%s\n" X"$ac_file" |
15952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15953 s//\1/
15954 q
15955 }
15956 /^X\(\/\/\)[^/].*/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\/\)$/{
15961 s//\1/
15962 q
15963 }
15964 /^X\(\/\).*/{
15965 s//\1/
15966 q
15967 }
15968 s/.*/./; q'`
15969 as_dir="$ac_dir"; as_fn_mkdir_p
15970 ac_builddir=.
15971
15972 case "$ac_dir" in
15973 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15974 *)
15975 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15976 # A ".." for each directory in $ac_dir_suffix.
15977 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15978 case $ac_top_builddir_sub in
15979 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15980 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15981 esac ;;
15982 esac
15983 ac_abs_top_builddir=$ac_pwd
15984 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15985 # for backward compatibility:
15986 ac_top_builddir=$ac_top_build_prefix
15987
15988 case $srcdir in
15989 .) # We are building in place.
15990 ac_srcdir=.
15991 ac_top_srcdir=$ac_top_builddir_sub
15992 ac_abs_top_srcdir=$ac_pwd ;;
15993 [\\/]* | ?:[\\/]* ) # Absolute name.
15994 ac_srcdir=$srcdir$ac_dir_suffix;
15995 ac_top_srcdir=$srcdir
15996 ac_abs_top_srcdir=$srcdir ;;
15997 *) # Relative name.
15998 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15999 ac_top_srcdir=$ac_top_build_prefix$srcdir
16000 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16001 esac
16002 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16003
16004
16005 case $ac_mode in
16006 :F)
16007 #
16008 # CONFIG_FILE
16009 #
16010
16011 case $INSTALL in
16012 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16013 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16014 esac
16015 ac_MKDIR_P=$MKDIR_P
16016 case $MKDIR_P in
16017 [\\/$]* | ?:[\\/]* ) ;;
16018 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16019 esac
16020 _ACEOF
16021
16022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16023 # If the template does not know about datarootdir, expand it.
16024 # FIXME: This hack should be removed a few years after 2.60.
16025 ac_datarootdir_hack=; ac_datarootdir_seen=
16026 ac_sed_dataroot='
16027 /datarootdir/ {
16028 p
16029 q
16030 }
16031 /@datadir@/p
16032 /@docdir@/p
16033 /@infodir@/p
16034 /@localedir@/p
16035 /@mandir@/p'
16036 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16037 *datarootdir*) ac_datarootdir_seen=yes;;
16038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16040 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16041 _ACEOF
16042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16043 ac_datarootdir_hack='
16044 s&@datadir@&$datadir&g
16045 s&@docdir@&$docdir&g
16046 s&@infodir@&$infodir&g
16047 s&@localedir@&$localedir&g
16048 s&@mandir@&$mandir&g
16049 s&\\\${datarootdir}&$datarootdir&g' ;;
16050 esac
16051 _ACEOF
16052
16053 # Neutralize VPATH when '$srcdir' = '.'.
16054 # Shell code in configure.ac might set extrasub.
16055 # FIXME: do we really want to maintain this feature?
16056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16057 ac_sed_extra="$ac_vpsub
16058 $extrasub
16059 _ACEOF
16060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16061 :t
16062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16063 s|@configure_input@|$ac_sed_conf_input|;t t
16064 s&@top_builddir@&$ac_top_builddir_sub&;t t
16065 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16066 s&@srcdir@&$ac_srcdir&;t t
16067 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16068 s&@top_srcdir@&$ac_top_srcdir&;t t
16069 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16070 s&@builddir@&$ac_builddir&;t t
16071 s&@abs_builddir@&$ac_abs_builddir&;t t
16072 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16073 s&@INSTALL@&$ac_INSTALL&;t t
16074 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16075 $ac_datarootdir_hack
16076 "
16077 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16078 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16079
16080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16081 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16083 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16085 which seems to be undefined. Please make sure it is defined" >&5
16086 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16087 which seems to be undefined. Please make sure it is defined" >&2;}
16088
16089 rm -f "$ac_tmp/stdin"
16090 case $ac_file in
16091 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16092 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16093 esac \
16094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16095 ;;
16096 :H)
16097 #
16098 # CONFIG_HEADER
16099 #
16100 if test x"$ac_file" != x-; then
16101 {
16102 printf "%s\n" "/* $configure_input */" >&1 \
16103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16104 } >"$ac_tmp/config.h" \
16105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16106 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16108 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16109 else
16110 rm -f "$ac_file"
16111 mv "$ac_tmp/config.h" "$ac_file" \
16112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16113 fi
16114 else
16115 printf "%s\n" "/* $configure_input */" >&1 \
16116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16117 || as_fn_error $? "could not create -" "$LINENO" 5
16118 fi
16119 # Compute "$ac_file"'s index in $config_headers.
16120 _am_arg="$ac_file"
16121 _am_stamp_count=1
16122 for _am_header in $config_headers :; do
16123 case $_am_header in
16124 $_am_arg | $_am_arg:* )
16125 break ;;
16126 * )
16127 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16128 esac
16129 done
16130 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16131 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16132 X"$_am_arg" : 'X\(//\)[^/]' \| \
16133 X"$_am_arg" : 'X\(//\)$' \| \
16134 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16135 printf "%s\n" X"$_am_arg" |
16136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16137 s//\1/
16138 q
16139 }
16140 /^X\(\/\/\)[^/].*/{
16141 s//\1/
16142 q
16143 }
16144 /^X\(\/\/\)$/{
16145 s//\1/
16146 q
16147 }
16148 /^X\(\/\).*/{
16149 s//\1/
16150 q
16151 }
16152 s/.*/./; q'`/stamp-h$_am_stamp_count
16153 ;;
16154
16155 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16156 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16157 ;;
16158 esac
16159
16160
16161 case $ac_file$ac_mode in
16162 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16163 # Older Autoconf quotes --file arguments for eval, but not when files
16164 # are listed without --file. Let's play safe and only enable the eval
16165 # if we detect the quoting.
16166 # TODO: see whether this extra hack can be removed once we start
16167 # requiring Autoconf 2.70 or later.
16168 case $CONFIG_FILES in #(
16169 *\'*) :
16170 eval set x "$CONFIG_FILES" ;; #(
16171 *) :
16172 set x $CONFIG_FILES ;; #(
16173 *) :
16174 ;;
16175 esac
16176 shift
16177 # Used to flag and report bootstrapping failures.
16178 am_rc=0
16179 for am_mf
16180 do
16181 # Strip MF so we end up with the name of the file.
16182 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16183 # Check whether this is an Automake generated Makefile which includes
16184 # dependency-tracking related rules and includes.
16185 # Grep'ing the whole file directly is not great: AIX grep has a line
16186 # limit of 2048, but all sed's we know have understand at least 4000.
16187 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16188 || continue
16189 am_dirpart=`$as_dirname -- "$am_mf" ||
16190 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16191 X"$am_mf" : 'X\(//\)[^/]' \| \
16192 X"$am_mf" : 'X\(//\)$' \| \
16193 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16194 printf "%s\n" X"$am_mf" |
16195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16196 s//\1/
16197 q
16198 }
16199 /^X\(\/\/\)[^/].*/{
16200 s//\1/
16201 q
16202 }
16203 /^X\(\/\/\)$/{
16204 s//\1/
16205 q
16206 }
16207 /^X\(\/\).*/{
16208 s//\1/
16209 q
16210 }
16211 s/.*/./; q'`
16212 am_filepart=`$as_basename -- "$am_mf" ||
16213 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16214 X"$am_mf" : 'X\(//\)$' \| \
16215 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16216 printf "%s\n" X/"$am_mf" |
16217 sed '/^.*\/\([^/][^/]*\)\/*$/{
16218 s//\1/
16219 q
16220 }
16221 /^X\/\(\/\/\)$/{
16222 s//\1/
16223 q
16224 }
16225 /^X\/\(\/\).*/{
16226 s//\1/
16227 q
16228 }
16229 s/.*/./; q'`
16230 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16231 && sed -e '/# am--include-marker/d' "$am_filepart" \
16232 | $MAKE -f - am--depfiles" >&5
16233 (cd "$am_dirpart" \
16234 && sed -e '/# am--include-marker/d' "$am_filepart" \
16235 | $MAKE -f - am--depfiles) >&5 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } || am_rc=$?
16239 done
16240 if test $am_rc -ne 0; then
16241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16242 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16243 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16244 for automatic dependency tracking. If GNU make was not used, consider
16245 re-running the configure script with MAKE=\"gmake\" (or whatever is
16246 necessary). You can also try re-running configure with the
16247 '--disable-dependency-tracking' option to at least be able to build
16248 the package (albeit without support for automatic dependency tracking).
16249 See 'config.log' for more details" "$LINENO" 5; }
16250 fi
16251 { am_dirpart=; unset am_dirpart;}
16252 { am_filepart=; unset am_filepart;}
16253 { am_mf=; unset am_mf;}
16254 { am_rc=; unset am_rc;}
16255 rm -f conftest-deps.mk
16256 }
16257 ;;
16258 "libtool":C)
16259
16260 # See if we are running on zsh, and set the options that allow our
16261 # commands through without removal of \ escapes.
16262 if test -n "${ZSH_VERSION+set}"; then
16263 setopt NO_GLOB_SUBST
16264 fi
16265
16266 cfgfile=${ofile}T
16267 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16268 $RM "$cfgfile"
16269
16270 cat <<_LT_EOF >> "$cfgfile"
16271 #! $SHELL
16272 # Generated automatically by $as_me ($PACKAGE) $VERSION
16273 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16274
16275 # Provide generalized library-building support services.
16276 # Written by Gordon Matzigkeit, 1996
16277
16278 # Copyright (C) 2024 Free Software Foundation, Inc.
16279 # This is free software; see the source for copying conditions. There is NO
16280 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16281
16282 # GNU Libtool is free software; you can redistribute it and/or modify
16283 # it under the terms of the GNU General Public License as published by
16284 # the Free Software Foundation; either version 2 of the License, or
16285 # (at your option) any later version.
16286 #
16287 # As a special exception to the GNU General Public License, if you
16288 # distribute this file as part of a program or library that is built
16289 # using GNU Libtool, you may include this file under the same
16290 # distribution terms that you use for the rest of that program.
16291 #
16292 # GNU Libtool is distributed in the hope that it will be useful, but
16293 # WITHOUT ANY WARRANTY; without even the implied warranty of
16294 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16295 # GNU General Public License for more details.
16296 #
16297 # You should have received a copy of the GNU General Public License
16298 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16299
16300
16301 # The names of the tagged configurations supported by this script.
16302 available_tags=''
16303
16304 # Configured defaults for sys_lib_dlsearch_path munging.
16305 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16306
16307 # ### BEGIN LIBTOOL CONFIG
16308
16309 # Which release of libtool.m4 was used?
16310 macro_version=$macro_version
16311 macro_revision=$macro_revision
16312
16313 # Whether or not to build shared libraries.
16314 build_libtool_libs=$enable_shared
16315
16316 # Whether or not to build static libraries.
16317 build_old_libs=$enable_static
16318
16319 # What type of objects to build.
16320 pic_mode=$pic_mode
16321
16322 # Whether or not to optimize for fast installation.
16323 fast_install=$enable_fast_install
16324
16325 # Shared archive member basename,for filename based shared library versioning on AIX.
16326 shared_archive_member_spec=$shared_archive_member_spec
16327
16328 # Shell to use when invoking shell scripts.
16329 SHELL=$lt_SHELL
16330
16331 # An echo program that protects backslashes.
16332 ECHO=$lt_ECHO
16333
16334 # The PATH separator for the build system.
16335 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16336
16337 # The host system.
16338 host_alias=$host_alias
16339 host=$host
16340 host_os=$host_os
16341
16342 # The build system.
16343 build_alias=$build_alias
16344 build=$build
16345 build_os=$build_os
16346
16347 # A sed program that does not truncate output.
16348 SED=$lt_SED
16349
16350 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16351 Xsed="\$SED -e 1s/^X//"
16352
16353 # A grep program that handles long lines.
16354 GREP=$lt_GREP
16355
16356 # An ERE matcher.
16357 EGREP=$lt_EGREP
16358
16359 # A literal string matcher.
16360 FGREP=$lt_FGREP
16361
16362 # A BSD- or MS-compatible name lister.
16363 NM=$lt_NM
16364
16365 # Whether we need soft or hard links.
16366 LN_S=$lt_LN_S
16367
16368 # What is the maximum length of a command?
16369 max_cmd_len=$max_cmd_len
16370
16371 # Object file suffix (normally "o").
16372 objext=$ac_objext
16373
16374 # Executable file suffix (normally "").
16375 exeext=$exeext
16376
16377 # whether the shell understands "unset".
16378 lt_unset=$lt_unset
16379
16380 # turn spaces into newlines.
16381 SP2NL=$lt_lt_SP2NL
16382
16383 # turn newlines into spaces.
16384 NL2SP=$lt_lt_NL2SP
16385
16386 # convert \$build file names to \$host format.
16387 to_host_file_cmd=$lt_cv_to_host_file_cmd
16388
16389 # convert \$build files to toolchain format.
16390 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16391
16392 # A file(cmd) program that detects file types.
16393 FILECMD=$lt_FILECMD
16394
16395 # An object symbol dumper.
16396 OBJDUMP=$lt_OBJDUMP
16397
16398 # Method to check whether dependent libraries are shared objects.
16399 deplibs_check_method=$lt_deplibs_check_method
16400
16401 # Command to use when deplibs_check_method = "file_magic".
16402 file_magic_cmd=$lt_file_magic_cmd
16403
16404 # How to find potential files when deplibs_check_method = "file_magic".
16405 file_magic_glob=$lt_file_magic_glob
16406
16407 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16408 want_nocaseglob=$lt_want_nocaseglob
16409
16410 # DLL creation program.
16411 DLLTOOL=$lt_DLLTOOL
16412
16413 # Command to associate shared and link libraries.
16414 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16415
16416 # The archiver.
16417 AR=$lt_AR
16418
16419 # Flags to create an archive (by configure).
16420 lt_ar_flags=$lt_ar_flags
16421
16422 # Flags to create an archive.
16423 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16424
16425 # How to feed a file listing to the archiver.
16426 archiver_list_spec=$lt_archiver_list_spec
16427
16428 # A symbol stripping program.
16429 STRIP=$lt_STRIP
16430
16431 # Commands used to install an old-style archive.
16432 RANLIB=$lt_RANLIB
16433 old_postinstall_cmds=$lt_old_postinstall_cmds
16434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16435
16436 # Whether to use a lock for old archive extraction.
16437 lock_old_archive_extraction=$lock_old_archive_extraction
16438
16439 # A C compiler.
16440 LTCC=$lt_CC
16441
16442 # LTCC compiler flags.
16443 LTCFLAGS=$lt_CFLAGS
16444
16445 # Take the output of nm and produce a listing of raw symbols and C names.
16446 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16447
16448 # Transform the output of nm in a proper C declaration.
16449 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16450
16451 # Transform the output of nm into a list of symbols to manually relocate.
16452 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16453
16454 # Transform the output of nm in a C name address pair.
16455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16456
16457 # Transform the output of nm in a C name address pair when lib prefix is needed.
16458 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16459
16460 # The name lister interface.
16461 nm_interface=$lt_lt_cv_nm_interface
16462
16463 # Specify filename containing input files for \$NM.
16464 nm_file_list_spec=$lt_nm_file_list_spec
16465
16466 # The root where to search for dependent libraries,and where our libraries should be installed.
16467 lt_sysroot=$lt_sysroot
16468
16469 # Command to truncate a binary pipe.
16470 lt_truncate_bin=$lt_lt_cv_truncate_bin
16471
16472 # The name of the directory that contains temporary libtool files.
16473 objdir=$objdir
16474
16475 # Used to examine libraries when file_magic_cmd begins with "file".
16476 MAGIC_CMD=$MAGIC_CMD
16477
16478 # Must we lock files when doing compilation?
16479 need_locks=$lt_need_locks
16480
16481 # Manifest tool.
16482 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16483
16484 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16485 DSYMUTIL=$lt_DSYMUTIL
16486
16487 # Tool to change global to local symbols on Mac OS X.
16488 NMEDIT=$lt_NMEDIT
16489
16490 # Tool to manipulate fat objects and archives on Mac OS X.
16491 LIPO=$lt_LIPO
16492
16493 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16494 OTOOL=$lt_OTOOL
16495
16496 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16497 OTOOL64=$lt_OTOOL64
16498
16499 # Old archive suffix (normally "a").
16500 libext=$libext
16501
16502 # Shared library suffix (normally ".so").
16503 shrext_cmds=$lt_shrext_cmds
16504
16505 # The commands to extract the exported symbol list from a shared archive.
16506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16507
16508 # Variables whose values should be saved in libtool wrapper scripts and
16509 # restored at link time.
16510 variables_saved_for_relink=$lt_variables_saved_for_relink
16511
16512 # Do we need the "lib" prefix for modules?
16513 need_lib_prefix=$need_lib_prefix
16514
16515 # Do we need a version for libraries?
16516 need_version=$need_version
16517
16518 # Library versioning type.
16519 version_type=$version_type
16520
16521 # Shared library runtime path variable.
16522 runpath_var=$runpath_var
16523
16524 # Shared library path variable.
16525 shlibpath_var=$shlibpath_var
16526
16527 # Is shlibpath searched before the hard-coded library search path?
16528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16529
16530 # Format of library name prefix.
16531 libname_spec=$lt_libname_spec
16532
16533 # List of archive names. First name is the real one, the rest are links.
16534 # The last name is the one that the linker finds with -lNAME
16535 library_names_spec=$lt_library_names_spec
16536
16537 # The coded name of the library, if different from the real name.
16538 soname_spec=$lt_soname_spec
16539
16540 # Permission mode override for installation of shared libraries.
16541 install_override_mode=$lt_install_override_mode
16542
16543 # Command to use after installation of a shared archive.
16544 postinstall_cmds=$lt_postinstall_cmds
16545
16546 # Command to use after uninstallation of a shared archive.
16547 postuninstall_cmds=$lt_postuninstall_cmds
16548
16549 # Commands used to finish a libtool library installation in a directory.
16550 finish_cmds=$lt_finish_cmds
16551
16552 # As "finish_cmds", except a single script fragment to be evaled but
16553 # not shown.
16554 finish_eval=$lt_finish_eval
16555
16556 # Whether we should hardcode library paths into libraries.
16557 hardcode_into_libs=$hardcode_into_libs
16558
16559 # Compile-time system search path for libraries.
16560 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16561
16562 # Detected run-time system search path for libraries.
16563 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16564
16565 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16566 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16567
16568 # Whether dlopen is supported.
16569 dlopen_support=$enable_dlopen
16570
16571 # Whether dlopen of programs is supported.
16572 dlopen_self=$enable_dlopen_self
16573
16574 # Whether dlopen of statically linked programs is supported.
16575 dlopen_self_static=$enable_dlopen_self_static
16576
16577 # Commands to strip libraries.
16578 old_striplib=$lt_old_striplib
16579 striplib=$lt_striplib
16580
16581
16582 # The linker used to build libraries.
16583 LD=$lt_LD
16584
16585 # How to create reloadable object files.
16586 reload_flag=$lt_reload_flag
16587 reload_cmds=$lt_reload_cmds
16588
16589 # Commands used to build an old-style archive.
16590 old_archive_cmds=$lt_old_archive_cmds
16591
16592 # A language specific compiler.
16593 CC=$lt_compiler
16594
16595 # Is the compiler the GNU compiler?
16596 with_gcc=$GCC
16597
16598 # Compiler flag to turn off builtin functions.
16599 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16600
16601 # Additional compiler flags for building library objects.
16602 pic_flag=$lt_lt_prog_compiler_pic
16603
16604 # How to pass a linker flag through the compiler.
16605 wl=$lt_lt_prog_compiler_wl
16606
16607 # Compiler flag to prevent dynamic linking.
16608 link_static_flag=$lt_lt_prog_compiler_static
16609
16610 # Does compiler simultaneously support -c and -o options?
16611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16612
16613 # Whether or not to add -lc for building shared libraries.
16614 build_libtool_need_lc=$archive_cmds_need_lc
16615
16616 # Whether or not to disallow shared libs when runtime libs are static.
16617 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16618
16619 # Compiler flag to allow reflexive dlopens.
16620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16621
16622 # Compiler flag to generate shared objects directly from archives.
16623 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16624
16625 # Whether the compiler copes with passing no objects directly.
16626 compiler_needs_object=$lt_compiler_needs_object
16627
16628 # Create an old-style archive from a shared archive.
16629 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16630
16631 # Create a temporary old-style archive to link instead of a shared archive.
16632 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16633
16634 # Commands used to build a shared archive.
16635 archive_cmds=$lt_archive_cmds
16636 archive_expsym_cmds=$lt_archive_expsym_cmds
16637
16638 # Commands used to build a loadable module if different from building
16639 # a shared archive.
16640 module_cmds=$lt_module_cmds
16641 module_expsym_cmds=$lt_module_expsym_cmds
16642
16643 # Whether we are building with GNU ld or not.
16644 with_gnu_ld=$lt_with_gnu_ld
16645
16646 # Flag that allows shared libraries with undefined symbols to be built.
16647 allow_undefined_flag=$lt_allow_undefined_flag
16648
16649 # Flag that enforces no undefined symbols.
16650 no_undefined_flag=$lt_no_undefined_flag
16651
16652 # Flag to hardcode \$libdir into a binary during linking.
16653 # This must work even if \$libdir does not exist
16654 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16655
16656 # Whether we need a single "-rpath" flag with a separated argument.
16657 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16658
16659 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16660 # DIR into the resulting binary.
16661 hardcode_direct=$hardcode_direct
16662
16663 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16664 # DIR into the resulting binary and the resulting library dependency is
16665 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16666 # library is relocated.
16667 hardcode_direct_absolute=$hardcode_direct_absolute
16668
16669 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16670 # into the resulting binary.
16671 hardcode_minus_L=$hardcode_minus_L
16672
16673 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16674 # into the resulting binary.
16675 hardcode_shlibpath_var=$hardcode_shlibpath_var
16676
16677 # Set to "yes" if building a shared library automatically hardcodes DIR
16678 # into the library and all subsequent libraries and executables linked
16679 # against it.
16680 hardcode_automatic=$hardcode_automatic
16681
16682 # Set to yes if linker adds runtime paths of dependent libraries
16683 # to runtime path list.
16684 inherit_rpath=$inherit_rpath
16685
16686 # Whether libtool must link a program against all its dependency libraries.
16687 link_all_deplibs=$link_all_deplibs
16688
16689 # Set to "yes" if exported symbols are required.
16690 always_export_symbols=$always_export_symbols
16691
16692 # The commands to list exported symbols.
16693 export_symbols_cmds=$lt_export_symbols_cmds
16694
16695 # Symbols that should not be listed in the preloaded symbols.
16696 exclude_expsyms=$lt_exclude_expsyms
16697
16698 # Symbols that must always be exported.
16699 include_expsyms=$lt_include_expsyms
16700
16701 # Commands necessary for linking programs (against libraries) with templates.
16702 prelink_cmds=$lt_prelink_cmds
16703
16704 # Commands necessary for finishing linking programs.
16705 postlink_cmds=$lt_postlink_cmds
16706
16707 # Specify filename containing input files.
16708 file_list_spec=$lt_file_list_spec
16709
16710 # How to hardcode a shared library path into an executable.
16711 hardcode_action=$hardcode_action
16712
16713 # ### END LIBTOOL CONFIG
16714
16715 _LT_EOF
16716
16717 cat <<'_LT_EOF' >> "$cfgfile"
16718
16719 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16720
16721 # func_munge_path_list VARIABLE PATH
16722 # -----------------------------------
16723 # VARIABLE is name of variable containing _space_ separated list of
16724 # directories to be munged by the contents of PATH, which is string
16725 # having a format:
16726 # "DIR[:DIR]:"
16727 # string "DIR[ DIR]" will be prepended to VARIABLE
16728 # ":DIR[:DIR]"
16729 # string "DIR[ DIR]" will be appended to VARIABLE
16730 # "DIRP[:DIRP]::[DIRA:]DIRA"
16731 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16732 # "DIRA[ DIRA]" will be appended to VARIABLE
16733 # "DIR[:DIR]"
16734 # VARIABLE will be replaced by "DIR[ DIR]"
16735 func_munge_path_list ()
16736 {
16737 case x$2 in
16738 x)
16739 ;;
16740 *:)
16741 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16742 ;;
16743 x:*)
16744 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16745 ;;
16746 *::*)
16747 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16748 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16749 ;;
16750 *)
16751 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16752 ;;
16753 esac
16754 }
16755
16756
16757 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16758 func_cc_basename ()
16759 {
16760 for cc_temp in $*""; do
16761 case $cc_temp in
16762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16764 \-*) ;;
16765 *) break;;
16766 esac
16767 done
16768 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16769 }
16770
16771
16772 # ### END FUNCTIONS SHARED WITH CONFIGURE
16773
16774 _LT_EOF
16775
16776 case $host_os in
16777 aix3*)
16778 cat <<\_LT_EOF >> "$cfgfile"
16779 # AIX sometimes has problems with the GCC collect2 program. For some
16780 # reason, if we set the COLLECT_NAMES environment variable, the problems
16781 # vanish in a puff of smoke.
16782 if test set != "${COLLECT_NAMES+set}"; then
16783 COLLECT_NAMES=
16784 export COLLECT_NAMES
16785 fi
16786 _LT_EOF
16787 ;;
16788 esac
16789
16790
16791
16792 ltmain=$ac_aux_dir/ltmain.sh
16793
16794
16795 # We use sed instead of cat because bash on DJGPP gets confused if
16796 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16797 # text mode, it properly converts lines to CR/LF. This bash problem
16798 # is reportedly fixed, but why not run on old versions too?
16799 $SED '$q' "$ltmain" >> "$cfgfile" \
16800 || (rm -f "$cfgfile"; exit 1)
16801
16802 mv -f "$cfgfile" "$ofile" ||
16803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16804 chmod +x "$ofile"
16805
16806 ;;
16807
16808 esac
16809 done # for ac_tag
16810
16811
16812 as_fn_exit 0
16813 _ACEOF
16814 ac_clean_files=$ac_clean_files_save
16815
16816 test $ac_write_fail = 0 ||
16817 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16818
16819
16820 # configure is writing to config.log, and then calls config.status.
16821 # config.status does its own redirection, appending to config.log.
16822 # Unfortunately, on DOS this fails, as config.log is still kept open
16823 # by configure, so config.status won't be able to write to it; its
16824 # output is simply discarded. So we exec the FD to /dev/null,
16825 # effectively closing config.log, so it can be properly (re)opened and
16826 # appended to by config.status. When coming back to configure, we
16827 # need to make the FD available again.
16828 if test "$no_create" != yes; then
16829 ac_cs_success=:
16830 ac_config_status_args=
16831 test "$silent" = yes &&
16832 ac_config_status_args="$ac_config_status_args --quiet"
16833 exec 5>/dev/null
16834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16835 exec 5>>config.log
16836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16837 # would make configure fail if this is the last instruction.
16838 $ac_cs_success || as_fn_exit 1
16839 fi
16840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16842 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16843 fi
16844
16845
16846 echo "
16847 Configuration for $PACKAGE $VERSION:
16848 -------------------------------------------
16849
16850 Install prefix: .........: $prefix
16851
16852 Now type 'make' to build $PACKAGE $VERSION,
16853 and then 'make install' for installation.
16854 "
16855