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 libimobiledevice-glue 1.3.2.
4 #
5 # Report bugs to <https://github.com/libimobiledevice/libimobiledevice-glue/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/libimobiledevice-glue/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='libimobiledevice-glue'
617 PACKAGE_TARNAME='libimobiledevice-glue'
618 PACKAGE_VERSION='1.3.2'
619 PACKAGE_STRING='libimobiledevice-glue 1.3.2'
620 PACKAGE_BUGREPORT='https://github.com/libimobiledevice/libimobiledevice-glue/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 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 GLOBAL_CFLAGS
662 WIN32_FALSE
663 WIN32_TRUE
664 PTHREAD_CFLAGS
665 PTHREAD_LIBS
666 PTHREAD_CXX
667 PTHREAD_CC
668 ax_pthread_config
669 CPP
670 libplist_LIBS
671 libplist_CFLAGS
672 PKG_CONFIG_LIBDIR
673 PKG_CONFIG_PATH
674 PKG_CONFIG
675 LT_SYS_LIBRARY_PATH
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
682 RANLIB
683 ac_ct_AR
684 AR
685 DLLTOOL
686 OBJDUMP
687 FILECMD
688 LN_S
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 EGREP
695 GREP
696 SED
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 LIBTOOL
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 LIBPLIST_VERSION
723 LIBIMOBILEDEVICE_GLUE_SO_VERSION
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 CSCOPE
729 ETAGS
730 CTAGS
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 runstatedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL
793 am__quote'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_dependency_tracking
799 enable_shared
800 enable_static
801 with_pic
802 enable_fast_install
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 with_winver
808 enable_largefile
809 enable_year2038
810 '
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 LT_SYS_LIBRARY_PATH
820 PKG_CONFIG
821 PKG_CONFIG_PATH
822 PKG_CONFIG_LIBDIR
823 libplist_CFLAGS
824 libplist_LIBS
825 CPP'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 runstatedir='${localstatedir}/run'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
886 fi
887
888 case $ac_option in
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *=) ac_optarg= ;;
891 *) ac_optarg=yes ;;
892 esac
893
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
902
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
917
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
922
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: '$ac_useropt'"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
955
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: '$ac_useropt'"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
991
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
996
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1026
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1043
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1064
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1100
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
1115 -runstatedir | --runstatedir | --runstatedi | --runstated \
1116 | --runstate | --runstat | --runsta | --runst | --runs \
1117 | --run | --ru | --r)
1118 ac_prev=runstatedir ;;
1119 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121 | --run=* | --ru=* | --r=*)
1122 runstatedir=$ac_optarg ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: '$ac_useropt'"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: '$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
1219 -*) as_fn_error $? "unrecognized option: '$ac_option'
1220 Try '$0 --help' for more information"
1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 ;;
1240
1241 esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir runstatedir
1262 do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: '$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 printf "%s\n" X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339 else
1340 ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 'configure' configures libimobiledevice-glue 1.3.2 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print 'checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for '--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or '..']
1393
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400 By default, 'make install' will install all the files in
1401 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than '$ac_default_prefix' using '--prefix',
1403 for instance '--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root
1424 [DATAROOTDIR/doc/libimobiledevice-glue]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1430
1431 cat <<\_ACEOF
1432
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of libimobiledevice-glue 1.3.2:";;
1447 esac
1448 cat <<\_ACEOF
1449
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-static[=PKGS] build static libraries [default=yes]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --disable-libtool-lock avoid locking (might break parallel builds)
1465 --disable-largefile omit support for large files
1466 --enable-year2038 support timestamps after 2038
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-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1472 both]
1473 --with-aix-soname=aix|svr4|both
1474 shared library versioning (aka "SONAME") variant to
1475 provide on AIX, [default=aix].
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1478 compiler's sysroot if not specified).
1479 --with-winver Set the minimum windows version
1480
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 LT_SYS_LIBRARY_PATH
1490 User-defined run-time library search path.
1491 PKG_CONFIG path to pkg-config utility
1492 PKG_CONFIG_PATH
1493 directories to add to pkg-config's search path
1494 PKG_CONFIG_LIBDIR
1495 path overriding pkg-config's built-in search path
1496 libplist_CFLAGS
1497 C compiler flags for libplist, overriding pkg-config
1498 libplist_LIBS
1499 linker flags for libplist, overriding pkg-config
1500 CPP C preprocessor
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/libimobiledevice-glue/issues>.
1506 libimobiledevice-glue 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 libimobiledevice-glue configure 1.3.2
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
1933 # ac_fn_c_try_cpp LINENO
1934 # ----------------------
1935 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1936 ac_fn_c_try_cpp ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { { ac_try="$ac_cpp conftest.$ac_ext"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 printf "%s\n" "$ac_try_echo"; } >&5
1946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1952 fi
1953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } > conftest.i && {
1955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 }
1958 then :
1959 ac_retval=0
1960 else case e in #(
1961 e) printf "%s\n" "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=1 ;;
1965 esac
1966 fi
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_cpp
1971
1972 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1973 # ----------------------------------------------------
1974 # Tries to find if the field MEMBER exists in type AGGR, after including
1975 # INCLUDES, setting cache variable VAR accordingly.
1976 ac_fn_c_check_member ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1980 printf %s "checking for $2.$3... " >&6; }
1981 if eval test \${$4+y}
1982 then :
1983 printf %s "(cached) " >&6
1984 else case e in #(
1985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $5
1988 int
1989 main (void)
1990 {
1991 static $2 ac_aggr;
1992 if (ac_aggr.$3)
1993 return 0;
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"
1999 then :
2000 eval "$4=yes"
2001 else case e in #(
2002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $5
2005 int
2006 main (void)
2007 {
2008 static $2 ac_aggr;
2009 if (sizeof ac_aggr.$3)
2010 return 0;
2011 ;
2012 return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"
2016 then :
2017 eval "$4=yes"
2018 else case e in #(
2019 e) eval "$4=no" ;;
2020 esac
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2023 esac
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2026 esac
2027 fi
2028 eval ac_res=\$$4
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 printf "%s\n" "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_c_check_member
2034 ac_configure_args_raw=
2035 for ac_arg
2036 do
2037 case $ac_arg in
2038 *\'*)
2039 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2040 esac
2041 as_fn_append ac_configure_args_raw " '$ac_arg'"
2042 done
2043
2044 case $ac_configure_args_raw in
2045 *$as_nl*)
2046 ac_safe_unquote= ;;
2047 *)
2048 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2049 ac_unsafe_a="$ac_unsafe_z#~"
2050 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2051 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2052 esac
2053
2054 cat >config.log <<_ACEOF
2055 This file contains any messages produced by compilers while
2056 running configure, to aid debugging if configure makes a mistake.
2057
2058 It was created by libimobiledevice-glue $as_me 1.3.2, which was
2059 generated by GNU Autoconf 2.72. Invocation command line was
2060
2061 $ $0$ac_configure_args_raw
2062
2063 _ACEOF
2064 exec 5>>config.log
2065 {
2066 cat <<_ASUNAME
2067 ## --------- ##
2068 ## Platform. ##
2069 ## --------- ##
2070
2071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2076
2077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2079
2080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2083 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2087
2088 _ASUNAME
2089
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 case $as_dir in #(((
2095 '') as_dir=./ ;;
2096 */) ;;
2097 *) as_dir=$as_dir/ ;;
2098 esac
2099 printf "%s\n" "PATH: $as_dir"
2100 done
2101 IFS=$as_save_IFS
2102
2103 } >&5
2104
2105 cat >&5 <<_ACEOF
2106
2107
2108 ## ----------- ##
2109 ## Core tests. ##
2110 ## ----------- ##
2111
2112 _ACEOF
2113
2114
2115 # Keep a trace of the command line.
2116 # Strip out --no-create and --no-recursion so they do not pile up.
2117 # Strip out --silent because we don't want to record it for future runs.
2118 # Also quote any args containing shell meta-characters.
2119 # Make two passes to allow for proper duplicate-argument suppression.
2120 ac_configure_args=
2121 ac_configure_args0=
2122 ac_configure_args1=
2123 ac_must_keep_next=false
2124 for ac_pass in 1 2
2125 do
2126 for ac_arg
2127 do
2128 case $ac_arg in
2129 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2131 | -silent | --silent | --silen | --sile | --sil)
2132 continue ;;
2133 *\'*)
2134 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2135 esac
2136 case $ac_pass in
2137 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138 2)
2139 as_fn_append ac_configure_args1 " '$ac_arg'"
2140 if test $ac_must_keep_next = true; then
2141 ac_must_keep_next=false # Got value, back to normal.
2142 else
2143 case $ac_arg in
2144 *=* | --config-cache | -C | -disable-* | --disable-* \
2145 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2146 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2147 | -with-* | --with-* | -without-* | --without-* | --x)
2148 case "$ac_configure_args0 " in
2149 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2150 esac
2151 ;;
2152 -* ) ac_must_keep_next=true ;;
2153 esac
2154 fi
2155 as_fn_append ac_configure_args " '$ac_arg'"
2156 ;;
2157 esac
2158 done
2159 done
2160 { ac_configure_args0=; unset ac_configure_args0;}
2161 { ac_configure_args1=; unset ac_configure_args1;}
2162
2163 # When interrupted or exit'd, cleanup temporary files, and complete
2164 # config.log. We remove comments because anyway the quotes in there
2165 # would cause problems or look ugly.
2166 # WARNING: Use '\'' to represent an apostrophe within the trap.
2167 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2168 trap 'exit_status=$?
2169 # Sanitize IFS.
2170 IFS=" "" $as_nl"
2171 # Save into config.log some information that might help in debugging.
2172 {
2173 echo
2174
2175 printf "%s\n" "## ---------------- ##
2176 ## Cache variables. ##
2177 ## ---------------- ##"
2178 echo
2179 # The following way of writing the cache mishandles newlines in values,
2180 (
2181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2182 eval ac_val=\$$ac_var
2183 case $ac_val in #(
2184 *${as_nl}*)
2185 case $ac_var in #(
2186 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2187 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2188 esac
2189 case $ac_var in #(
2190 _ | IFS | as_nl) ;; #(
2191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2192 *) { eval $ac_var=; unset $ac_var;} ;;
2193 esac ;;
2194 esac
2195 done
2196 (set) 2>&1 |
2197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2198 *${as_nl}ac_space=\ *)
2199 sed -n \
2200 "s/'\''/'\''\\\\'\'''\''/g;
2201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2202 ;; #(
2203 *)
2204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205 ;;
2206 esac |
2207 sort
2208 )
2209 echo
2210
2211 printf "%s\n" "## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##"
2214 echo
2215 for ac_var in $ac_subst_vars
2216 do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in
2219 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 esac
2221 printf "%s\n" "$ac_var='\''$ac_val'\''"
2222 done | sort
2223 echo
2224
2225 if test -n "$ac_subst_files"; then
2226 printf "%s\n" "## ------------------- ##
2227 ## File substitutions. ##
2228 ## ------------------- ##"
2229 echo
2230 for ac_var in $ac_subst_files
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 printf "%s\n" "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
2239 fi
2240
2241 if test -s confdefs.h; then
2242 printf "%s\n" "## ----------- ##
2243 ## confdefs.h. ##
2244 ## ----------- ##"
2245 echo
2246 cat confdefs.h
2247 echo
2248 fi
2249 test "$ac_signal" != 0 &&
2250 printf "%s\n" "$as_me: caught signal $ac_signal"
2251 printf "%s\n" "$as_me: exit $exit_status"
2252 } >&5
2253 rm -f core *.core core.conftest.* &&
2254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2255 exit $exit_status
2256 ' 0
2257 for ac_signal in 1 2 13 15; do
2258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 done
2260 ac_signal=0
2261
2262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2263 rm -f -r conftest* confdefs.h
2264
2265 printf "%s\n" "/* confdefs.h */" > confdefs.h
2266
2267 # Predefined preprocessor variables.
2268
2269 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2270
2271 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2272
2273 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2274
2275 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2276
2277 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2278
2279 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2280
2281
2282 # Let the site file select an alternate cache file if it wants to.
2283 # Prefer an explicitly selected file to automatically selected ones.
2284 if test -n "$CONFIG_SITE"; then
2285 ac_site_files="$CONFIG_SITE"
2286 elif test "x$prefix" != xNONE; then
2287 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2288 else
2289 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2290 fi
2291
2292 for ac_site_file in $ac_site_files
2293 do
2294 case $ac_site_file in #(
2295 */*) :
2296 ;; #(
2297 *) :
2298 ac_site_file=./$ac_site_file ;;
2299 esac
2300 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2302 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2303 sed 's/^/| /' "$ac_site_file" >&5
2304 . "$ac_site_file" \
2305 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2306 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2307 as_fn_error $? "failed to load site script $ac_site_file
2308 See 'config.log' for more details" "$LINENO" 5; }
2309 fi
2310 done
2311
2312 if test -r "$cache_file"; then
2313 # Some versions of bash will fail to source /dev/null (special files
2314 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2315 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2317 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2318 case $cache_file in
2319 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2320 *) . "./$cache_file";;
2321 esac
2322 fi
2323 else
2324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2325 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2326 >$cache_file
2327 fi
2328
2329 # Test code for whether the C compiler supports C89 (global declarations)
2330 ac_c_conftest_c89_globals='
2331 /* Does the compiler advertise C89 conformance?
2332 Do not test the value of __STDC__, because some compilers set it to 0
2333 while being otherwise adequately conformant. */
2334 #if !defined __STDC__
2335 # error "Compiler does not advertise C89 conformance"
2336 #endif
2337
2338 #include <stddef.h>
2339 #include <stdarg.h>
2340 struct stat;
2341 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2342 struct buf { int x; };
2343 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2344 static char *e (char **p, int i)
2345 {
2346 return p[i];
2347 }
2348 static char *f (char * (*g) (char **, int), char **p, ...)
2349 {
2350 char *s;
2351 va_list v;
2352 va_start (v,p);
2353 s = g (p, va_arg (v,int));
2354 va_end (v);
2355 return s;
2356 }
2357
2358 /* C89 style stringification. */
2359 #define noexpand_stringify(a) #a
2360 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2361
2362 /* C89 style token pasting. Exercises some of the corner cases that
2363 e.g. old MSVC gets wrong, but not very hard. */
2364 #define noexpand_concat(a,b) a##b
2365 #define expand_concat(a,b) noexpand_concat(a,b)
2366 extern int vA;
2367 extern int vbee;
2368 #define aye A
2369 #define bee B
2370 int *pvA = &expand_concat(v,aye);
2371 int *pvbee = &noexpand_concat(v,bee);
2372
2373 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2374 function prototypes and stuff, but not \xHH hex character constants.
2375 These do not provoke an error unfortunately, instead are silently treated
2376 as an "x". The following induces an error, until -std is added to get
2377 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2378 array size at least. It is necessary to write \x00 == 0 to get something
2379 that is true only with -std. */
2380 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2381
2382 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2383 inside strings and character constants. */
2384 #define FOO(x) '\''x'\''
2385 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2386
2387 int test (int i, double x);
2388 struct s1 {int (*f) (int a);};
2389 struct s2 {int (*f) (double a);};
2390 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2391 int, int);'
2392
2393 # Test code for whether the C compiler supports C89 (body of main).
2394 ac_c_conftest_c89_main='
2395 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2396 '
2397
2398 # Test code for whether the C compiler supports C99 (global declarations)
2399 ac_c_conftest_c99_globals='
2400 /* Does the compiler advertise C99 conformance? */
2401 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2402 # error "Compiler does not advertise C99 conformance"
2403 #endif
2404
2405 // See if C++-style comments work.
2406
2407 #include <stdbool.h>
2408 extern int puts (const char *);
2409 extern int printf (const char *, ...);
2410 extern int dprintf (int, const char *, ...);
2411 extern void *malloc (size_t);
2412 extern void free (void *);
2413
2414 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2415 // dprintf is used instead of fprintf to avoid needing to declare
2416 // FILE and stderr.
2417 #define debug(...) dprintf (2, __VA_ARGS__)
2418 #define showlist(...) puts (#__VA_ARGS__)
2419 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2420 static void
2421 test_varargs_macros (void)
2422 {
2423 int x = 1234;
2424 int y = 5678;
2425 debug ("Flag");
2426 debug ("X = %d\n", x);
2427 showlist (The first, second, and third items.);
2428 report (x>y, "x is %d but y is %d", x, y);
2429 }
2430
2431 // Check long long types.
2432 #define BIG64 18446744073709551615ull
2433 #define BIG32 4294967295ul
2434 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2435 #if !BIG_OK
2436 #error "your preprocessor is broken"
2437 #endif
2438 #if BIG_OK
2439 #else
2440 #error "your preprocessor is broken"
2441 #endif
2442 static long long int bignum = -9223372036854775807LL;
2443 static unsigned long long int ubignum = BIG64;
2444
2445 struct incomplete_array
2446 {
2447 int datasize;
2448 double data[];
2449 };
2450
2451 struct named_init {
2452 int number;
2453 const wchar_t *name;
2454 double average;
2455 };
2456
2457 typedef const char *ccp;
2458
2459 static inline int
2460 test_restrict (ccp restrict text)
2461 {
2462 // Iterate through items via the restricted pointer.
2463 // Also check for declarations in for loops.
2464 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2465 continue;
2466 return 0;
2467 }
2468
2469 // Check varargs and va_copy.
2470 static bool
2471 test_varargs (const char *format, ...)
2472 {
2473 va_list args;
2474 va_start (args, format);
2475 va_list args_copy;
2476 va_copy (args_copy, args);
2477
2478 const char *str = "";
2479 int number = 0;
2480 float fnumber = 0;
2481
2482 while (*format)
2483 {
2484 switch (*format++)
2485 {
2486 case '\''s'\'': // string
2487 str = va_arg (args_copy, const char *);
2488 break;
2489 case '\''d'\'': // int
2490 number = va_arg (args_copy, int);
2491 break;
2492 case '\''f'\'': // float
2493 fnumber = va_arg (args_copy, double);
2494 break;
2495 default:
2496 break;
2497 }
2498 }
2499 va_end (args_copy);
2500 va_end (args);
2501
2502 return *str && number && fnumber;
2503 }
2504 '
2505
2506 # Test code for whether the C compiler supports C99 (body of main).
2507 ac_c_conftest_c99_main='
2508 // Check bool.
2509 _Bool success = false;
2510 success |= (argc != 0);
2511
2512 // Check restrict.
2513 if (test_restrict ("String literal") == 0)
2514 success = true;
2515 char *restrict newvar = "Another string";
2516
2517 // Check varargs.
2518 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2519 test_varargs_macros ();
2520
2521 // Check flexible array members.
2522 struct incomplete_array *ia =
2523 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2524 ia->datasize = 10;
2525 for (int i = 0; i < ia->datasize; ++i)
2526 ia->data[i] = i * 1.234;
2527 // Work around memory leak warnings.
2528 free (ia);
2529
2530 // Check named initializers.
2531 struct named_init ni = {
2532 .number = 34,
2533 .name = L"Test wide string",
2534 .average = 543.34343,
2535 };
2536
2537 ni.number = 58;
2538
2539 int dynamic_array[ni.number];
2540 dynamic_array[0] = argv[0][0];
2541 dynamic_array[ni.number - 1] = 543;
2542
2543 // work around unused variable warnings
2544 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2545 || dynamic_array[ni.number - 1] != 543);
2546 '
2547
2548 # Test code for whether the C compiler supports C11 (global declarations)
2549 ac_c_conftest_c11_globals='
2550 /* Does the compiler advertise C11 conformance? */
2551 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2552 # error "Compiler does not advertise C11 conformance"
2553 #endif
2554
2555 // Check _Alignas.
2556 char _Alignas (double) aligned_as_double;
2557 char _Alignas (0) no_special_alignment;
2558 extern char aligned_as_int;
2559 char _Alignas (0) _Alignas (int) aligned_as_int;
2560
2561 // Check _Alignof.
2562 enum
2563 {
2564 int_alignment = _Alignof (int),
2565 int_array_alignment = _Alignof (int[100]),
2566 char_alignment = _Alignof (char)
2567 };
2568 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2569
2570 // Check _Noreturn.
2571 int _Noreturn does_not_return (void) { for (;;) continue; }
2572
2573 // Check _Static_assert.
2574 struct test_static_assert
2575 {
2576 int x;
2577 _Static_assert (sizeof (int) <= sizeof (long int),
2578 "_Static_assert does not work in struct");
2579 long int y;
2580 };
2581
2582 // Check UTF-8 literals.
2583 #define u8 syntax error!
2584 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2585
2586 // Check duplicate typedefs.
2587 typedef long *long_ptr;
2588 typedef long int *long_ptr;
2589 typedef long_ptr long_ptr;
2590
2591 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2592 struct anonymous
2593 {
2594 union {
2595 struct { int i; int j; };
2596 struct { int k; long int l; } w;
2597 };
2598 int m;
2599 } v1;
2600 '
2601
2602 # Test code for whether the C compiler supports C11 (body of main).
2603 ac_c_conftest_c11_main='
2604 _Static_assert ((offsetof (struct anonymous, i)
2605 == offsetof (struct anonymous, w.k)),
2606 "Anonymous union alignment botch");
2607 v1.i = 2;
2608 v1.w.k = 5;
2609 ok |= v1.i != 5;
2610 '
2611
2612 # Test code for whether the C compiler supports C11 (complete).
2613 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2614 ${ac_c_conftest_c99_globals}
2615 ${ac_c_conftest_c11_globals}
2616
2617 int
2618 main (int argc, char **argv)
2619 {
2620 int ok = 0;
2621 ${ac_c_conftest_c89_main}
2622 ${ac_c_conftest_c99_main}
2623 ${ac_c_conftest_c11_main}
2624 return ok;
2625 }
2626 "
2627
2628 # Test code for whether the C compiler supports C99 (complete).
2629 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2630 ${ac_c_conftest_c99_globals}
2631
2632 int
2633 main (int argc, char **argv)
2634 {
2635 int ok = 0;
2636 ${ac_c_conftest_c89_main}
2637 ${ac_c_conftest_c99_main}
2638 return ok;
2639 }
2640 "
2641
2642 # Test code for whether the C compiler supports C89 (complete).
2643 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2644
2645 int
2646 main (int argc, char **argv)
2647 {
2648 int ok = 0;
2649 ${ac_c_conftest_c89_main}
2650 return ok;
2651 }
2652 "
2653
2654 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2655 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2656 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2657 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2658 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2659 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2660 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2661 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2662 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2663
2664 # Auxiliary files required by this configure script.
2665 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2666
2667 # Locations in which to look for auxiliary files.
2668 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2669
2670 # Search for a directory containing all of the required auxiliary files,
2671 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2672 # If we don't find one directory that contains all the files we need,
2673 # we report the set of missing files from the *first* directory in
2674 # $ac_aux_dir_candidates and give up.
2675 ac_missing_aux_files=""
2676 ac_first_candidate=:
2677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 as_found=false
2680 for as_dir in $ac_aux_dir_candidates
2681 do
2682 IFS=$as_save_IFS
2683 case $as_dir in #(((
2684 '') as_dir=./ ;;
2685 */) ;;
2686 *) as_dir=$as_dir/ ;;
2687 esac
2688 as_found=:
2689
2690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2691 ac_aux_dir_found=yes
2692 ac_install_sh=
2693 for ac_aux in $ac_aux_files
2694 do
2695 # As a special case, if "install-sh" is required, that requirement
2696 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2697 # and $ac_install_sh is set appropriately for whichever one is found.
2698 if test x"$ac_aux" = x"install-sh"
2699 then
2700 if test -f "${as_dir}install-sh"; then
2701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2702 ac_install_sh="${as_dir}install-sh -c"
2703 elif test -f "${as_dir}install.sh"; then
2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2705 ac_install_sh="${as_dir}install.sh -c"
2706 elif test -f "${as_dir}shtool"; then
2707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2708 ac_install_sh="${as_dir}shtool install -c"
2709 else
2710 ac_aux_dir_found=no
2711 if $ac_first_candidate; then
2712 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2713 else
2714 break
2715 fi
2716 fi
2717 else
2718 if test -f "${as_dir}${ac_aux}"; then
2719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2720 else
2721 ac_aux_dir_found=no
2722 if $ac_first_candidate; then
2723 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2724 else
2725 break
2726 fi
2727 fi
2728 fi
2729 done
2730 if test "$ac_aux_dir_found" = yes; then
2731 ac_aux_dir="$as_dir"
2732 break
2733 fi
2734 ac_first_candidate=false
2735
2736 as_found=false
2737 done
2738 IFS=$as_save_IFS
2739 if $as_found
2740 then :
2741
2742 else case e in #(
2743 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2744 esac
2745 fi
2746
2747
2748 # These three variables are undocumented and unsupported,
2749 # and are intended to be withdrawn in a future Autoconf release.
2750 # They can cause serious problems if a builder's source tree is in a directory
2751 # whose full name contains unusual characters.
2752 if test -f "${ac_aux_dir}config.guess"; then
2753 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2754 fi
2755 if test -f "${ac_aux_dir}config.sub"; then
2756 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2757 fi
2758 if test -f "$ac_aux_dir/configure"; then
2759 ac_configure="$SHELL ${ac_aux_dir}configure"
2760 fi
2761
2762 # Check that the precious variables saved in the cache have kept the same
2763 # value.
2764 ac_cache_corrupted=false
2765 for ac_var in $ac_precious_vars; do
2766 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2767 eval ac_new_set=\$ac_env_${ac_var}_set
2768 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2769 eval ac_new_val=\$ac_env_${ac_var}_value
2770 case $ac_old_set,$ac_new_set in
2771 set,)
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2773 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2775 ,set)
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2777 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2778 ac_cache_corrupted=: ;;
2779 ,);;
2780 *)
2781 if test "x$ac_old_val" != "x$ac_new_val"; then
2782 # differences in whitespace do not lead to failure.
2783 ac_old_val_w=`echo x $ac_old_val`
2784 ac_new_val_w=`echo x $ac_new_val`
2785 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2787 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2788 ac_cache_corrupted=:
2789 else
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2791 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2792 eval $ac_var=\$ac_old_val
2793 fi
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2795 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2797 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2798 fi;;
2799 esac
2800 # Pass precious variables to config.status.
2801 if test "$ac_new_set" = set; then
2802 case $ac_new_val in
2803 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2804 *) ac_arg=$ac_var=$ac_new_val ;;
2805 esac
2806 case " $ac_configure_args " in
2807 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2808 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2809 esac
2810 fi
2811 done
2812 if $ac_cache_corrupted; then
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2814 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2816 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2817 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2818 and start over" "$LINENO" 5
2819 fi
2820 ## -------------------- ##
2821 ## Main body of script. ##
2822 ## -------------------- ##
2823
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829
2830
2831 am__api_version='1.16'
2832
2833
2834
2835 # Find a good install program. We prefer a C program (faster),
2836 # so one script is as good as another. But avoid the broken or
2837 # incompatible versions:
2838 # SysV /etc/install, /usr/sbin/install
2839 # SunOS /usr/etc/install
2840 # IRIX /sbin/install
2841 # AIX /bin/install
2842 # AmigaOS /C/install, which installs bootblocks on floppy discs
2843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846 # OS/2's system install, which has a completely different semantic
2847 # ./install, which can be erroneously created by make from ./install.sh.
2848 # Reject install programs that cannot install multiple files.
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2850 printf %s "checking for a BSD-compatible install... " >&6; }
2851 if test -z "$INSTALL"; then
2852 if test ${ac_cv_path_install+y}
2853 then :
2854 printf %s "(cached) " >&6
2855 else case e in #(
2856 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 case $as_dir in #(((
2861 '') as_dir=./ ;;
2862 */) ;;
2863 *) as_dir=$as_dir/ ;;
2864 esac
2865 # Account for fact that we put trailing slashes in our PATH walk.
2866 case $as_dir in #((
2867 ./ | /[cC]/* | \
2868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2869 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2870 /usr/ucb/* ) ;;
2871 *)
2872 # OSF1 and SCO ODT 3.0 have their own names for install.
2873 # Don't use installbsd from OSF since it installs stuff as root
2874 # by default.
2875 for ac_prog in ginstall scoinst install; do
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2878 if test $ac_prog = install &&
2879 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2880 # AIX install. It has an incompatible calling convention.
2881 :
2882 elif test $ac_prog = install &&
2883 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2884 # program-specific install script used by HP pwplus--don't use.
2885 :
2886 else
2887 rm -rf conftest.one conftest.two conftest.dir
2888 echo one > conftest.one
2889 echo two > conftest.two
2890 mkdir conftest.dir
2891 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2892 test -s conftest.one && test -s conftest.two &&
2893 test -s conftest.dir/conftest.one &&
2894 test -s conftest.dir/conftest.two
2895 then
2896 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2897 break 3
2898 fi
2899 fi
2900 fi
2901 done
2902 done
2903 ;;
2904 esac
2905
2906 done
2907 IFS=$as_save_IFS
2908
2909 rm -rf conftest.one conftest.two conftest.dir
2910 ;;
2911 esac
2912 fi
2913 if test ${ac_cv_path_install+y}; then
2914 INSTALL=$ac_cv_path_install
2915 else
2916 # As a last resort, use the slow shell script. Don't cache a
2917 # value for INSTALL within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the value is a relative name.
2920 INSTALL=$ac_install_sh
2921 fi
2922 fi
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2924 printf "%s\n" "$INSTALL" >&6; }
2925
2926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2927 # It thinks the first close brace ends the variable substitution.
2928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2929
2930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2931
2932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2933
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2935 printf %s "checking whether build environment is sane... " >&6; }
2936 # Reject unsafe characters in $srcdir or the absolute working directory
2937 # name. Accept space and tab only in the latter.
2938 am_lf='
2939 '
2940 case `pwd` in
2941 *[\\\"\#\$\&\'\`$am_lf]*)
2942 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2943 esac
2944 case $srcdir in
2945 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2946 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2947 esac
2948
2949 # Do 'set' in a subshell so we don't clobber the current shell's
2950 # arguments. Must try -L first in case configure is actually a
2951 # symlink; some systems play weird games with the mod time of symlinks
2952 # (eg FreeBSD returns the mod time of the symlink's containing
2953 # directory).
2954 if (
2955 am_has_slept=no
2956 for am_try in 1 2; do
2957 echo "timestamp, slept: $am_has_slept" > conftest.file
2958 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2959 if test "$*" = "X"; then
2960 # -L didn't work.
2961 set X `ls -t "$srcdir/configure" conftest.file`
2962 fi
2963 if test "$*" != "X $srcdir/configure conftest.file" \
2964 && test "$*" != "X conftest.file $srcdir/configure"; then
2965
2966 # If neither matched, then we have a broken ls. This can happen
2967 # if, for instance, CONFIG_SHELL is bash and it inherits a
2968 # broken ls alias from the environment. This has actually
2969 # happened. Such a system could not be considered "sane".
2970 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2971 alias in your environment" "$LINENO" 5
2972 fi
2973 if test "$2" = conftest.file || test $am_try -eq 2; then
2974 break
2975 fi
2976 # Just in case.
2977 sleep 1
2978 am_has_slept=yes
2979 done
2980 test "$2" = conftest.file
2981 )
2982 then
2983 # Ok.
2984 :
2985 else
2986 as_fn_error $? "newly created file is older than distributed files!
2987 Check your system clock" "$LINENO" 5
2988 fi
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 printf "%s\n" "yes" >&6; }
2991 # If we didn't sleep, we still need to ensure time stamps of config.status and
2992 # generated files are strictly newer.
2993 am_sleep_pid=
2994 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2995 ( sleep 1 ) &
2996 am_sleep_pid=$!
2997 fi
2998
2999 rm -f conftest.file
3000
3001 test "$program_prefix" != NONE &&
3002 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3003 # Use a double $ so make ignores it.
3004 test "$program_suffix" != NONE &&
3005 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3006 # Double any \ or $.
3007 # By default was 's,x,x', remove it if useless.
3008 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3009 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3010
3011
3012 # Expand $ac_aux_dir to an absolute path.
3013 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3014
3015
3016 if test x"${MISSING+set}" != xset; then
3017 MISSING="\${SHELL} '$am_aux_dir/missing'"
3018 fi
3019 # Use eval to expand $SHELL
3020 if eval "$MISSING --is-lightweight"; then
3021 am_missing_run="$MISSING "
3022 else
3023 am_missing_run=
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3025 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3026 fi
3027
3028 if test x"${install_sh+set}" != xset; then
3029 case $am_aux_dir in
3030 *\ * | *\ *)
3031 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3032 *)
3033 install_sh="\${SHELL} $am_aux_dir/install-sh"
3034 esac
3035 fi
3036
3037 # Installed binaries are usually stripped using 'strip' when the user
3038 # run "make install-strip". However 'strip' might not be the right
3039 # tool to use in cross-compilation environments, therefore Automake
3040 # will honor the 'STRIP' environment variable to overrule this program.
3041 if test "$cross_compiling" != no; then
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3044 set dummy ${ac_tool_prefix}strip; ac_word=$2
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 printf %s "checking for $ac_word... " >&6; }
3047 if test ${ac_cv_prog_STRIP+y}
3048 then :
3049 printf %s "(cached) " >&6
3050 else case e in #(
3051 e) if test -n "$STRIP"; then
3052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 case $as_dir in #(((
3059 '') as_dir=./ ;;
3060 */) ;;
3061 *) as_dir=$as_dir/ ;;
3062 esac
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi ;;
3074 esac
3075 fi
3076 STRIP=$ac_cv_prog_STRIP
3077 if test -n "$STRIP"; then
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3079 printf "%s\n" "$STRIP" >&6; }
3080 else
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 printf "%s\n" "no" >&6; }
3083 fi
3084
3085
3086 fi
3087 if test -z "$ac_cv_prog_STRIP"; then
3088 ac_ct_STRIP=$STRIP
3089 # Extract the first word of "strip", so it can be a program name with args.
3090 set dummy strip; ac_word=$2
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 printf %s "checking for $ac_word... " >&6; }
3093 if test ${ac_cv_prog_ac_ct_STRIP+y}
3094 then :
3095 printf %s "(cached) " >&6
3096 else case e in #(
3097 e) if test -n "$ac_ct_STRIP"; then
3098 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 case $as_dir in #(((
3105 '') as_dir=./ ;;
3106 */) ;;
3107 *) as_dir=$as_dir/ ;;
3108 esac
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_STRIP="strip"
3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi ;;
3120 esac
3121 fi
3122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3123 if test -n "$ac_ct_STRIP"; then
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3125 printf "%s\n" "$ac_ct_STRIP" >&6; }
3126 else
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 printf "%s\n" "no" >&6; }
3129 fi
3130
3131 if test "x$ac_ct_STRIP" = x; then
3132 STRIP=":"
3133 else
3134 case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140 STRIP=$ac_ct_STRIP
3141 fi
3142 else
3143 STRIP="$ac_cv_prog_STRIP"
3144 fi
3145
3146 fi
3147 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3148
3149
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3151 printf %s "checking for a race-free mkdir -p... " >&6; }
3152 if test -z "$MKDIR_P"; then
3153 if test ${ac_cv_path_mkdir+y}
3154 then :
3155 printf %s "(cached) " >&6
3156 else case e in #(
3157 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3159 do
3160 IFS=$as_save_IFS
3161 case $as_dir in #(((
3162 '') as_dir=./ ;;
3163 */) ;;
3164 *) as_dir=$as_dir/ ;;
3165 esac
3166 for ac_prog in mkdir gmkdir; do
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3169 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3170 'mkdir ('*'coreutils) '* | \
3171 *'BusyBox '* | \
3172 'mkdir (fileutils) '4.1*)
3173 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3174 break 3;;
3175 esac
3176 done
3177 done
3178 done
3179 IFS=$as_save_IFS
3180 ;;
3181 esac
3182 fi
3183
3184 test -d ./--version && rmdir ./--version
3185 if test ${ac_cv_path_mkdir+y}; then
3186 MKDIR_P="$ac_cv_path_mkdir -p"
3187 else
3188 # As a last resort, use plain mkdir -p,
3189 # in the hope it doesn't have the bugs of ancient mkdir.
3190 MKDIR_P='mkdir -p'
3191 fi
3192 fi
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3194 printf "%s\n" "$MKDIR_P" >&6; }
3195
3196 for ac_prog in gawk mawk nawk awk
3197 do
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 printf %s "checking for $ac_word... " >&6; }
3202 if test ${ac_cv_prog_AWK+y}
3203 then :
3204 printf %s "(cached) " >&6
3205 else case e in #(
3206 e) if test -n "$AWK"; then
3207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 case $as_dir in #(((
3214 '') as_dir=./ ;;
3215 */) ;;
3216 *) as_dir=$as_dir/ ;;
3217 esac
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_AWK="$ac_prog"
3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi ;;
3229 esac
3230 fi
3231 AWK=$ac_cv_prog_AWK
3232 if test -n "$AWK"; then
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3234 printf "%s\n" "$AWK" >&6; }
3235 else
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 printf "%s\n" "no" >&6; }
3238 fi
3239
3240
3241 test -n "$AWK" && break
3242 done
3243
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3245 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3246 set x ${MAKE-make}
3247 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3248 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3249 then :
3250 printf %s "(cached) " >&6
3251 else case e in #(
3252 e) cat >conftest.make <<\_ACEOF
3253 SHELL = /bin/sh
3254 all:
3255 @echo '@@@%%%=$(MAKE)=@@@%%%'
3256 _ACEOF
3257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3259 *@@@%%%=?*=@@@%%%*)
3260 eval ac_cv_prog_make_${ac_make}_set=yes;;
3261 *)
3262 eval ac_cv_prog_make_${ac_make}_set=no;;
3263 esac
3264 rm -f conftest.make ;;
3265 esac
3266 fi
3267 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269 printf "%s\n" "yes" >&6; }
3270 SET_MAKE=
3271 else
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 printf "%s\n" "no" >&6; }
3274 SET_MAKE="MAKE=${MAKE-make}"
3275 fi
3276
3277 rm -rf .tst 2>/dev/null
3278 mkdir .tst 2>/dev/null
3279 if test -d .tst; then
3280 am__leading_dot=.
3281 else
3282 am__leading_dot=_
3283 fi
3284 rmdir .tst 2>/dev/null
3285
3286 # Check whether --enable-silent-rules was given.
3287 if test ${enable_silent_rules+y}
3288 then :
3289 enableval=$enable_silent_rules;
3290 fi
3291
3292 case $enable_silent_rules in # (((
3293 yes) AM_DEFAULT_VERBOSITY=0;;
3294 no) AM_DEFAULT_VERBOSITY=1;;
3295 *) AM_DEFAULT_VERBOSITY=1;;
3296 esac
3297 am_make=${MAKE-make}
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3299 printf %s "checking whether $am_make supports nested variables... " >&6; }
3300 if test ${am_cv_make_support_nested_variables+y}
3301 then :
3302 printf %s "(cached) " >&6
3303 else case e in #(
3304 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3305 BAR0=false
3306 BAR1=true
3307 V=1
3308 am__doit:
3309 @$(TRUE)
3310 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3311 am_cv_make_support_nested_variables=yes
3312 else
3313 am_cv_make_support_nested_variables=no
3314 fi ;;
3315 esac
3316 fi
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3318 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3319 if test $am_cv_make_support_nested_variables = yes; then
3320 AM_V='$(V)'
3321 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3322 else
3323 AM_V=$AM_DEFAULT_VERBOSITY
3324 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3325 fi
3326 AM_BACKSLASH='\'
3327
3328 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3329 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3330 # is not polluted with repeated "-I."
3331 am__isrc=' -I$(srcdir)'
3332 # test to see if srcdir already configured
3333 if test -f $srcdir/config.status; then
3334 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3335 fi
3336 fi
3337
3338 # test whether we have cygpath
3339 if test -z "$CYGPATH_W"; then
3340 if (cygpath --version) >/dev/null 2>/dev/null; then
3341 CYGPATH_W='cygpath -w'
3342 else
3343 CYGPATH_W=echo
3344 fi
3345 fi
3346
3347
3348 # Define the identity of the package.
3349 PACKAGE='libimobiledevice-glue'
3350 VERSION='1.3.2'
3351
3352
3353 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3354
3355
3356 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3357
3358 # Some tools Automake needs.
3359
3360 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3361
3362
3363 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3364
3365
3366 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3367
3368
3369 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3370
3371
3372 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3373
3374 # For better backward compatibility. To be removed once Automake 1.9.x
3375 # dies out for good. For more background, see:
3376 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3377 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3378 mkdir_p='$(MKDIR_P)'
3379
3380 # We need awk for the "check" target (and possibly the TAP driver). The
3381 # system "awk" is bad on some platforms.
3382 # Always define AMTAR for backward compatibility. Yes, it's still used
3383 # in the wild :-( We should find a proper way to deprecate it ...
3384 AMTAR='$${TAR-tar}'
3385
3386
3387 # We'll loop over all known methods to create a tar archive until one works.
3388 _am_tools='gnutar pax cpio none'
3389
3390 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3391
3392
3393
3394
3395
3396 # Variables for tags utilities; see am/tags.am
3397 if test -z "$CTAGS"; then
3398 CTAGS=ctags
3399 fi
3400
3401 if test -z "$ETAGS"; then
3402 ETAGS=etags
3403 fi
3404
3405 if test -z "$CSCOPE"; then
3406 CSCOPE=cscope
3407 fi
3408
3409
3410
3411 # POSIX will say in a future version that running "rm -f" with no argument
3412 # is OK; and we want to be able to make that assumption in our Makefile
3413 # recipes. So use an aggressive probe to check that the usage we want is
3414 # actually supported "in the wild" to an acceptable degree.
3415 # See automake bug#10828.
3416 # To make any issue more visible, cause the running configure to be aborted
3417 # by default if the 'rm' program in use doesn't match our expectations; the
3418 # user can still override this though.
3419 if rm -f && rm -fr && rm -rf; then : OK; else
3420 cat >&2 <<'END'
3421 Oops!
3422
3423 Your 'rm' program seems unable to run without file operands specified
3424 on the command line, even when the '-f' option is present. This is contrary
3425 to the behaviour of most rm programs out there, and not conforming with
3426 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3427
3428 Please tell [email protected] about your system, including the value
3429 of your $PATH and any error possibly output before this message. This
3430 can help us improve future automake versions.
3431
3432 END
3433 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3434 echo 'Configuration will proceed anyway, since you have set the' >&2
3435 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3436 echo >&2
3437 else
3438 cat >&2 <<'END'
3439 Aborting the configuration process, to ensure you take notice of the issue.
3440
3441 You can download and install GNU coreutils to get an 'rm' implementation
3442 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3443
3444 If you want to complete the configuration process using your problematic
3445 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3446 to "yes", and re-run configure.
3447
3448 END
3449 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3450 fi
3451 fi
3452
3453 # Check whether --enable-silent-rules was given.
3454 if test ${enable_silent_rules+y}
3455 then :
3456 enableval=$enable_silent_rules;
3457 fi
3458
3459 case $enable_silent_rules in # (((
3460 yes) AM_DEFAULT_VERBOSITY=0;;
3461 no) AM_DEFAULT_VERBOSITY=1;;
3462 *) AM_DEFAULT_VERBOSITY=1;;
3463 esac
3464 am_make=${MAKE-make}
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3466 printf %s "checking whether $am_make supports nested variables... " >&6; }
3467 if test ${am_cv_make_support_nested_variables+y}
3468 then :
3469 printf %s "(cached) " >&6
3470 else case e in #(
3471 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3472 BAR0=false
3473 BAR1=true
3474 V=1
3475 am__doit:
3476 @$(TRUE)
3477 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3478 am_cv_make_support_nested_variables=yes
3479 else
3480 am_cv_make_support_nested_variables=no
3481 fi ;;
3482 esac
3483 fi
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3485 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3486 if test $am_cv_make_support_nested_variables = yes; then
3487 AM_V='$(V)'
3488 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3489 else
3490 AM_V=$AM_DEFAULT_VERBOSITY
3491 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3492 fi
3493 AM_BACKSLASH='\'
3494
3495
3496 ac_config_headers="$ac_config_headers config.h"
3497
3498
3499
3500 # +1 : 0 : +1 == adds new functions to the interface
3501 # +1 : 0 : 0 == changes or removes functions (changes include both
3502 # changes to the signature and the semantic)
3503 # ? :+1 : ? == just internal changes
3504 # CURRENT : REVISION : AGE
3505 LIBIMOBILEDEVICE_GLUE_SO_VERSION=3:2:3
3506
3507 # Check if we have a version defined
3508 if test -z $PACKAGE_VERSION; then
3509 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
3510 fi
3511
3512 LIBPLIST_VERSION=2.3.0
3513
3514
3515
3516
3517 # Checks for programs.
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 printf %s "checking for $ac_word... " >&6; }
3537 if test ${ac_cv_prog_CC+y}
3538 then :
3539 printf %s "(cached) " >&6
3540 else case e in #(
3541 e) if test -n "$CC"; then
3542 ac_cv_prog_CC="$CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547 IFS=$as_save_IFS
3548 case $as_dir in #(((
3549 '') as_dir=./ ;;
3550 */) ;;
3551 *) as_dir=$as_dir/ ;;
3552 esac
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3557 break 2
3558 fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 fi ;;
3564 esac
3565 fi
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3569 printf "%s\n" "$CC" >&6; }
3570 else
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 printf "%s\n" "no" >&6; }
3573 fi
3574
3575
3576 fi
3577 if test -z "$ac_cv_prog_CC"; then
3578 ac_ct_CC=$CC
3579 # Extract the first word of "gcc", so it can be a program name with args.
3580 set dummy gcc; ac_word=$2
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 printf %s "checking for $ac_word... " >&6; }
3583 if test ${ac_cv_prog_ac_ct_CC+y}
3584 then :
3585 printf %s "(cached) " >&6
3586 else case e in #(
3587 e) if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593 IFS=$as_save_IFS
3594 case $as_dir in #(((
3595 '') as_dir=./ ;;
3596 */) ;;
3597 *) as_dir=$as_dir/ ;;
3598 esac
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_ac_ct_CC="gcc"
3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi ;;
3610 esac
3611 fi
3612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3613 if test -n "$ac_ct_CC"; then
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3615 printf "%s\n" "$ac_ct_CC" >&6; }
3616 else
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 printf "%s\n" "no" >&6; }
3619 fi
3620
3621 if test "x$ac_ct_CC" = x; then
3622 CC=""
3623 else
3624 case $cross_compiling:$ac_tool_warned in
3625 yes:)
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3629 esac
3630 CC=$ac_ct_CC
3631 fi
3632 else
3633 CC="$ac_cv_prog_CC"
3634 fi
3635
3636 if test -z "$CC"; then
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}cc; ac_word=$2
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 printf %s "checking for $ac_word... " >&6; }
3642 if test ${ac_cv_prog_CC+y}
3643 then :
3644 printf %s "(cached) " >&6
3645 else case e in #(
3646 e) if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652 IFS=$as_save_IFS
3653 case $as_dir in #(((
3654 '') as_dir=./ ;;
3655 */) ;;
3656 *) as_dir=$as_dir/ ;;
3657 esac
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_CC="${ac_tool_prefix}cc"
3661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3662 break 2
3663 fi
3664 done
3665 done
3666 IFS=$as_save_IFS
3667
3668 fi ;;
3669 esac
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 printf "%s\n" "$CC" >&6; }
3675 else
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 printf "%s\n" "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 fi
3683 if test -z "$CC"; then
3684 # Extract the first word of "cc", so it can be a program name with args.
3685 set dummy cc; ac_word=$2
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 printf %s "checking for $ac_word... " >&6; }
3688 if test ${ac_cv_prog_CC+y}
3689 then :
3690 printf %s "(cached) " >&6
3691 else case e in #(
3692 e) if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 ac_prog_rejected=no
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699 IFS=$as_save_IFS
3700 case $as_dir in #(((
3701 '') as_dir=./ ;;
3702 */) ;;
3703 *) as_dir=$as_dir/ ;;
3704 esac
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3707 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3708 ac_prog_rejected=yes
3709 continue
3710 fi
3711 ac_cv_prog_CC="cc"
3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715 done
3716 done
3717 IFS=$as_save_IFS
3718
3719 if test $ac_prog_rejected = yes; then
3720 # We found a bogon in the path, so make sure we never use it.
3721 set dummy $ac_cv_prog_CC
3722 shift
3723 if test $# != 0; then
3724 # We chose a different compiler from the bogus one.
3725 # However, it has the same basename, so the bogon will be chosen
3726 # first if we set CC to just the basename; use the full file name.
3727 shift
3728 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3729 fi
3730 fi
3731 fi ;;
3732 esac
3733 fi
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 printf "%s\n" "$CC" >&6; }
3738 else
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 printf "%s\n" "no" >&6; }
3741 fi
3742
3743
3744 fi
3745 if test -z "$CC"; then
3746 if test -n "$ac_tool_prefix"; then
3747 for ac_prog in cl.exe
3748 do
3749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 printf %s "checking for $ac_word... " >&6; }
3753 if test ${ac_cv_prog_CC+y}
3754 then :
3755 printf %s "(cached) " >&6
3756 else case e in #(
3757 e) if test -n "$CC"; then
3758 ac_cv_prog_CC="$CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763 IFS=$as_save_IFS
3764 case $as_dir in #(((
3765 '') as_dir=./ ;;
3766 */) ;;
3767 *) as_dir=$as_dir/ ;;
3768 esac
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi ;;
3780 esac
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 printf "%s\n" "$CC" >&6; }
3786 else
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3789 fi
3790
3791
3792 test -n "$CC" && break
3793 done
3794 fi
3795 if test -z "$CC"; then
3796 ac_ct_CC=$CC
3797 for ac_prog in cl.exe
3798 do
3799 # Extract the first word of "$ac_prog", so it can be a program name with args.
3800 set dummy $ac_prog; ac_word=$2
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 printf %s "checking for $ac_word... " >&6; }
3803 if test ${ac_cv_prog_ac_ct_CC+y}
3804 then :
3805 printf %s "(cached) " >&6
3806 else case e in #(
3807 e) if test -n "$ac_ct_CC"; then
3808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813 IFS=$as_save_IFS
3814 case $as_dir in #(((
3815 '') as_dir=./ ;;
3816 */) ;;
3817 *) as_dir=$as_dir/ ;;
3818 esac
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_CC="$ac_prog"
3822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825 done
3826 done
3827 IFS=$as_save_IFS
3828
3829 fi ;;
3830 esac
3831 fi
3832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3833 if test -n "$ac_ct_CC"; then
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3835 printf "%s\n" "$ac_ct_CC" >&6; }
3836 else
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 printf "%s\n" "no" >&6; }
3839 fi
3840
3841
3842 test -n "$ac_ct_CC" && break
3843 done
3844
3845 if test "x$ac_ct_CC" = x; then
3846 CC=""
3847 else
3848 case $cross_compiling:$ac_tool_warned in
3849 yes:)
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3852 ac_tool_warned=yes ;;
3853 esac
3854 CC=$ac_ct_CC
3855 fi
3856 fi
3857
3858 fi
3859 if test -z "$CC"; then
3860 if test -n "$ac_tool_prefix"; then
3861 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3862 set dummy ${ac_tool_prefix}clang; ac_word=$2
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 printf %s "checking for $ac_word... " >&6; }
3865 if test ${ac_cv_prog_CC+y}
3866 then :
3867 printf %s "(cached) " >&6
3868 else case e in #(
3869 e) if test -n "$CC"; then
3870 ac_cv_prog_CC="$CC" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875 IFS=$as_save_IFS
3876 case $as_dir in #(((
3877 '') as_dir=./ ;;
3878 */) ;;
3879 *) as_dir=$as_dir/ ;;
3880 esac
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_CC="${ac_tool_prefix}clang"
3884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889 IFS=$as_save_IFS
3890
3891 fi ;;
3892 esac
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 printf "%s\n" "$CC" >&6; }
3898 else
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 printf "%s\n" "no" >&6; }
3901 fi
3902
3903
3904 fi
3905 if test -z "$ac_cv_prog_CC"; then
3906 ac_ct_CC=$CC
3907 # Extract the first word of "clang", so it can be a program name with args.
3908 set dummy clang; ac_word=$2
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910 printf %s "checking for $ac_word... " >&6; }
3911 if test ${ac_cv_prog_ac_ct_CC+y}
3912 then :
3913 printf %s "(cached) " >&6
3914 else case e in #(
3915 e) if test -n "$ac_ct_CC"; then
3916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921 IFS=$as_save_IFS
3922 case $as_dir in #(((
3923 '') as_dir=./ ;;
3924 */) ;;
3925 *) as_dir=$as_dir/ ;;
3926 esac
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_ac_ct_CC="clang"
3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933 done
3934 done
3935 IFS=$as_save_IFS
3936
3937 fi ;;
3938 esac
3939 fi
3940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3941 if test -n "$ac_ct_CC"; then
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3943 printf "%s\n" "$ac_ct_CC" >&6; }
3944 else
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 printf "%s\n" "no" >&6; }
3947 fi
3948
3949 if test "x$ac_ct_CC" = x; then
3950 CC=""
3951 else
3952 case $cross_compiling:$ac_tool_warned in
3953 yes:)
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3956 ac_tool_warned=yes ;;
3957 esac
3958 CC=$ac_ct_CC
3959 fi
3960 else
3961 CC="$ac_cv_prog_CC"
3962 fi
3963
3964 fi
3965
3966
3967 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3968 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3969 as_fn_error $? "no acceptable C compiler found in \$PATH
3970 See 'config.log' for more details" "$LINENO" 5; }
3971
3972 # Provide some information about the compiler.
3973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3974 set X $ac_compile
3975 ac_compiler=$2
3976 for ac_option in --version -v -V -qversion -version; do
3977 { { ac_try="$ac_compiler $ac_option >&5"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 printf "%s\n" "$ac_try_echo"; } >&5
3984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3985 ac_status=$?
3986 if test -s conftest.err; then
3987 sed '10a\
3988 ... rest of stderr output deleted ...
3989 10q' conftest.err >conftest.er1
3990 cat conftest.er1 >&5
3991 fi
3992 rm -f conftest.er1 conftest.err
3993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }
3995 done
3996
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999
4000 int
4001 main (void)
4002 {
4003
4004 ;
4005 return 0;
4006 }
4007 _ACEOF
4008 ac_clean_files_save=$ac_clean_files
4009 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4010 # Try to create an executable without -o first, disregard a.out.
4011 # It will help us diagnose broken compilers, and finding out an intuition
4012 # of exeext.
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4014 printf %s "checking whether the C compiler works... " >&6; }
4015 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4016
4017 # The possible output files:
4018 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4019
4020 ac_rmfiles=
4021 for ac_file in $ac_files
4022 do
4023 case $ac_file in
4024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4025 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4026 esac
4027 done
4028 rm -f $ac_rmfiles
4029
4030 if { { ac_try="$ac_link_default"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 printf "%s\n" "$ac_try_echo"; } >&5
4037 (eval "$ac_link_default") 2>&5
4038 ac_status=$?
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }
4041 then :
4042 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4043 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4044 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4045 # so that the user can short-circuit this test for compilers unknown to
4046 # Autoconf.
4047 for ac_file in $ac_files ''
4048 do
4049 test -f "$ac_file" || continue
4050 case $ac_file in
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4052 ;;
4053 [ab].out )
4054 # We found the default executable, but exeext='' is most
4055 # certainly right.
4056 break;;
4057 *.* )
4058 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4059 then :; else
4060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4061 fi
4062 # We set ac_cv_exeext here because the later test for it is not
4063 # safe: cross compilers may not add the suffix if given an '-o'
4064 # argument, so we may need to know it at that point already.
4065 # Even if this section looks crufty: it has the advantage of
4066 # actually working.
4067 break;;
4068 * )
4069 break;;
4070 esac
4071 done
4072 test "$ac_cv_exeext" = no && ac_cv_exeext=
4073
4074 else case e in #(
4075 e) ac_file='' ;;
4076 esac
4077 fi
4078 if test -z "$ac_file"
4079 then :
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 printf "%s\n" "no" >&6; }
4082 printf "%s\n" "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4086 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4087 as_fn_error 77 "C compiler cannot create executables
4088 See 'config.log' for more details" "$LINENO" 5; }
4089 else case e in #(
4090 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 printf "%s\n" "yes" >&6; } ;;
4092 esac
4093 fi
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4095 printf %s "checking for C compiler default output file name... " >&6; }
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4097 printf "%s\n" "$ac_file" >&6; }
4098 ac_exeext=$ac_cv_exeext
4099
4100 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4101 ac_clean_files=$ac_clean_files_save
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4103 printf %s "checking for suffix of executables... " >&6; }
4104 if { { ac_try="$ac_link"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110 printf "%s\n" "$ac_try_echo"; } >&5
4111 (eval "$ac_link") 2>&5
4112 ac_status=$?
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }
4115 then :
4116 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4117 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4118 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4119 # 'rm'.
4120 for ac_file in conftest.exe conftest conftest.*; do
4121 test -f "$ac_file" || continue
4122 case $ac_file in
4123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4124 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4125 break;;
4126 * ) break;;
4127 esac
4128 done
4129 else case e in #(
4130 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4131 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4132 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4133 See 'config.log' for more details" "$LINENO" 5; } ;;
4134 esac
4135 fi
4136 rm -f conftest conftest$ac_cv_exeext
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4138 printf "%s\n" "$ac_cv_exeext" >&6; }
4139
4140 rm -f conftest.$ac_ext
4141 EXEEXT=$ac_cv_exeext
4142 ac_exeext=$EXEEXT
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #include <stdio.h>
4146 int
4147 main (void)
4148 {
4149 FILE *f = fopen ("conftest.out", "w");
4150 if (!f)
4151 return 1;
4152 return ferror (f) || fclose (f) != 0;
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 ac_clean_files="$ac_clean_files conftest.out"
4159 # Check that the compiler produces executables we can run. If not, either
4160 # the compiler is broken, or we cross compile.
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4162 printf %s "checking whether we are cross compiling... " >&6; }
4163 if test "$cross_compiling" != yes; then
4164 { { ac_try="$ac_link"
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_link") 2>&5
4172 ac_status=$?
4173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }
4175 if { ac_try='./conftest$ac_cv_exeext'
4176 { { case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 printf "%s\n" "$ac_try_echo"; } >&5
4182 (eval "$ac_try") 2>&5
4183 ac_status=$?
4184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; }; then
4186 cross_compiling=no
4187 else
4188 if test "$cross_compiling" = maybe; then
4189 cross_compiling=yes
4190 else
4191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4192 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4193 as_fn_error 77 "cannot run C compiled programs.
4194 If you meant to cross compile, use '--host'.
4195 See 'config.log' for more details" "$LINENO" 5; }
4196 fi
4197 fi
4198 fi
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4200 printf "%s\n" "$cross_compiling" >&6; }
4201
4202 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4203 conftest.o conftest.obj conftest.out
4204 ac_clean_files=$ac_clean_files_save
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4206 printf %s "checking for suffix of object files... " >&6; }
4207 if test ${ac_cv_objext+y}
4208 then :
4209 printf %s "(cached) " >&6
4210 else case e in #(
4211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213
4214 int
4215 main (void)
4216 {
4217
4218 ;
4219 return 0;
4220 }
4221 _ACEOF
4222 rm -f conftest.o conftest.obj
4223 if { { ac_try="$ac_compile"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4229 printf "%s\n" "$ac_try_echo"; } >&5
4230 (eval "$ac_compile") 2>&5
4231 ac_status=$?
4232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; }
4234 then :
4235 for ac_file in conftest.o conftest.obj conftest.*; do
4236 test -f "$ac_file" || continue;
4237 case $ac_file in
4238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4240 break;;
4241 esac
4242 done
4243 else case e in #(
4244 e) printf "%s\n" "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4248 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4249 as_fn_error $? "cannot compute suffix of object files: cannot compile
4250 See 'config.log' for more details" "$LINENO" 5; } ;;
4251 esac
4252 fi
4253 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4254 esac
4255 fi
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4257 printf "%s\n" "$ac_cv_objext" >&6; }
4258 OBJEXT=$ac_cv_objext
4259 ac_objext=$OBJEXT
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4261 printf %s "checking whether the compiler supports GNU C... " >&6; }
4262 if test ${ac_cv_c_compiler_gnu+y}
4263 then :
4264 printf %s "(cached) " >&6
4265 else case e in #(
4266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268
4269 int
4270 main (void)
4271 {
4272 #ifndef __GNUC__
4273 choke me
4274 #endif
4275
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"
4281 then :
4282 ac_compiler_gnu=yes
4283 else case e in #(
4284 e) ac_compiler_gnu=no ;;
4285 esac
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4289 ;;
4290 esac
4291 fi
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4293 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296 if test $ac_compiler_gnu = yes; then
4297 GCC=yes
4298 else
4299 GCC=
4300 fi
4301 ac_test_CFLAGS=${CFLAGS+y}
4302 ac_save_CFLAGS=$CFLAGS
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4304 printf %s "checking whether $CC accepts -g... " >&6; }
4305 if test ${ac_cv_prog_cc_g+y}
4306 then :
4307 printf %s "(cached) " >&6
4308 else case e in #(
4309 e) ac_save_c_werror_flag=$ac_c_werror_flag
4310 ac_c_werror_flag=yes
4311 ac_cv_prog_cc_g=no
4312 CFLAGS="-g"
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315
4316 int
4317 main (void)
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"
4325 then :
4326 ac_cv_prog_cc_g=yes
4327 else case e in #(
4328 e) CFLAGS=""
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331
4332 int
4333 main (void)
4334 {
4335
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 if ac_fn_c_try_compile "$LINENO"
4341 then :
4342
4343 else case e in #(
4344 e) ac_c_werror_flag=$ac_save_c_werror_flag
4345 CFLAGS="-g"
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348
4349 int
4350 main (void)
4351 {
4352
4353 ;
4354 return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_c_try_compile "$LINENO"
4358 then :
4359 ac_cv_prog_cc_g=yes
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4362 esac
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4365 esac
4366 fi
4367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4368 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4369 esac
4370 fi
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4372 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4373 if test $ac_test_CFLAGS; then
4374 CFLAGS=$ac_save_CFLAGS
4375 elif test $ac_cv_prog_cc_g = yes; then
4376 if test "$GCC" = yes; then
4377 CFLAGS="-g -O2"
4378 else
4379 CFLAGS="-g"
4380 fi
4381 else
4382 if test "$GCC" = yes; then
4383 CFLAGS="-O2"
4384 else
4385 CFLAGS=
4386 fi
4387 fi
4388 ac_prog_cc_stdc=no
4389 if test x$ac_prog_cc_stdc = xno
4390 then :
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4392 printf %s "checking for $CC option to enable C11 features... " >&6; }
4393 if test ${ac_cv_prog_cc_c11+y}
4394 then :
4395 printf %s "(cached) " >&6
4396 else case e in #(
4397 e) ac_cv_prog_cc_c11=no
4398 ac_save_CC=$CC
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 $ac_c_conftest_c11_program
4402 _ACEOF
4403 for ac_arg in '' -std=gnu11
4404 do
4405 CC="$ac_save_CC $ac_arg"
4406 if ac_fn_c_try_compile "$LINENO"
4407 then :
4408 ac_cv_prog_cc_c11=$ac_arg
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.beam
4411 test "x$ac_cv_prog_cc_c11" != "xno" && break
4412 done
4413 rm -f conftest.$ac_ext
4414 CC=$ac_save_CC ;;
4415 esac
4416 fi
4417
4418 if test "x$ac_cv_prog_cc_c11" = xno
4419 then :
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4421 printf "%s\n" "unsupported" >&6; }
4422 else case e in #(
4423 e) if test "x$ac_cv_prog_cc_c11" = x
4424 then :
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4426 printf "%s\n" "none needed" >&6; }
4427 else case e in #(
4428 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4429 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4430 CC="$CC $ac_cv_prog_cc_c11" ;;
4431 esac
4432 fi
4433 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4434 ac_prog_cc_stdc=c11 ;;
4435 esac
4436 fi
4437 fi
4438 if test x$ac_prog_cc_stdc = xno
4439 then :
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4441 printf %s "checking for $CC option to enable C99 features... " >&6; }
4442 if test ${ac_cv_prog_cc_c99+y}
4443 then :
4444 printf %s "(cached) " >&6
4445 else case e in #(
4446 e) ac_cv_prog_cc_c99=no
4447 ac_save_CC=$CC
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 $ac_c_conftest_c99_program
4451 _ACEOF
4452 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4453 do
4454 CC="$ac_save_CC $ac_arg"
4455 if ac_fn_c_try_compile "$LINENO"
4456 then :
4457 ac_cv_prog_cc_c99=$ac_arg
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.beam
4460 test "x$ac_cv_prog_cc_c99" != "xno" && break
4461 done
4462 rm -f conftest.$ac_ext
4463 CC=$ac_save_CC ;;
4464 esac
4465 fi
4466
4467 if test "x$ac_cv_prog_cc_c99" = xno
4468 then :
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4470 printf "%s\n" "unsupported" >&6; }
4471 else case e in #(
4472 e) if test "x$ac_cv_prog_cc_c99" = x
4473 then :
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4475 printf "%s\n" "none needed" >&6; }
4476 else case e in #(
4477 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4478 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4479 CC="$CC $ac_cv_prog_cc_c99" ;;
4480 esac
4481 fi
4482 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4483 ac_prog_cc_stdc=c99 ;;
4484 esac
4485 fi
4486 fi
4487 if test x$ac_prog_cc_stdc = xno
4488 then :
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4490 printf %s "checking for $CC option to enable C89 features... " >&6; }
4491 if test ${ac_cv_prog_cc_c89+y}
4492 then :
4493 printf %s "(cached) " >&6
4494 else case e in #(
4495 e) ac_cv_prog_cc_c89=no
4496 ac_save_CC=$CC
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 $ac_c_conftest_c89_program
4500 _ACEOF
4501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4502 do
4503 CC="$ac_save_CC $ac_arg"
4504 if ac_fn_c_try_compile "$LINENO"
4505 then :
4506 ac_cv_prog_cc_c89=$ac_arg
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext conftest.beam
4509 test "x$ac_cv_prog_cc_c89" != "xno" && break
4510 done
4511 rm -f conftest.$ac_ext
4512 CC=$ac_save_CC ;;
4513 esac
4514 fi
4515
4516 if test "x$ac_cv_prog_cc_c89" = xno
4517 then :
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4519 printf "%s\n" "unsupported" >&6; }
4520 else case e in #(
4521 e) if test "x$ac_cv_prog_cc_c89" = x
4522 then :
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4524 printf "%s\n" "none needed" >&6; }
4525 else case e in #(
4526 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4527 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4528 CC="$CC $ac_cv_prog_cc_c89" ;;
4529 esac
4530 fi
4531 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4532 ac_prog_cc_stdc=c89 ;;
4533 esac
4534 fi
4535 fi
4536
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542
4543
4544 ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4550 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4551 if test ${am_cv_prog_cc_c_o+y}
4552 then :
4553 printf %s "(cached) " >&6
4554 else case e in #(
4555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557
4558 int
4559 main (void)
4560 {
4561
4562 ;
4563 return 0;
4564 }
4565 _ACEOF
4566 # Make sure it works both with $CC and with simple cc.
4567 # Following AC_PROG_CC_C_O, we do the test twice because some
4568 # compilers refuse to overwrite an existing .o file with -o,
4569 # though they will create one.
4570 am_cv_prog_cc_c_o=yes
4571 for am_i in 1 2; do
4572 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4573 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } \
4577 && test -f conftest2.$ac_objext; then
4578 : OK
4579 else
4580 am_cv_prog_cc_c_o=no
4581 break
4582 fi
4583 done
4584 rm -f core conftest*
4585 unset am_i ;;
4586 esac
4587 fi
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4589 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4590 if test "$am_cv_prog_cc_c_o" != yes; then
4591 # Losing compiler, so override with the script.
4592 # FIXME: It is wrong to rewrite CC.
4593 # But if we don't then we get into trouble of one sort or another.
4594 # A longer-term fix would be to have automake use am__CC in this case,
4595 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4596 CC="$am_aux_dir/compile $CC"
4597 fi
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604 DEPDIR="${am__leading_dot}deps"
4605
4606 ac_config_commands="$ac_config_commands depfiles"
4607
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4609 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4610 cat > confinc.mk << 'END'
4611 am__doit:
4612 @echo this is the am__doit target >confinc.out
4613 .PHONY: am__doit
4614 END
4615 am__include="#"
4616 am__quote=
4617 # BSD make does it like this.
4618 echo '.include "confinc.mk" # ignored' > confmf.BSD
4619 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4620 echo 'include confinc.mk # ignored' > confmf.GNU
4621 _am_result=no
4622 for s in GNU BSD; do
4623 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4624 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }
4628 case $?:`cat confinc.out 2>/dev/null` in #(
4629 '0:this is the am__doit target') :
4630 case $s in #(
4631 BSD) :
4632 am__include='.include' am__quote='"' ;; #(
4633 *) :
4634 am__include='include' am__quote='' ;;
4635 esac ;; #(
4636 *) :
4637 ;;
4638 esac
4639 if test "$am__include" != "#"; then
4640 _am_result="yes ($s style)"
4641 break
4642 fi
4643 done
4644 rm -f confinc.* confmf.*
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4646 printf "%s\n" "${_am_result}" >&6; }
4647
4648 # Check whether --enable-dependency-tracking was given.
4649 if test ${enable_dependency_tracking+y}
4650 then :
4651 enableval=$enable_dependency_tracking;
4652 fi
4653
4654 if test "x$enable_dependency_tracking" != xno; then
4655 am_depcomp="$ac_aux_dir/depcomp"
4656 AMDEPBACKSLASH='\'
4657 am__nodep='_no'
4658 fi
4659 if test "x$enable_dependency_tracking" != xno; then
4660 AMDEP_TRUE=
4661 AMDEP_FALSE='#'
4662 else
4663 AMDEP_TRUE='#'
4664 AMDEP_FALSE=
4665 fi
4666
4667
4668
4669 depcc="$CC" am_compiler_list=
4670
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4672 printf %s "checking dependency style of $depcc... " >&6; }
4673 if test ${am_cv_CC_dependencies_compiler_type+y}
4674 then :
4675 printf %s "(cached) " >&6
4676 else case e in #(
4677 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4678 # We make a subdir and do the tests there. Otherwise we can end up
4679 # making bogus files that we don't know about and never remove. For
4680 # instance it was reported that on HP-UX the gcc test will end up
4681 # making a dummy file named 'D' -- because '-MD' means "put the output
4682 # in D".
4683 rm -rf conftest.dir
4684 mkdir conftest.dir
4685 # Copy depcomp to subdir because otherwise we won't find it if we're
4686 # using a relative directory.
4687 cp "$am_depcomp" conftest.dir
4688 cd conftest.dir
4689 # We will build objects and dependencies in a subdirectory because
4690 # it helps to detect inapplicable dependency modes. For instance
4691 # both Tru64's cc and ICC support -MD to output dependencies as a
4692 # side effect of compilation, but ICC will put the dependencies in
4693 # the current directory while Tru64 will put them in the object
4694 # directory.
4695 mkdir sub
4696
4697 am_cv_CC_dependencies_compiler_type=none
4698 if test "$am_compiler_list" = ""; then
4699 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4700 fi
4701 am__universal=false
4702 case " $depcc " in #(
4703 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4704 esac
4705
4706 for depmode in $am_compiler_list; do
4707 # Setup a source with many dependencies, because some compilers
4708 # like to wrap large dependency lists on column 80 (with \), and
4709 # we should not choose a depcomp mode which is confused by this.
4710 #
4711 # We need to recreate these files for each test, as the compiler may
4712 # overwrite some of them when testing with obscure command lines.
4713 # This happens at least with the AIX C compiler.
4714 : > sub/conftest.c
4715 for i in 1 2 3 4 5 6; do
4716 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4717 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4718 # Solaris 10 /bin/sh.
4719 echo '/* dummy */' > sub/conftst$i.h
4720 done
4721 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4722
4723 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4724 # mode. It turns out that the SunPro C++ compiler does not properly
4725 # handle '-M -o', and we need to detect this. Also, some Intel
4726 # versions had trouble with output in subdirs.
4727 am__obj=sub/conftest.${OBJEXT-o}
4728 am__minus_obj="-o $am__obj"
4729 case $depmode in
4730 gcc)
4731 # This depmode causes a compiler race in universal mode.
4732 test "$am__universal" = false || continue
4733 ;;
4734 nosideeffect)
4735 # After this tag, mechanisms are not by side-effect, so they'll
4736 # only be used when explicitly requested.
4737 if test "x$enable_dependency_tracking" = xyes; then
4738 continue
4739 else
4740 break
4741 fi
4742 ;;
4743 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4744 # This compiler won't grok '-c -o', but also, the minuso test has
4745 # not run yet. These depmodes are late enough in the game, and
4746 # so weak that their functioning should not be impacted.
4747 am__obj=conftest.${OBJEXT-o}
4748 am__minus_obj=
4749 ;;
4750 none) break ;;
4751 esac
4752 if depmode=$depmode \
4753 source=sub/conftest.c object=$am__obj \
4754 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4755 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4756 >/dev/null 2>conftest.err &&
4757 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4758 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4759 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4760 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4761 # icc doesn't choke on unknown options, it will just issue warnings
4762 # or remarks (even with -Werror). So we grep stderr for any message
4763 # that says an option was ignored or not supported.
4764 # When given -MP, icc 7.0 and 7.1 complain thusly:
4765 # icc: Command line warning: ignoring option '-M'; no argument required
4766 # The diagnosis changed in icc 8.0:
4767 # icc: Command line remark: option '-MP' not supported
4768 if (grep 'ignoring option' conftest.err ||
4769 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4770 am_cv_CC_dependencies_compiler_type=$depmode
4771 break
4772 fi
4773 fi
4774 done
4775
4776 cd ..
4777 rm -rf conftest.dir
4778 else
4779 am_cv_CC_dependencies_compiler_type=none
4780 fi
4781 ;;
4782 esac
4783 fi
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4785 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4786 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4787
4788 if
4789 test "x$enable_dependency_tracking" != xno \
4790 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4791 am__fastdepCC_TRUE=
4792 am__fastdepCC_FALSE='#'
4793 else
4794 am__fastdepCC_TRUE='#'
4795 am__fastdepCC_FALSE=
4796 fi
4797
4798
4799 #AC_PROG_CXX
4800
4801 case `pwd` in
4802 *\ * | *\ *)
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4804 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4805 esac
4806
4807
4808
4809 macro_version='2.4.7'
4810 macro_revision='2.4.7'
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825 ltmain=$ac_aux_dir/ltmain.sh
4826
4827
4828
4829 # Make sure we can run config.sub.
4830 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4831 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4832
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4834 printf %s "checking build system type... " >&6; }
4835 if test ${ac_cv_build+y}
4836 then :
4837 printf %s "(cached) " >&6
4838 else case e in #(
4839 e) ac_build_alias=$build_alias
4840 test "x$ac_build_alias" = x &&
4841 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4842 test "x$ac_build_alias" = x &&
4843 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4844 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4845 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4846 ;;
4847 esac
4848 fi
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4850 printf "%s\n" "$ac_cv_build" >&6; }
4851 case $ac_cv_build in
4852 *-*-*) ;;
4853 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4854 esac
4855 build=$ac_cv_build
4856 ac_save_IFS=$IFS; IFS='-'
4857 set x $ac_cv_build
4858 shift
4859 build_cpu=$1
4860 build_vendor=$2
4861 shift; shift
4862 # Remember, the first character of IFS is used to create $*,
4863 # except with old shells:
4864 build_os=$*
4865 IFS=$ac_save_IFS
4866 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4867
4868
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4870 printf %s "checking host system type... " >&6; }
4871 if test ${ac_cv_host+y}
4872 then :
4873 printf %s "(cached) " >&6
4874 else case e in #(
4875 e) if test "x$host_alias" = x; then
4876 ac_cv_host=$ac_cv_build
4877 else
4878 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4879 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4880 fi
4881 ;;
4882 esac
4883 fi
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4885 printf "%s\n" "$ac_cv_host" >&6; }
4886 case $ac_cv_host in
4887 *-*-*) ;;
4888 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4889 esac
4890 host=$ac_cv_host
4891 ac_save_IFS=$IFS; IFS='-'
4892 set x $ac_cv_host
4893 shift
4894 host_cpu=$1
4895 host_vendor=$2
4896 shift; shift
4897 # Remember, the first character of IFS is used to create $*,
4898 # except with old shells:
4899 host_os=$*
4900 IFS=$ac_save_IFS
4901 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4902
4903
4904 # Backslashify metacharacters that are still active within
4905 # double-quoted strings.
4906 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4907
4908 # Same as above, but do not quote variable references.
4909 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4910
4911 # Sed substitution to delay expansion of an escaped shell variable in a
4912 # double_quote_subst'ed string.
4913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4914
4915 # Sed substitution to delay expansion of an escaped single quote.
4916 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4917
4918 # Sed substitution to avoid accidental globbing in evaled expressions
4919 no_glob_subst='s/\*/\\\*/g'
4920
4921 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4922 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4923 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4924
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4926 printf %s "checking how to print strings... " >&6; }
4927 # Test print first, because it will be a builtin if present.
4928 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4929 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4930 ECHO='print -r --'
4931 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4932 ECHO='printf %s\n'
4933 else
4934 # Use this function as a fallback that always works.
4935 func_fallback_echo ()
4936 {
4937 eval 'cat <<_LTECHO_EOF
4938 $1
4939 _LTECHO_EOF'
4940 }
4941 ECHO='func_fallback_echo'
4942 fi
4943
4944 # func_echo_all arg...
4945 # Invoke $ECHO with all args, space-separated.
4946 func_echo_all ()
4947 {
4948 $ECHO ""
4949 }
4950
4951 case $ECHO in
4952 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4953 printf "%s\n" "printf" >&6; } ;;
4954 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4955 printf "%s\n" "print -r" >&6; } ;;
4956 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4957 printf "%s\n" "cat" >&6; } ;;
4958 esac
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4974 printf %s "checking for a sed that does not truncate output... " >&6; }
4975 if test ${ac_cv_path_SED+y}
4976 then :
4977 printf %s "(cached) " >&6
4978 else case e in #(
4979 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4980 for ac_i in 1 2 3 4 5 6 7; do
4981 ac_script="$ac_script$as_nl$ac_script"
4982 done
4983 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4984 { ac_script=; unset ac_script;}
4985 if test -z "$SED"; then
4986 ac_path_SED_found=false
4987 # Loop through the user's path and test for each of PROGNAME-LIST
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 case $as_dir in #(((
4993 '') as_dir=./ ;;
4994 */) ;;
4995 *) as_dir=$as_dir/ ;;
4996 esac
4997 for ac_prog in sed gsed
4998 do
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5001 as_fn_executable_p "$ac_path_SED" || continue
5002 # Check for GNU ac_path_SED and select it if it is found.
5003 # Check for GNU $ac_path_SED
5004 case `"$ac_path_SED" --version 2>&1` in #(
5005 *GNU*)
5006 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5007 #(
5008 *)
5009 ac_count=0
5010 printf %s 0123456789 >"conftest.in"
5011 while :
5012 do
5013 cat "conftest.in" "conftest.in" >"conftest.tmp"
5014 mv "conftest.tmp" "conftest.in"
5015 cp "conftest.in" "conftest.nl"
5016 printf "%s\n" '' >> "conftest.nl"
5017 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019 as_fn_arith $ac_count + 1 && ac_count=$as_val
5020 if test $ac_count -gt ${ac_path_SED_max-0}; then
5021 # Best one so far, save it but keep looking for a better one
5022 ac_cv_path_SED="$ac_path_SED"
5023 ac_path_SED_max=$ac_count
5024 fi
5025 # 10*(2^10) chars as input seems more than enough
5026 test $ac_count -gt 10 && break
5027 done
5028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5029 esac
5030
5031 $ac_path_SED_found && break 3
5032 done
5033 done
5034 done
5035 IFS=$as_save_IFS
5036 if test -z "$ac_cv_path_SED"; then
5037 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5038 fi
5039 else
5040 ac_cv_path_SED=$SED
5041 fi
5042 ;;
5043 esac
5044 fi
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5046 printf "%s\n" "$ac_cv_path_SED" >&6; }
5047 SED="$ac_cv_path_SED"
5048 rm -f conftest.sed
5049
5050 test -z "$SED" && SED=sed
5051 Xsed="$SED -e 1s/^X//"
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5064 printf %s "checking for grep that handles long lines and -e... " >&6; }
5065 if test ${ac_cv_path_GREP+y}
5066 then :
5067 printf %s "(cached) " >&6
5068 else case e in #(
5069 e) if test -z "$GREP"; then
5070 ac_path_GREP_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5074 do
5075 IFS=$as_save_IFS
5076 case $as_dir in #(((
5077 '') as_dir=./ ;;
5078 */) ;;
5079 *) as_dir=$as_dir/ ;;
5080 esac
5081 for ac_prog in grep ggrep
5082 do
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5085 as_fn_executable_p "$ac_path_GREP" || continue
5086 # Check for GNU ac_path_GREP and select it if it is found.
5087 # Check for GNU $ac_path_GREP
5088 case `"$ac_path_GREP" --version 2>&1` in #(
5089 *GNU*)
5090 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5091 #(
5092 *)
5093 ac_count=0
5094 printf %s 0123456789 >"conftest.in"
5095 while :
5096 do
5097 cat "conftest.in" "conftest.in" >"conftest.tmp"
5098 mv "conftest.tmp" "conftest.in"
5099 cp "conftest.in" "conftest.nl"
5100 printf "%s\n" 'GREP' >> "conftest.nl"
5101 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5103 as_fn_arith $ac_count + 1 && ac_count=$as_val
5104 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5105 # Best one so far, save it but keep looking for a better one
5106 ac_cv_path_GREP="$ac_path_GREP"
5107 ac_path_GREP_max=$ac_count
5108 fi
5109 # 10*(2^10) chars as input seems more than enough
5110 test $ac_count -gt 10 && break
5111 done
5112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5113 esac
5114
5115 $ac_path_GREP_found && break 3
5116 done
5117 done
5118 done
5119 IFS=$as_save_IFS
5120 if test -z "$ac_cv_path_GREP"; then
5121 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5122 fi
5123 else
5124 ac_cv_path_GREP=$GREP
5125 fi
5126 ;;
5127 esac
5128 fi
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5130 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5131 GREP="$ac_cv_path_GREP"
5132
5133
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5135 printf %s "checking for egrep... " >&6; }
5136 if test ${ac_cv_path_EGREP+y}
5137 then :
5138 printf %s "(cached) " >&6
5139 else case e in #(
5140 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5141 then ac_cv_path_EGREP="$GREP -E"
5142 else
5143 if test -z "$EGREP"; then
5144 ac_path_EGREP_found=false
5145 # Loop through the user's path and test for each of PROGNAME-LIST
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5148 do
5149 IFS=$as_save_IFS
5150 case $as_dir in #(((
5151 '') as_dir=./ ;;
5152 */) ;;
5153 *) as_dir=$as_dir/ ;;
5154 esac
5155 for ac_prog in egrep
5156 do
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5159 as_fn_executable_p "$ac_path_EGREP" || continue
5160 # Check for GNU ac_path_EGREP and select it if it is found.
5161 # Check for GNU $ac_path_EGREP
5162 case `"$ac_path_EGREP" --version 2>&1` in #(
5163 *GNU*)
5164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5165 #(
5166 *)
5167 ac_count=0
5168 printf %s 0123456789 >"conftest.in"
5169 while :
5170 do
5171 cat "conftest.in" "conftest.in" >"conftest.tmp"
5172 mv "conftest.tmp" "conftest.in"
5173 cp "conftest.in" "conftest.nl"
5174 printf "%s\n" 'EGREP' >> "conftest.nl"
5175 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5177 as_fn_arith $ac_count + 1 && ac_count=$as_val
5178 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5179 # Best one so far, save it but keep looking for a better one
5180 ac_cv_path_EGREP="$ac_path_EGREP"
5181 ac_path_EGREP_max=$ac_count
5182 fi
5183 # 10*(2^10) chars as input seems more than enough
5184 test $ac_count -gt 10 && break
5185 done
5186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5187 esac
5188
5189 $ac_path_EGREP_found && break 3
5190 done
5191 done
5192 done
5193 IFS=$as_save_IFS
5194 if test -z "$ac_cv_path_EGREP"; then
5195 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5196 fi
5197 else
5198 ac_cv_path_EGREP=$EGREP
5199 fi
5200
5201 fi ;;
5202 esac
5203 fi
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5205 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5206 EGREP="$ac_cv_path_EGREP"
5207
5208 EGREP_TRADITIONAL=$EGREP
5209 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5210
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5212 printf %s "checking for fgrep... " >&6; }
5213 if test ${ac_cv_path_FGREP+y}
5214 then :
5215 printf %s "(cached) " >&6
5216 else case e in #(
5217 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5218 then ac_cv_path_FGREP="$GREP -F"
5219 else
5220 if test -z "$FGREP"; then
5221 ac_path_FGREP_found=false
5222 # Loop through the user's path and test for each of PROGNAME-LIST
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5225 do
5226 IFS=$as_save_IFS
5227 case $as_dir in #(((
5228 '') as_dir=./ ;;
5229 */) ;;
5230 *) as_dir=$as_dir/ ;;
5231 esac
5232 for ac_prog in fgrep
5233 do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5236 as_fn_executable_p "$ac_path_FGREP" || continue
5237 # Check for GNU ac_path_FGREP and select it if it is found.
5238 # Check for GNU $ac_path_FGREP
5239 case `"$ac_path_FGREP" --version 2>&1` in #(
5240 *GNU*)
5241 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5242 #(
5243 *)
5244 ac_count=0
5245 printf %s 0123456789 >"conftest.in"
5246 while :
5247 do
5248 cat "conftest.in" "conftest.in" >"conftest.tmp"
5249 mv "conftest.tmp" "conftest.in"
5250 cp "conftest.in" "conftest.nl"
5251 printf "%s\n" 'FGREP' >> "conftest.nl"
5252 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254 as_fn_arith $ac_count + 1 && ac_count=$as_val
5255 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5256 # Best one so far, save it but keep looking for a better one
5257 ac_cv_path_FGREP="$ac_path_FGREP"
5258 ac_path_FGREP_max=$ac_count
5259 fi
5260 # 10*(2^10) chars as input seems more than enough
5261 test $ac_count -gt 10 && break
5262 done
5263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 esac
5265
5266 $ac_path_FGREP_found && break 3
5267 done
5268 done
5269 done
5270 IFS=$as_save_IFS
5271 if test -z "$ac_cv_path_FGREP"; then
5272 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273 fi
5274 else
5275 ac_cv_path_FGREP=$FGREP
5276 fi
5277
5278 fi ;;
5279 esac
5280 fi
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5282 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5283 FGREP="$ac_cv_path_FGREP"
5284
5285
5286 test -z "$GREP" && GREP=grep
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306 # Check whether --with-gnu-ld was given.
5307 if test ${with_gnu_ld+y}
5308 then :
5309 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5310 else case e in #(
5311 e) with_gnu_ld=no ;;
5312 esac
5313 fi
5314
5315 ac_prog=ld
5316 if test yes = "$GCC"; then
5317 # Check if gcc -print-prog-name=ld gives a path.
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5319 printf %s "checking for ld used by $CC... " >&6; }
5320 case $host in
5321 *-*-mingw*)
5322 # gcc leaves a trailing carriage return, which upsets mingw
5323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5324 *)
5325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5326 esac
5327 case $ac_prog in
5328 # Accept absolute paths.
5329 [\\/]* | ?:[\\/]*)
5330 re_direlt='/[^/][^/]*/\.\./'
5331 # Canonicalize the pathname of ld
5332 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5333 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5334 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5335 done
5336 test -z "$LD" && LD=$ac_prog
5337 ;;
5338 "")
5339 # If it fails, then pretend we aren't using GCC.
5340 ac_prog=ld
5341 ;;
5342 *)
5343 # If it is relative, then search for the first ld in PATH.
5344 with_gnu_ld=unknown
5345 ;;
5346 esac
5347 elif test yes = "$with_gnu_ld"; then
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5349 printf %s "checking for GNU ld... " >&6; }
5350 else
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5352 printf %s "checking for non-GNU ld... " >&6; }
5353 fi
5354 if test ${lt_cv_path_LD+y}
5355 then :
5356 printf %s "(cached) " >&6
5357 else case e in #(
5358 e) if test -z "$LD"; then
5359 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5360 for ac_dir in $PATH; do
5361 IFS=$lt_save_ifs
5362 test -z "$ac_dir" && ac_dir=.
5363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5364 lt_cv_path_LD=$ac_dir/$ac_prog
5365 # Check to see if the program is GNU ld. I'd rather use --version,
5366 # but apparently some variants of GNU ld only accept -v.
5367 # Break only if it was the GNU/non-GNU ld that we prefer.
5368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5369 *GNU* | *'with BFD'*)
5370 test no != "$with_gnu_ld" && break
5371 ;;
5372 *)
5373 test yes != "$with_gnu_ld" && break
5374 ;;
5375 esac
5376 fi
5377 done
5378 IFS=$lt_save_ifs
5379 else
5380 lt_cv_path_LD=$LD # Let the user override the test with a path.
5381 fi ;;
5382 esac
5383 fi
5384
5385 LD=$lt_cv_path_LD
5386 if test -n "$LD"; then
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5388 printf "%s\n" "$LD" >&6; }
5389 else
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 printf "%s\n" "no" >&6; }
5392 fi
5393 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5395 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5396 if test ${lt_cv_prog_gnu_ld+y}
5397 then :
5398 printf %s "(cached) " >&6
5399 else case e in #(
5400 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5401 case `$LD -v 2>&1 </dev/null` in
5402 *GNU* | *'with BFD'*)
5403 lt_cv_prog_gnu_ld=yes
5404 ;;
5405 *)
5406 lt_cv_prog_gnu_ld=no
5407 ;;
5408 esac ;;
5409 esac
5410 fi
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5412 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5413 with_gnu_ld=$lt_cv_prog_gnu_ld
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5424 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5425 if test ${lt_cv_path_NM+y}
5426 then :
5427 printf %s "(cached) " >&6
5428 else case e in #(
5429 e) if test -n "$NM"; then
5430 # Let the user override the test.
5431 lt_cv_path_NM=$NM
5432 else
5433 lt_nm_to_check=${ac_tool_prefix}nm
5434 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5435 lt_nm_to_check="$lt_nm_to_check nm"
5436 fi
5437 for lt_tmp_nm in $lt_nm_to_check; do
5438 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5439 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5440 IFS=$lt_save_ifs
5441 test -z "$ac_dir" && ac_dir=.
5442 tmp_nm=$ac_dir/$lt_tmp_nm
5443 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5444 # Check to see if the nm accepts a BSD-compat flag.
5445 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5446 # nm: unknown option "B" ignored
5447 # Tru64's nm complains that /dev/null is an invalid object file
5448 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5449 case $build_os in
5450 mingw*) lt_bad_file=conftest.nm/nofile ;;
5451 *) lt_bad_file=/dev/null ;;
5452 esac
5453 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5454 *$lt_bad_file* | *'Invalid file or object type'*)
5455 lt_cv_path_NM="$tmp_nm -B"
5456 break 2
5457 ;;
5458 *)
5459 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5460 */dev/null*)
5461 lt_cv_path_NM="$tmp_nm -p"
5462 break 2
5463 ;;
5464 *)
5465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5466 continue # so that we can try to find one that supports BSD flags
5467 ;;
5468 esac
5469 ;;
5470 esac
5471 fi
5472 done
5473 IFS=$lt_save_ifs
5474 done
5475 : ${lt_cv_path_NM=no}
5476 fi ;;
5477 esac
5478 fi
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5480 printf "%s\n" "$lt_cv_path_NM" >&6; }
5481 if test no != "$lt_cv_path_NM"; then
5482 NM=$lt_cv_path_NM
5483 else
5484 # Didn't find any BSD compatible name lister, look for dumpbin.
5485 if test -n "$DUMPBIN"; then :
5486 # Let the user override the test.
5487 else
5488 if test -n "$ac_tool_prefix"; then
5489 for ac_prog in dumpbin "link -dump"
5490 do
5491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 printf %s "checking for $ac_word... " >&6; }
5495 if test ${ac_cv_prog_DUMPBIN+y}
5496 then :
5497 printf %s "(cached) " >&6
5498 else case e in #(
5499 e) if test -n "$DUMPBIN"; then
5500 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 case $as_dir in #(((
5507 '') as_dir=./ ;;
5508 */) ;;
5509 *) as_dir=$as_dir/ ;;
5510 esac
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517 done
5518 done
5519 IFS=$as_save_IFS
5520
5521 fi ;;
5522 esac
5523 fi
5524 DUMPBIN=$ac_cv_prog_DUMPBIN
5525 if test -n "$DUMPBIN"; then
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5527 printf "%s\n" "$DUMPBIN" >&6; }
5528 else
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 printf "%s\n" "no" >&6; }
5531 fi
5532
5533
5534 test -n "$DUMPBIN" && break
5535 done
5536 fi
5537 if test -z "$DUMPBIN"; then
5538 ac_ct_DUMPBIN=$DUMPBIN
5539 for ac_prog in dumpbin "link -dump"
5540 do
5541 # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy $ac_prog; ac_word=$2
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 printf %s "checking for $ac_word... " >&6; }
5545 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5546 then :
5547 printf %s "(cached) " >&6
5548 else case e in #(
5549 e) if test -n "$ac_ct_DUMPBIN"; then
5550 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555 IFS=$as_save_IFS
5556 case $as_dir in #(((
5557 '') as_dir=./ ;;
5558 */) ;;
5559 *) as_dir=$as_dir/ ;;
5560 esac
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5563 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi ;;
5572 esac
5573 fi
5574 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5575 if test -n "$ac_ct_DUMPBIN"; then
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5577 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5578 else
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 printf "%s\n" "no" >&6; }
5581 fi
5582
5583
5584 test -n "$ac_ct_DUMPBIN" && break
5585 done
5586
5587 if test "x$ac_ct_DUMPBIN" = x; then
5588 DUMPBIN=":"
5589 else
5590 case $cross_compiling:$ac_tool_warned in
5591 yes:)
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594 ac_tool_warned=yes ;;
5595 esac
5596 DUMPBIN=$ac_ct_DUMPBIN
5597 fi
5598 fi
5599
5600 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5601 *COFF*)
5602 DUMPBIN="$DUMPBIN -symbols -headers"
5603 ;;
5604 *)
5605 DUMPBIN=:
5606 ;;
5607 esac
5608 fi
5609
5610 if test : != "$DUMPBIN"; then
5611 NM=$DUMPBIN
5612 fi
5613 fi
5614 test -z "$NM" && NM=nm
5615
5616
5617
5618
5619
5620
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5622 printf %s "checking the name lister ($NM) interface... " >&6; }
5623 if test ${lt_cv_nm_interface+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else case e in #(
5627 e) lt_cv_nm_interface="BSD nm"
5628 echo "int some_variable = 0;" > conftest.$ac_ext
5629 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5630 (eval "$ac_compile" 2>conftest.err)
5631 cat conftest.err >&5
5632 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5633 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5634 cat conftest.err >&5
5635 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5636 cat conftest.out >&5
5637 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5638 lt_cv_nm_interface="MS dumpbin"
5639 fi
5640 rm -f conftest* ;;
5641 esac
5642 fi
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5644 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5645
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5647 printf %s "checking whether ln -s works... " >&6; }
5648 LN_S=$as_ln_s
5649 if test "$LN_S" = "ln -s"; then
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5651 printf "%s\n" "yes" >&6; }
5652 else
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5654 printf "%s\n" "no, using $LN_S" >&6; }
5655 fi
5656
5657 # find the maximum length of command line arguments
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5659 printf %s "checking the maximum length of command line arguments... " >&6; }
5660 if test ${lt_cv_sys_max_cmd_len+y}
5661 then :
5662 printf %s "(cached) " >&6
5663 else case e in #(
5664 e) i=0
5665 teststring=ABCD
5666
5667 case $build_os in
5668 msdosdjgpp*)
5669 # On DJGPP, this test can blow up pretty badly due to problems in libc
5670 # (any single argument exceeding 2000 bytes causes a buffer overrun
5671 # during glob expansion). Even if it were fixed, the result of this
5672 # check would be larger than it should be.
5673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5674 ;;
5675
5676 gnu*)
5677 # Under GNU Hurd, this test is not required because there is
5678 # no limit to the length of command line arguments.
5679 # Libtool will interpret -1 as no limit whatsoever
5680 lt_cv_sys_max_cmd_len=-1;
5681 ;;
5682
5683 cygwin* | mingw* | cegcc*)
5684 # On Win9x/ME, this test blows up -- it succeeds, but takes
5685 # about 5 minutes as the teststring grows exponentially.
5686 # Worse, since 9x/ME are not pre-emptively multitasking,
5687 # you end up with a "frozen" computer, even though with patience
5688 # the test eventually succeeds (with a max line length of 256k).
5689 # Instead, let's just punt: use the minimum linelength reported by
5690 # all of the supported platforms: 8192 (on NT/2K/XP).
5691 lt_cv_sys_max_cmd_len=8192;
5692 ;;
5693
5694 mint*)
5695 # On MiNT this can take a long time and run out of memory.
5696 lt_cv_sys_max_cmd_len=8192;
5697 ;;
5698
5699 amigaos*)
5700 # On AmigaOS with pdksh, this test takes hours, literally.
5701 # So we just punt and use a minimum line length of 8192.
5702 lt_cv_sys_max_cmd_len=8192;
5703 ;;
5704
5705 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5706 # This has been around since 386BSD, at least. Likely further.
5707 if test -x /sbin/sysctl; then
5708 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5709 elif test -x /usr/sbin/sysctl; then
5710 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5711 else
5712 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5713 fi
5714 # And add a safety zone
5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5717 ;;
5718
5719 interix*)
5720 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5721 lt_cv_sys_max_cmd_len=196608
5722 ;;
5723
5724 os2*)
5725 # The test takes a long time on OS/2.
5726 lt_cv_sys_max_cmd_len=8192
5727 ;;
5728
5729 osf*)
5730 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5731 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5732 # nice to cause kernel panics so lets avoid the loop below.
5733 # First set a reasonable default.
5734 lt_cv_sys_max_cmd_len=16384
5735 #
5736 if test -x /sbin/sysconfig; then
5737 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5738 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5739 esac
5740 fi
5741 ;;
5742 sco3.2v5*)
5743 lt_cv_sys_max_cmd_len=102400
5744 ;;
5745 sysv5* | sco5v6* | sysv4.2uw2*)
5746 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5747 if test -n "$kargmax"; then
5748 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5749 else
5750 lt_cv_sys_max_cmd_len=32768
5751 fi
5752 ;;
5753 *)
5754 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5755 if test -n "$lt_cv_sys_max_cmd_len" && \
5756 test undefined != "$lt_cv_sys_max_cmd_len"; then
5757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5759 else
5760 # Make teststring a little bigger before we do anything with it.
5761 # a 1K string should be a reasonable start.
5762 for i in 1 2 3 4 5 6 7 8; do
5763 teststring=$teststring$teststring
5764 done
5765 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5766 # If test is not a shell built-in, we'll probably end up computing a
5767 # maximum length that is only half of the actual maximum length, but
5768 # we can't tell.
5769 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5770 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5771 test 17 != "$i" # 1/2 MB should be enough
5772 do
5773 i=`expr $i + 1`
5774 teststring=$teststring$teststring
5775 done
5776 # Only check the string length outside the loop.
5777 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5778 teststring=
5779 # Add a significant safety factor because C++ compilers can tack on
5780 # massive amounts of additional arguments before passing them to the
5781 # linker. It appears as though 1/2 is a usable value.
5782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5783 fi
5784 ;;
5785 esac
5786 ;;
5787 esac
5788 fi
5789
5790 if test -n "$lt_cv_sys_max_cmd_len"; then
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5792 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5793 else
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5795 printf "%s\n" "none" >&6; }
5796 fi
5797 max_cmd_len=$lt_cv_sys_max_cmd_len
5798
5799
5800
5801
5802
5803
5804 : ${CP="cp -f"}
5805 : ${MV="mv -f"}
5806 : ${RM="rm -f"}
5807
5808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5809 lt_unset=unset
5810 else
5811 lt_unset=false
5812 fi
5813
5814
5815
5816
5817
5818 # test EBCDIC or ASCII
5819 case `echo X|tr X '\101'` in
5820 A) # ASCII based system
5821 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5822 lt_SP2NL='tr \040 \012'
5823 lt_NL2SP='tr \015\012 \040\040'
5824 ;;
5825 *) # EBCDIC based system
5826 lt_SP2NL='tr \100 \n'
5827 lt_NL2SP='tr \r\n \100\100'
5828 ;;
5829 esac
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5840 printf %s "checking how to convert $build file names to $host format... " >&6; }
5841 if test ${lt_cv_to_host_file_cmd+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else case e in #(
5845 e) case $host in
5846 *-*-mingw* )
5847 case $build in
5848 *-*-mingw* ) # actually msys
5849 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5850 ;;
5851 *-*-cygwin* )
5852 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5853 ;;
5854 * ) # otherwise, assume *nix
5855 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5856 ;;
5857 esac
5858 ;;
5859 *-*-cygwin* )
5860 case $build in
5861 *-*-mingw* ) # actually msys
5862 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5863 ;;
5864 *-*-cygwin* )
5865 lt_cv_to_host_file_cmd=func_convert_file_noop
5866 ;;
5867 * ) # otherwise, assume *nix
5868 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5869 ;;
5870 esac
5871 ;;
5872 * ) # unhandled hosts (and "normal" native builds)
5873 lt_cv_to_host_file_cmd=func_convert_file_noop
5874 ;;
5875 esac
5876 ;;
5877 esac
5878 fi
5879
5880 to_host_file_cmd=$lt_cv_to_host_file_cmd
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5882 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5883
5884
5885
5886
5887
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5889 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5890 if test ${lt_cv_to_tool_file_cmd+y}
5891 then :
5892 printf %s "(cached) " >&6
5893 else case e in #(
5894 e) #assume ordinary cross tools, or native build.
5895 lt_cv_to_tool_file_cmd=func_convert_file_noop
5896 case $host in
5897 *-*-mingw* )
5898 case $build in
5899 *-*-mingw* ) # actually msys
5900 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5901 ;;
5902 esac
5903 ;;
5904 esac
5905 ;;
5906 esac
5907 fi
5908
5909 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5911 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5912
5913
5914
5915
5916
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5918 printf %s "checking for $LD option to reload object files... " >&6; }
5919 if test ${lt_cv_ld_reload_flag+y}
5920 then :
5921 printf %s "(cached) " >&6
5922 else case e in #(
5923 e) lt_cv_ld_reload_flag='-r' ;;
5924 esac
5925 fi
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5927 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5928 reload_flag=$lt_cv_ld_reload_flag
5929 case $reload_flag in
5930 "" | " "*) ;;
5931 *) reload_flag=" $reload_flag" ;;
5932 esac
5933 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5934 case $host_os in
5935 cygwin* | mingw* | pw32* | cegcc*)
5936 if test yes != "$GCC"; then
5937 reload_cmds=false
5938 fi
5939 ;;
5940 darwin*)
5941 if test yes = "$GCC"; then
5942 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5943 else
5944 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5945 fi
5946 ;;
5947 esac
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 if test -n "$ac_tool_prefix"; then
5958 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5959 set dummy ${ac_tool_prefix}file; ac_word=$2
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 printf %s "checking for $ac_word... " >&6; }
5962 if test ${ac_cv_prog_FILECMD+y}
5963 then :
5964 printf %s "(cached) " >&6
5965 else case e in #(
5966 e) if test -n "$FILECMD"; then
5967 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 case $as_dir in #(((
5974 '') as_dir=./ ;;
5975 */) ;;
5976 *) as_dir=$as_dir/ ;;
5977 esac
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5980 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984 done
5985 done
5986 IFS=$as_save_IFS
5987
5988 fi ;;
5989 esac
5990 fi
5991 FILECMD=$ac_cv_prog_FILECMD
5992 if test -n "$FILECMD"; then
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5994 printf "%s\n" "$FILECMD" >&6; }
5995 else
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 printf "%s\n" "no" >&6; }
5998 fi
5999
6000
6001 fi
6002 if test -z "$ac_cv_prog_FILECMD"; then
6003 ac_ct_FILECMD=$FILECMD
6004 # Extract the first word of "file", so it can be a program name with args.
6005 set dummy file; ac_word=$2
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 printf %s "checking for $ac_word... " >&6; }
6008 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6009 then :
6010 printf %s "(cached) " >&6
6011 else case e in #(
6012 e) if test -n "$ac_ct_FILECMD"; then
6013 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 case $as_dir in #(((
6020 '') as_dir=./ ;;
6021 */) ;;
6022 *) as_dir=$as_dir/ ;;
6023 esac
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_ac_ct_FILECMD="file"
6027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi ;;
6035 esac
6036 fi
6037 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6038 if test -n "$ac_ct_FILECMD"; then
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6040 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6041 else
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 printf "%s\n" "no" >&6; }
6044 fi
6045
6046 if test "x$ac_ct_FILECMD" = x; then
6047 FILECMD=":"
6048 else
6049 case $cross_compiling:$ac_tool_warned in
6050 yes:)
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053 ac_tool_warned=yes ;;
6054 esac
6055 FILECMD=$ac_ct_FILECMD
6056 fi
6057 else
6058 FILECMD="$ac_cv_prog_FILECMD"
6059 fi
6060
6061
6062
6063
6064
6065
6066
6067 if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 printf %s "checking for $ac_word... " >&6; }
6072 if test ${ac_cv_prog_OBJDUMP+y}
6073 then :
6074 printf %s "(cached) " >&6
6075 else case e in #(
6076 e) if test -n "$OBJDUMP"; then
6077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082 IFS=$as_save_IFS
6083 case $as_dir in #(((
6084 '') as_dir=./ ;;
6085 */) ;;
6086 *) as_dir=$as_dir/ ;;
6087 esac
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi ;;
6099 esac
6100 fi
6101 OBJDUMP=$ac_cv_prog_OBJDUMP
6102 if test -n "$OBJDUMP"; then
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6104 printf "%s\n" "$OBJDUMP" >&6; }
6105 else
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 printf "%s\n" "no" >&6; }
6108 fi
6109
6110
6111 fi
6112 if test -z "$ac_cv_prog_OBJDUMP"; then
6113 ac_ct_OBJDUMP=$OBJDUMP
6114 # Extract the first word of "objdump", so it can be a program name with args.
6115 set dummy objdump; ac_word=$2
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 printf %s "checking for $ac_word... " >&6; }
6118 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6119 then :
6120 printf %s "(cached) " >&6
6121 else case e in #(
6122 e) if test -n "$ac_ct_OBJDUMP"; then
6123 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 case $as_dir in #(((
6130 '') as_dir=./ ;;
6131 */) ;;
6132 *) as_dir=$as_dir/ ;;
6133 esac
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140 done
6141 done
6142 IFS=$as_save_IFS
6143
6144 fi ;;
6145 esac
6146 fi
6147 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6148 if test -n "$ac_ct_OBJDUMP"; then
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6150 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6151 else
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 printf "%s\n" "no" >&6; }
6154 fi
6155
6156 if test "x$ac_ct_OBJDUMP" = x; then
6157 OBJDUMP="false"
6158 else
6159 case $cross_compiling:$ac_tool_warned in
6160 yes:)
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163 ac_tool_warned=yes ;;
6164 esac
6165 OBJDUMP=$ac_ct_OBJDUMP
6166 fi
6167 else
6168 OBJDUMP="$ac_cv_prog_OBJDUMP"
6169 fi
6170
6171 test -z "$OBJDUMP" && OBJDUMP=objdump
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6182 printf %s "checking how to recognize dependent libraries... " >&6; }
6183 if test ${lt_cv_deplibs_check_method+y}
6184 then :
6185 printf %s "(cached) " >&6
6186 else case e in #(
6187 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6188 lt_cv_file_magic_test_file=
6189 lt_cv_deplibs_check_method='unknown'
6190 # Need to set the preceding variable on all platforms that support
6191 # interlibrary dependencies.
6192 # 'none' -- dependencies not supported.
6193 # 'unknown' -- same as none, but documents that we really don't know.
6194 # 'pass_all' -- all dependencies passed with no checks.
6195 # 'test_compile' -- check by making test program.
6196 # 'file_magic [[regex]]' -- check by looking for files in library path
6197 # that responds to the $file_magic_cmd with a given extended regex.
6198 # If you have 'file' or equivalent on your system and you're not sure
6199 # whether 'pass_all' will *always* work, you probably want this one.
6200
6201 case $host_os in
6202 aix[4-9]*)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206 beos*)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209
6210 bsdi[45]*)
6211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6212 lt_cv_file_magic_cmd='$FILECMD -L'
6213 lt_cv_file_magic_test_file=/shlib/libc.so
6214 ;;
6215
6216 cygwin*)
6217 # func_win32_libid is a shell function defined in ltmain.sh
6218 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6219 lt_cv_file_magic_cmd='func_win32_libid'
6220 ;;
6221
6222 mingw* | pw32*)
6223 # Base MSYS/MinGW do not provide the 'file' command needed by
6224 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6225 # unless we find 'file', for example because we are cross-compiling.
6226 if ( file / ) >/dev/null 2>&1; then
6227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6228 lt_cv_file_magic_cmd='func_win32_libid'
6229 else
6230 # Keep this pattern in sync with the one in func_win32_libid.
6231 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6232 lt_cv_file_magic_cmd='$OBJDUMP -f'
6233 fi
6234 ;;
6235
6236 cegcc*)
6237 # use the weaker test based on 'objdump'. See mingw*.
6238 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6239 lt_cv_file_magic_cmd='$OBJDUMP -f'
6240 ;;
6241
6242 darwin* | rhapsody*)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245
6246 freebsd* | dragonfly* | midnightbsd*)
6247 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6248 case $host_cpu in
6249 i*86 )
6250 # Not sure whether the presence of OpenBSD here was a mistake.
6251 # Let's accept both of them until this is cleared up.
6252 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6253 lt_cv_file_magic_cmd=$FILECMD
6254 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6255 ;;
6256 esac
6257 else
6258 lt_cv_deplibs_check_method=pass_all
6259 fi
6260 ;;
6261
6262 haiku*)
6263 lt_cv_deplibs_check_method=pass_all
6264 ;;
6265
6266 hpux10.20* | hpux11*)
6267 lt_cv_file_magic_cmd=$FILECMD
6268 case $host_cpu in
6269 ia64*)
6270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6271 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6272 ;;
6273 hppa*64*)
6274 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]'
6275 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6276 ;;
6277 *)
6278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6279 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6280 ;;
6281 esac
6282 ;;
6283
6284 interix[3-9]*)
6285 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6287 ;;
6288
6289 irix5* | irix6* | nonstopux*)
6290 case $LD in
6291 *-32|*"-32 ") libmagic=32-bit;;
6292 *-n32|*"-n32 ") libmagic=N32;;
6293 *-64|*"-64 ") libmagic=64-bit;;
6294 *) libmagic=never-match;;
6295 esac
6296 lt_cv_deplibs_check_method=pass_all
6297 ;;
6298
6299 # This must be glibc/ELF.
6300 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6301 lt_cv_deplibs_check_method=pass_all
6302 ;;
6303
6304 netbsd*)
6305 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6307 else
6308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6309 fi
6310 ;;
6311
6312 newos6*)
6313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6314 lt_cv_file_magic_cmd=$FILECMD
6315 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6316 ;;
6317
6318 *nto* | *qnx*)
6319 lt_cv_deplibs_check_method=pass_all
6320 ;;
6321
6322 openbsd* | bitrig*)
6323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6325 else
6326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6327 fi
6328 ;;
6329
6330 osf3* | osf4* | osf5*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334 rdos*)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337
6338 solaris*)
6339 lt_cv_deplibs_check_method=pass_all
6340 ;;
6341
6342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6343 lt_cv_deplibs_check_method=pass_all
6344 ;;
6345
6346 sysv4 | sysv4.3*)
6347 case $host_vendor in
6348 motorola)
6349 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]'
6350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6351 ;;
6352 ncr)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355 sequent)
6356 lt_cv_file_magic_cmd='/bin/file'
6357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6358 ;;
6359 sni)
6360 lt_cv_file_magic_cmd='/bin/file'
6361 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6362 lt_cv_file_magic_test_file=/lib/libc.so
6363 ;;
6364 siemens)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367 pc)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370 esac
6371 ;;
6372
6373 tpf*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376 os2*)
6377 lt_cv_deplibs_check_method=pass_all
6378 ;;
6379 esac
6380 ;;
6381 esac
6382 fi
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6384 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6385
6386 file_magic_glob=
6387 want_nocaseglob=no
6388 if test "$build" = "$host"; then
6389 case $host_os in
6390 mingw* | pw32*)
6391 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6392 want_nocaseglob=yes
6393 else
6394 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6395 fi
6396 ;;
6397 esac
6398 fi
6399
6400 file_magic_cmd=$lt_cv_file_magic_cmd
6401 deplibs_check_method=$lt_cv_deplibs_check_method
6402 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425 if test -n "$ac_tool_prefix"; then
6426 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6427 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 printf %s "checking for $ac_word... " >&6; }
6430 if test ${ac_cv_prog_DLLTOOL+y}
6431 then :
6432 printf %s "(cached) " >&6
6433 else case e in #(
6434 e) if test -n "$DLLTOOL"; then
6435 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440 IFS=$as_save_IFS
6441 case $as_dir in #(((
6442 '') as_dir=./ ;;
6443 */) ;;
6444 *) as_dir=$as_dir/ ;;
6445 esac
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi ;;
6457 esac
6458 fi
6459 DLLTOOL=$ac_cv_prog_DLLTOOL
6460 if test -n "$DLLTOOL"; then
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6462 printf "%s\n" "$DLLTOOL" >&6; }
6463 else
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 printf "%s\n" "no" >&6; }
6466 fi
6467
6468
6469 fi
6470 if test -z "$ac_cv_prog_DLLTOOL"; then
6471 ac_ct_DLLTOOL=$DLLTOOL
6472 # Extract the first word of "dlltool", so it can be a program name with args.
6473 set dummy dlltool; ac_word=$2
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 printf %s "checking for $ac_word... " >&6; }
6476 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else case e in #(
6480 e) if test -n "$ac_ct_DLLTOOL"; then
6481 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486 IFS=$as_save_IFS
6487 case $as_dir in #(((
6488 '') as_dir=./ ;;
6489 */) ;;
6490 *) as_dir=$as_dir/ ;;
6491 esac
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi ;;
6503 esac
6504 fi
6505 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6506 if test -n "$ac_ct_DLLTOOL"; then
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6508 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6509 else
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 printf "%s\n" "no" >&6; }
6512 fi
6513
6514 if test "x$ac_ct_DLLTOOL" = x; then
6515 DLLTOOL="false"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523 DLLTOOL=$ac_ct_DLLTOOL
6524 fi
6525 else
6526 DLLTOOL="$ac_cv_prog_DLLTOOL"
6527 fi
6528
6529 test -z "$DLLTOOL" && DLLTOOL=dlltool
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6541 printf %s "checking how to associate runtime and link libraries... " >&6; }
6542 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6543 then :
6544 printf %s "(cached) " >&6
6545 else case e in #(
6546 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6547
6548 case $host_os in
6549 cygwin* | mingw* | pw32* | cegcc*)
6550 # two different shell functions defined in ltmain.sh;
6551 # decide which one to use based on capabilities of $DLLTOOL
6552 case `$DLLTOOL --help 2>&1` in
6553 *--identify-strict*)
6554 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6555 ;;
6556 *)
6557 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6558 ;;
6559 esac
6560 ;;
6561 *)
6562 # fallback: assume linklib IS sharedlib
6563 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6564 ;;
6565 esac
6566 ;;
6567 esac
6568 fi
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6570 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6571 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6572 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6573
6574
6575
6576
6577
6578
6579
6580
6581 if test -n "$ac_tool_prefix"; then
6582 for ac_prog in ar
6583 do
6584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 printf %s "checking for $ac_word... " >&6; }
6588 if test ${ac_cv_prog_AR+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else case e in #(
6592 e) if test -n "$AR"; then
6593 ac_cv_prog_AR="$AR" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 case $as_dir in #(((
6600 '') as_dir=./ ;;
6601 */) ;;
6602 *) as_dir=$as_dir/ ;;
6603 esac
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi ;;
6615 esac
6616 fi
6617 AR=$ac_cv_prog_AR
6618 if test -n "$AR"; then
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6620 printf "%s\n" "$AR" >&6; }
6621 else
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 printf "%s\n" "no" >&6; }
6624 fi
6625
6626
6627 test -n "$AR" && break
6628 done
6629 fi
6630 if test -z "$AR"; then
6631 ac_ct_AR=$AR
6632 for ac_prog in ar
6633 do
6634 # Extract the first word of "$ac_prog", so it can be a program name with args.
6635 set dummy $ac_prog; ac_word=$2
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 printf %s "checking for $ac_word... " >&6; }
6638 if test ${ac_cv_prog_ac_ct_AR+y}
6639 then :
6640 printf %s "(cached) " >&6
6641 else case e in #(
6642 e) if test -n "$ac_ct_AR"; then
6643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648 IFS=$as_save_IFS
6649 case $as_dir in #(((
6650 '') as_dir=./ ;;
6651 */) ;;
6652 *) as_dir=$as_dir/ ;;
6653 esac
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_ac_ct_AR="$ac_prog"
6657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi ;;
6665 esac
6666 fi
6667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6668 if test -n "$ac_ct_AR"; then
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6670 printf "%s\n" "$ac_ct_AR" >&6; }
6671 else
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 printf "%s\n" "no" >&6; }
6674 fi
6675
6676
6677 test -n "$ac_ct_AR" && break
6678 done
6679
6680 if test "x$ac_ct_AR" = x; then
6681 AR="false"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6688 esac
6689 AR=$ac_ct_AR
6690 fi
6691 fi
6692
6693 : ${AR=ar}
6694
6695
6696
6697
6698
6699
6700 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6701 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6702 # higher priority because thats what people were doing historically (setting
6703 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6704 # variable obsoleted/removed.
6705
6706 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6707 lt_ar_flags=$AR_FLAGS
6708
6709
6710
6711
6712
6713
6714 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6715 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6716
6717
6718
6719
6720
6721
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6723 printf %s "checking for archiver @FILE support... " >&6; }
6724 if test ${lt_cv_ar_at_file+y}
6725 then :
6726 printf %s "(cached) " >&6
6727 else case e in #(
6728 e) lt_cv_ar_at_file=no
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731
6732 int
6733 main (void)
6734 {
6735
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"
6741 then :
6742 echo conftest.$ac_objext > conftest.lst
6743 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6745 (eval $lt_ar_try) 2>&5
6746 ac_status=$?
6747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748 test $ac_status = 0; }
6749 if test 0 -eq "$ac_status"; then
6750 # Ensure the archiver fails upon bogus file names.
6751 rm -f conftest.$ac_objext libconftest.a
6752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6753 (eval $lt_ar_try) 2>&5
6754 ac_status=$?
6755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }
6757 if test 0 -ne "$ac_status"; then
6758 lt_cv_ar_at_file=@
6759 fi
6760 fi
6761 rm -f conftest.* libconftest.a
6762
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6765 ;;
6766 esac
6767 fi
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6769 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6770
6771 if test no = "$lt_cv_ar_at_file"; then
6772 archiver_list_spec=
6773 else
6774 archiver_list_spec=$lt_cv_ar_at_file
6775 fi
6776
6777
6778
6779
6780
6781
6782
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}strip; ac_word=$2
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 printf %s "checking for $ac_word... " >&6; }
6788 if test ${ac_cv_prog_STRIP+y}
6789 then :
6790 printf %s "(cached) " >&6
6791 else case e in #(
6792 e) if test -n "$STRIP"; then
6793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798 IFS=$as_save_IFS
6799 case $as_dir in #(((
6800 '') as_dir=./ ;;
6801 */) ;;
6802 *) as_dir=$as_dir/ ;;
6803 esac
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810 done
6811 done
6812 IFS=$as_save_IFS
6813
6814 fi ;;
6815 esac
6816 fi
6817 STRIP=$ac_cv_prog_STRIP
6818 if test -n "$STRIP"; then
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6820 printf "%s\n" "$STRIP" >&6; }
6821 else
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 printf "%s\n" "no" >&6; }
6824 fi
6825
6826
6827 fi
6828 if test -z "$ac_cv_prog_STRIP"; then
6829 ac_ct_STRIP=$STRIP
6830 # Extract the first word of "strip", so it can be a program name with args.
6831 set dummy strip; ac_word=$2
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 printf %s "checking for $ac_word... " >&6; }
6834 if test ${ac_cv_prog_ac_ct_STRIP+y}
6835 then :
6836 printf %s "(cached) " >&6
6837 else case e in #(
6838 e) if test -n "$ac_ct_STRIP"; then
6839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 case $as_dir in #(((
6846 '') as_dir=./ ;;
6847 */) ;;
6848 *) as_dir=$as_dir/ ;;
6849 esac
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_ac_ct_STRIP="strip"
6853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi ;;
6861 esac
6862 fi
6863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6864 if test -n "$ac_ct_STRIP"; then
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6866 printf "%s\n" "$ac_ct_STRIP" >&6; }
6867 else
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 printf "%s\n" "no" >&6; }
6870 fi
6871
6872 if test "x$ac_ct_STRIP" = x; then
6873 STRIP=":"
6874 else
6875 case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881 STRIP=$ac_ct_STRIP
6882 fi
6883 else
6884 STRIP="$ac_cv_prog_STRIP"
6885 fi
6886
6887 test -z "$STRIP" && STRIP=:
6888
6889
6890
6891
6892
6893
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 printf %s "checking for $ac_word... " >&6; }
6899 if test ${ac_cv_prog_RANLIB+y}
6900 then :
6901 printf %s "(cached) " >&6
6902 else case e in #(
6903 e) if test -n "$RANLIB"; then
6904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909 IFS=$as_save_IFS
6910 case $as_dir in #(((
6911 '') as_dir=./ ;;
6912 */) ;;
6913 *) as_dir=$as_dir/ ;;
6914 esac
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi ;;
6926 esac
6927 fi
6928 RANLIB=$ac_cv_prog_RANLIB
6929 if test -n "$RANLIB"; then
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6931 printf "%s\n" "$RANLIB" >&6; }
6932 else
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 printf "%s\n" "no" >&6; }
6935 fi
6936
6937
6938 fi
6939 if test -z "$ac_cv_prog_RANLIB"; then
6940 ac_ct_RANLIB=$RANLIB
6941 # Extract the first word of "ranlib", so it can be a program name with args.
6942 set dummy ranlib; ac_word=$2
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 printf %s "checking for $ac_word... " >&6; }
6945 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6946 then :
6947 printf %s "(cached) " >&6
6948 else case e in #(
6949 e) if test -n "$ac_ct_RANLIB"; then
6950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 case $as_dir in #(((
6957 '') as_dir=./ ;;
6958 */) ;;
6959 *) as_dir=$as_dir/ ;;
6960 esac
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_ac_ct_RANLIB="ranlib"
6964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971 fi ;;
6972 esac
6973 fi
6974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6975 if test -n "$ac_ct_RANLIB"; then
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6977 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6978 else
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 printf "%s\n" "no" >&6; }
6981 fi
6982
6983 if test "x$ac_ct_RANLIB" = x; then
6984 RANLIB=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992 RANLIB=$ac_ct_RANLIB
6993 fi
6994 else
6995 RANLIB="$ac_cv_prog_RANLIB"
6996 fi
6997
6998 test -z "$RANLIB" && RANLIB=:
6999
7000
7001
7002
7003
7004
7005 # Determine commands to create old-style static archives.
7006 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7007 old_postinstall_cmds='chmod 644 $oldlib'
7008 old_postuninstall_cmds=
7009
7010 if test -n "$RANLIB"; then
7011 case $host_os in
7012 bitrig* | openbsd*)
7013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7014 ;;
7015 *)
7016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7017 ;;
7018 esac
7019 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7020 fi
7021
7022 case $host_os in
7023 darwin*)
7024 lock_old_archive_extraction=yes ;;
7025 *)
7026 lock_old_archive_extraction=no ;;
7027 esac
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067 # If no C compiler was specified, use CC.
7068 LTCC=${LTCC-"$CC"}
7069
7070 # If no C compiler flags were specified, use CFLAGS.
7071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7072
7073 # Allow CC to be a program name with arguments.
7074 compiler=$CC
7075
7076
7077 # Check for command to grab the raw symbol name followed by C symbol from nm.
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7079 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7080 if test ${lt_cv_sys_global_symbol_pipe+y}
7081 then :
7082 printf %s "(cached) " >&6
7083 else case e in #(
7084 e)
7085 # These are sane defaults that work on at least a few old systems.
7086 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7087
7088 # Character class describing NM global symbol codes.
7089 symcode='[BCDEGRST]'
7090
7091 # Regexp to match symbols that can be accessed directly from C.
7092 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7093
7094 # Define system-specific variables.
7095 case $host_os in
7096 aix*)
7097 symcode='[BCDT]'
7098 ;;
7099 cygwin* | mingw* | pw32* | cegcc*)
7100 symcode='[ABCDGISTW]'
7101 ;;
7102 hpux*)
7103 if test ia64 = "$host_cpu"; then
7104 symcode='[ABCDEGRST]'
7105 fi
7106 ;;
7107 irix* | nonstopux*)
7108 symcode='[BCDEGRST]'
7109 ;;
7110 osf*)
7111 symcode='[BCDEGQRST]'
7112 ;;
7113 solaris*)
7114 symcode='[BDRT]'
7115 ;;
7116 sco3.2v5*)
7117 symcode='[DT]'
7118 ;;
7119 sysv4.2uw2*)
7120 symcode='[DT]'
7121 ;;
7122 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7123 symcode='[ABDT]'
7124 ;;
7125 sysv4)
7126 symcode='[DFNSTU]'
7127 ;;
7128 esac
7129
7130 # If we're using GNU nm, then use its standard symbol codes.
7131 case `$NM -V 2>&1` in
7132 *GNU* | *'with BFD'*)
7133 symcode='[ABCDGIRSTW]' ;;
7134 esac
7135
7136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7137 # Gets list of data symbols to import.
7138 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7139 # Adjust the below global symbol transforms to fixup imported variables.
7140 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7141 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7142 lt_c_name_lib_hook="\
7143 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7144 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7145 else
7146 # Disable hooks by default.
7147 lt_cv_sys_global_symbol_to_import=
7148 lt_cdecl_hook=
7149 lt_c_name_hook=
7150 lt_c_name_lib_hook=
7151 fi
7152
7153 # Transform an extracted symbol line into a proper C declaration.
7154 # Some systems (esp. on ia64) link data and code symbols differently,
7155 # so use this general approach.
7156 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7157 $lt_cdecl_hook\
7158 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7159 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7160
7161 # Transform an extracted symbol line into symbol name and symbol address
7162 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7163 $lt_c_name_hook\
7164 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7165 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7166
7167 # Transform an extracted symbol line into symbol name with lib prefix and
7168 # symbol address.
7169 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7170 $lt_c_name_lib_hook\
7171 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7172 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7173 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7174
7175 # Handle CRLF in mingw tool chain
7176 opt_cr=
7177 case $build_os in
7178 mingw*)
7179 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7180 ;;
7181 esac
7182
7183 # Try without a prefix underscore, then with it.
7184 for ac_symprfx in "" "_"; do
7185
7186 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7187 symxfrm="\\1 $ac_symprfx\\2 \\2"
7188
7189 # Write the raw and C identifiers.
7190 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7191 # Fake it for dumpbin and say T for any non-static function,
7192 # D for any global variable and I for any imported variable.
7193 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7194 # which start with @ or ?.
7195 lt_cv_sys_global_symbol_pipe="$AWK '"\
7196 " {last_section=section; section=\$ 3};"\
7197 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7198 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7199 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7200 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7201 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7202 " \$ 0!~/External *\|/{next};"\
7203 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7204 " {if(hide[section]) next};"\
7205 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7206 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7207 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7208 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7209 " ' prfx=^$ac_symprfx"
7210 else
7211 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7212 fi
7213 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7214
7215 # Check to see that the pipe works correctly.
7216 pipe_works=no
7217
7218 rm -f conftest*
7219 cat > conftest.$ac_ext <<_LT_EOF
7220 #ifdef __cplusplus
7221 extern "C" {
7222 #endif
7223 char nm_test_var;
7224 void nm_test_func(void);
7225 void nm_test_func(void){}
7226 #ifdef __cplusplus
7227 }
7228 #endif
7229 int main(){nm_test_var='a';nm_test_func();return(0);}
7230 _LT_EOF
7231
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233 (eval $ac_compile) 2>&5
7234 ac_status=$?
7235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }; then
7237 # Now try to grab the symbols.
7238 nlist=conftest.nm
7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7240 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7241 ac_status=$?
7242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; } && test -s "$nlist"; then
7244 # Try sorting and uniquifying the output.
7245 if sort "$nlist" | uniq > "$nlist"T; then
7246 mv -f "$nlist"T "$nlist"
7247 else
7248 rm -f "$nlist"T
7249 fi
7250
7251 # Make sure that we snagged all the symbols we need.
7252 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7253 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7254 cat <<_LT_EOF > conftest.$ac_ext
7255 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7256 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7257 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7258 relocations are performed -- see ld's documentation on pseudo-relocs. */
7259 # define LT_DLSYM_CONST
7260 #elif defined __osf__
7261 /* This system does not cope well with relocations in const data. */
7262 # define LT_DLSYM_CONST
7263 #else
7264 # define LT_DLSYM_CONST const
7265 #endif
7266
7267 #ifdef __cplusplus
7268 extern "C" {
7269 #endif
7270
7271 _LT_EOF
7272 # Now generate the symbol file.
7273 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7274
7275 cat <<_LT_EOF >> conftest.$ac_ext
7276
7277 /* The mapping between symbol names and symbols. */
7278 LT_DLSYM_CONST struct {
7279 const char *name;
7280 void *address;
7281 }
7282 lt__PROGRAM__LTX_preloaded_symbols[] =
7283 {
7284 { "@PROGRAM@", (void *) 0 },
7285 _LT_EOF
7286 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7287 cat <<\_LT_EOF >> conftest.$ac_ext
7288 {0, (void *) 0}
7289 };
7290
7291 /* This works around a problem in FreeBSD linker */
7292 #ifdef FREEBSD_WORKAROUND
7293 static const void *lt_preloaded_setup() {
7294 return lt__PROGRAM__LTX_preloaded_symbols;
7295 }
7296 #endif
7297
7298 #ifdef __cplusplus
7299 }
7300 #endif
7301 _LT_EOF
7302 # Now try linking the two files.
7303 mv conftest.$ac_objext conftstm.$ac_objext
7304 lt_globsym_save_LIBS=$LIBS
7305 lt_globsym_save_CFLAGS=$CFLAGS
7306 LIBS=conftstm.$ac_objext
7307 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7309 (eval $ac_link) 2>&5
7310 ac_status=$?
7311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7313 pipe_works=yes
7314 fi
7315 LIBS=$lt_globsym_save_LIBS
7316 CFLAGS=$lt_globsym_save_CFLAGS
7317 else
7318 echo "cannot find nm_test_func in $nlist" >&5
7319 fi
7320 else
7321 echo "cannot find nm_test_var in $nlist" >&5
7322 fi
7323 else
7324 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7325 fi
7326 else
7327 echo "$progname: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7329 fi
7330 rm -rf conftest* conftst*
7331
7332 # Do not use the global_symbol_pipe unless it works.
7333 if test yes = "$pipe_works"; then
7334 break
7335 else
7336 lt_cv_sys_global_symbol_pipe=
7337 fi
7338 done
7339 ;;
7340 esac
7341 fi
7342
7343 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7344 lt_cv_sys_global_symbol_to_cdecl=
7345 fi
7346 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7348 printf "%s\n" "failed" >&6; }
7349 else
7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7351 printf "%s\n" "ok" >&6; }
7352 fi
7353
7354 # Response file support.
7355 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7356 nm_file_list_spec='@'
7357 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7358 nm_file_list_spec='@'
7359 fi
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7398 printf %s "checking for sysroot... " >&6; }
7399
7400 # Check whether --with-sysroot was given.
7401 if test ${with_sysroot+y}
7402 then :
7403 withval=$with_sysroot;
7404 else case e in #(
7405 e) with_sysroot=no ;;
7406 esac
7407 fi
7408
7409
7410 lt_sysroot=
7411 case $with_sysroot in #(
7412 yes)
7413 if test yes = "$GCC"; then
7414 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7415 fi
7416 ;; #(
7417 /*)
7418 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7419 ;; #(
7420 no|'')
7421 ;; #(
7422 *)
7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7424 printf "%s\n" "$with_sysroot" >&6; }
7425 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7426 ;;
7427 esac
7428
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7430 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7431
7432
7433
7434
7435
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7437 printf %s "checking for a working dd... " >&6; }
7438 if test ${ac_cv_path_lt_DD+y}
7439 then :
7440 printf %s "(cached) " >&6
7441 else case e in #(
7442 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7443 cat conftest.i conftest.i >conftest2.i
7444 : ${lt_DD:=$DD}
7445 if test -z "$lt_DD"; then
7446 ac_path_lt_DD_found=false
7447 # Loop through the user's path and test for each of PROGNAME-LIST
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451 IFS=$as_save_IFS
7452 case $as_dir in #(((
7453 '') as_dir=./ ;;
7454 */) ;;
7455 *) as_dir=$as_dir/ ;;
7456 esac
7457 for ac_prog in dd
7458 do
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7461 as_fn_executable_p "$ac_path_lt_DD" || continue
7462 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7463 cmp -s conftest.i conftest.out \
7464 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7465 fi
7466 $ac_path_lt_DD_found && break 3
7467 done
7468 done
7469 done
7470 IFS=$as_save_IFS
7471 if test -z "$ac_cv_path_lt_DD"; then
7472 :
7473 fi
7474 else
7475 ac_cv_path_lt_DD=$lt_DD
7476 fi
7477
7478 rm -f conftest.i conftest2.i conftest.out ;;
7479 esac
7480 fi
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7482 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7483
7484
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7486 printf %s "checking how to truncate binary pipes... " >&6; }
7487 if test ${lt_cv_truncate_bin+y}
7488 then :
7489 printf %s "(cached) " >&6
7490 else case e in #(
7491 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7492 cat conftest.i conftest.i >conftest2.i
7493 lt_cv_truncate_bin=
7494 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7495 cmp -s conftest.i conftest.out \
7496 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7497 fi
7498 rm -f conftest.i conftest2.i conftest.out
7499 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7500 esac
7501 fi
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7503 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7504
7505
7506
7507
7508
7509
7510
7511 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7512 func_cc_basename ()
7513 {
7514 for cc_temp in $*""; do
7515 case $cc_temp in
7516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7518 \-*) ;;
7519 *) break;;
7520 esac
7521 done
7522 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7523 }
7524
7525 # Check whether --enable-libtool-lock was given.
7526 if test ${enable_libtool_lock+y}
7527 then :
7528 enableval=$enable_libtool_lock;
7529 fi
7530
7531 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7532
7533 # Some flags need to be propagated to the compiler or linker for good
7534 # libtool support.
7535 case $host in
7536 ia64-*-hpux*)
7537 # Find out what ABI is being produced by ac_compile, and set mode
7538 # options accordingly.
7539 echo 'int i;' > conftest.$ac_ext
7540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7541 (eval $ac_compile) 2>&5
7542 ac_status=$?
7543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; }; then
7545 case `$FILECMD conftest.$ac_objext` in
7546 *ELF-32*)
7547 HPUX_IA64_MODE=32
7548 ;;
7549 *ELF-64*)
7550 HPUX_IA64_MODE=64
7551 ;;
7552 esac
7553 fi
7554 rm -rf conftest*
7555 ;;
7556 *-*-irix6*)
7557 # Find out what ABI is being produced by ac_compile, and set linker
7558 # options accordingly.
7559 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7561 (eval $ac_compile) 2>&5
7562 ac_status=$?
7563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7564 test $ac_status = 0; }; then
7565 if test yes = "$lt_cv_prog_gnu_ld"; then
7566 case `$FILECMD conftest.$ac_objext` in
7567 *32-bit*)
7568 LD="${LD-ld} -melf32bsmip"
7569 ;;
7570 *N32*)
7571 LD="${LD-ld} -melf32bmipn32"
7572 ;;
7573 *64-bit*)
7574 LD="${LD-ld} -melf64bmip"
7575 ;;
7576 esac
7577 else
7578 case `$FILECMD conftest.$ac_objext` in
7579 *32-bit*)
7580 LD="${LD-ld} -32"
7581 ;;
7582 *N32*)
7583 LD="${LD-ld} -n32"
7584 ;;
7585 *64-bit*)
7586 LD="${LD-ld} -64"
7587 ;;
7588 esac
7589 fi
7590 fi
7591 rm -rf conftest*
7592 ;;
7593
7594 mips64*-*linux*)
7595 # Find out what ABI is being produced by ac_compile, and set linker
7596 # options accordingly.
7597 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7599 (eval $ac_compile) 2>&5
7600 ac_status=$?
7601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7602 test $ac_status = 0; }; then
7603 emul=elf
7604 case `$FILECMD conftest.$ac_objext` in
7605 *32-bit*)
7606 emul="${emul}32"
7607 ;;
7608 *64-bit*)
7609 emul="${emul}64"
7610 ;;
7611 esac
7612 case `$FILECMD conftest.$ac_objext` in
7613 *MSB*)
7614 emul="${emul}btsmip"
7615 ;;
7616 *LSB*)
7617 emul="${emul}ltsmip"
7618 ;;
7619 esac
7620 case `$FILECMD conftest.$ac_objext` in
7621 *N32*)
7622 emul="${emul}n32"
7623 ;;
7624 esac
7625 LD="${LD-ld} -m $emul"
7626 fi
7627 rm -rf conftest*
7628 ;;
7629
7630 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7631 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7632 # Find out what ABI is being produced by ac_compile, and set linker
7633 # options accordingly. Note that the listed cases only cover the
7634 # situations where additional linker options are needed (such as when
7635 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7636 # vice versa); the common cases where no linker options are needed do
7637 # not appear in the list.
7638 echo 'int i;' > conftest.$ac_ext
7639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640 (eval $ac_compile) 2>&5
7641 ac_status=$?
7642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 case `$FILECMD conftest.o` in
7645 *32-bit*)
7646 case $host in
7647 x86_64-*kfreebsd*-gnu)
7648 LD="${LD-ld} -m elf_i386_fbsd"
7649 ;;
7650 x86_64-*linux*)
7651 case `$FILECMD conftest.o` in
7652 *x86-64*)
7653 LD="${LD-ld} -m elf32_x86_64"
7654 ;;
7655 *)
7656 LD="${LD-ld} -m elf_i386"
7657 ;;
7658 esac
7659 ;;
7660 powerpc64le-*linux*)
7661 LD="${LD-ld} -m elf32lppclinux"
7662 ;;
7663 powerpc64-*linux*)
7664 LD="${LD-ld} -m elf32ppclinux"
7665 ;;
7666 s390x-*linux*)
7667 LD="${LD-ld} -m elf_s390"
7668 ;;
7669 sparc64-*linux*)
7670 LD="${LD-ld} -m elf32_sparc"
7671 ;;
7672 esac
7673 ;;
7674 *64-bit*)
7675 case $host in
7676 x86_64-*kfreebsd*-gnu)
7677 LD="${LD-ld} -m elf_x86_64_fbsd"
7678 ;;
7679 x86_64-*linux*)
7680 LD="${LD-ld} -m elf_x86_64"
7681 ;;
7682 powerpcle-*linux*)
7683 LD="${LD-ld} -m elf64lppc"
7684 ;;
7685 powerpc-*linux*)
7686 LD="${LD-ld} -m elf64ppc"
7687 ;;
7688 s390*-*linux*|s390*-*tpf*)
7689 LD="${LD-ld} -m elf64_s390"
7690 ;;
7691 sparc*-*linux*)
7692 LD="${LD-ld} -m elf64_sparc"
7693 ;;
7694 esac
7695 ;;
7696 esac
7697 fi
7698 rm -rf conftest*
7699 ;;
7700
7701 *-*-sco3.2v5*)
7702 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7703 SAVE_CFLAGS=$CFLAGS
7704 CFLAGS="$CFLAGS -belf"
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7706 printf %s "checking whether the C compiler needs -belf... " >&6; }
7707 if test ${lt_cv_cc_needs_belf+y}
7708 then :
7709 printf %s "(cached) " >&6
7710 else case e in #(
7711 e) ac_ext=c
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719
7720 int
7721 main (void)
7722 {
7723
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_link "$LINENO"
7729 then :
7730 lt_cv_cc_needs_belf=yes
7731 else case e in #(
7732 e) lt_cv_cc_needs_belf=no ;;
7733 esac
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7736 conftest$ac_exeext conftest.$ac_ext
7737 ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742 ;;
7743 esac
7744 fi
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7746 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7747 if test yes != "$lt_cv_cc_needs_belf"; then
7748 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7749 CFLAGS=$SAVE_CFLAGS
7750 fi
7751 ;;
7752 *-*solaris*)
7753 # Find out what ABI is being produced by ac_compile, and set linker
7754 # options accordingly.
7755 echo 'int i;' > conftest.$ac_ext
7756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7757 (eval $ac_compile) 2>&5
7758 ac_status=$?
7759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; }; then
7761 case `$FILECMD conftest.o` in
7762 *64-bit*)
7763 case $lt_cv_prog_gnu_ld in
7764 yes*)
7765 case $host in
7766 i?86-*-solaris*|x86_64-*-solaris*)
7767 LD="${LD-ld} -m elf_x86_64"
7768 ;;
7769 sparc*-*-solaris*)
7770 LD="${LD-ld} -m elf64_sparc"
7771 ;;
7772 esac
7773 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7774 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7775 LD=${LD-ld}_sol2
7776 fi
7777 ;;
7778 *)
7779 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7780 LD="${LD-ld} -64"
7781 fi
7782 ;;
7783 esac
7784 ;;
7785 esac
7786 fi
7787 rm -rf conftest*
7788 ;;
7789 esac
7790
7791 need_locks=$enable_libtool_lock
7792
7793 if test -n "$ac_tool_prefix"; then
7794 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7795 set dummy ${ac_tool_prefix}mt; ac_word=$2
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 printf %s "checking for $ac_word... " >&6; }
7798 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7799 then :
7800 printf %s "(cached) " >&6
7801 else case e in #(
7802 e) if test -n "$MANIFEST_TOOL"; then
7803 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808 IFS=$as_save_IFS
7809 case $as_dir in #(((
7810 '') as_dir=./ ;;
7811 */) ;;
7812 *) as_dir=$as_dir/ ;;
7813 esac
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824 fi ;;
7825 esac
7826 fi
7827 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7828 if test -n "$MANIFEST_TOOL"; then
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7830 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7831 else
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 printf "%s\n" "no" >&6; }
7834 fi
7835
7836
7837 fi
7838 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7839 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7840 # Extract the first word of "mt", so it can be a program name with args.
7841 set dummy mt; ac_word=$2
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 printf %s "checking for $ac_word... " >&6; }
7844 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7845 then :
7846 printf %s "(cached) " >&6
7847 else case e in #(
7848 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7849 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 case $as_dir in #(((
7856 '') as_dir=./ ;;
7857 */) ;;
7858 *) as_dir=$as_dir/ ;;
7859 esac
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi ;;
7871 esac
7872 fi
7873 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7874 if test -n "$ac_ct_MANIFEST_TOOL"; then
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7876 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7877 else
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 printf "%s\n" "no" >&6; }
7880 fi
7881
7882 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7883 MANIFEST_TOOL=":"
7884 else
7885 case $cross_compiling:$ac_tool_warned in
7886 yes:)
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889 ac_tool_warned=yes ;;
7890 esac
7891 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7892 fi
7893 else
7894 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7895 fi
7896
7897 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7899 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7900 if test ${lt_cv_path_mainfest_tool+y}
7901 then :
7902 printf %s "(cached) " >&6
7903 else case e in #(
7904 e) lt_cv_path_mainfest_tool=no
7905 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7906 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7907 cat conftest.err >&5
7908 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7909 lt_cv_path_mainfest_tool=yes
7910 fi
7911 rm -f conftest* ;;
7912 esac
7913 fi
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7915 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7916 if test yes != "$lt_cv_path_mainfest_tool"; then
7917 MANIFEST_TOOL=:
7918 fi
7919
7920
7921
7922
7923
7924
7925 case $host_os in
7926 rhapsody* | darwin*)
7927 if test -n "$ac_tool_prefix"; then
7928 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7929 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 printf %s "checking for $ac_word... " >&6; }
7932 if test ${ac_cv_prog_DSYMUTIL+y}
7933 then :
7934 printf %s "(cached) " >&6
7935 else case e in #(
7936 e) if test -n "$DSYMUTIL"; then
7937 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942 IFS=$as_save_IFS
7943 case $as_dir in #(((
7944 '') as_dir=./ ;;
7945 */) ;;
7946 *) as_dir=$as_dir/ ;;
7947 esac
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958 fi ;;
7959 esac
7960 fi
7961 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7962 if test -n "$DSYMUTIL"; then
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7964 printf "%s\n" "$DSYMUTIL" >&6; }
7965 else
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 printf "%s\n" "no" >&6; }
7968 fi
7969
7970
7971 fi
7972 if test -z "$ac_cv_prog_DSYMUTIL"; then
7973 ac_ct_DSYMUTIL=$DSYMUTIL
7974 # Extract the first word of "dsymutil", so it can be a program name with args.
7975 set dummy dsymutil; ac_word=$2
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 printf %s "checking for $ac_word... " >&6; }
7978 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7979 then :
7980 printf %s "(cached) " >&6
7981 else case e in #(
7982 e) if test -n "$ac_ct_DSYMUTIL"; then
7983 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 case $as_dir in #(((
7990 '') as_dir=./ ;;
7991 */) ;;
7992 *) as_dir=$as_dir/ ;;
7993 esac
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi ;;
8005 esac
8006 fi
8007 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8008 if test -n "$ac_ct_DSYMUTIL"; then
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8010 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8011 else
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 printf "%s\n" "no" >&6; }
8014 fi
8015
8016 if test "x$ac_ct_DSYMUTIL" = x; then
8017 DSYMUTIL=":"
8018 else
8019 case $cross_compiling:$ac_tool_warned in
8020 yes:)
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8024 esac
8025 DSYMUTIL=$ac_ct_DSYMUTIL
8026 fi
8027 else
8028 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8029 fi
8030
8031 if test -n "$ac_tool_prefix"; then
8032 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8033 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 printf %s "checking for $ac_word... " >&6; }
8036 if test ${ac_cv_prog_NMEDIT+y}
8037 then :
8038 printf %s "(cached) " >&6
8039 else case e in #(
8040 e) if test -n "$NMEDIT"; then
8041 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046 IFS=$as_save_IFS
8047 case $as_dir in #(((
8048 '') as_dir=./ ;;
8049 */) ;;
8050 *) as_dir=$as_dir/ ;;
8051 esac
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 fi ;;
8063 esac
8064 fi
8065 NMEDIT=$ac_cv_prog_NMEDIT
8066 if test -n "$NMEDIT"; then
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8068 printf "%s\n" "$NMEDIT" >&6; }
8069 else
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 printf "%s\n" "no" >&6; }
8072 fi
8073
8074
8075 fi
8076 if test -z "$ac_cv_prog_NMEDIT"; then
8077 ac_ct_NMEDIT=$NMEDIT
8078 # Extract the first word of "nmedit", so it can be a program name with args.
8079 set dummy nmedit; ac_word=$2
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 printf %s "checking for $ac_word... " >&6; }
8082 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8083 then :
8084 printf %s "(cached) " >&6
8085 else case e in #(
8086 e) if test -n "$ac_ct_NMEDIT"; then
8087 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092 IFS=$as_save_IFS
8093 case $as_dir in #(((
8094 '') as_dir=./ ;;
8095 */) ;;
8096 *) as_dir=$as_dir/ ;;
8097 esac
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104 done
8105 done
8106 IFS=$as_save_IFS
8107
8108 fi ;;
8109 esac
8110 fi
8111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8112 if test -n "$ac_ct_NMEDIT"; then
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8114 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8115 else
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 printf "%s\n" "no" >&6; }
8118 fi
8119
8120 if test "x$ac_ct_NMEDIT" = x; then
8121 NMEDIT=":"
8122 else
8123 case $cross_compiling:$ac_tool_warned in
8124 yes:)
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8127 ac_tool_warned=yes ;;
8128 esac
8129 NMEDIT=$ac_ct_NMEDIT
8130 fi
8131 else
8132 NMEDIT="$ac_cv_prog_NMEDIT"
8133 fi
8134
8135 if test -n "$ac_tool_prefix"; then
8136 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 printf %s "checking for $ac_word... " >&6; }
8140 if test ${ac_cv_prog_LIPO+y}
8141 then :
8142 printf %s "(cached) " >&6
8143 else case e in #(
8144 e) if test -n "$LIPO"; then
8145 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150 IFS=$as_save_IFS
8151 case $as_dir in #(((
8152 '') as_dir=./ ;;
8153 */) ;;
8154 *) as_dir=$as_dir/ ;;
8155 esac
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162 done
8163 done
8164 IFS=$as_save_IFS
8165
8166 fi ;;
8167 esac
8168 fi
8169 LIPO=$ac_cv_prog_LIPO
8170 if test -n "$LIPO"; then
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8172 printf "%s\n" "$LIPO" >&6; }
8173 else
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 printf "%s\n" "no" >&6; }
8176 fi
8177
8178
8179 fi
8180 if test -z "$ac_cv_prog_LIPO"; then
8181 ac_ct_LIPO=$LIPO
8182 # Extract the first word of "lipo", so it can be a program name with args.
8183 set dummy lipo; ac_word=$2
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 printf %s "checking for $ac_word... " >&6; }
8186 if test ${ac_cv_prog_ac_ct_LIPO+y}
8187 then :
8188 printf %s "(cached) " >&6
8189 else case e in #(
8190 e) if test -n "$ac_ct_LIPO"; then
8191 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196 IFS=$as_save_IFS
8197 case $as_dir in #(((
8198 '') as_dir=./ ;;
8199 */) ;;
8200 *) as_dir=$as_dir/ ;;
8201 esac
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_ac_ct_LIPO="lipo"
8205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208 done
8209 done
8210 IFS=$as_save_IFS
8211
8212 fi ;;
8213 esac
8214 fi
8215 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8216 if test -n "$ac_ct_LIPO"; then
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8218 printf "%s\n" "$ac_ct_LIPO" >&6; }
8219 else
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 printf "%s\n" "no" >&6; }
8222 fi
8223
8224 if test "x$ac_ct_LIPO" = x; then
8225 LIPO=":"
8226 else
8227 case $cross_compiling:$ac_tool_warned in
8228 yes:)
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231 ac_tool_warned=yes ;;
8232 esac
8233 LIPO=$ac_ct_LIPO
8234 fi
8235 else
8236 LIPO="$ac_cv_prog_LIPO"
8237 fi
8238
8239 if test -n "$ac_tool_prefix"; then
8240 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8241 set dummy ${ac_tool_prefix}otool; ac_word=$2
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 printf %s "checking for $ac_word... " >&6; }
8244 if test ${ac_cv_prog_OTOOL+y}
8245 then :
8246 printf %s "(cached) " >&6
8247 else case e in #(
8248 e) if test -n "$OTOOL"; then
8249 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254 IFS=$as_save_IFS
8255 case $as_dir in #(((
8256 '') as_dir=./ ;;
8257 */) ;;
8258 *) as_dir=$as_dir/ ;;
8259 esac
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266 done
8267 done
8268 IFS=$as_save_IFS
8269
8270 fi ;;
8271 esac
8272 fi
8273 OTOOL=$ac_cv_prog_OTOOL
8274 if test -n "$OTOOL"; then
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8276 printf "%s\n" "$OTOOL" >&6; }
8277 else
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 printf "%s\n" "no" >&6; }
8280 fi
8281
8282
8283 fi
8284 if test -z "$ac_cv_prog_OTOOL"; then
8285 ac_ct_OTOOL=$OTOOL
8286 # Extract the first word of "otool", so it can be a program name with args.
8287 set dummy otool; ac_word=$2
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 printf %s "checking for $ac_word... " >&6; }
8290 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else case e in #(
8294 e) if test -n "$ac_ct_OTOOL"; then
8295 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 case $as_dir in #(((
8302 '') as_dir=./ ;;
8303 */) ;;
8304 *) as_dir=$as_dir/ ;;
8305 esac
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_ac_ct_OTOOL="otool"
8309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi ;;
8317 esac
8318 fi
8319 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8320 if test -n "$ac_ct_OTOOL"; then
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8322 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8323 else
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 printf "%s\n" "no" >&6; }
8326 fi
8327
8328 if test "x$ac_ct_OTOOL" = x; then
8329 OTOOL=":"
8330 else
8331 case $cross_compiling:$ac_tool_warned in
8332 yes:)
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335 ac_tool_warned=yes ;;
8336 esac
8337 OTOOL=$ac_ct_OTOOL
8338 fi
8339 else
8340 OTOOL="$ac_cv_prog_OTOOL"
8341 fi
8342
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 printf %s "checking for $ac_word... " >&6; }
8348 if test ${ac_cv_prog_OTOOL64+y}
8349 then :
8350 printf %s "(cached) " >&6
8351 else case e in #(
8352 e) if test -n "$OTOOL64"; then
8353 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 case $as_dir in #(((
8360 '') as_dir=./ ;;
8361 */) ;;
8362 *) as_dir=$as_dir/ ;;
8363 esac
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370 done
8371 done
8372 IFS=$as_save_IFS
8373
8374 fi ;;
8375 esac
8376 fi
8377 OTOOL64=$ac_cv_prog_OTOOL64
8378 if test -n "$OTOOL64"; then
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8380 printf "%s\n" "$OTOOL64" >&6; }
8381 else
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 printf "%s\n" "no" >&6; }
8384 fi
8385
8386
8387 fi
8388 if test -z "$ac_cv_prog_OTOOL64"; then
8389 ac_ct_OTOOL64=$OTOOL64
8390 # Extract the first word of "otool64", so it can be a program name with args.
8391 set dummy otool64; ac_word=$2
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 printf %s "checking for $ac_word... " >&6; }
8394 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8395 then :
8396 printf %s "(cached) " >&6
8397 else case e in #(
8398 e) if test -n "$ac_ct_OTOOL64"; then
8399 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404 IFS=$as_save_IFS
8405 case $as_dir in #(((
8406 '') as_dir=./ ;;
8407 */) ;;
8408 *) as_dir=$as_dir/ ;;
8409 esac
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_ac_ct_OTOOL64="otool64"
8413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420 fi ;;
8421 esac
8422 fi
8423 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8424 if test -n "$ac_ct_OTOOL64"; then
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8426 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8427 else
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 printf "%s\n" "no" >&6; }
8430 fi
8431
8432 if test "x$ac_ct_OTOOL64" = x; then
8433 OTOOL64=":"
8434 else
8435 case $cross_compiling:$ac_tool_warned in
8436 yes:)
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8439 ac_tool_warned=yes ;;
8440 esac
8441 OTOOL64=$ac_ct_OTOOL64
8442 fi
8443 else
8444 OTOOL64="$ac_cv_prog_OTOOL64"
8445 fi
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8474 printf %s "checking for -single_module linker flag... " >&6; }
8475 if test ${lt_cv_apple_cc_single_mod+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else case e in #(
8479 e) lt_cv_apple_cc_single_mod=no
8480 if test -z "$LT_MULTI_MODULE"; then
8481 # By default we will add the -single_module flag. You can override
8482 # by either setting the environment variable LT_MULTI_MODULE
8483 # non-empty at configure time, or by adding -multi_module to the
8484 # link flags.
8485 rm -rf libconftest.dylib*
8486 echo "int foo(void){return 1;}" > conftest.c
8487 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8488 -dynamiclib -Wl,-single_module conftest.c" >&5
8489 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8490 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8491 _lt_result=$?
8492 # If there is a non-empty error log, and "single_module"
8493 # appears in it, assume the flag caused a linker warning
8494 if test -s conftest.err && $GREP single_module conftest.err; then
8495 cat conftest.err >&5
8496 # Otherwise, if the output was created with a 0 exit code from
8497 # the compiler, it worked.
8498 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8499 lt_cv_apple_cc_single_mod=yes
8500 else
8501 cat conftest.err >&5
8502 fi
8503 rm -rf libconftest.dylib*
8504 rm -f conftest.*
8505 fi ;;
8506 esac
8507 fi
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8509 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8510
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8512 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8513 if test ${lt_cv_ld_exported_symbols_list+y}
8514 then :
8515 printf %s "(cached) " >&6
8516 else case e in #(
8517 e) lt_cv_ld_exported_symbols_list=no
8518 save_LDFLAGS=$LDFLAGS
8519 echo "_main" > conftest.sym
8520 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523
8524 int
8525 main (void)
8526 {
8527
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"
8533 then :
8534 lt_cv_ld_exported_symbols_list=yes
8535 else case e in #(
8536 e) lt_cv_ld_exported_symbols_list=no ;;
8537 esac
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8540 conftest$ac_exeext conftest.$ac_ext
8541 LDFLAGS=$save_LDFLAGS
8542 ;;
8543 esac
8544 fi
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8546 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8547
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8549 printf %s "checking for -force_load linker flag... " >&6; }
8550 if test ${lt_cv_ld_force_load+y}
8551 then :
8552 printf %s "(cached) " >&6
8553 else case e in #(
8554 e) lt_cv_ld_force_load=no
8555 cat > conftest.c << _LT_EOF
8556 int forced_loaded() { return 2;}
8557 _LT_EOF
8558 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8559 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8560 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8561 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8562 echo "$RANLIB libconftest.a" >&5
8563 $RANLIB libconftest.a 2>&5
8564 cat > conftest.c << _LT_EOF
8565 int main() { return 0;}
8566 _LT_EOF
8567 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8568 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8569 _lt_result=$?
8570 if test -s conftest.err && $GREP force_load conftest.err; then
8571 cat conftest.err >&5
8572 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8573 lt_cv_ld_force_load=yes
8574 else
8575 cat conftest.err >&5
8576 fi
8577 rm -f conftest.err libconftest.a conftest conftest.c
8578 rm -rf conftest.dSYM
8579 ;;
8580 esac
8581 fi
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8583 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8584 case $host_os in
8585 rhapsody* | darwin1.[012])
8586 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8587 darwin1.*)
8588 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8589 darwin*)
8590 case $MACOSX_DEPLOYMENT_TARGET,$host in
8591 10.[012],*|,*powerpc*-darwin[5-8]*)
8592 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8593 *)
8594 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8595 esac
8596 ;;
8597 esac
8598 if test yes = "$lt_cv_apple_cc_single_mod"; then
8599 _lt_dar_single_mod='$single_module'
8600 fi
8601 _lt_dar_needs_single_mod=no
8602 case $host_os in
8603 rhapsody* | darwin1.*)
8604 _lt_dar_needs_single_mod=yes ;;
8605 darwin*)
8606 # When targeting Mac OS X 10.4 (darwin 8) or later,
8607 # -single_module is the default and -multi_module is unsupported.
8608 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8609 # target any OS version that needs -single_module.
8610 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8611 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8612 _lt_dar_needs_single_mod=yes ;;
8613 esac
8614 ;;
8615 esac
8616 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8617 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8618 else
8619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8620 fi
8621 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8622 _lt_dsymutil='~$DSYMUTIL $lib || :'
8623 else
8624 _lt_dsymutil=
8625 fi
8626 ;;
8627 esac
8628
8629 # func_munge_path_list VARIABLE PATH
8630 # -----------------------------------
8631 # VARIABLE is name of variable containing _space_ separated list of
8632 # directories to be munged by the contents of PATH, which is string
8633 # having a format:
8634 # "DIR[:DIR]:"
8635 # string "DIR[ DIR]" will be prepended to VARIABLE
8636 # ":DIR[:DIR]"
8637 # string "DIR[ DIR]" will be appended to VARIABLE
8638 # "DIRP[:DIRP]::[DIRA:]DIRA"
8639 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8640 # "DIRA[ DIRA]" will be appended to VARIABLE
8641 # "DIR[:DIR]"
8642 # VARIABLE will be replaced by "DIR[ DIR]"
8643 func_munge_path_list ()
8644 {
8645 case x$2 in
8646 x)
8647 ;;
8648 *:)
8649 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8650 ;;
8651 x:*)
8652 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8653 ;;
8654 *::*)
8655 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8656 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8657 ;;
8658 *)
8659 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8660 ;;
8661 esac
8662 }
8663
8664 ac_header= ac_cache=
8665 for ac_item in $ac_header_c_list
8666 do
8667 if test $ac_cache; then
8668 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8669 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8670 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8671 fi
8672 ac_header= ac_cache=
8673 elif test $ac_header; then
8674 ac_cache=$ac_item
8675 else
8676 ac_header=$ac_item
8677 fi
8678 done
8679
8680
8681
8682
8683
8684
8685
8686
8687 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8688 then :
8689
8690 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8691
8692 fi
8693 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8694 "
8695 if test "x$ac_cv_header_dlfcn_h" = xyes
8696 then :
8697 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8698
8699 fi
8700
8701
8702
8703
8704
8705 # Set options
8706
8707
8708
8709 enable_dlopen=no
8710
8711
8712 enable_win32_dll=no
8713
8714
8715 # Check whether --enable-shared was given.
8716 if test ${enable_shared+y}
8717 then :
8718 enableval=$enable_shared; p=${PACKAGE-default}
8719 case $enableval in
8720 yes) enable_shared=yes ;;
8721 no) enable_shared=no ;;
8722 *)
8723 enable_shared=no
8724 # Look at the argument we got. We use all the common list separators.
8725 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8726 for pkg in $enableval; do
8727 IFS=$lt_save_ifs
8728 if test "X$pkg" = "X$p"; then
8729 enable_shared=yes
8730 fi
8731 done
8732 IFS=$lt_save_ifs
8733 ;;
8734 esac
8735 else case e in #(
8736 e) enable_shared=yes ;;
8737 esac
8738 fi
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 # Check whether --enable-static was given.
8749 if test ${enable_static+y}
8750 then :
8751 enableval=$enable_static; p=${PACKAGE-default}
8752 case $enableval in
8753 yes) enable_static=yes ;;
8754 no) enable_static=no ;;
8755 *)
8756 enable_static=no
8757 # Look at the argument we got. We use all the common list separators.
8758 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8759 for pkg in $enableval; do
8760 IFS=$lt_save_ifs
8761 if test "X$pkg" = "X$p"; then
8762 enable_static=yes
8763 fi
8764 done
8765 IFS=$lt_save_ifs
8766 ;;
8767 esac
8768 else case e in #(
8769 e) enable_static=yes ;;
8770 esac
8771 fi
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782 # Check whether --with-pic was given.
8783 if test ${with_pic+y}
8784 then :
8785 withval=$with_pic; lt_p=${PACKAGE-default}
8786 case $withval in
8787 yes|no) pic_mode=$withval ;;
8788 *)
8789 pic_mode=default
8790 # Look at the argument we got. We use all the common list separators.
8791 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8792 for lt_pkg in $withval; do
8793 IFS=$lt_save_ifs
8794 if test "X$lt_pkg" = "X$lt_p"; then
8795 pic_mode=yes
8796 fi
8797 done
8798 IFS=$lt_save_ifs
8799 ;;
8800 esac
8801 else case e in #(
8802 e) pic_mode=default ;;
8803 esac
8804 fi
8805
8806
8807
8808
8809
8810
8811
8812
8813 # Check whether --enable-fast-install was given.
8814 if test ${enable_fast_install+y}
8815 then :
8816 enableval=$enable_fast_install; p=${PACKAGE-default}
8817 case $enableval in
8818 yes) enable_fast_install=yes ;;
8819 no) enable_fast_install=no ;;
8820 *)
8821 enable_fast_install=no
8822 # Look at the argument we got. We use all the common list separators.
8823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8824 for pkg in $enableval; do
8825 IFS=$lt_save_ifs
8826 if test "X$pkg" = "X$p"; then
8827 enable_fast_install=yes
8828 fi
8829 done
8830 IFS=$lt_save_ifs
8831 ;;
8832 esac
8833 else case e in #(
8834 e) enable_fast_install=yes ;;
8835 esac
8836 fi
8837
8838
8839
8840
8841
8842
8843
8844
8845 shared_archive_member_spec=
8846 case $host,$enable_shared in
8847 power*-*-aix[5-9]*,yes)
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8849 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8850
8851 # Check whether --with-aix-soname was given.
8852 if test ${with_aix_soname+y}
8853 then :
8854 withval=$with_aix_soname; case $withval in
8855 aix|svr4|both)
8856 ;;
8857 *)
8858 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8859 ;;
8860 esac
8861 lt_cv_with_aix_soname=$with_aix_soname
8862 else case e in #(
8863 e) if test ${lt_cv_with_aix_soname+y}
8864 then :
8865 printf %s "(cached) " >&6
8866 else case e in #(
8867 e) lt_cv_with_aix_soname=aix ;;
8868 esac
8869 fi
8870
8871 with_aix_soname=$lt_cv_with_aix_soname ;;
8872 esac
8873 fi
8874
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8876 printf "%s\n" "$with_aix_soname" >&6; }
8877 if test aix != "$with_aix_soname"; then
8878 # For the AIX way of multilib, we name the shared archive member
8879 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8880 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8881 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8882 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8883 if test 64 = "${OBJECT_MODE-32}"; then
8884 shared_archive_member_spec=shr_64
8885 else
8886 shared_archive_member_spec=shr
8887 fi
8888 fi
8889 ;;
8890 *)
8891 with_aix_soname=aix
8892 ;;
8893 esac
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904 # This can be used to rebuild libtool when needed
8905 LIBTOOL_DEPS=$ltmain
8906
8907 # Always use our own libtool.
8908 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939 test -z "$LN_S" && LN_S="ln -s"
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 if test -n "${ZSH_VERSION+set}"; then
8955 setopt NO_GLOB_SUBST
8956 fi
8957
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8959 printf %s "checking for objdir... " >&6; }
8960 if test ${lt_cv_objdir+y}
8961 then :
8962 printf %s "(cached) " >&6
8963 else case e in #(
8964 e) rm -f .libs 2>/dev/null
8965 mkdir .libs 2>/dev/null
8966 if test -d .libs; then
8967 lt_cv_objdir=.libs
8968 else
8969 # MS-DOS does not allow filenames that begin with a dot.
8970 lt_cv_objdir=_libs
8971 fi
8972 rmdir .libs 2>/dev/null ;;
8973 esac
8974 fi
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8976 printf "%s\n" "$lt_cv_objdir" >&6; }
8977 objdir=$lt_cv_objdir
8978
8979
8980
8981
8982
8983 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8984
8985
8986
8987
8988 case $host_os in
8989 aix3*)
8990 # AIX sometimes has problems with the GCC collect2 program. For some
8991 # reason, if we set the COLLECT_NAMES environment variable, the problems
8992 # vanish in a puff of smoke.
8993 if test set != "${COLLECT_NAMES+set}"; then
8994 COLLECT_NAMES=
8995 export COLLECT_NAMES
8996 fi
8997 ;;
8998 esac
8999
9000 # Global variables:
9001 ofile=libtool
9002 can_build_shared=yes
9003
9004 # All known linkers require a '.a' archive for static linking (except MSVC and
9005 # ICC, which need '.lib').
9006 libext=a
9007
9008 with_gnu_ld=$lt_cv_prog_gnu_ld
9009
9010 old_CC=$CC
9011 old_CFLAGS=$CFLAGS
9012
9013 # Set sane defaults for various variables
9014 test -z "$CC" && CC=cc
9015 test -z "$LTCC" && LTCC=$CC
9016 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9017 test -z "$LD" && LD=ld
9018 test -z "$ac_objext" && ac_objext=o
9019
9020 func_cc_basename $compiler
9021 cc_basename=$func_cc_basename_result
9022
9023
9024 # Only perform the check for file, if the check method requires it
9025 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9026 case $deplibs_check_method in
9027 file_magic*)
9028 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9030 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9031 if test ${lt_cv_path_MAGIC_CMD+y}
9032 then :
9033 printf %s "(cached) " >&6
9034 else case e in #(
9035 e) case $MAGIC_CMD in
9036 [\\/*] | ?:[\\/]*)
9037 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9038 ;;
9039 *)
9040 lt_save_MAGIC_CMD=$MAGIC_CMD
9041 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9043 for ac_dir in $ac_dummy; do
9044 IFS=$lt_save_ifs
9045 test -z "$ac_dir" && ac_dir=.
9046 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9047 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9048 if test -n "$file_magic_test_file"; then
9049 case $deplibs_check_method in
9050 "file_magic "*)
9051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9052 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9054 $EGREP "$file_magic_regex" > /dev/null; then
9055 :
9056 else
9057 cat <<_LT_EOF 1>&2
9058
9059 *** Warning: the command libtool uses to detect shared libraries,
9060 *** $file_magic_cmd, produces output that libtool cannot recognize.
9061 *** The result is that libtool may fail to recognize shared libraries
9062 *** as such. This will affect the creation of libtool libraries that
9063 *** depend on shared libraries, but programs linked with such libtool
9064 *** libraries will work regardless of this problem. Nevertheless, you
9065 *** may want to report the problem to your system manager and/or to
9066 *** [email protected]
9067
9068 _LT_EOF
9069 fi ;;
9070 esac
9071 fi
9072 break
9073 fi
9074 done
9075 IFS=$lt_save_ifs
9076 MAGIC_CMD=$lt_save_MAGIC_CMD
9077 ;;
9078 esac ;;
9079 esac
9080 fi
9081
9082 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9083 if test -n "$MAGIC_CMD"; then
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9085 printf "%s\n" "$MAGIC_CMD" >&6; }
9086 else
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 printf "%s\n" "no" >&6; }
9089 fi
9090
9091
9092
9093
9094
9095 if test -z "$lt_cv_path_MAGIC_CMD"; then
9096 if test -n "$ac_tool_prefix"; then
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9098 printf %s "checking for file... " >&6; }
9099 if test ${lt_cv_path_MAGIC_CMD+y}
9100 then :
9101 printf %s "(cached) " >&6
9102 else case e in #(
9103 e) case $MAGIC_CMD in
9104 [\\/*] | ?:[\\/]*)
9105 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9106 ;;
9107 *)
9108 lt_save_MAGIC_CMD=$MAGIC_CMD
9109 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9110 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9111 for ac_dir in $ac_dummy; do
9112 IFS=$lt_save_ifs
9113 test -z "$ac_dir" && ac_dir=.
9114 if test -f "$ac_dir/file"; then
9115 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9116 if test -n "$file_magic_test_file"; then
9117 case $deplibs_check_method in
9118 "file_magic "*)
9119 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9120 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9122 $EGREP "$file_magic_regex" > /dev/null; then
9123 :
9124 else
9125 cat <<_LT_EOF 1>&2
9126
9127 *** Warning: the command libtool uses to detect shared libraries,
9128 *** $file_magic_cmd, produces output that libtool cannot recognize.
9129 *** The result is that libtool may fail to recognize shared libraries
9130 *** as such. This will affect the creation of libtool libraries that
9131 *** depend on shared libraries, but programs linked with such libtool
9132 *** libraries will work regardless of this problem. Nevertheless, you
9133 *** may want to report the problem to your system manager and/or to
9134 *** [email protected]
9135
9136 _LT_EOF
9137 fi ;;
9138 esac
9139 fi
9140 break
9141 fi
9142 done
9143 IFS=$lt_save_ifs
9144 MAGIC_CMD=$lt_save_MAGIC_CMD
9145 ;;
9146 esac ;;
9147 esac
9148 fi
9149
9150 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9151 if test -n "$MAGIC_CMD"; then
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9153 printf "%s\n" "$MAGIC_CMD" >&6; }
9154 else
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 printf "%s\n" "no" >&6; }
9157 fi
9158
9159
9160 else
9161 MAGIC_CMD=:
9162 fi
9163 fi
9164
9165 fi
9166 ;;
9167 esac
9168
9169 # Use C for the default configuration in the libtool script
9170
9171 lt_save_CC=$CC
9172 ac_ext=c
9173 ac_cpp='$CPP $CPPFLAGS'
9174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9177
9178
9179 # Source file extension for C test sources.
9180 ac_ext=c
9181
9182 # Object file extension for compiled C test sources.
9183 objext=o
9184 objext=$objext
9185
9186 # Code to be used in simple compile tests
9187 lt_simple_compile_test_code="int some_variable = 0;"
9188
9189 # Code to be used in simple link tests
9190 lt_simple_link_test_code='int main(){return(0);}'
9191
9192
9193
9194
9195
9196
9197
9198 # If no C compiler was specified, use CC.
9199 LTCC=${LTCC-"$CC"}
9200
9201 # If no C compiler flags were specified, use CFLAGS.
9202 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9203
9204 # Allow CC to be a program name with arguments.
9205 compiler=$CC
9206
9207 # Save the default compiler, since it gets overwritten when the other
9208 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9209 compiler_DEFAULT=$CC
9210
9211 # save warnings/boilerplate of simple test code
9212 ac_outfile=conftest.$ac_objext
9213 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9214 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9215 _lt_compiler_boilerplate=`cat conftest.err`
9216 $RM conftest*
9217
9218 ac_outfile=conftest.$ac_objext
9219 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9220 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9221 _lt_linker_boilerplate=`cat conftest.err`
9222 $RM -r conftest*
9223
9224
9225 ## CAVEAT EMPTOR:
9226 ## There is no encapsulation within the following macros, do not change
9227 ## the running order or otherwise move them around unless you know exactly
9228 ## what you are doing...
9229 if test -n "$compiler"; then
9230
9231 lt_prog_compiler_no_builtin_flag=
9232
9233 if test yes = "$GCC"; then
9234 case $cc_basename in
9235 nvcc*)
9236 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9237 *)
9238 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9239 esac
9240
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9242 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9243 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9244 then :
9245 printf %s "(cached) " >&6
9246 else case e in #(
9247 e) lt_cv_prog_compiler_rtti_exceptions=no
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9251 # Insert the option either (1) after the last *FLAGS variable, or
9252 # (2) before a word containing "conftest.", or (3) at the end.
9253 # Note that $ac_compile itself does not contain backslashes and begins
9254 # with a dollar sign (not a hyphen), so the echo should work correctly.
9255 # The option is referenced via a variable to avoid confusing sed.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>conftest.err)
9262 ac_status=$?
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s "$ac_outfile"; then
9266 # The compiler can only warn and ignore the option if not recognized
9267 # So say no if there are warnings other than the usual output.
9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9271 lt_cv_prog_compiler_rtti_exceptions=yes
9272 fi
9273 fi
9274 $RM conftest*
9275 ;;
9276 esac
9277 fi
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9279 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9280
9281 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9282 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9283 else
9284 :
9285 fi
9286
9287 fi
9288
9289
9290
9291
9292
9293
9294 lt_prog_compiler_wl=
9295 lt_prog_compiler_pic=
9296 lt_prog_compiler_static=
9297
9298
9299 if test yes = "$GCC"; then
9300 lt_prog_compiler_wl='-Wl,'
9301 lt_prog_compiler_static='-static'
9302
9303 case $host_os in
9304 aix*)
9305 # All AIX code is PIC.
9306 if test ia64 = "$host_cpu"; then
9307 # AIX 5 now supports IA64 processor
9308 lt_prog_compiler_static='-Bstatic'
9309 fi
9310 lt_prog_compiler_pic='-fPIC'
9311 ;;
9312
9313 amigaos*)
9314 case $host_cpu in
9315 powerpc)
9316 # see comment about AmigaOS4 .so support
9317 lt_prog_compiler_pic='-fPIC'
9318 ;;
9319 m68k)
9320 # FIXME: we need at least 68020 code to build shared libraries, but
9321 # adding the '-m68020' flag to GCC prevents building anything better,
9322 # like '-m68040'.
9323 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9324 ;;
9325 esac
9326 ;;
9327
9328 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9329 # PIC is the default for these OSes.
9330 ;;
9331
9332 mingw* | cygwin* | pw32* | os2* | cegcc*)
9333 # This hack is so that the source file can tell whether it is being
9334 # built for inclusion in a dll (and should export symbols for example).
9335 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9336 # (--disable-auto-import) libraries
9337 lt_prog_compiler_pic='-DDLL_EXPORT'
9338 case $host_os in
9339 os2*)
9340 lt_prog_compiler_static='$wl-static'
9341 ;;
9342 esac
9343 ;;
9344
9345 darwin* | rhapsody*)
9346 # PIC is the default on this platform
9347 # Common symbols not allowed in MH_DYLIB files
9348 lt_prog_compiler_pic='-fno-common'
9349 ;;
9350
9351 haiku*)
9352 # PIC is the default for Haiku.
9353 # The "-static" flag exists, but is broken.
9354 lt_prog_compiler_static=
9355 ;;
9356
9357 hpux*)
9358 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9359 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9360 # sets the default TLS model and affects inlining.
9361 case $host_cpu in
9362 hppa*64*)
9363 # +Z the default
9364 ;;
9365 *)
9366 lt_prog_compiler_pic='-fPIC'
9367 ;;
9368 esac
9369 ;;
9370
9371 interix[3-9]*)
9372 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9373 # Instead, we relocate shared libraries at runtime.
9374 ;;
9375
9376 msdosdjgpp*)
9377 # Just because we use GCC doesn't mean we suddenly get shared libraries
9378 # on systems that don't support them.
9379 lt_prog_compiler_can_build_shared=no
9380 enable_shared=no
9381 ;;
9382
9383 *nto* | *qnx*)
9384 # QNX uses GNU C++, but need to define -shared option too, otherwise
9385 # it will coredump.
9386 lt_prog_compiler_pic='-fPIC -shared'
9387 ;;
9388
9389 sysv4*MP*)
9390 if test -d /usr/nec; then
9391 lt_prog_compiler_pic=-Kconform_pic
9392 fi
9393 ;;
9394
9395 *)
9396 lt_prog_compiler_pic='-fPIC'
9397 ;;
9398 esac
9399
9400 case $cc_basename in
9401 nvcc*) # Cuda Compiler Driver 2.2
9402 lt_prog_compiler_wl='-Xlinker '
9403 if test -n "$lt_prog_compiler_pic"; then
9404 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9405 fi
9406 ;;
9407 esac
9408 else
9409 # PORTME Check for flag to pass linker flags through the system compiler.
9410 case $host_os in
9411 aix*)
9412 lt_prog_compiler_wl='-Wl,'
9413 if test ia64 = "$host_cpu"; then
9414 # AIX 5 now supports IA64 processor
9415 lt_prog_compiler_static='-Bstatic'
9416 else
9417 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9418 fi
9419 ;;
9420
9421 darwin* | rhapsody*)
9422 # PIC is the default on this platform
9423 # Common symbols not allowed in MH_DYLIB files
9424 lt_prog_compiler_pic='-fno-common'
9425 case $cc_basename in
9426 nagfor*)
9427 # NAG Fortran compiler
9428 lt_prog_compiler_wl='-Wl,-Wl,,'
9429 lt_prog_compiler_pic='-PIC'
9430 lt_prog_compiler_static='-Bstatic'
9431 ;;
9432 esac
9433 ;;
9434
9435 mingw* | cygwin* | pw32* | os2* | cegcc*)
9436 # This hack is so that the source file can tell whether it is being
9437 # built for inclusion in a dll (and should export symbols for example).
9438 lt_prog_compiler_pic='-DDLL_EXPORT'
9439 case $host_os in
9440 os2*)
9441 lt_prog_compiler_static='$wl-static'
9442 ;;
9443 esac
9444 ;;
9445
9446 hpux9* | hpux10* | hpux11*)
9447 lt_prog_compiler_wl='-Wl,'
9448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9449 # not for PA HP-UX.
9450 case $host_cpu in
9451 hppa*64*|ia64*)
9452 # +Z the default
9453 ;;
9454 *)
9455 lt_prog_compiler_pic='+Z'
9456 ;;
9457 esac
9458 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9459 lt_prog_compiler_static='$wl-a ${wl}archive'
9460 ;;
9461
9462 irix5* | irix6* | nonstopux*)
9463 lt_prog_compiler_wl='-Wl,'
9464 # PIC (with -KPIC) is the default.
9465 lt_prog_compiler_static='-non_shared'
9466 ;;
9467
9468 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9469 case $cc_basename in
9470 # old Intel for x86_64, which still supported -KPIC.
9471 ecc*)
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_pic='-KPIC'
9474 lt_prog_compiler_static='-static'
9475 ;;
9476 # icc used to be incompatible with GCC.
9477 # ICC 10 doesn't accept -KPIC any more.
9478 icc* | ifort*)
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='-fPIC'
9481 lt_prog_compiler_static='-static'
9482 ;;
9483 # Lahey Fortran 8.1.
9484 lf95*)
9485 lt_prog_compiler_wl='-Wl,'
9486 lt_prog_compiler_pic='--shared'
9487 lt_prog_compiler_static='--static'
9488 ;;
9489 nagfor*)
9490 # NAG Fortran compiler
9491 lt_prog_compiler_wl='-Wl,-Wl,,'
9492 lt_prog_compiler_pic='-PIC'
9493 lt_prog_compiler_static='-Bstatic'
9494 ;;
9495 tcc*)
9496 # Fabrice Bellard et al's Tiny C Compiler
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_pic='-fPIC'
9499 lt_prog_compiler_static='-static'
9500 ;;
9501 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9502 # Portland Group compilers (*not* the Pentium gcc compiler,
9503 # which looks to be a dead project)
9504 lt_prog_compiler_wl='-Wl,'
9505 lt_prog_compiler_pic='-fpic'
9506 lt_prog_compiler_static='-Bstatic'
9507 ;;
9508 ccc*)
9509 lt_prog_compiler_wl='-Wl,'
9510 # All Alpha code is PIC.
9511 lt_prog_compiler_static='-non_shared'
9512 ;;
9513 xl* | bgxl* | bgf* | mpixl*)
9514 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-qpic'
9517 lt_prog_compiler_static='-qstaticlink'
9518 ;;
9519 *)
9520 case `$CC -V 2>&1 | $SED 5q` in
9521 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9522 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9523 lt_prog_compiler_pic='-KPIC'
9524 lt_prog_compiler_static='-Bstatic'
9525 lt_prog_compiler_wl=''
9526 ;;
9527 *Sun\ F* | *Sun*Fortran*)
9528 lt_prog_compiler_pic='-KPIC'
9529 lt_prog_compiler_static='-Bstatic'
9530 lt_prog_compiler_wl='-Qoption ld '
9531 ;;
9532 *Sun\ C*)
9533 # Sun C 5.9
9534 lt_prog_compiler_pic='-KPIC'
9535 lt_prog_compiler_static='-Bstatic'
9536 lt_prog_compiler_wl='-Wl,'
9537 ;;
9538 *Intel*\ [CF]*Compiler*)
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_pic='-fPIC'
9541 lt_prog_compiler_static='-static'
9542 ;;
9543 *Portland\ Group*)
9544 lt_prog_compiler_wl='-Wl,'
9545 lt_prog_compiler_pic='-fpic'
9546 lt_prog_compiler_static='-Bstatic'
9547 ;;
9548 esac
9549 ;;
9550 esac
9551 ;;
9552
9553 newsos6)
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-Bstatic'
9556 ;;
9557
9558 *nto* | *qnx*)
9559 # QNX uses GNU C++, but need to define -shared option too, otherwise
9560 # it will coredump.
9561 lt_prog_compiler_pic='-fPIC -shared'
9562 ;;
9563
9564 osf3* | osf4* | osf5*)
9565 lt_prog_compiler_wl='-Wl,'
9566 # All OSF/1 code is PIC.
9567 lt_prog_compiler_static='-non_shared'
9568 ;;
9569
9570 rdos*)
9571 lt_prog_compiler_static='-non_shared'
9572 ;;
9573
9574 solaris*)
9575 lt_prog_compiler_pic='-KPIC'
9576 lt_prog_compiler_static='-Bstatic'
9577 case $cc_basename in
9578 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9579 lt_prog_compiler_wl='-Qoption ld ';;
9580 *)
9581 lt_prog_compiler_wl='-Wl,';;
9582 esac
9583 ;;
9584
9585 sunos4*)
9586 lt_prog_compiler_wl='-Qoption ld '
9587 lt_prog_compiler_pic='-PIC'
9588 lt_prog_compiler_static='-Bstatic'
9589 ;;
9590
9591 sysv4 | sysv4.2uw2* | sysv4.3*)
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9595 ;;
9596
9597 sysv4*MP*)
9598 if test -d /usr/nec; then
9599 lt_prog_compiler_pic='-Kconform_pic'
9600 lt_prog_compiler_static='-Bstatic'
9601 fi
9602 ;;
9603
9604 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9605 lt_prog_compiler_wl='-Wl,'
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9608 ;;
9609
9610 unicos*)
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_can_build_shared=no
9613 ;;
9614
9615 uts4*)
9616 lt_prog_compiler_pic='-pic'
9617 lt_prog_compiler_static='-Bstatic'
9618 ;;
9619
9620 *)
9621 lt_prog_compiler_can_build_shared=no
9622 ;;
9623 esac
9624 fi
9625
9626 case $host_os in
9627 # For platforms that do not support PIC, -DPIC is meaningless:
9628 *djgpp*)
9629 lt_prog_compiler_pic=
9630 ;;
9631 *)
9632 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9633 ;;
9634 esac
9635
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9637 printf %s "checking for $compiler option to produce PIC... " >&6; }
9638 if test ${lt_cv_prog_compiler_pic+y}
9639 then :
9640 printf %s "(cached) " >&6
9641 else case e in #(
9642 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9643 esac
9644 fi
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9646 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9647 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9648
9649 #
9650 # Check to make sure the PIC flag actually works.
9651 #
9652 if test -n "$lt_prog_compiler_pic"; then
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9654 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9655 if test ${lt_cv_prog_compiler_pic_works+y}
9656 then :
9657 printf %s "(cached) " >&6
9658 else case e in #(
9659 e) lt_cv_prog_compiler_pic_works=no
9660 ac_outfile=conftest.$ac_objext
9661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9662 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9663 # Insert the option either (1) after the last *FLAGS variable, or
9664 # (2) before a word containing "conftest.", or (3) at the end.
9665 # Note that $ac_compile itself does not contain backslashes and begins
9666 # with a dollar sign (not a hyphen), so the echo should work correctly.
9667 # The option is referenced via a variable to avoid confusing sed.
9668 lt_compile=`echo "$ac_compile" | $SED \
9669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9671 -e 's:$: $lt_compiler_flag:'`
9672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9673 (eval "$lt_compile" 2>conftest.err)
9674 ac_status=$?
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 if (exit $ac_status) && test -s "$ac_outfile"; then
9678 # The compiler can only warn and ignore the option if not recognized
9679 # So say no if there are warnings other than the usual output.
9680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9683 lt_cv_prog_compiler_pic_works=yes
9684 fi
9685 fi
9686 $RM conftest*
9687 ;;
9688 esac
9689 fi
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9691 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9692
9693 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9694 case $lt_prog_compiler_pic in
9695 "" | " "*) ;;
9696 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9697 esac
9698 else
9699 lt_prog_compiler_pic=
9700 lt_prog_compiler_can_build_shared=no
9701 fi
9702
9703 fi
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715 #
9716 # Check to make sure the static flag actually works.
9717 #
9718 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9720 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9721 if test ${lt_cv_prog_compiler_static_works+y}
9722 then :
9723 printf %s "(cached) " >&6
9724 else case e in #(
9725 e) lt_cv_prog_compiler_static_works=no
9726 save_LDFLAGS=$LDFLAGS
9727 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9728 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9730 # The linker can only warn and ignore the option if not recognized
9731 # So say no if there are warnings
9732 if test -s conftest.err; then
9733 # Append any errors to the config.log.
9734 cat conftest.err 1>&5
9735 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9737 if diff conftest.exp conftest.er2 >/dev/null; then
9738 lt_cv_prog_compiler_static_works=yes
9739 fi
9740 else
9741 lt_cv_prog_compiler_static_works=yes
9742 fi
9743 fi
9744 $RM -r conftest*
9745 LDFLAGS=$save_LDFLAGS
9746 ;;
9747 esac
9748 fi
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9750 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9751
9752 if test yes = "$lt_cv_prog_compiler_static_works"; then
9753 :
9754 else
9755 lt_prog_compiler_static=
9756 fi
9757
9758
9759
9760
9761
9762
9763
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9765 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9766 if test ${lt_cv_prog_compiler_c_o+y}
9767 then :
9768 printf %s "(cached) " >&6
9769 else case e in #(
9770 e) lt_cv_prog_compiler_c_o=no
9771 $RM -r conftest 2>/dev/null
9772 mkdir conftest
9773 cd conftest
9774 mkdir out
9775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9776
9777 lt_compiler_flag="-o out/conftest2.$ac_objext"
9778 # Insert the option either (1) after the last *FLAGS variable, or
9779 # (2) before a word containing "conftest.", or (3) at the end.
9780 # Note that $ac_compile itself does not contain backslashes and begins
9781 # with a dollar sign (not a hyphen), so the echo should work correctly.
9782 lt_compile=`echo "$ac_compile" | $SED \
9783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9785 -e 's:$: $lt_compiler_flag:'`
9786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9787 (eval "$lt_compile" 2>out/conftest.err)
9788 ac_status=$?
9789 cat out/conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9792 then
9793 # The compiler can only warn and ignore the option if not recognized
9794 # So say no if there are warnings
9795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9798 lt_cv_prog_compiler_c_o=yes
9799 fi
9800 fi
9801 chmod u+w . 2>&5
9802 $RM conftest*
9803 # SGI C++ compiler will create directory out/ii_files/ for
9804 # template instantiation
9805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9806 $RM out/* && rmdir out
9807 cd ..
9808 $RM -r conftest
9809 $RM conftest*
9810 ;;
9811 esac
9812 fi
9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9814 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9815
9816
9817
9818
9819
9820
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9822 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9823 if test ${lt_cv_prog_compiler_c_o+y}
9824 then :
9825 printf %s "(cached) " >&6
9826 else case e in #(
9827 e) lt_cv_prog_compiler_c_o=no
9828 $RM -r conftest 2>/dev/null
9829 mkdir conftest
9830 cd conftest
9831 mkdir out
9832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9833
9834 lt_compiler_flag="-o out/conftest2.$ac_objext"
9835 # Insert the option either (1) after the last *FLAGS variable, or
9836 # (2) before a word containing "conftest.", or (3) at the end.
9837 # Note that $ac_compile itself does not contain backslashes and begins
9838 # with a dollar sign (not a hyphen), so the echo should work correctly.
9839 lt_compile=`echo "$ac_compile" | $SED \
9840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9842 -e 's:$: $lt_compiler_flag:'`
9843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9844 (eval "$lt_compile" 2>out/conftest.err)
9845 ac_status=$?
9846 cat out/conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9849 then
9850 # The compiler can only warn and ignore the option if not recognized
9851 # So say no if there are warnings
9852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9855 lt_cv_prog_compiler_c_o=yes
9856 fi
9857 fi
9858 chmod u+w . 2>&5
9859 $RM conftest*
9860 # SGI C++ compiler will create directory out/ii_files/ for
9861 # template instantiation
9862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9863 $RM out/* && rmdir out
9864 cd ..
9865 $RM -r conftest
9866 $RM conftest*
9867 ;;
9868 esac
9869 fi
9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9871 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9872
9873
9874
9875
9876 hard_links=nottested
9877 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9878 # do not overwrite the value of need_locks provided by the user
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9880 printf %s "checking if we can lock with hard links... " >&6; }
9881 hard_links=yes
9882 $RM conftest*
9883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9884 touch conftest.a
9885 ln conftest.a conftest.b 2>&5 || hard_links=no
9886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9888 printf "%s\n" "$hard_links" >&6; }
9889 if test no = "$hard_links"; then
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9891 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9892 need_locks=warn
9893 fi
9894 else
9895 need_locks=no
9896 fi
9897
9898
9899
9900
9901
9902
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9904 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9905
9906 runpath_var=
9907 allow_undefined_flag=
9908 always_export_symbols=no
9909 archive_cmds=
9910 archive_expsym_cmds=
9911 compiler_needs_object=no
9912 enable_shared_with_static_runtimes=no
9913 export_dynamic_flag_spec=
9914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9915 hardcode_automatic=no
9916 hardcode_direct=no
9917 hardcode_direct_absolute=no
9918 hardcode_libdir_flag_spec=
9919 hardcode_libdir_separator=
9920 hardcode_minus_L=no
9921 hardcode_shlibpath_var=unsupported
9922 inherit_rpath=no
9923 link_all_deplibs=unknown
9924 module_cmds=
9925 module_expsym_cmds=
9926 old_archive_from_new_cmds=
9927 old_archive_from_expsyms_cmds=
9928 thread_safe_flag_spec=
9929 whole_archive_flag_spec=
9930 # include_expsyms should be a list of space-separated symbols to be *always*
9931 # included in the symbol list
9932 include_expsyms=
9933 # exclude_expsyms can be an extended regexp of symbols to exclude
9934 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9935 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9936 # as well as any symbol that contains 'd'.
9937 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9939 # platforms (ab)use it in PIC code, but their linkers get confused if
9940 # the symbol is explicitly referenced. Since portable code cannot
9941 # rely on this symbol name, it's probably fine to never include it in
9942 # preloaded symbol tables.
9943 # Exclude shared library initialization/finalization symbols.
9944 extract_expsyms_cmds=
9945
9946 case $host_os in
9947 cygwin* | mingw* | pw32* | cegcc*)
9948 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9949 # When not using gcc, we currently assume that we are using
9950 # Microsoft Visual C++ or Intel C++ Compiler.
9951 if test yes != "$GCC"; then
9952 with_gnu_ld=no
9953 fi
9954 ;;
9955 interix*)
9956 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9957 with_gnu_ld=yes
9958 ;;
9959 openbsd* | bitrig*)
9960 with_gnu_ld=no
9961 ;;
9962 esac
9963
9964 ld_shlibs=yes
9965
9966 # On some targets, GNU ld is compatible enough with the native linker
9967 # that we're better off using the native interface for both.
9968 lt_use_gnu_ld_interface=no
9969 if test yes = "$with_gnu_ld"; then
9970 case $host_os in
9971 aix*)
9972 # The AIX port of GNU ld has always aspired to compatibility
9973 # with the native linker. However, as the warning in the GNU ld
9974 # block says, versions before 2.19.5* couldn't really create working
9975 # shared libraries, regardless of the interface used.
9976 case `$LD -v 2>&1` in
9977 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9978 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9979 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9980 *)
9981 lt_use_gnu_ld_interface=yes
9982 ;;
9983 esac
9984 ;;
9985 *)
9986 lt_use_gnu_ld_interface=yes
9987 ;;
9988 esac
9989 fi
9990
9991 if test yes = "$lt_use_gnu_ld_interface"; then
9992 # If archive_cmds runs LD, not CC, wlarc should be empty
9993 wlarc='$wl'
9994
9995 # Set some defaults for GNU ld with shared library support. These
9996 # are reset later if shared libraries are not supported. Putting them
9997 # here allows them to be overridden if necessary.
9998 runpath_var=LD_RUN_PATH
9999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10000 export_dynamic_flag_spec='$wl--export-dynamic'
10001 # ancient GNU ld didn't support --whole-archive et. al.
10002 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10003 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10004 else
10005 whole_archive_flag_spec=
10006 fi
10007 supports_anon_versioning=no
10008 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10009 *GNU\ gold*) supports_anon_versioning=yes ;;
10010 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10011 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10012 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10013 *\ 2.11.*) ;; # other 2.11 versions
10014 *) supports_anon_versioning=yes ;;
10015 esac
10016
10017 # See if GNU ld supports shared libraries.
10018 case $host_os in
10019 aix[3-9]*)
10020 # On AIX/PPC, the GNU linker is very broken
10021 if test ia64 != "$host_cpu"; then
10022 ld_shlibs=no
10023 cat <<_LT_EOF 1>&2
10024
10025 *** Warning: the GNU linker, at least up to release 2.19, is reported
10026 *** to be unable to reliably create shared libraries on AIX.
10027 *** Therefore, libtool is disabling shared libraries support. If you
10028 *** really care for shared libraries, you may want to install binutils
10029 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10030 *** You will then need to restart the configuration process.
10031
10032 _LT_EOF
10033 fi
10034 ;;
10035
10036 amigaos*)
10037 case $host_cpu in
10038 powerpc)
10039 # see comment about AmigaOS4 .so support
10040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10041 archive_expsym_cmds=''
10042 ;;
10043 m68k)
10044 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)'
10045 hardcode_libdir_flag_spec='-L$libdir'
10046 hardcode_minus_L=yes
10047 ;;
10048 esac
10049 ;;
10050
10051 beos*)
10052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10053 allow_undefined_flag=unsupported
10054 # Joseph Beckenbach <[email protected]> says some releases of gcc
10055 # support --undefined. This deserves some investigation. FIXME
10056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10057 else
10058 ld_shlibs=no
10059 fi
10060 ;;
10061
10062 cygwin* | mingw* | pw32* | cegcc*)
10063 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10064 # as there is no search path for DLLs.
10065 hardcode_libdir_flag_spec='-L$libdir'
10066 export_dynamic_flag_spec='$wl--export-all-symbols'
10067 allow_undefined_flag=unsupported
10068 always_export_symbols=no
10069 enable_shared_with_static_runtimes=yes
10070 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'
10071 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10072
10073 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10075 # If the export-symbols file already is a .def file, use it as
10076 # is; otherwise, prepend EXPORTS...
10077 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10078 cp $export_symbols $output_objdir/$soname.def;
10079 else
10080 echo EXPORTS > $output_objdir/$soname.def;
10081 cat $export_symbols >> $output_objdir/$soname.def;
10082 fi~
10083 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10084 else
10085 ld_shlibs=no
10086 fi
10087 ;;
10088
10089 haiku*)
10090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10091 link_all_deplibs=yes
10092 ;;
10093
10094 os2*)
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_minus_L=yes
10097 allow_undefined_flag=unsupported
10098 shrext_cmds=.dll
10099 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10100 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10101 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10102 $ECHO EXPORTS >> $output_objdir/$libname.def~
10103 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10104 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10105 emximp -o $lib $output_objdir/$libname.def'
10106 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10107 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10108 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10109 $ECHO EXPORTS >> $output_objdir/$libname.def~
10110 prefix_cmds="$SED"~
10111 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10112 prefix_cmds="$prefix_cmds -e 1d";
10113 fi~
10114 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10115 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10117 emximp -o $lib $output_objdir/$libname.def'
10118 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10119 enable_shared_with_static_runtimes=yes
10120 file_list_spec='@'
10121 ;;
10122
10123 interix[3-9]*)
10124 hardcode_direct=no
10125 hardcode_shlibpath_var=no
10126 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10127 export_dynamic_flag_spec='$wl-E'
10128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10129 # Instead, shared libraries are loaded at an image base (0x10000000 by
10130 # default) and relocated if they conflict, which is a slow very memory
10131 # consuming and fragmenting process. To avoid this, we pick a random,
10132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10135 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'
10136 ;;
10137
10138 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10139 tmp_diet=no
10140 if test linux-dietlibc = "$host_os"; then
10141 case $cc_basename in
10142 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10143 esac
10144 fi
10145 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10146 && test no = "$tmp_diet"
10147 then
10148 tmp_addflag=' $pic_flag'
10149 tmp_sharedflag='-shared'
10150 case $cc_basename,$host_cpu in
10151 pgcc*) # Portland Group C compiler
10152 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'
10153 tmp_addflag=' $pic_flag'
10154 ;;
10155 pgf77* | pgf90* | pgf95* | pgfortran*)
10156 # Portland Group f77 and f90 compilers
10157 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'
10158 tmp_addflag=' $pic_flag -Mnomain' ;;
10159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10160 tmp_addflag=' -i_dynamic' ;;
10161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10162 tmp_addflag=' -i_dynamic -nofor_main' ;;
10163 ifc* | ifort*) # Intel Fortran compiler
10164 tmp_addflag=' -nofor_main' ;;
10165 lf95*) # Lahey Fortran 8.1
10166 whole_archive_flag_spec=
10167 tmp_sharedflag='--shared' ;;
10168 nagfor*) # NAGFOR 5.3
10169 tmp_sharedflag='-Wl,-shared' ;;
10170 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10171 tmp_sharedflag='-qmkshrobj'
10172 tmp_addflag= ;;
10173 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
10176 ;;
10177 esac
10178 case `$CC -V 2>&1 | $SED 5q` in
10179 *Sun\ C*) # Sun C 5.9
10180 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'
10181 compiler_needs_object=yes
10182 tmp_sharedflag='-G' ;;
10183 *Sun\ F*) # Sun Fortran 8.3
10184 tmp_sharedflag='-G' ;;
10185 esac
10186 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10187
10188 if test yes = "$supports_anon_versioning"; then
10189 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10190 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10191 echo "local: *; };" >> $output_objdir/$libname.ver~
10192 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10193 fi
10194
10195 case $cc_basename in
10196 tcc*)
10197 export_dynamic_flag_spec='-rdynamic'
10198 ;;
10199 xlf* | bgf* | bgxlf* | mpixlf*)
10200 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10201 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10202 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10203 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10204 if test yes = "$supports_anon_versioning"; then
10205 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10206 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10207 echo "local: *; };" >> $output_objdir/$libname.ver~
10208 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10209 fi
10210 ;;
10211 esac
10212 else
10213 ld_shlibs=no
10214 fi
10215 ;;
10216
10217 netbsd*)
10218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10219 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10220 wlarc=
10221 else
10222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10224 fi
10225 ;;
10226
10227 solaris*)
10228 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10229 ld_shlibs=no
10230 cat <<_LT_EOF 1>&2
10231
10232 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10233 *** create shared libraries on Solaris systems. Therefore, libtool
10234 *** is disabling shared libraries support. We urge you to upgrade GNU
10235 *** binutils to release 2.9.1 or newer. Another option is to modify
10236 *** your PATH or compiler configuration so that the native linker is
10237 *** used, and then restart.
10238
10239 _LT_EOF
10240 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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 else
10244 ld_shlibs=no
10245 fi
10246 ;;
10247
10248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10249 case `$LD -v 2>&1` in
10250 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10251 ld_shlibs=no
10252 cat <<_LT_EOF 1>&2
10253
10254 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10255 *** reliably create shared libraries on SCO systems. Therefore, libtool
10256 *** is disabling shared libraries support. We urge you to upgrade GNU
10257 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10258 *** your PATH or compiler configuration so that the native linker is
10259 *** used, and then restart.
10260
10261 _LT_EOF
10262 ;;
10263 *)
10264 # For security reasons, it is highly recommended that you always
10265 # use absolute paths for naming shared libraries, and exclude the
10266 # DT_RUNPATH tag from executables and libraries. But doing so
10267 # requires that you compile everything twice, which is a pain.
10268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10272 else
10273 ld_shlibs=no
10274 fi
10275 ;;
10276 esac
10277 ;;
10278
10279 sunos4*)
10280 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10281 wlarc=
10282 hardcode_direct=yes
10283 hardcode_shlibpath_var=no
10284 ;;
10285
10286 *)
10287 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10288 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10289 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10290 else
10291 ld_shlibs=no
10292 fi
10293 ;;
10294 esac
10295
10296 if test no = "$ld_shlibs"; then
10297 runpath_var=
10298 hardcode_libdir_flag_spec=
10299 export_dynamic_flag_spec=
10300 whole_archive_flag_spec=
10301 fi
10302 else
10303 # PORTME fill in a description of your system's linker (not GNU ld)
10304 case $host_os in
10305 aix3*)
10306 allow_undefined_flag=unsupported
10307 always_export_symbols=yes
10308 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'
10309 # Note: this linker hardcodes the directories in LIBPATH if there
10310 # are no directories specified by -L.
10311 hardcode_minus_L=yes
10312 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10313 # Neither direct hardcoding nor static linking is supported with a
10314 # broken collect2.
10315 hardcode_direct=unsupported
10316 fi
10317 ;;
10318
10319 aix[4-9]*)
10320 if test ia64 = "$host_cpu"; then
10321 # On IA64, the linker does run time linking by default, so we don't
10322 # have to do anything special.
10323 aix_use_runtimelinking=no
10324 exp_sym_flag='-Bexport'
10325 no_entry_flag=
10326 else
10327 # If we're using GNU nm, then we don't want the "-C" option.
10328 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10329 # Without the "-l" option, or with the "-B" option, AIX nm treats
10330 # weak defined symbols like other global defined symbols, whereas
10331 # GNU nm marks them as "W".
10332 # While the 'weak' keyword is ignored in the Export File, we need
10333 # it in the Import File for the 'aix-soname' feature, so we have
10334 # to replace the "-B" option with "-P" for AIX nm.
10335 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10336 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'
10337 else
10338 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'
10339 fi
10340 aix_use_runtimelinking=no
10341
10342 # Test if we are trying to use run time linking or normal
10343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10344 # have runtime linking enabled, and use it for executables.
10345 # For shared libraries, we enable/disable runtime linking
10346 # depending on the kind of the shared library created -
10347 # when "with_aix_soname,aix_use_runtimelinking" is:
10348 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10349 # "aix,yes" lib.so shared, rtl:yes, for executables
10350 # lib.a static archive
10351 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10352 # lib.a(lib.so.V) shared, rtl:no, for executables
10353 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10354 # lib.a(lib.so.V) shared, rtl:no
10355 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10356 # lib.a static archive
10357 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10358 for ld_flag in $LDFLAGS; do
10359 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10360 aix_use_runtimelinking=yes
10361 break
10362 fi
10363 done
10364 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10365 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10366 # so we don't have lib.a shared libs to link our executables.
10367 # We have to force runtime linking in this case.
10368 aix_use_runtimelinking=yes
10369 LDFLAGS="$LDFLAGS -Wl,-brtl"
10370 fi
10371 ;;
10372 esac
10373
10374 exp_sym_flag='-bexport'
10375 no_entry_flag='-bnoentry'
10376 fi
10377
10378 # When large executables or shared objects are built, AIX ld can
10379 # have problems creating the table of contents. If linking a library
10380 # or program results in "error TOC overflow" add -mminimal-toc to
10381 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10382 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10383
10384 archive_cmds=''
10385 hardcode_direct=yes
10386 hardcode_direct_absolute=yes
10387 hardcode_libdir_separator=':'
10388 link_all_deplibs=yes
10389 file_list_spec='$wl-f,'
10390 case $with_aix_soname,$aix_use_runtimelinking in
10391 aix,*) ;; # traditional, no import file
10392 svr4,* | *,yes) # use import file
10393 # The Import File defines what to hardcode.
10394 hardcode_direct=no
10395 hardcode_direct_absolute=no
10396 ;;
10397 esac
10398
10399 if test yes = "$GCC"; then
10400 case $host_os in aix4.[012]|aix4.[012].*)
10401 # We only want to do this on AIX 4.2 and lower, the check
10402 # below for broken collect2 doesn't work under 4.3+
10403 collect2name=`$CC -print-prog-name=collect2`
10404 if test -f "$collect2name" &&
10405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10406 then
10407 # We have reworked collect2
10408 :
10409 else
10410 # We have old collect2
10411 hardcode_direct=unsupported
10412 # It fails to find uninstalled libraries when the uninstalled
10413 # path is not listed in the libpath. Setting hardcode_minus_L
10414 # to unsupported forces relinking
10415 hardcode_minus_L=yes
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_libdir_separator=
10418 fi
10419 ;;
10420 esac
10421 shared_flag='-shared'
10422 if test yes = "$aix_use_runtimelinking"; then
10423 shared_flag="$shared_flag "'$wl-G'
10424 fi
10425 # Need to ensure runtime linking is disabled for the traditional
10426 # shared library, or the linker may eventually find shared libraries
10427 # /with/ Import File - we do not want to mix them.
10428 shared_flag_aix='-shared'
10429 shared_flag_svr4='-shared $wl-G'
10430 else
10431 # not using gcc
10432 if test ia64 = "$host_cpu"; then
10433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10434 # chokes on -Wl,-G. The following line is correct:
10435 shared_flag='-G'
10436 else
10437 if test yes = "$aix_use_runtimelinking"; then
10438 shared_flag='$wl-G'
10439 else
10440 shared_flag='$wl-bM:SRE'
10441 fi
10442 shared_flag_aix='$wl-bM:SRE'
10443 shared_flag_svr4='$wl-G'
10444 fi
10445 fi
10446
10447 export_dynamic_flag_spec='$wl-bexpall'
10448 # It seems that -bexpall does not export symbols beginning with
10449 # underscore (_), so it is better to generate a list of symbols to export.
10450 always_export_symbols=yes
10451 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10452 # Warning - without using the other runtime loading flags (-brtl),
10453 # -berok will link without error, but may produce a broken library.
10454 allow_undefined_flag='-berok'
10455 # Determine the default libpath from the value encoded in an
10456 # empty executable.
10457 if test set = "${lt_cv_aix_libpath+set}"; then
10458 aix_libpath=$lt_cv_aix_libpath
10459 else
10460 if test ${lt_cv_aix_libpath_+y}
10461 then :
10462 printf %s "(cached) " >&6
10463 else case e in #(
10464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466
10467 int
10468 main (void)
10469 {
10470
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"
10476 then :
10477
10478 lt_aix_libpath_sed='
10479 /Import File Strings/,/^$/ {
10480 /^0/ {
10481 s/^0 *\([^ ]*\) *$/\1/
10482 p
10483 }
10484 }'
10485 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10486 # Check for a 64-bit object if we didn't find anything.
10487 if test -z "$lt_cv_aix_libpath_"; then
10488 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10489 fi
10490 fi
10491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10492 conftest$ac_exeext conftest.$ac_ext
10493 if test -z "$lt_cv_aix_libpath_"; then
10494 lt_cv_aix_libpath_=/usr/lib:/lib
10495 fi
10496 ;;
10497 esac
10498 fi
10499
10500 aix_libpath=$lt_cv_aix_libpath_
10501 fi
10502
10503 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10504 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
10505 else
10506 if test ia64 = "$host_cpu"; then
10507 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10508 allow_undefined_flag="-z nodefs"
10509 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"
10510 else
10511 # Determine the default libpath from the value encoded in an
10512 # empty executable.
10513 if test set = "${lt_cv_aix_libpath+set}"; then
10514 aix_libpath=$lt_cv_aix_libpath
10515 else
10516 if test ${lt_cv_aix_libpath_+y}
10517 then :
10518 printf %s "(cached) " >&6
10519 else case e in #(
10520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10522
10523 int
10524 main (void)
10525 {
10526
10527 ;
10528 return 0;
10529 }
10530 _ACEOF
10531 if ac_fn_c_try_link "$LINENO"
10532 then :
10533
10534 lt_aix_libpath_sed='
10535 /Import File Strings/,/^$/ {
10536 /^0/ {
10537 s/^0 *\([^ ]*\) *$/\1/
10538 p
10539 }
10540 }'
10541 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$lt_cv_aix_libpath_"; then
10544 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 fi
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10548 conftest$ac_exeext conftest.$ac_ext
10549 if test -z "$lt_cv_aix_libpath_"; then
10550 lt_cv_aix_libpath_=/usr/lib:/lib
10551 fi
10552 ;;
10553 esac
10554 fi
10555
10556 aix_libpath=$lt_cv_aix_libpath_
10557 fi
10558
10559 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10560 # Warning - without using the other run time loading flags,
10561 # -berok will link without error, but may produce a broken library.
10562 no_undefined_flag=' $wl-bernotok'
10563 allow_undefined_flag=' $wl-berok'
10564 if test yes = "$with_gnu_ld"; then
10565 # We only use this code for GNU lds that support --whole-archive.
10566 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10567 else
10568 # Exported symbols can be pulled into shared objects from archives
10569 whole_archive_flag_spec='$convenience'
10570 fi
10571 archive_cmds_need_lc=yes
10572 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10573 # -brtl affects multiple linker settings, -berok does not and is overridden later
10574 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10575 if test svr4 != "$with_aix_soname"; then
10576 # This is similar to how AIX traditionally builds its shared libraries.
10577 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'
10578 fi
10579 if test aix != "$with_aix_soname"; then
10580 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'
10581 else
10582 # used by -dlpreopen to get the symbols
10583 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10584 fi
10585 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10586 fi
10587 fi
10588 ;;
10589
10590 amigaos*)
10591 case $host_cpu in
10592 powerpc)
10593 # see comment about AmigaOS4 .so support
10594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10595 archive_expsym_cmds=''
10596 ;;
10597 m68k)
10598 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)'
10599 hardcode_libdir_flag_spec='-L$libdir'
10600 hardcode_minus_L=yes
10601 ;;
10602 esac
10603 ;;
10604
10605 bsdi[45]*)
10606 export_dynamic_flag_spec=-rdynamic
10607 ;;
10608
10609 cygwin* | mingw* | pw32* | cegcc*)
10610 # When not using gcc, we currently assume that we are using
10611 # Microsoft Visual C++ or Intel C++ Compiler.
10612 # hardcode_libdir_flag_spec is actually meaningless, as there is
10613 # no search path for DLLs.
10614 case $cc_basename in
10615 cl* | icl*)
10616 # Native MSVC or ICC
10617 hardcode_libdir_flag_spec=' '
10618 allow_undefined_flag=unsupported
10619 always_export_symbols=yes
10620 file_list_spec='@'
10621 # Tell ltmain to make .lib files, not .a files.
10622 libext=lib
10623 # Tell ltmain to make .dll files, not .so files.
10624 shrext_cmds=.dll
10625 # FIXME: Setting linknames here is a bad hack.
10626 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10627 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10628 cp "$export_symbols" "$output_objdir/$soname.def";
10629 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10630 else
10631 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10632 fi~
10633 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10634 linknames='
10635 # The linker will not automatically build a static lib if we build a DLL.
10636 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10637 enable_shared_with_static_runtimes=yes
10638 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10640 # Don't use ranlib
10641 old_postinstall_cmds='chmod 644 $oldlib'
10642 postlink_cmds='lt_outputfile="@OUTPUT@"~
10643 lt_tool_outputfile="@TOOL_OUTPUT@"~
10644 case $lt_outputfile in
10645 *.exe|*.EXE) ;;
10646 *)
10647 lt_outputfile=$lt_outputfile.exe
10648 lt_tool_outputfile=$lt_tool_outputfile.exe
10649 ;;
10650 esac~
10651 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10652 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10653 $RM "$lt_outputfile.manifest";
10654 fi'
10655 ;;
10656 *)
10657 # Assume MSVC and ICC wrapper
10658 hardcode_libdir_flag_spec=' '
10659 allow_undefined_flag=unsupported
10660 # Tell ltmain to make .lib files, not .a files.
10661 libext=lib
10662 # Tell ltmain to make .dll files, not .so files.
10663 shrext_cmds=.dll
10664 # FIXME: Setting linknames here is a bad hack.
10665 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10666 # The linker will automatically build a .lib file if we build a DLL.
10667 old_archive_from_new_cmds='true'
10668 # FIXME: Should let the user specify the lib program.
10669 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10670 enable_shared_with_static_runtimes=yes
10671 ;;
10672 esac
10673 ;;
10674
10675 darwin* | rhapsody*)
10676
10677
10678 archive_cmds_need_lc=no
10679 hardcode_direct=no
10680 hardcode_automatic=yes
10681 hardcode_shlibpath_var=unsupported
10682 if test yes = "$lt_cv_ld_force_load"; then
10683 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\"`'
10684
10685 else
10686 whole_archive_flag_spec=''
10687 fi
10688 link_all_deplibs=yes
10689 allow_undefined_flag=$_lt_dar_allow_undefined
10690 case $cc_basename in
10691 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10692 *) _lt_dar_can_shared=$GCC ;;
10693 esac
10694 if test yes = "$_lt_dar_can_shared"; then
10695 output_verbose_link_cmd=func_echo_all
10696 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10697 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10698 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"
10699 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"
10700
10701 else
10702 ld_shlibs=no
10703 fi
10704
10705 ;;
10706
10707 dgux*)
10708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_libdir_flag_spec='-L$libdir'
10710 hardcode_shlibpath_var=no
10711 ;;
10712
10713 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10714 # support. Future versions do this automatically, but an explicit c++rt0.o
10715 # does not break anything, and helps significantly (at the cost of a little
10716 # extra space).
10717 freebsd2.2*)
10718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10719 hardcode_libdir_flag_spec='-R$libdir'
10720 hardcode_direct=yes
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10725 freebsd2.*)
10726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10727 hardcode_direct=yes
10728 hardcode_minus_L=yes
10729 hardcode_shlibpath_var=no
10730 ;;
10731
10732 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10733 freebsd* | dragonfly* | midnightbsd*)
10734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10735 hardcode_libdir_flag_spec='-R$libdir'
10736 hardcode_direct=yes
10737 hardcode_shlibpath_var=no
10738 ;;
10739
10740 hpux9*)
10741 if test yes = "$GCC"; then
10742 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'
10743 else
10744 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'
10745 fi
10746 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10747 hardcode_libdir_separator=:
10748 hardcode_direct=yes
10749
10750 # hardcode_minus_L: Not really in the search PATH,
10751 # but as the default location of the library.
10752 hardcode_minus_L=yes
10753 export_dynamic_flag_spec='$wl-E'
10754 ;;
10755
10756 hpux10*)
10757 if test yes,no = "$GCC,$with_gnu_ld"; then
10758 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10759 else
10760 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10761 fi
10762 if test no = "$with_gnu_ld"; then
10763 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10764 hardcode_libdir_separator=:
10765 hardcode_direct=yes
10766 hardcode_direct_absolute=yes
10767 export_dynamic_flag_spec='$wl-E'
10768 # hardcode_minus_L: Not really in the search PATH,
10769 # but as the default location of the library.
10770 hardcode_minus_L=yes
10771 fi
10772 ;;
10773
10774 hpux11*)
10775 if test yes,no = "$GCC,$with_gnu_ld"; then
10776 case $host_cpu in
10777 hppa*64*)
10778 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10779 ;;
10780 ia64*)
10781 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10782 ;;
10783 *)
10784 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10785 ;;
10786 esac
10787 else
10788 case $host_cpu in
10789 hppa*64*)
10790 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 ;;
10792 ia64*)
10793 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10794 ;;
10795 *)
10796
10797 # Older versions of the 11.00 compiler do not understand -b yet
10798 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10800 printf %s "checking if $CC understands -b... " >&6; }
10801 if test ${lt_cv_prog_compiler__b+y}
10802 then :
10803 printf %s "(cached) " >&6
10804 else case e in #(
10805 e) lt_cv_prog_compiler__b=no
10806 save_LDFLAGS=$LDFLAGS
10807 LDFLAGS="$LDFLAGS -b"
10808 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10809 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10810 # The linker can only warn and ignore the option if not recognized
10811 # So say no if there are warnings
10812 if test -s conftest.err; then
10813 # Append any errors to the config.log.
10814 cat conftest.err 1>&5
10815 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10817 if diff conftest.exp conftest.er2 >/dev/null; then
10818 lt_cv_prog_compiler__b=yes
10819 fi
10820 else
10821 lt_cv_prog_compiler__b=yes
10822 fi
10823 fi
10824 $RM -r conftest*
10825 LDFLAGS=$save_LDFLAGS
10826 ;;
10827 esac
10828 fi
10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10830 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10831
10832 if test yes = "$lt_cv_prog_compiler__b"; then
10833 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10834 else
10835 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10836 fi
10837
10838 ;;
10839 esac
10840 fi
10841 if test no = "$with_gnu_ld"; then
10842 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10843 hardcode_libdir_separator=:
10844
10845 case $host_cpu in
10846 hppa*64*|ia64*)
10847 hardcode_direct=no
10848 hardcode_shlibpath_var=no
10849 ;;
10850 *)
10851 hardcode_direct=yes
10852 hardcode_direct_absolute=yes
10853 export_dynamic_flag_spec='$wl-E'
10854
10855 # hardcode_minus_L: Not really in the search PATH,
10856 # but as the default location of the library.
10857 hardcode_minus_L=yes
10858 ;;
10859 esac
10860 fi
10861 ;;
10862
10863 irix5* | irix6* | nonstopux*)
10864 if test yes = "$GCC"; then
10865 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'
10866 # Try to use the -exported_symbol ld option, if it does not
10867 # work, assume that -exports_file does not work either and
10868 # implicitly export all symbols.
10869 # This should be the same for all languages, so no per-tag cache variable.
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10871 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10872 if test ${lt_cv_irix_exported_symbol+y}
10873 then :
10874 printf %s "(cached) " >&6
10875 else case e in #(
10876 e) save_LDFLAGS=$LDFLAGS
10877 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10880 int foo (void) { return 0; }
10881 _ACEOF
10882 if ac_fn_c_try_link "$LINENO"
10883 then :
10884 lt_cv_irix_exported_symbol=yes
10885 else case e in #(
10886 e) lt_cv_irix_exported_symbol=no ;;
10887 esac
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS=$save_LDFLAGS ;;
10892 esac
10893 fi
10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10895 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10896 if test yes = "$lt_cv_irix_exported_symbol"; then
10897 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'
10898 fi
10899 else
10900 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'
10901 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'
10902 fi
10903 archive_cmds_need_lc='no'
10904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10905 hardcode_libdir_separator=:
10906 inherit_rpath=yes
10907 link_all_deplibs=yes
10908 ;;
10909
10910 linux*)
10911 case $cc_basename in
10912 tcc*)
10913 # Fabrice Bellard et al's Tiny C Compiler
10914 ld_shlibs=yes
10915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10916 ;;
10917 esac
10918 ;;
10919
10920 netbsd*)
10921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10923 else
10924 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10925 fi
10926 hardcode_libdir_flag_spec='-R$libdir'
10927 hardcode_direct=yes
10928 hardcode_shlibpath_var=no
10929 ;;
10930
10931 newsos6)
10932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_direct=yes
10934 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10935 hardcode_libdir_separator=:
10936 hardcode_shlibpath_var=no
10937 ;;
10938
10939 *nto* | *qnx*)
10940 ;;
10941
10942 openbsd* | bitrig*)
10943 if test -f /usr/libexec/ld.so; then
10944 hardcode_direct=yes
10945 hardcode_shlibpath_var=no
10946 hardcode_direct_absolute=yes
10947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10950 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10951 export_dynamic_flag_spec='$wl-E'
10952 else
10953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10954 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10955 fi
10956 else
10957 ld_shlibs=no
10958 fi
10959 ;;
10960
10961 os2*)
10962 hardcode_libdir_flag_spec='-L$libdir'
10963 hardcode_minus_L=yes
10964 allow_undefined_flag=unsupported
10965 shrext_cmds=.dll
10966 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10967 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10968 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10969 $ECHO EXPORTS >> $output_objdir/$libname.def~
10970 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10971 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10972 emximp -o $lib $output_objdir/$libname.def'
10973 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10976 $ECHO EXPORTS >> $output_objdir/$libname.def~
10977 prefix_cmds="$SED"~
10978 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10979 prefix_cmds="$prefix_cmds -e 1d";
10980 fi~
10981 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10982 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10984 emximp -o $lib $output_objdir/$libname.def'
10985 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10986 enable_shared_with_static_runtimes=yes
10987 file_list_spec='@'
10988 ;;
10989
10990 osf3*)
10991 if test yes = "$GCC"; then
10992 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10993 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'
10994 else
10995 allow_undefined_flag=' -expect_unresolved \*'
10996 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'
10997 fi
10998 archive_cmds_need_lc='no'
10999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11000 hardcode_libdir_separator=:
11001 ;;
11002
11003 osf4* | osf5*) # as osf3* with the addition of -msym flag
11004 if test yes = "$GCC"; then
11005 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11006 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'
11007 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11008 else
11009 allow_undefined_flag=' -expect_unresolved \*'
11010 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'
11011 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~
11012 $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'
11013
11014 # Both c and cxx compiler support -rpath directly
11015 hardcode_libdir_flag_spec='-rpath $libdir'
11016 fi
11017 archive_cmds_need_lc='no'
11018 hardcode_libdir_separator=:
11019 ;;
11020
11021 solaris*)
11022 no_undefined_flag=' -z defs'
11023 if test yes = "$GCC"; then
11024 wlarc='$wl'
11025 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11027 $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'
11028 else
11029 case `$CC -V 2>&1` in
11030 *"Compilers 5.0"*)
11031 wlarc=''
11032 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11034 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11035 ;;
11036 *)
11037 wlarc='$wl'
11038 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11039 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11040 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11041 ;;
11042 esac
11043 fi
11044 hardcode_libdir_flag_spec='-R$libdir'
11045 hardcode_shlibpath_var=no
11046 case $host_os in
11047 solaris2.[0-5] | solaris2.[0-5].*) ;;
11048 *)
11049 # The compiler driver will combine and reorder linker options,
11050 # but understands '-z linker_flag'. GCC discards it without '$wl',
11051 # but is careful enough not to reorder.
11052 # Supported since Solaris 2.6 (maybe 2.5.1?)
11053 if test yes = "$GCC"; then
11054 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11055 else
11056 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11057 fi
11058 ;;
11059 esac
11060 link_all_deplibs=yes
11061 ;;
11062
11063 sunos4*)
11064 if test sequent = "$host_vendor"; then
11065 # Use $CC to link under sequent, because it throws in some extra .o
11066 # files that make .init and .fini sections work.
11067 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11068 else
11069 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11070 fi
11071 hardcode_libdir_flag_spec='-L$libdir'
11072 hardcode_direct=yes
11073 hardcode_minus_L=yes
11074 hardcode_shlibpath_var=no
11075 ;;
11076
11077 sysv4)
11078 case $host_vendor in
11079 sni)
11080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11081 hardcode_direct=yes # is this really true???
11082 ;;
11083 siemens)
11084 ## LD is ld it makes a PLAMLIB
11085 ## CC just makes a GrossModule.
11086 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11087 reload_cmds='$CC -r -o $output$reload_objs'
11088 hardcode_direct=no
11089 ;;
11090 motorola)
11091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11092 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11093 ;;
11094 esac
11095 runpath_var='LD_RUN_PATH'
11096 hardcode_shlibpath_var=no
11097 ;;
11098
11099 sysv4.3*)
11100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11101 hardcode_shlibpath_var=no
11102 export_dynamic_flag_spec='-Bexport'
11103 ;;
11104
11105 sysv4*MP*)
11106 if test -d /usr/nec; then
11107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11108 hardcode_shlibpath_var=no
11109 runpath_var=LD_RUN_PATH
11110 hardcode_runpath_var=yes
11111 ld_shlibs=yes
11112 fi
11113 ;;
11114
11115 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11116 no_undefined_flag='$wl-z,text'
11117 archive_cmds_need_lc=no
11118 hardcode_shlibpath_var=no
11119 runpath_var='LD_RUN_PATH'
11120
11121 if test yes = "$GCC"; then
11122 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124 else
11125 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127 fi
11128 ;;
11129
11130 sysv5* | sco3.2v5* | sco5v6*)
11131 # Note: We CANNOT use -z defs as we might desire, because we do not
11132 # link with -lc, and that would cause any symbols used from libc to
11133 # always be unresolved, which means just about no library would
11134 # ever link correctly. If we're not using GNU ld we use -z text
11135 # though, which does catch some bad symbols but isn't as heavy-handed
11136 # as -z defs.
11137 no_undefined_flag='$wl-z,text'
11138 allow_undefined_flag='$wl-z,nodefs'
11139 archive_cmds_need_lc=no
11140 hardcode_shlibpath_var=no
11141 hardcode_libdir_flag_spec='$wl-R,$libdir'
11142 hardcode_libdir_separator=':'
11143 link_all_deplibs=yes
11144 export_dynamic_flag_spec='$wl-Bexport'
11145 runpath_var='LD_RUN_PATH'
11146
11147 if test yes = "$GCC"; then
11148 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11150 else
11151 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11153 fi
11154 ;;
11155
11156 uts4*)
11157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11158 hardcode_libdir_flag_spec='-L$libdir'
11159 hardcode_shlibpath_var=no
11160 ;;
11161
11162 *)
11163 ld_shlibs=no
11164 ;;
11165 esac
11166
11167 if test sni = "$host_vendor"; then
11168 case $host in
11169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11170 export_dynamic_flag_spec='$wl-Blargedynsym'
11171 ;;
11172 esac
11173 fi
11174 fi
11175
11176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11177 printf "%s\n" "$ld_shlibs" >&6; }
11178 test no = "$ld_shlibs" && can_build_shared=no
11179
11180 with_gnu_ld=$with_gnu_ld
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196 #
11197 # Do we need to explicitly link libc?
11198 #
11199 case "x$archive_cmds_need_lc" in
11200 x|xyes)
11201 # Assume -lc should be added
11202 archive_cmds_need_lc=yes
11203
11204 if test yes,yes = "$GCC,$enable_shared"; then
11205 case $archive_cmds in
11206 *'~'*)
11207 # FIXME: we may have to deal with multi-command sequences.
11208 ;;
11209 '$CC '*)
11210 # Test whether the compiler implicitly links with -lc since on some
11211 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11212 # to ld, don't add -lc before -lgcc.
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11214 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11215 if test ${lt_cv_archive_cmds_need_lc+y}
11216 then :
11217 printf %s "(cached) " >&6
11218 else case e in #(
11219 e) $RM conftest*
11220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11221
11222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11223 (eval $ac_compile) 2>&5
11224 ac_status=$?
11225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11226 test $ac_status = 0; } 2>conftest.err; then
11227 soname=conftest
11228 lib=conftest
11229 libobjs=conftest.$ac_objext
11230 deplibs=
11231 wl=$lt_prog_compiler_wl
11232 pic_flag=$lt_prog_compiler_pic
11233 compiler_flags=-v
11234 linker_flags=-v
11235 verstring=
11236 output_objdir=.
11237 libname=conftest
11238 lt_save_allow_undefined_flag=$allow_undefined_flag
11239 allow_undefined_flag=
11240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11241 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11242 ac_status=$?
11243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11244 test $ac_status = 0; }
11245 then
11246 lt_cv_archive_cmds_need_lc=no
11247 else
11248 lt_cv_archive_cmds_need_lc=yes
11249 fi
11250 allow_undefined_flag=$lt_save_allow_undefined_flag
11251 else
11252 cat conftest.err 1>&5
11253 fi
11254 $RM conftest*
11255 ;;
11256 esac
11257 fi
11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11259 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11260 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11261 ;;
11262 esac
11263 fi
11264 ;;
11265 esac
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11419 printf %s "checking dynamic linker characteristics... " >&6; }
11420
11421 if test yes = "$GCC"; then
11422 case $host_os in
11423 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11424 *) lt_awk_arg='/^libraries:/' ;;
11425 esac
11426 case $host_os in
11427 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11428 *) lt_sed_strip_eq='s|=/|/|g' ;;
11429 esac
11430 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11431 case $lt_search_path_spec in
11432 *\;*)
11433 # if the path contains ";" then we assume it to be the separator
11434 # otherwise default to the standard path separator (i.e. ":") - it is
11435 # assumed that no part of a normal pathname contains ";" but that should
11436 # okay in the real world where ";" in dirpaths is itself problematic.
11437 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11438 ;;
11439 *)
11440 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11441 ;;
11442 esac
11443 # Ok, now we have the path, separated by spaces, we can step through it
11444 # and add multilib dir if necessary...
11445 lt_tmp_lt_search_path_spec=
11446 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11447 # ...but if some path component already ends with the multilib dir we assume
11448 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11449 case "$lt_multi_os_dir; $lt_search_path_spec " in
11450 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11451 lt_multi_os_dir=
11452 ;;
11453 esac
11454 for lt_sys_path in $lt_search_path_spec; do
11455 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11456 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11457 elif test -n "$lt_multi_os_dir"; then
11458 test -d "$lt_sys_path" && \
11459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11460 fi
11461 done
11462 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11463 BEGIN {RS = " "; FS = "/|\n";} {
11464 lt_foo = "";
11465 lt_count = 0;
11466 for (lt_i = NF; lt_i > 0; lt_i--) {
11467 if ($lt_i != "" && $lt_i != ".") {
11468 if ($lt_i == "..") {
11469 lt_count++;
11470 } else {
11471 if (lt_count == 0) {
11472 lt_foo = "/" $lt_i lt_foo;
11473 } else {
11474 lt_count--;
11475 }
11476 }
11477 }
11478 }
11479 if (lt_foo != "") { lt_freq[lt_foo]++; }
11480 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11481 }'`
11482 # AWK program above erroneously prepends '/' to C:/dos/paths
11483 # for these hosts.
11484 case $host_os in
11485 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11486 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11487 esac
11488 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11489 else
11490 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11491 fi
11492 library_names_spec=
11493 libname_spec='lib$name'
11494 soname_spec=
11495 shrext_cmds=.so
11496 postinstall_cmds=
11497 postuninstall_cmds=
11498 finish_cmds=
11499 finish_eval=
11500 shlibpath_var=
11501 shlibpath_overrides_runpath=unknown
11502 version_type=none
11503 dynamic_linker="$host_os ld.so"
11504 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11505 need_lib_prefix=unknown
11506 hardcode_into_libs=no
11507
11508 # when you set need_version to no, make sure it does not cause -set_version
11509 # flags to be left without arguments
11510 need_version=unknown
11511
11512
11513
11514 case $host_os in
11515 aix3*)
11516 version_type=linux # correct to gnu/linux during the next big refactor
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11518 shlibpath_var=LIBPATH
11519
11520 # AIX 3 has no versioning support, so we append a major version to the name.
11521 soname_spec='$libname$release$shared_ext$major'
11522 ;;
11523
11524 aix[4-9]*)
11525 version_type=linux # correct to gnu/linux during the next big refactor
11526 need_lib_prefix=no
11527 need_version=no
11528 hardcode_into_libs=yes
11529 if test ia64 = "$host_cpu"; then
11530 # AIX 5 supports IA64
11531 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 else
11534 # With GCC up to 2.95.x, collect2 would create an import file
11535 # for dependence libraries. The import file would start with
11536 # the line '#! .'. This would cause the generated library to
11537 # depend on '.', always an invalid library. This was fixed in
11538 # development snapshots of GCC prior to 3.0.
11539 case $host_os in
11540 aix4 | aix4.[01] | aix4.[01].*)
11541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11542 echo ' yes '
11543 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11544 :
11545 else
11546 can_build_shared=no
11547 fi
11548 ;;
11549 esac
11550 # Using Import Files as archive members, it is possible to support
11551 # filename-based versioning of shared library archives on AIX. While
11552 # this would work for both with and without runtime linking, it will
11553 # prevent static linking of such archives. So we do filename-based
11554 # shared library versioning with .so extension only, which is used
11555 # when both runtime linking and shared linking is enabled.
11556 # Unfortunately, runtime linking may impact performance, so we do
11557 # not want this to be the default eventually. Also, we use the
11558 # versioned .so libs for executables only if there is the -brtl
11559 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11560 # To allow for filename-based versioning support, we need to create
11561 # libNAME.so.V as an archive file, containing:
11562 # *) an Import File, referring to the versioned filename of the
11563 # archive as well as the shared archive member, telling the
11564 # bitwidth (32 or 64) of that shared object, and providing the
11565 # list of exported symbols of that shared object, eventually
11566 # decorated with the 'weak' keyword
11567 # *) the shared object with the F_LOADONLY flag set, to really avoid
11568 # it being seen by the linker.
11569 # At run time we better use the real file rather than another symlink,
11570 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11571
11572 case $with_aix_soname,$aix_use_runtimelinking in
11573 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11574 # soname into executable. Probably we can add versioning support to
11575 # collect2, so additional links can be useful in future.
11576 aix,yes) # traditional libtool
11577 dynamic_linker='AIX unversionable lib.so'
11578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11579 # instead of lib<name>.a to let people know that these are not
11580 # typical AIX shared libraries.
11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11582 ;;
11583 aix,no) # traditional AIX only
11584 dynamic_linker='AIX lib.a(lib.so.V)'
11585 # We preserve .a as extension for shared libraries through AIX4.2
11586 # and later when we are not doing run time linking.
11587 library_names_spec='$libname$release.a $libname.a'
11588 soname_spec='$libname$release$shared_ext$major'
11589 ;;
11590 svr4,*) # full svr4 only
11591 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11592 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11593 # We do not specify a path in Import Files, so LIBPATH fires.
11594 shlibpath_overrides_runpath=yes
11595 ;;
11596 *,yes) # both, prefer svr4
11597 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11598 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11599 # unpreferred sharedlib libNAME.a needs extra handling
11600 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"'
11601 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"'
11602 # We do not specify a path in Import Files, so LIBPATH fires.
11603 shlibpath_overrides_runpath=yes
11604 ;;
11605 *,no) # both, prefer aix
11606 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11607 library_names_spec='$libname$release.a $libname.a'
11608 soname_spec='$libname$release$shared_ext$major'
11609 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11610 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)'
11611 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"'
11612 ;;
11613 esac
11614 shlibpath_var=LIBPATH
11615 fi
11616 ;;
11617
11618 amigaos*)
11619 case $host_cpu in
11620 powerpc)
11621 # Since July 2007 AmigaOS4 officially supports .so libraries.
11622 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11624 ;;
11625 m68k)
11626 library_names_spec='$libname.ixlibrary $libname.a'
11627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11628 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'
11629 ;;
11630 esac
11631 ;;
11632
11633 beos*)
11634 library_names_spec='$libname$shared_ext'
11635 dynamic_linker="$host_os ld.so"
11636 shlibpath_var=LIBRARY_PATH
11637 ;;
11638
11639 bsdi[45]*)
11640 version_type=linux # correct to gnu/linux during the next big refactor
11641 need_version=no
11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11643 soname_spec='$libname$release$shared_ext$major'
11644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11648 # the default ld.so.conf also contains /usr/contrib/lib and
11649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11650 # libtool to hard-code these into programs
11651 ;;
11652
11653 cygwin* | mingw* | pw32* | cegcc*)
11654 version_type=windows
11655 shrext_cmds=.dll
11656 need_version=no
11657 need_lib_prefix=no
11658
11659 case $GCC,$cc_basename in
11660 yes,*)
11661 # gcc
11662 library_names_spec='$libname.dll.a'
11663 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11664 postinstall_cmds='base_file=`basename \$file`~
11665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11666 dldir=$destdir/`dirname \$dlpath`~
11667 test -d \$dldir || mkdir -p \$dldir~
11668 $install_prog $dir/$dlname \$dldir/$dlname~
11669 chmod a+x \$dldir/$dlname~
11670 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11671 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11672 fi'
11673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11674 dlpath=$dir/\$dldll~
11675 $RM \$dlpath'
11676 shlibpath_overrides_runpath=yes
11677
11678 case $host_os in
11679 cygwin*)
11680 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11681 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11682
11683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11684 ;;
11685 mingw* | cegcc*)
11686 # MinGW DLLs use traditional 'lib' prefix
11687 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11688 ;;
11689 pw32*)
11690 # pw32 DLLs use 'pw' prefix rather than 'lib'
11691 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11692 ;;
11693 esac
11694 dynamic_linker='Win32 ld.exe'
11695 ;;
11696
11697 *,cl* | *,icl*)
11698 # Native MSVC or ICC
11699 libname_spec='$name'
11700 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11701 library_names_spec='$libname.dll.lib'
11702
11703 case $build_os in
11704 mingw*)
11705 sys_lib_search_path_spec=
11706 lt_save_ifs=$IFS
11707 IFS=';'
11708 for lt_path in $LIB
11709 do
11710 IFS=$lt_save_ifs
11711 # Let DOS variable expansion print the short 8.3 style file name.
11712 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11713 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11714 done
11715 IFS=$lt_save_ifs
11716 # Convert to MSYS style.
11717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11718 ;;
11719 cygwin*)
11720 # Convert to unix form, then to dos form, then back to unix form
11721 # but this time dos style (no spaces!) so that the unix form looks
11722 # like /cygdrive/c/PROGRA~1:/cygdr...
11723 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11724 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11725 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11726 ;;
11727 *)
11728 sys_lib_search_path_spec=$LIB
11729 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11730 # It is most probably a Windows format PATH.
11731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11732 else
11733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11734 fi
11735 # FIXME: find the short name or the path components, as spaces are
11736 # common. (e.g. "Program Files" -> "PROGRA~1")
11737 ;;
11738 esac
11739
11740 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11741 postinstall_cmds='base_file=`basename \$file`~
11742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11743 dldir=$destdir/`dirname \$dlpath`~
11744 test -d \$dldir || mkdir -p \$dldir~
11745 $install_prog $dir/$dlname \$dldir/$dlname'
11746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11747 dlpath=$dir/\$dldll~
11748 $RM \$dlpath'
11749 shlibpath_overrides_runpath=yes
11750 dynamic_linker='Win32 link.exe'
11751 ;;
11752
11753 *)
11754 # Assume MSVC and ICC wrapper
11755 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11756 dynamic_linker='Win32 ld.exe'
11757 ;;
11758 esac
11759 # FIXME: first we should search . and the directory the executable is in
11760 shlibpath_var=PATH
11761 ;;
11762
11763 darwin* | rhapsody*)
11764 dynamic_linker="$host_os dyld"
11765 version_type=darwin
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11769 soname_spec='$libname$release$major$shared_ext'
11770 shlibpath_overrides_runpath=yes
11771 shlibpath_var=DYLD_LIBRARY_PATH
11772 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11773
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11776 ;;
11777
11778 dgux*)
11779 version_type=linux # correct to gnu/linux during the next big refactor
11780 need_lib_prefix=no
11781 need_version=no
11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783 soname_spec='$libname$release$shared_ext$major'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 ;;
11786
11787 freebsd* | dragonfly* | midnightbsd*)
11788 # DragonFly does not have aout. When/if they implement a new
11789 # versioning mechanism, adjust this.
11790 if test -x /usr/bin/objformat; then
11791 objformat=`/usr/bin/objformat`
11792 else
11793 case $host_os in
11794 freebsd[23].*) objformat=aout ;;
11795 *) objformat=elf ;;
11796 esac
11797 fi
11798 version_type=freebsd-$objformat
11799 case $version_type in
11800 freebsd-elf*)
11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802 soname_spec='$libname$release$shared_ext$major'
11803 need_version=no
11804 need_lib_prefix=no
11805 ;;
11806 freebsd-*)
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11808 need_version=yes
11809 ;;
11810 esac
11811 shlibpath_var=LD_LIBRARY_PATH
11812 case $host_os in
11813 freebsd2.*)
11814 shlibpath_overrides_runpath=yes
11815 ;;
11816 freebsd3.[01]* | freebsdelf3.[01]*)
11817 shlibpath_overrides_runpath=yes
11818 hardcode_into_libs=yes
11819 ;;
11820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11822 shlibpath_overrides_runpath=no
11823 hardcode_into_libs=yes
11824 ;;
11825 *) # from 4.6 on, and DragonFly
11826 shlibpath_overrides_runpath=yes
11827 hardcode_into_libs=yes
11828 ;;
11829 esac
11830 ;;
11831
11832 haiku*)
11833 version_type=linux # correct to gnu/linux during the next big refactor
11834 need_lib_prefix=no
11835 need_version=no
11836 dynamic_linker="$host_os runtime_loader"
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838 soname_spec='$libname$release$shared_ext$major'
11839 shlibpath_var=LIBRARY_PATH
11840 shlibpath_overrides_runpath=no
11841 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11842 hardcode_into_libs=yes
11843 ;;
11844
11845 hpux9* | hpux10* | hpux11*)
11846 # Give a soname corresponding to the major version so that dld.sl refuses to
11847 # link against other versions.
11848 version_type=sunos
11849 need_lib_prefix=no
11850 need_version=no
11851 case $host_cpu in
11852 ia64*)
11853 shrext_cmds='.so'
11854 hardcode_into_libs=yes
11855 dynamic_linker="$host_os dld.so"
11856 shlibpath_var=LD_LIBRARY_PATH
11857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11859 soname_spec='$libname$release$shared_ext$major'
11860 if test 32 = "$HPUX_IA64_MODE"; then
11861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11862 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11863 else
11864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11865 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11866 fi
11867 ;;
11868 hppa*64*)
11869 shrext_cmds='.sl'
11870 hardcode_into_libs=yes
11871 dynamic_linker="$host_os dld.sl"
11872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11875 soname_spec='$libname$release$shared_ext$major'
11876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11878 ;;
11879 *)
11880 shrext_cmds='.sl'
11881 dynamic_linker="$host_os dld.sl"
11882 shlibpath_var=SHLIB_PATH
11883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11885 soname_spec='$libname$release$shared_ext$major'
11886 ;;
11887 esac
11888 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11889 postinstall_cmds='chmod 555 $lib'
11890 # or fails outright, so override atomically:
11891 install_override_mode=555
11892 ;;
11893
11894 interix[3-9]*)
11895 version_type=linux # correct to gnu/linux during the next big refactor
11896 need_lib_prefix=no
11897 need_version=no
11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11899 soname_spec='$libname$release$shared_ext$major'
11900 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 shlibpath_overrides_runpath=no
11903 hardcode_into_libs=yes
11904 ;;
11905
11906 irix5* | irix6* | nonstopux*)
11907 case $host_os in
11908 nonstopux*) version_type=nonstopux ;;
11909 *)
11910 if test yes = "$lt_cv_prog_gnu_ld"; then
11911 version_type=linux # correct to gnu/linux during the next big refactor
11912 else
11913 version_type=irix
11914 fi ;;
11915 esac
11916 need_lib_prefix=no
11917 need_version=no
11918 soname_spec='$libname$release$shared_ext$major'
11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11920 case $host_os in
11921 irix5* | nonstopux*)
11922 libsuff= shlibsuff=
11923 ;;
11924 *)
11925 case $LD in # libtool.m4 will add one of these switches to LD
11926 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11927 libsuff= shlibsuff= libmagic=32-bit;;
11928 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11929 libsuff=32 shlibsuff=N32 libmagic=N32;;
11930 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11931 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11932 *) libsuff= shlibsuff= libmagic=never-match;;
11933 esac
11934 ;;
11935 esac
11936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11937 shlibpath_overrides_runpath=no
11938 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11939 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11940 hardcode_into_libs=yes
11941 ;;
11942
11943 # No shared lib support for Linux oldld, aout, or coff.
11944 linux*oldld* | linux*aout* | linux*coff*)
11945 dynamic_linker=no
11946 ;;
11947
11948 linux*android*)
11949 version_type=none # Android doesn't support versioned libraries.
11950 need_lib_prefix=no
11951 need_version=no
11952 library_names_spec='$libname$release$shared_ext'
11953 soname_spec='$libname$release$shared_ext'
11954 finish_cmds=
11955 shlibpath_var=LD_LIBRARY_PATH
11956 shlibpath_overrides_runpath=yes
11957
11958 # This implies no fast_install, which is unacceptable.
11959 # Some rework will be needed to allow for fast_install
11960 # before this can be enabled.
11961 hardcode_into_libs=yes
11962
11963 dynamic_linker='Android linker'
11964 # Don't embed -rpath directories since the linker doesn't support them.
11965 hardcode_libdir_flag_spec='-L$libdir'
11966 ;;
11967
11968 # This must be glibc/ELF.
11969 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11970 version_type=linux # correct to gnu/linux during the next big refactor
11971 need_lib_prefix=no
11972 need_version=no
11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974 soname_spec='$libname$release$shared_ext$major'
11975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 shlibpath_overrides_runpath=no
11978
11979 # Some binutils ld are patched to set DT_RUNPATH
11980 if test ${lt_cv_shlibpath_overrides_runpath+y}
11981 then :
11982 printf %s "(cached) " >&6
11983 else case e in #(
11984 e) lt_cv_shlibpath_overrides_runpath=no
11985 save_LDFLAGS=$LDFLAGS
11986 save_libdir=$libdir
11987 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11988 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991
11992 int
11993 main (void)
11994 {
11995
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"
12001 then :
12002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12003 then :
12004 lt_cv_shlibpath_overrides_runpath=yes
12005 fi
12006 fi
12007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LDFLAGS=$save_LDFLAGS
12010 libdir=$save_libdir
12011 ;;
12012 esac
12013 fi
12014
12015 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12016
12017 # This implies no fast_install, which is unacceptable.
12018 # Some rework will be needed to allow for fast_install
12019 # before this can be enabled.
12020 hardcode_into_libs=yes
12021
12022 # Ideally, we could use ldconfig to report *all* directores which are
12023 # searched for libraries, however this is still not possible. Aside from not
12024 # being certain /sbin/ldconfig is available, command
12025 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12026 # even though it is searched at run-time. Try to do the best guess by
12027 # appending ld.so.conf contents (and includes) to the search path.
12028 if test -f /etc/ld.so.conf; then
12029 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' ' '`
12030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12031 fi
12032
12033 # We used to test for /lib/ld.so.1 and disable shared libraries on
12034 # powerpc, because MkLinux only supported shared libraries with the
12035 # GNU dynamic linker. Since this was broken with cross compilers,
12036 # most powerpc-linux boxes support dynamic linking these days and
12037 # people can always --disable-shared, the test was removed, and we
12038 # assume the GNU/Linux dynamic linker is in use.
12039 dynamic_linker='GNU/Linux ld.so'
12040 ;;
12041
12042 netbsd*)
12043 version_type=sunos
12044 need_lib_prefix=no
12045 need_version=no
12046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12049 dynamic_linker='NetBSD (a.out) ld.so'
12050 else
12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12052 soname_spec='$libname$release$shared_ext$major'
12053 dynamic_linker='NetBSD ld.elf_so'
12054 fi
12055 shlibpath_var=LD_LIBRARY_PATH
12056 shlibpath_overrides_runpath=yes
12057 hardcode_into_libs=yes
12058 ;;
12059
12060 newsos6)
12061 version_type=linux # correct to gnu/linux during the next big refactor
12062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=yes
12065 ;;
12066
12067 *nto* | *qnx*)
12068 version_type=qnx
12069 need_lib_prefix=no
12070 need_version=no
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 soname_spec='$libname$release$shared_ext$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 shlibpath_overrides_runpath=no
12075 hardcode_into_libs=yes
12076 dynamic_linker='ldqnx.so'
12077 ;;
12078
12079 openbsd* | bitrig*)
12080 version_type=sunos
12081 sys_lib_dlsearch_path_spec=/usr/lib
12082 need_lib_prefix=no
12083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12084 need_version=no
12085 else
12086 need_version=yes
12087 fi
12088 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=yes
12092 ;;
12093
12094 os2*)
12095 libname_spec='$name'
12096 version_type=windows
12097 shrext_cmds=.dll
12098 need_version=no
12099 need_lib_prefix=no
12100 # OS/2 can only load a DLL with a base name of 8 characters or less.
12101 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12102 v=$($ECHO $release$versuffix | tr -d .-);
12103 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12104 $ECHO $n$v`$shared_ext'
12105 library_names_spec='${libname}_dll.$libext'
12106 dynamic_linker='OS/2 ld.exe'
12107 shlibpath_var=BEGINLIBPATH
12108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12110 postinstall_cmds='base_file=`basename \$file`~
12111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12112 dldir=$destdir/`dirname \$dlpath`~
12113 test -d \$dldir || mkdir -p \$dldir~
12114 $install_prog $dir/$dlname \$dldir/$dlname~
12115 chmod a+x \$dldir/$dlname~
12116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12117 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12118 fi'
12119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12120 dlpath=$dir/\$dldll~
12121 $RM \$dlpath'
12122 ;;
12123
12124 osf3* | osf4* | osf5*)
12125 version_type=osf
12126 need_lib_prefix=no
12127 need_version=no
12128 soname_spec='$libname$release$shared_ext$major'
12129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12130 shlibpath_var=LD_LIBRARY_PATH
12131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12133 ;;
12134
12135 rdos*)
12136 dynamic_linker=no
12137 ;;
12138
12139 solaris*)
12140 version_type=linux # correct to gnu/linux during the next big refactor
12141 need_lib_prefix=no
12142 need_version=no
12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12144 soname_spec='$libname$release$shared_ext$major'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=yes
12147 hardcode_into_libs=yes
12148 # ldd complains unless libraries are executable
12149 postinstall_cmds='chmod +x $lib'
12150 ;;
12151
12152 sunos4*)
12153 version_type=sunos
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12155 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=yes
12158 if test yes = "$with_gnu_ld"; then
12159 need_lib_prefix=no
12160 fi
12161 need_version=yes
12162 ;;
12163
12164 sysv4 | sysv4.3*)
12165 version_type=linux # correct to gnu/linux during the next big refactor
12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12167 soname_spec='$libname$release$shared_ext$major'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 case $host_vendor in
12170 sni)
12171 shlibpath_overrides_runpath=no
12172 need_lib_prefix=no
12173 runpath_var=LD_RUN_PATH
12174 ;;
12175 siemens)
12176 need_lib_prefix=no
12177 ;;
12178 motorola)
12179 need_lib_prefix=no
12180 need_version=no
12181 shlibpath_overrides_runpath=no
12182 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12183 ;;
12184 esac
12185 ;;
12186
12187 sysv4*MP*)
12188 if test -d /usr/nec; then
12189 version_type=linux # correct to gnu/linux during the next big refactor
12190 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12191 soname_spec='$libname$shared_ext.$major'
12192 shlibpath_var=LD_LIBRARY_PATH
12193 fi
12194 ;;
12195
12196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12197 version_type=sco
12198 need_lib_prefix=no
12199 need_version=no
12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12201 soname_spec='$libname$release$shared_ext$major'
12202 shlibpath_var=LD_LIBRARY_PATH
12203 shlibpath_overrides_runpath=yes
12204 hardcode_into_libs=yes
12205 if test yes = "$with_gnu_ld"; then
12206 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12207 else
12208 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12209 case $host_os in
12210 sco3.2v5*)
12211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12212 ;;
12213 esac
12214 fi
12215 sys_lib_dlsearch_path_spec='/usr/lib'
12216 ;;
12217
12218 tpf*)
12219 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12220 version_type=linux # correct to gnu/linux during the next big refactor
12221 need_lib_prefix=no
12222 need_version=no
12223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12224 shlibpath_var=LD_LIBRARY_PATH
12225 shlibpath_overrides_runpath=no
12226 hardcode_into_libs=yes
12227 ;;
12228
12229 uts4*)
12230 version_type=linux # correct to gnu/linux during the next big refactor
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232 soname_spec='$libname$release$shared_ext$major'
12233 shlibpath_var=LD_LIBRARY_PATH
12234 ;;
12235
12236 *)
12237 dynamic_linker=no
12238 ;;
12239 esac
12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12241 printf "%s\n" "$dynamic_linker" >&6; }
12242 test no = "$dynamic_linker" && can_build_shared=no
12243
12244 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12245 if test yes = "$GCC"; then
12246 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12247 fi
12248
12249 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12250 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12251 fi
12252
12253 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12254 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12255 fi
12256
12257 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12258 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12259
12260 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12261 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12262
12263 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12264 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12363 printf %s "checking how to hardcode library paths into programs... " >&6; }
12364 hardcode_action=
12365 if test -n "$hardcode_libdir_flag_spec" ||
12366 test -n "$runpath_var" ||
12367 test yes = "$hardcode_automatic"; then
12368
12369 # We can hardcode non-existent directories.
12370 if test no != "$hardcode_direct" &&
12371 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12372 # have to relink, otherwise we might link with an installed library
12373 # when we should be linking with a yet-to-be-installed one
12374 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12375 test no != "$hardcode_minus_L"; then
12376 # Linking always hardcodes the temporary library directory.
12377 hardcode_action=relink
12378 else
12379 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12380 hardcode_action=immediate
12381 fi
12382 else
12383 # We cannot hardcode anything, or else we can only hardcode existing
12384 # directories.
12385 hardcode_action=unsupported
12386 fi
12387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12388 printf "%s\n" "$hardcode_action" >&6; }
12389
12390 if test relink = "$hardcode_action" ||
12391 test yes = "$inherit_rpath"; then
12392 # Fast installation is not supported
12393 enable_fast_install=no
12394 elif test yes = "$shlibpath_overrides_runpath" ||
12395 test no = "$enable_shared"; then
12396 # Fast installation is not necessary
12397 enable_fast_install=needless
12398 fi
12399
12400
12401
12402
12403
12404
12405 if test yes != "$enable_dlopen"; then
12406 enable_dlopen=unknown
12407 enable_dlopen_self=unknown
12408 enable_dlopen_self_static=unknown
12409 else
12410 lt_cv_dlopen=no
12411 lt_cv_dlopen_libs=
12412
12413 case $host_os in
12414 beos*)
12415 lt_cv_dlopen=load_add_on
12416 lt_cv_dlopen_libs=
12417 lt_cv_dlopen_self=yes
12418 ;;
12419
12420 mingw* | pw32* | cegcc*)
12421 lt_cv_dlopen=LoadLibrary
12422 lt_cv_dlopen_libs=
12423 ;;
12424
12425 cygwin*)
12426 lt_cv_dlopen=dlopen
12427 lt_cv_dlopen_libs=
12428 ;;
12429
12430 darwin*)
12431 # if libdl is installed we need to link against it
12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12433 printf %s "checking for dlopen in -ldl... " >&6; }
12434 if test ${ac_cv_lib_dl_dlopen+y}
12435 then :
12436 printf %s "(cached) " >&6
12437 else case e in #(
12438 e) ac_check_lib_save_LIBS=$LIBS
12439 LIBS="-ldl $LIBS"
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply.
12446 The 'extern "C"' is for builds by C++ compilers;
12447 although this is not generally supported in C code supporting it here
12448 has little cost and some practical benefit (sr 110532). */
12449 #ifdef __cplusplus
12450 extern "C"
12451 #endif
12452 char dlopen (void);
12453 int
12454 main (void)
12455 {
12456 return dlopen ();
12457 ;
12458 return 0;
12459 }
12460 _ACEOF
12461 if ac_fn_c_try_link "$LINENO"
12462 then :
12463 ac_cv_lib_dl_dlopen=yes
12464 else case e in #(
12465 e) ac_cv_lib_dl_dlopen=no ;;
12466 esac
12467 fi
12468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12469 conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS ;;
12471 esac
12472 fi
12473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12474 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12475 if test "x$ac_cv_lib_dl_dlopen" = xyes
12476 then :
12477 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12478 else case e in #(
12479 e)
12480 lt_cv_dlopen=dyld
12481 lt_cv_dlopen_libs=
12482 lt_cv_dlopen_self=yes
12483 ;;
12484 esac
12485 fi
12486
12487 ;;
12488
12489 tpf*)
12490 # Don't try to run any link tests for TPF. We know it's impossible
12491 # because TPF is a cross-compiler, and we know how we open DSOs.
12492 lt_cv_dlopen=dlopen
12493 lt_cv_dlopen_libs=
12494 lt_cv_dlopen_self=no
12495 ;;
12496
12497 *)
12498 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12499 if test "x$ac_cv_func_shl_load" = xyes
12500 then :
12501 lt_cv_dlopen=shl_load
12502 else case e in #(
12503 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12504 printf %s "checking for shl_load in -ldld... " >&6; }
12505 if test ${ac_cv_lib_dld_shl_load+y}
12506 then :
12507 printf %s "(cached) " >&6
12508 else case e in #(
12509 e) ac_check_lib_save_LIBS=$LIBS
12510 LIBS="-ldld $LIBS"
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513
12514 /* Override any GCC internal prototype to avoid an error.
12515 Use char because int might match the return type of a GCC
12516 builtin and then its argument prototype would still apply.
12517 The 'extern "C"' is for builds by C++ compilers;
12518 although this is not generally supported in C code supporting it here
12519 has little cost and some practical benefit (sr 110532). */
12520 #ifdef __cplusplus
12521 extern "C"
12522 #endif
12523 char shl_load (void);
12524 int
12525 main (void)
12526 {
12527 return shl_load ();
12528 ;
12529 return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"
12533 then :
12534 ac_cv_lib_dld_shl_load=yes
12535 else case e in #(
12536 e) ac_cv_lib_dld_shl_load=no ;;
12537 esac
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12540 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS ;;
12542 esac
12543 fi
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12545 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12546 if test "x$ac_cv_lib_dld_shl_load" = xyes
12547 then :
12548 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12549 else case e in #(
12550 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12551 if test "x$ac_cv_func_dlopen" = xyes
12552 then :
12553 lt_cv_dlopen=dlopen
12554 else case e in #(
12555 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12556 printf %s "checking for dlopen in -ldl... " >&6; }
12557 if test ${ac_cv_lib_dl_dlopen+y}
12558 then :
12559 printf %s "(cached) " >&6
12560 else case e in #(
12561 e) ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-ldl $LIBS"
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply.
12569 The 'extern "C"' is for builds by C++ compilers;
12570 although this is not generally supported in C code supporting it here
12571 has little cost and some practical benefit (sr 110532). */
12572 #ifdef __cplusplus
12573 extern "C"
12574 #endif
12575 char dlopen (void);
12576 int
12577 main (void)
12578 {
12579 return dlopen ();
12580 ;
12581 return 0;
12582 }
12583 _ACEOF
12584 if ac_fn_c_try_link "$LINENO"
12585 then :
12586 ac_cv_lib_dl_dlopen=yes
12587 else case e in #(
12588 e) ac_cv_lib_dl_dlopen=no ;;
12589 esac
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12592 conftest$ac_exeext conftest.$ac_ext
12593 LIBS=$ac_check_lib_save_LIBS ;;
12594 esac
12595 fi
12596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12597 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12598 if test "x$ac_cv_lib_dl_dlopen" = xyes
12599 then :
12600 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12601 else case e in #(
12602 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12603 printf %s "checking for dlopen in -lsvld... " >&6; }
12604 if test ${ac_cv_lib_svld_dlopen+y}
12605 then :
12606 printf %s "(cached) " >&6
12607 else case e in #(
12608 e) ac_check_lib_save_LIBS=$LIBS
12609 LIBS="-lsvld $LIBS"
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612
12613 /* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply.
12616 The 'extern "C"' is for builds by C++ compilers;
12617 although this is not generally supported in C code supporting it here
12618 has little cost and some practical benefit (sr 110532). */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 char dlopen (void);
12623 int
12624 main (void)
12625 {
12626 return dlopen ();
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 if ac_fn_c_try_link "$LINENO"
12632 then :
12633 ac_cv_lib_svld_dlopen=yes
12634 else case e in #(
12635 e) ac_cv_lib_svld_dlopen=no ;;
12636 esac
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS ;;
12641 esac
12642 fi
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12644 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12645 if test "x$ac_cv_lib_svld_dlopen" = xyes
12646 then :
12647 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12648 else case e in #(
12649 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12650 printf %s "checking for dld_link in -ldld... " >&6; }
12651 if test ${ac_cv_lib_dld_dld_link+y}
12652 then :
12653 printf %s "(cached) " >&6
12654 else case e in #(
12655 e) ac_check_lib_save_LIBS=$LIBS
12656 LIBS="-ldld $LIBS"
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659
12660 /* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply.
12663 The 'extern "C"' is for builds by C++ compilers;
12664 although this is not generally supported in C code supporting it here
12665 has little cost and some practical benefit (sr 110532). */
12666 #ifdef __cplusplus
12667 extern "C"
12668 #endif
12669 char dld_link (void);
12670 int
12671 main (void)
12672 {
12673 return dld_link ();
12674 ;
12675 return 0;
12676 }
12677 _ACEOF
12678 if ac_fn_c_try_link "$LINENO"
12679 then :
12680 ac_cv_lib_dld_dld_link=yes
12681 else case e in #(
12682 e) ac_cv_lib_dld_dld_link=no ;;
12683 esac
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12686 conftest$ac_exeext conftest.$ac_ext
12687 LIBS=$ac_check_lib_save_LIBS ;;
12688 esac
12689 fi
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12691 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12692 if test "x$ac_cv_lib_dld_dld_link" = xyes
12693 then :
12694 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12695 fi
12696
12697 ;;
12698 esac
12699 fi
12700
12701 ;;
12702 esac
12703 fi
12704
12705 ;;
12706 esac
12707 fi
12708
12709 ;;
12710 esac
12711 fi
12712
12713 ;;
12714 esac
12715 fi
12716
12717 ;;
12718 esac
12719
12720 if test no = "$lt_cv_dlopen"; then
12721 enable_dlopen=no
12722 else
12723 enable_dlopen=yes
12724 fi
12725
12726 case $lt_cv_dlopen in
12727 dlopen)
12728 save_CPPFLAGS=$CPPFLAGS
12729 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12730
12731 save_LDFLAGS=$LDFLAGS
12732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12733
12734 save_LIBS=$LIBS
12735 LIBS="$lt_cv_dlopen_libs $LIBS"
12736
12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12738 printf %s "checking whether a program can dlopen itself... " >&6; }
12739 if test ${lt_cv_dlopen_self+y}
12740 then :
12741 printf %s "(cached) " >&6
12742 else case e in #(
12743 e) if test yes = "$cross_compiling"; then :
12744 lt_cv_dlopen_self=cross
12745 else
12746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12747 lt_status=$lt_dlunknown
12748 cat > conftest.$ac_ext <<_LT_EOF
12749 #line $LINENO "configure"
12750 #include "confdefs.h"
12751
12752 #if HAVE_DLFCN_H
12753 #include <dlfcn.h>
12754 #endif
12755
12756 #include <stdio.h>
12757
12758 #ifdef RTLD_GLOBAL
12759 # define LT_DLGLOBAL RTLD_GLOBAL
12760 #else
12761 # ifdef DL_GLOBAL
12762 # define LT_DLGLOBAL DL_GLOBAL
12763 # else
12764 # define LT_DLGLOBAL 0
12765 # endif
12766 #endif
12767
12768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12769 find out it does not work in some platform. */
12770 #ifndef LT_DLLAZY_OR_NOW
12771 # ifdef RTLD_LAZY
12772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12773 # else
12774 # ifdef DL_LAZY
12775 # define LT_DLLAZY_OR_NOW DL_LAZY
12776 # else
12777 # ifdef RTLD_NOW
12778 # define LT_DLLAZY_OR_NOW RTLD_NOW
12779 # else
12780 # ifdef DL_NOW
12781 # define LT_DLLAZY_OR_NOW DL_NOW
12782 # else
12783 # define LT_DLLAZY_OR_NOW 0
12784 # endif
12785 # endif
12786 # endif
12787 # endif
12788 #endif
12789
12790 /* When -fvisibility=hidden is used, assume the code has been annotated
12791 correspondingly for the symbols needed. */
12792 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12793 int fnord () __attribute__((visibility("default")));
12794 #endif
12795
12796 int fnord () { return 42; }
12797 int main ()
12798 {
12799 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12800 int status = $lt_dlunknown;
12801
12802 if (self)
12803 {
12804 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12805 else
12806 {
12807 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12808 else puts (dlerror ());
12809 }
12810 /* dlclose (self); */
12811 }
12812 else
12813 puts (dlerror ());
12814
12815 return status;
12816 }
12817 _LT_EOF
12818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12819 (eval $ac_link) 2>&5
12820 ac_status=$?
12821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12823 (./conftest; exit; ) >&5 2>/dev/null
12824 lt_status=$?
12825 case x$lt_status in
12826 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12827 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12828 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12829 esac
12830 else :
12831 # compilation failed
12832 lt_cv_dlopen_self=no
12833 fi
12834 fi
12835 rm -fr conftest*
12836
12837 ;;
12838 esac
12839 fi
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12841 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12842
12843 if test yes = "$lt_cv_dlopen_self"; then
12844 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12846 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12847 if test ${lt_cv_dlopen_self_static+y}
12848 then :
12849 printf %s "(cached) " >&6
12850 else case e in #(
12851 e) if test yes = "$cross_compiling"; then :
12852 lt_cv_dlopen_self_static=cross
12853 else
12854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12855 lt_status=$lt_dlunknown
12856 cat > conftest.$ac_ext <<_LT_EOF
12857 #line $LINENO "configure"
12858 #include "confdefs.h"
12859
12860 #if HAVE_DLFCN_H
12861 #include <dlfcn.h>
12862 #endif
12863
12864 #include <stdio.h>
12865
12866 #ifdef RTLD_GLOBAL
12867 # define LT_DLGLOBAL RTLD_GLOBAL
12868 #else
12869 # ifdef DL_GLOBAL
12870 # define LT_DLGLOBAL DL_GLOBAL
12871 # else
12872 # define LT_DLGLOBAL 0
12873 # endif
12874 #endif
12875
12876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12877 find out it does not work in some platform. */
12878 #ifndef LT_DLLAZY_OR_NOW
12879 # ifdef RTLD_LAZY
12880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12881 # else
12882 # ifdef DL_LAZY
12883 # define LT_DLLAZY_OR_NOW DL_LAZY
12884 # else
12885 # ifdef RTLD_NOW
12886 # define LT_DLLAZY_OR_NOW RTLD_NOW
12887 # else
12888 # ifdef DL_NOW
12889 # define LT_DLLAZY_OR_NOW DL_NOW
12890 # else
12891 # define LT_DLLAZY_OR_NOW 0
12892 # endif
12893 # endif
12894 # endif
12895 # endif
12896 #endif
12897
12898 /* When -fvisibility=hidden is used, assume the code has been annotated
12899 correspondingly for the symbols needed. */
12900 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12901 int fnord () __attribute__((visibility("default")));
12902 #endif
12903
12904 int fnord () { return 42; }
12905 int main ()
12906 {
12907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12908 int status = $lt_dlunknown;
12909
12910 if (self)
12911 {
12912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12913 else
12914 {
12915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12916 else puts (dlerror ());
12917 }
12918 /* dlclose (self); */
12919 }
12920 else
12921 puts (dlerror ());
12922
12923 return status;
12924 }
12925 _LT_EOF
12926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12927 (eval $ac_link) 2>&5
12928 ac_status=$?
12929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12930 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12931 (./conftest; exit; ) >&5 2>/dev/null
12932 lt_status=$?
12933 case x$lt_status in
12934 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12935 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12936 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12937 esac
12938 else :
12939 # compilation failed
12940 lt_cv_dlopen_self_static=no
12941 fi
12942 fi
12943 rm -fr conftest*
12944
12945 ;;
12946 esac
12947 fi
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12949 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12950 fi
12951
12952 CPPFLAGS=$save_CPPFLAGS
12953 LDFLAGS=$save_LDFLAGS
12954 LIBS=$save_LIBS
12955 ;;
12956 esac
12957
12958 case $lt_cv_dlopen_self in
12959 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12960 *) enable_dlopen_self=unknown ;;
12961 esac
12962
12963 case $lt_cv_dlopen_self_static in
12964 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12965 *) enable_dlopen_self_static=unknown ;;
12966 esac
12967 fi
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985 striplib=
12986 old_striplib=
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12988 printf %s "checking whether stripping libraries is possible... " >&6; }
12989 if test -z "$STRIP"; then
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 printf "%s\n" "no" >&6; }
12992 else
12993 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12994 old_striplib="$STRIP --strip-debug"
12995 striplib="$STRIP --strip-unneeded"
12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12997 printf "%s\n" "yes" >&6; }
12998 else
12999 case $host_os in
13000 darwin*)
13001 # FIXME - insert some real tests, host_os isn't really good enough
13002 striplib="$STRIP -x"
13003 old_striplib="$STRIP -S"
13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13005 printf "%s\n" "yes" >&6; }
13006 ;;
13007 freebsd*)
13008 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13009 old_striplib="$STRIP --strip-debug"
13010 striplib="$STRIP --strip-unneeded"
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13012 printf "%s\n" "yes" >&6; }
13013 else
13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 printf "%s\n" "no" >&6; }
13016 fi
13017 ;;
13018 *)
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 printf "%s\n" "no" >&6; }
13021 ;;
13022 esac
13023 fi
13024 fi
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037 # Report what library types will actually be built
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13039 printf %s "checking if libtool supports shared libraries... " >&6; }
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13041 printf "%s\n" "$can_build_shared" >&6; }
13042
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13044 printf %s "checking whether to build shared libraries... " >&6; }
13045 test no = "$can_build_shared" && enable_shared=no
13046
13047 # On AIX, shared libraries and static libraries use the same namespace, and
13048 # are all built from PIC.
13049 case $host_os in
13050 aix3*)
13051 test yes = "$enable_shared" && enable_static=no
13052 if test -n "$RANLIB"; then
13053 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13054 postinstall_cmds='$RANLIB $lib'
13055 fi
13056 ;;
13057
13058 aix[4-9]*)
13059 if test ia64 != "$host_cpu"; then
13060 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13061 yes,aix,yes) ;; # shared object as lib.so file only
13062 yes,svr4,*) ;; # shared object as lib.so archive member only
13063 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13064 esac
13065 fi
13066 ;;
13067 esac
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13069 printf "%s\n" "$enable_shared" >&6; }
13070
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13072 printf %s "checking whether to build static libraries... " >&6; }
13073 # Make sure either enable_shared or enable_static is yes.
13074 test yes = "$enable_shared" || enable_static=yes
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13076 printf "%s\n" "$enable_static" >&6; }
13077
13078
13079
13080
13081 fi
13082 ac_ext=c
13083 ac_cpp='$CPP $CPPFLAGS'
13084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13087
13088 CC=$lt_save_CC
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104 ac_config_commands="$ac_config_commands libtool"
13105
13106
13107
13108
13109 # Only expand once:
13110
13111
13112
13113 # Checks for libraries.
13114
13115
13116
13117
13118
13119
13120
13121 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13122 if test -n "$ac_tool_prefix"; then
13123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13124 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 printf %s "checking for $ac_word... " >&6; }
13127 if test ${ac_cv_path_PKG_CONFIG+y}
13128 then :
13129 printf %s "(cached) " >&6
13130 else case e in #(
13131 e) case $PKG_CONFIG in
13132 [\\/]* | ?:[\\/]*)
13133 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13134 ;;
13135 *)
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13138 do
13139 IFS=$as_save_IFS
13140 case $as_dir in #(((
13141 '') as_dir=./ ;;
13142 */) ;;
13143 *) as_dir=$as_dir/ ;;
13144 esac
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13147 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13149 break 2
13150 fi
13151 done
13152 done
13153 IFS=$as_save_IFS
13154
13155 ;;
13156 esac ;;
13157 esac
13158 fi
13159 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13160 if test -n "$PKG_CONFIG"; then
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13162 printf "%s\n" "$PKG_CONFIG" >&6; }
13163 else
13164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 printf "%s\n" "no" >&6; }
13166 fi
13167
13168
13169 fi
13170 if test -z "$ac_cv_path_PKG_CONFIG"; then
13171 ac_pt_PKG_CONFIG=$PKG_CONFIG
13172 # Extract the first word of "pkg-config", so it can be a program name with args.
13173 set dummy pkg-config; ac_word=$2
13174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 printf %s "checking for $ac_word... " >&6; }
13176 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13177 then :
13178 printf %s "(cached) " >&6
13179 else case e in #(
13180 e) case $ac_pt_PKG_CONFIG in
13181 [\\/]* | ?:[\\/]*)
13182 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13183 ;;
13184 *)
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188 IFS=$as_save_IFS
13189 case $as_dir in #(((
13190 '') as_dir=./ ;;
13191 */) ;;
13192 *) as_dir=$as_dir/ ;;
13193 esac
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13196 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13198 break 2
13199 fi
13200 done
13201 done
13202 IFS=$as_save_IFS
13203
13204 ;;
13205 esac ;;
13206 esac
13207 fi
13208 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13209 if test -n "$ac_pt_PKG_CONFIG"; then
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13211 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13212 else
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 printf "%s\n" "no" >&6; }
13215 fi
13216
13217 if test "x$ac_pt_PKG_CONFIG" = x; then
13218 PKG_CONFIG=""
13219 else
13220 case $cross_compiling:$ac_tool_warned in
13221 yes:)
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13224 ac_tool_warned=yes ;;
13225 esac
13226 PKG_CONFIG=$ac_pt_PKG_CONFIG
13227 fi
13228 else
13229 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13230 fi
13231
13232 fi
13233 if test -n "$PKG_CONFIG"; then
13234 _pkg_min_version=0.9.0
13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13236 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13237 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13239 printf "%s\n" "yes" >&6; }
13240 else
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 printf "%s\n" "no" >&6; }
13243 PKG_CONFIG=""
13244 fi
13245 fi
13246
13247 pkg_failed=no
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libplist-2.0 >= $LIBPLIST_VERSION" >&5
13249 printf %s "checking for libplist-2.0 >= $LIBPLIST_VERSION... " >&6; }
13250
13251 if test -n "$libplist_CFLAGS"; then
13252 pkg_cv_libplist_CFLAGS="$libplist_CFLAGS"
13253 elif test -n "$PKG_CONFIG"; then
13254 if test -n "$PKG_CONFIG" && \
13255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist-2.0 >= \$LIBPLIST_VERSION\""; } >&5
13256 ($PKG_CONFIG --exists --print-errors "libplist-2.0 >= $LIBPLIST_VERSION") 2>&5
13257 ac_status=$?
13258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13259 test $ac_status = 0; }; then
13260 pkg_cv_libplist_CFLAGS=`$PKG_CONFIG --cflags "libplist-2.0 >= $LIBPLIST_VERSION" 2>/dev/null`
13261 test "x$?" != "x0" && pkg_failed=yes
13262 else
13263 pkg_failed=yes
13264 fi
13265 else
13266 pkg_failed=untried
13267 fi
13268 if test -n "$libplist_LIBS"; then
13269 pkg_cv_libplist_LIBS="$libplist_LIBS"
13270 elif test -n "$PKG_CONFIG"; then
13271 if test -n "$PKG_CONFIG" && \
13272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist-2.0 >= \$LIBPLIST_VERSION\""; } >&5
13273 ($PKG_CONFIG --exists --print-errors "libplist-2.0 >= $LIBPLIST_VERSION") 2>&5
13274 ac_status=$?
13275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13276 test $ac_status = 0; }; then
13277 pkg_cv_libplist_LIBS=`$PKG_CONFIG --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>/dev/null`
13278 test "x$?" != "x0" && pkg_failed=yes
13279 else
13280 pkg_failed=yes
13281 fi
13282 else
13283 pkg_failed=untried
13284 fi
13285
13286
13287
13288 if test $pkg_failed = yes; then
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 printf "%s\n" "no" >&6; }
13291
13292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13293 _pkg_short_errors_supported=yes
13294 else
13295 _pkg_short_errors_supported=no
13296 fi
13297 if test $_pkg_short_errors_supported = yes; then
13298 libplist_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>&1`
13299 else
13300 libplist_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>&1`
13301 fi
13302 # Put the nasty error message in config.log where it belongs
13303 echo "$libplist_PKG_ERRORS" >&5
13304
13305 as_fn_error $? "Package requirements (libplist-2.0 >= $LIBPLIST_VERSION) were not met:
13306
13307 $libplist_PKG_ERRORS
13308
13309 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13310 installed software in a non-standard prefix.
13311
13312 Alternatively, you may set the environment variables libplist_CFLAGS
13313 and libplist_LIBS to avoid the need to call pkg-config.
13314 See the pkg-config man page for more details." "$LINENO" 5
13315 elif test $pkg_failed = untried; then
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 printf "%s\n" "no" >&6; }
13318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13319 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13320 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13321 is in your PATH or set the PKG_CONFIG environment variable to the full
13322 path to pkg-config.
13323
13324 Alternatively, you may set the environment variables libplist_CFLAGS
13325 and libplist_LIBS to avoid the need to call pkg-config.
13326 See the pkg-config man page for more details.
13327
13328 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13329 See 'config.log' for more details" "$LINENO" 5; }
13330 else
13331 libplist_CFLAGS=$pkg_cv_libplist_CFLAGS
13332 libplist_LIBS=$pkg_cv_libplist_LIBS
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334 printf "%s\n" "yes" >&6; }
13335
13336 fi
13337
13338 # Checks for header files.
13339 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13340 if test "x$ac_cv_header_stdint_h" = xyes
13341 then :
13342 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13343
13344 fi
13345 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13346 if test "x$ac_cv_header_stdlib_h" = xyes
13347 then :
13348 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13349
13350 fi
13351 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
13352 if test "x$ac_cv_header_string_h" = xyes
13353 then :
13354 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
13355
13356 fi
13357
13358
13359 # Checks for typedefs, structures, and compiler characteristics.
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13361 printf %s "checking for an ANSI C-conforming const... " >&6; }
13362 if test ${ac_cv_c_const+y}
13363 then :
13364 printf %s "(cached) " >&6
13365 else case e in #(
13366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368
13369 int
13370 main (void)
13371 {
13372
13373 #ifndef __cplusplus
13374 /* Ultrix mips cc rejects this sort of thing. */
13375 typedef int charset[2];
13376 const charset cs = { 0, 0 };
13377 /* SunOS 4.1.1 cc rejects this. */
13378 char const *const *pcpcc;
13379 char **ppc;
13380 /* NEC SVR4.0.2 mips cc rejects this. */
13381 struct point {int x, y;};
13382 static struct point const zero = {0,0};
13383 /* IBM XL C 1.02.0.0 rejects this.
13384 It does not let you subtract one const X* pointer from another in
13385 an arm of an if-expression whose if-part is not a constant
13386 expression */
13387 const char *g = "string";
13388 pcpcc = &g + (g ? g-g : 0);
13389 /* HPUX 7.0 cc rejects these. */
13390 ++pcpcc;
13391 ppc = (char**) pcpcc;
13392 pcpcc = (char const *const *) ppc;
13393 { /* SCO 3.2v4 cc rejects this sort of thing. */
13394 char tx;
13395 char *t = &tx;
13396 char const *s = 0 ? (char *) 0 : (char const *) 0;
13397
13398 *t++ = 0;
13399 if (s) return 0;
13400 }
13401 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13402 int x[] = {25, 17};
13403 const int *foo = &x[0];
13404 ++foo;
13405 }
13406 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13407 typedef const int *iptr;
13408 iptr p = 0;
13409 ++p;
13410 }
13411 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13413 struct s { int j; const int *ap[3]; } bx;
13414 struct s *b = &bx; b->j = 5;
13415 }
13416 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13417 const int foo = 10;
13418 if (!foo) return 0;
13419 }
13420 return !cs[0] && !zero.x;
13421 #endif
13422
13423 ;
13424 return 0;
13425 }
13426 _ACEOF
13427 if ac_fn_c_try_compile "$LINENO"
13428 then :
13429 ac_cv_c_const=yes
13430 else case e in #(
13431 e) ac_cv_c_const=no ;;
13432 esac
13433 fi
13434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13435 esac
13436 fi
13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13438 printf "%s\n" "$ac_cv_c_const" >&6; }
13439 if test $ac_cv_c_const = no; then
13440
13441 printf "%s\n" "#define const /**/" >>confdefs.h
13442
13443 fi
13444
13445 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13446 if test "x$ac_cv_type_size_t" = xyes
13447 then :
13448
13449 else case e in #(
13450 e)
13451 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13452 ;;
13453 esac
13454 fi
13455
13456 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13457 if test "x$ac_cv_type_ssize_t" = xyes
13458 then :
13459
13460 else case e in #(
13461 e)
13462 printf "%s\n" "#define ssize_t int" >>confdefs.h
13463 ;;
13464 esac
13465 fi
13466
13467 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13468 case $ac_cv_c_uint16_t in #(
13469 no|yes) ;; #(
13470 *)
13471
13472
13473 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
13474 ;;
13475 esac
13476
13477 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13478 case $ac_cv_c_uint32_t in #(
13479 no|yes) ;; #(
13480 *)
13481
13482 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
13483
13484
13485 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
13486 ;;
13487 esac
13488
13489 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13490 case $ac_cv_c_uint8_t in #(
13491 no|yes) ;; #(
13492 *)
13493
13494 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
13495
13496
13497 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
13498 ;;
13499 esac
13500
13501
13502 # Checks for library functions.
13503 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
13504 if test "x$ac_cv_func_asprintf" = xyes
13505 then :
13506 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
13507
13508 fi
13509 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13510 if test "x$ac_cv_func_strcasecmp" = xyes
13511 then :
13512 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13513
13514 fi
13515 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13516 if test "x$ac_cv_func_strdup" = xyes
13517 then :
13518 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13519
13520 fi
13521 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13522 if test "x$ac_cv_func_strerror" = xyes
13523 then :
13524 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
13525
13526 fi
13527 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
13528 if test "x$ac_cv_func_strndup" = xyes
13529 then :
13530 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
13531
13532 fi
13533 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13534 if test "x$ac_cv_func_stpcpy" = xyes
13535 then :
13536 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13537
13538 fi
13539 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
13540 if test "x$ac_cv_func_vasprintf" = xyes
13541 then :
13542 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
13543
13544 fi
13545 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
13546 if test "x$ac_cv_func_getifaddrs" = xyes
13547 then :
13548 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
13549
13550 fi
13551 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13552 if test "x$ac_cv_func_poll" = xyes
13553 then :
13554 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
13555
13556 fi
13557
13558 # Checks for additional library requirements
13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13560 printf %s "checking for library containing socket... " >&6; }
13561 if test ${ac_cv_search_socket+y}
13562 then :
13563 printf %s "(cached) " >&6
13564 else case e in #(
13565 e) ac_func_search_save_LIBS=$LIBS
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply.
13572 The 'extern "C"' is for builds by C++ compilers;
13573 although this is not generally supported in C code supporting it here
13574 has little cost and some practical benefit (sr 110532). */
13575 #ifdef __cplusplus
13576 extern "C"
13577 #endif
13578 char socket (void);
13579 int
13580 main (void)
13581 {
13582 return socket ();
13583 ;
13584 return 0;
13585 }
13586 _ACEOF
13587 for ac_lib in '' network
13588 do
13589 if test -z "$ac_lib"; then
13590 ac_res="none required"
13591 else
13592 ac_res=-l$ac_lib
13593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13594 fi
13595 if ac_fn_c_try_link "$LINENO"
13596 then :
13597 ac_cv_search_socket=$ac_res
13598 fi
13599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13600 conftest$ac_exeext
13601 if test ${ac_cv_search_socket+y}
13602 then :
13603 break
13604 fi
13605 done
13606 if test ${ac_cv_search_socket+y}
13607 then :
13608
13609 else case e in #(
13610 e) ac_cv_search_socket=no ;;
13611 esac
13612 fi
13613 rm conftest.$ac_ext
13614 LIBS=$ac_func_search_save_LIBS ;;
13615 esac
13616 fi
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13618 printf "%s\n" "$ac_cv_search_socket" >&6; }
13619 ac_res=$ac_cv_search_socket
13620 if test "$ac_res" != no
13621 then :
13622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13623
13624 fi
13625
13626
13627 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13628 if test "x$ac_cv_header_endian_h" = xyes
13629 then :
13630 ac_cv_have_endian_h="yes"
13631 else case e in #(
13632 e) ac_cv_have_endian_h="no" ;;
13633 esac
13634 fi
13635
13636 if test "x$ac_cv_have_endian_h" = "xno"; then
13637
13638 printf "%s\n" "#define __LITTLE_ENDIAN 1234" >>confdefs.h
13639
13640
13641 printf "%s\n" "#define __BIG_ENDIAN 4321" >>confdefs.h
13642
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13644 printf %s "checking whether byte ordering is bigendian... " >&6; }
13645 if test ${ac_cv_c_bigendian+y}
13646 then :
13647 printf %s "(cached) " >&6
13648 else case e in #(
13649 e) ac_cv_c_bigendian=unknown
13650 # See if we're dealing with a universal compiler.
13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652 /* end confdefs.h. */
13653 #ifndef __APPLE_CC__
13654 not a universal capable compiler
13655 #endif
13656 typedef int dummy;
13657
13658 _ACEOF
13659 if ac_fn_c_try_compile "$LINENO"
13660 then :
13661
13662 # Check for potential -arch flags. It is not universal unless
13663 # there are at least two -arch flags with different values.
13664 ac_arch=
13665 ac_prev=
13666 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13667 if test -n "$ac_prev"; then
13668 case $ac_word in
13669 i?86 | x86_64 | ppc | ppc64)
13670 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13671 ac_arch=$ac_word
13672 else
13673 ac_cv_c_bigendian=universal
13674 break
13675 fi
13676 ;;
13677 esac
13678 ac_prev=
13679 elif test "x$ac_word" = "x-arch"; then
13680 ac_prev=arch
13681 fi
13682 done
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13685 if test $ac_cv_c_bigendian = unknown; then
13686 # See if sys/param.h defines the BYTE_ORDER macro.
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 #include <sys/types.h>
13690 #include <sys/param.h>
13691
13692 int
13693 main (void)
13694 {
13695 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
13696 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
13697 && LITTLE_ENDIAN)
13698 bogus endian macros
13699 #endif
13700
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 if ac_fn_c_try_compile "$LINENO"
13706 then :
13707 # It does; now see whether it defined to BIG_ENDIAN or not.
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710 #include <sys/types.h>
13711 #include <sys/param.h>
13712
13713 int
13714 main (void)
13715 {
13716 #if BYTE_ORDER != BIG_ENDIAN
13717 not big endian
13718 #endif
13719
13720 ;
13721 return 0;
13722 }
13723 _ACEOF
13724 if ac_fn_c_try_compile "$LINENO"
13725 then :
13726 ac_cv_c_bigendian=yes
13727 else case e in #(
13728 e) ac_cv_c_bigendian=no ;;
13729 esac
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13734 fi
13735 if test $ac_cv_c_bigendian = unknown; then
13736 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 #include <limits.h>
13740
13741 int
13742 main (void)
13743 {
13744 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13745 bogus endian macros
13746 #endif
13747
13748 ;
13749 return 0;
13750 }
13751 _ACEOF
13752 if ac_fn_c_try_compile "$LINENO"
13753 then :
13754 # It does; now see whether it defined to _BIG_ENDIAN or not.
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 #include <limits.h>
13758
13759 int
13760 main (void)
13761 {
13762 #ifndef _BIG_ENDIAN
13763 not big endian
13764 #endif
13765
13766 ;
13767 return 0;
13768 }
13769 _ACEOF
13770 if ac_fn_c_try_compile "$LINENO"
13771 then :
13772 ac_cv_c_bigendian=yes
13773 else case e in #(
13774 e) ac_cv_c_bigendian=no ;;
13775 esac
13776 fi
13777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13780 fi
13781 if test $ac_cv_c_bigendian = unknown; then
13782 # Compile a test program.
13783 if test "$cross_compiling" = yes
13784 then :
13785 # Try to guess by grepping values from an object file.
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 unsigned short int ascii_mm[] =
13789 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13790 unsigned short int ascii_ii[] =
13791 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13792 int use_ascii (int i) {
13793 return ascii_mm[i] + ascii_ii[i];
13794 }
13795 unsigned short int ebcdic_ii[] =
13796 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13797 unsigned short int ebcdic_mm[] =
13798 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13799 int use_ebcdic (int i) {
13800 return ebcdic_mm[i] + ebcdic_ii[i];
13801 }
13802 int
13803 main (int argc, char **argv)
13804 {
13805 /* Intimidate the compiler so that it does not
13806 optimize the arrays away. */
13807 char *p = argv[0];
13808 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
13809 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
13810 return use_ascii (argc) == use_ebcdic (*p);
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"
13814 then :
13815 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
13816 ac_cv_c_bigendian=yes
13817 fi
13818 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
13819 if test "$ac_cv_c_bigendian" = unknown; then
13820 ac_cv_c_bigendian=no
13821 else
13822 # finding both strings is unlikely to happen, but who knows?
13823 ac_cv_c_bigendian=unknown
13824 fi
13825 fi
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13828 conftest$ac_exeext conftest.$ac_ext
13829 else case e in #(
13830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832 $ac_includes_default
13833 int
13834 main (void)
13835 {
13836
13837 /* Are we little or big endian? From Harbison&Steele. */
13838 union
13839 {
13840 long int l;
13841 char c[sizeof (long int)];
13842 } u;
13843 u.l = 1;
13844 return u.c[sizeof (long int) - 1] == 1;
13845
13846 ;
13847 return 0;
13848 }
13849 _ACEOF
13850 if ac_fn_c_try_run "$LINENO"
13851 then :
13852 ac_cv_c_bigendian=no
13853 else case e in #(
13854 e) ac_cv_c_bigendian=yes ;;
13855 esac
13856 fi
13857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13858 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13859 esac
13860 fi
13861
13862 fi ;;
13863 esac
13864 fi
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13866 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
13867 case $ac_cv_c_bigendian in #(
13868 yes)
13869 ac_cv_c_bigendian="yes";; #(
13870 no)
13871 ac_cv_c_bigendian="no" ;; #(
13872 universal)
13873
13874 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13875
13876 ;; #(
13877 *)
13878 as_fn_error $? "unknown endianness
13879 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13880 esac
13881
13882 if test "x$ac_cv_c_bigendian" = "xyes"; then
13883
13884 printf "%s\n" "#define __BYTE_ORDER 4321" >>confdefs.h
13885
13886 else
13887
13888 printf "%s\n" "#define __BYTE_ORDER 1234" >>confdefs.h
13889
13890 fi
13891 fi
13892
13893 # Check for operating system
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for platform-specific build settings" >&5
13895 printf %s "checking for platform-specific build settings... " >&6; }
13896 case ${host_os} in
13897 *mingw32*|*cygwin*)
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${host_os}" >&5
13899 printf "%s\n" "${host_os}" >&6; }
13900 win32=true
13901
13902 # Check whether --with-winver was given.
13903 if test ${with_winver+y}
13904 then :
13905 withval=$with_winver;
13906 case ${withval} in #(
13907 0x[0-9A-Fa-f]|0x[0-9A-Fa-f]*[0-9A-Fa-f]) :
13908 VAL=${withval} ;; #(
13909 '' | *[!0123456789]*) :
13910 VAL="" ;; #(
13911 [!0]*) :
13912 VAL=${withval} ;; #(
13913 *) :
13914 VAL=""
13915 ;;
13916 esac
13917 if test "x$VAL" != "x"
13918 then :
13919
13920
13921 printf "%s\n" "#define WINVER ${VAL}" >>confdefs.h
13922
13923
13924 printf "%s\n" "#define _WIN32_WINNT ${VAL}" >>confdefs.h
13925
13926
13927 else case e in #(
13928 e)
13929 as_fn_error $? "--with-winver expects a hexadecimal value like 0x0600, or a decimal, and must not be 0" "$LINENO" 5
13930 ;;
13931 esac
13932 fi
13933
13934 fi
13935
13936 ;;
13937 darwin*)
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${host_os}" >&5
13939 printf "%s\n" "${host_os}" >&6; }
13940 ac_ext=c
13941 ac_cpp='$CPP $CPPFLAGS'
13942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13946 printf %s "checking how to run the C preprocessor... " >&6; }
13947 # On Suns, sometimes $CPP names a directory.
13948 if test -n "$CPP" && test -d "$CPP"; then
13949 CPP=
13950 fi
13951 if test -z "$CPP"; then
13952 if test ${ac_cv_prog_CPP+y}
13953 then :
13954 printf %s "(cached) " >&6
13955 else case e in #(
13956 e) # Double quotes because $CC needs to be expanded
13957 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13958 do
13959 ac_preproc_ok=false
13960 for ac_c_preproc_warn_flag in '' yes
13961 do
13962 # Use a header file that comes with gcc, so configuring glibc
13963 # with a fresh cross-compiler works.
13964 # On the NeXT, cc -E runs the code through the compiler's parser,
13965 # not just through cpp. "Syntax error" is here to catch this case.
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968 #include <limits.h>
13969 Syntax error
13970 _ACEOF
13971 if ac_fn_c_try_cpp "$LINENO"
13972 then :
13973
13974 else case e in #(
13975 e) # Broken: fails on valid input.
13976 continue ;;
13977 esac
13978 fi
13979 rm -f conftest.err conftest.i conftest.$ac_ext
13980
13981 # OK, works on sane cases. Now check whether nonexistent headers
13982 # can be detected and how.
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 #include <ac_nonexistent.h>
13986 _ACEOF
13987 if ac_fn_c_try_cpp "$LINENO"
13988 then :
13989 # Broken: success on invalid input.
13990 continue
13991 else case e in #(
13992 e) # Passes both tests.
13993 ac_preproc_ok=:
13994 break ;;
13995 esac
13996 fi
13997 rm -f conftest.err conftest.i conftest.$ac_ext
13998
13999 done
14000 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14001 rm -f conftest.i conftest.err conftest.$ac_ext
14002 if $ac_preproc_ok
14003 then :
14004 break
14005 fi
14006
14007 done
14008 ac_cv_prog_CPP=$CPP
14009 ;;
14010 esac
14011 fi
14012 CPP=$ac_cv_prog_CPP
14013 else
14014 ac_cv_prog_CPP=$CPP
14015 fi
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14017 printf "%s\n" "$CPP" >&6; }
14018 ac_preproc_ok=false
14019 for ac_c_preproc_warn_flag in '' yes
14020 do
14021 # Use a header file that comes with gcc, so configuring glibc
14022 # with a fresh cross-compiler works.
14023 # On the NeXT, cc -E runs the code through the compiler's parser,
14024 # not just through cpp. "Syntax error" is here to catch this case.
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027 #include <limits.h>
14028 Syntax error
14029 _ACEOF
14030 if ac_fn_c_try_cpp "$LINENO"
14031 then :
14032
14033 else case e in #(
14034 e) # Broken: fails on valid input.
14035 continue ;;
14036 esac
14037 fi
14038 rm -f conftest.err conftest.i conftest.$ac_ext
14039
14040 # OK, works on sane cases. Now check whether nonexistent headers
14041 # can be detected and how.
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #include <ac_nonexistent.h>
14045 _ACEOF
14046 if ac_fn_c_try_cpp "$LINENO"
14047 then :
14048 # Broken: success on invalid input.
14049 continue
14050 else case e in #(
14051 e) # Passes both tests.
14052 ac_preproc_ok=:
14053 break ;;
14054 esac
14055 fi
14056 rm -f conftest.err conftest.i conftest.$ac_ext
14057
14058 done
14059 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14060 rm -f conftest.i conftest.err conftest.$ac_ext
14061 if $ac_preproc_ok
14062 then :
14063
14064 else case e in #(
14065 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14066 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14067 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14068 See 'config.log' for more details" "$LINENO" 5; } ;;
14069 esac
14070 fi
14071
14072 ac_ext=c
14073 ac_cpp='$CPP $CPPFLAGS'
14074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077
14078
14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
14080 printf %s "checking for egrep -e... " >&6; }
14081 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
14082 then :
14083 printf %s "(cached) " >&6
14084 else case e in #(
14085 e) if test -z "$EGREP_TRADITIONAL"; then
14086 ac_path_EGREP_TRADITIONAL_found=false
14087 # Loop through the user's path and test for each of PROGNAME-LIST
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14090 do
14091 IFS=$as_save_IFS
14092 case $as_dir in #(((
14093 '') as_dir=./ ;;
14094 */) ;;
14095 *) as_dir=$as_dir/ ;;
14096 esac
14097 for ac_prog in grep ggrep
14098 do
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
14101 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
14102 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
14103 # Check for GNU $ac_path_EGREP_TRADITIONAL
14104 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
14105 *GNU*)
14106 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
14107 #(
14108 *)
14109 ac_count=0
14110 printf %s 0123456789 >"conftest.in"
14111 while :
14112 do
14113 cat "conftest.in" "conftest.in" >"conftest.tmp"
14114 mv "conftest.tmp" "conftest.in"
14115 cp "conftest.in" "conftest.nl"
14116 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
14117 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14119 as_fn_arith $ac_count + 1 && ac_count=$as_val
14120 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
14121 # Best one so far, save it but keep looking for a better one
14122 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
14123 ac_path_EGREP_TRADITIONAL_max=$ac_count
14124 fi
14125 # 10*(2^10) chars as input seems more than enough
14126 test $ac_count -gt 10 && break
14127 done
14128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14129 esac
14130
14131 $ac_path_EGREP_TRADITIONAL_found && break 3
14132 done
14133 done
14134 done
14135 IFS=$as_save_IFS
14136 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
14137 :
14138 fi
14139 else
14140 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
14141 fi
14142
14143 if test "$ac_cv_path_EGREP_TRADITIONAL"
14144 then :
14145 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
14146 else case e in #(
14147 e) if test -z "$EGREP_TRADITIONAL"; then
14148 ac_path_EGREP_TRADITIONAL_found=false
14149 # Loop through the user's path and test for each of PROGNAME-LIST
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14152 do
14153 IFS=$as_save_IFS
14154 case $as_dir in #(((
14155 '') as_dir=./ ;;
14156 */) ;;
14157 *) as_dir=$as_dir/ ;;
14158 esac
14159 for ac_prog in egrep
14160 do
14161 for ac_exec_ext in '' $ac_executable_extensions; do
14162 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
14163 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
14164 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
14165 # Check for GNU $ac_path_EGREP_TRADITIONAL
14166 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
14167 *GNU*)
14168 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
14169 #(
14170 *)
14171 ac_count=0
14172 printf %s 0123456789 >"conftest.in"
14173 while :
14174 do
14175 cat "conftest.in" "conftest.in" >"conftest.tmp"
14176 mv "conftest.tmp" "conftest.in"
14177 cp "conftest.in" "conftest.nl"
14178 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
14179 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14181 as_fn_arith $ac_count + 1 && ac_count=$as_val
14182 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
14183 # Best one so far, save it but keep looking for a better one
14184 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
14185 ac_path_EGREP_TRADITIONAL_max=$ac_count
14186 fi
14187 # 10*(2^10) chars as input seems more than enough
14188 test $ac_count -gt 10 && break
14189 done
14190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14191 esac
14192
14193 $ac_path_EGREP_TRADITIONAL_found && break 3
14194 done
14195 done
14196 done
14197 IFS=$as_save_IFS
14198 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
14199 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14200 fi
14201 else
14202 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
14203 fi
14204 ;;
14205 esac
14206 fi ;;
14207 esac
14208 fi
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
14210 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
14211 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
14212
14213
14214
14215
14216
14217 ac_ext=c
14218 ac_cpp='$CPP $CPPFLAGS'
14219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14222
14223 ax_pthread_ok=no
14224
14225 # We used to check for pthread.h first, but this fails if pthread.h
14226 # requires special compiler flags (e.g. on Tru64 or Sequent).
14227 # It gets checked for in the link test anyway.
14228
14229 # First of all, check if the user has set any of the PTHREAD_LIBS,
14230 # etcetera environment variables, and if threads linking works using
14231 # them:
14232 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14233 ax_pthread_save_CC="$CC"
14234 ax_pthread_save_CFLAGS="$CFLAGS"
14235 ax_pthread_save_LIBS="$LIBS"
14236 if test "x$PTHREAD_CC" != "x"
14237 then :
14238 CC="$PTHREAD_CC"
14239 fi
14240 if test "x$PTHREAD_CXX" != "x"
14241 then :
14242 CXX="$PTHREAD_CXX"
14243 fi
14244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14245 LIBS="$PTHREAD_LIBS $LIBS"
14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14247 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250
14251 /* Override any GCC internal prototype to avoid an error.
14252 Use char because int might match the return type of a GCC
14253 builtin and then its argument prototype would still apply.
14254 The 'extern "C"' is for builds by C++ compilers;
14255 although this is not generally supported in C code supporting it here
14256 has little cost and some practical benefit (sr 110532). */
14257 #ifdef __cplusplus
14258 extern "C"
14259 #endif
14260 char pthread_join (void);
14261 int
14262 main (void)
14263 {
14264 return pthread_join ();
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 if ac_fn_c_try_link "$LINENO"
14270 then :
14271 ax_pthread_ok=yes
14272 fi
14273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14274 conftest$ac_exeext conftest.$ac_ext
14275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14276 printf "%s\n" "$ax_pthread_ok" >&6; }
14277 if test "x$ax_pthread_ok" = "xno"; then
14278 PTHREAD_LIBS=""
14279 PTHREAD_CFLAGS=""
14280 fi
14281 CC="$ax_pthread_save_CC"
14282 CFLAGS="$ax_pthread_save_CFLAGS"
14283 LIBS="$ax_pthread_save_LIBS"
14284 fi
14285
14286 # We must check for the threads library under a number of different
14287 # names; the ordering is very important because some systems
14288 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14289 # libraries is broken (non-POSIX).
14290
14291 # Create a list of thread flags to try. Items with a "," contain both
14292 # C compiler flags (before ",") and linker flags (after ","). Other items
14293 # starting with a "-" are C compiler flags, and remaining items are
14294 # library names, except for "none" which indicates that we try without
14295 # any flags at all, and "pthread-config" which is a program returning
14296 # the flags for the Pth emulation library.
14297
14298 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14299
14300 # The ordering *is* (sometimes) important. Some notes on the
14301 # individual items follow:
14302
14303 # pthreads: AIX (must check this before -lpthread)
14304 # none: in case threads are in libc; should be tried before -Kthread and
14305 # other compiler flags to prevent continual compiler warnings
14306 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14307 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14308 # (Note: HP C rejects this with "bad form for `-t' option")
14309 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14310 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14311 # doesn't hurt to check since this sometimes defines pthreads and
14312 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14313 # is present but should not be used directly; and before -mthreads,
14314 # because the compiler interprets this as "-mt" + "-hreads")
14315 # -mthreads: Mingw32/gcc, Lynx/gcc
14316 # pthread: Linux, etcetera
14317 # --thread-safe: KAI C++
14318 # pthread-config: use pthread-config program (for GNU Pth library)
14319
14320 case $host_os in
14321
14322 freebsd*)
14323
14324 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14325 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14326
14327 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
14328 ;;
14329
14330 hpux*)
14331
14332 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14333 # multi-threading and also sets -lpthread."
14334
14335 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
14336 ;;
14337
14338 openedition*)
14339
14340 # IBM z/OS requires a feature-test macro to be defined in order to
14341 # enable POSIX threads at all, so give the user a hint if this is
14342 # not set. (We don't define these ourselves, as they can affect
14343 # other portions of the system API in unpredictable ways.)
14344
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14347
14348 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14349 AX_PTHREAD_ZOS_MISSING
14350 # endif
14351
14352 _ACEOF
14353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14354 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
14355 then :
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14357 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14358 fi
14359 rm -rf conftest*
14360
14361 ;;
14362
14363 solaris*)
14364
14365 # On Solaris (at least, for some versions), libc contains stubbed
14366 # (non-functional) versions of the pthreads routines, so link-based
14367 # tests will erroneously succeed. (N.B.: The stubs are missing
14368 # pthread_cleanup_push, or rather a function called by this macro,
14369 # so we could check for that, but who knows whether they'll stub
14370 # that too in a future libc.) So we'll check first for the
14371 # standard Solaris way of linking pthreads (-mt -lpthread).
14372
14373 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
14374 ;;
14375 esac
14376
14377 # Are we compiling with Clang?
14378
14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14380 printf %s "checking whether $CC is Clang... " >&6; }
14381 if test ${ax_cv_PTHREAD_CLANG+y}
14382 then :
14383 printf %s "(cached) " >&6
14384 else case e in #(
14385 e) ax_cv_PTHREAD_CLANG=no
14386 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14387 if test "x$GCC" = "xyes"; then
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14391 # if defined(__clang__) && defined(__llvm__)
14392 AX_PTHREAD_CC_IS_CLANG
14393 # endif
14394
14395 _ACEOF
14396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14397 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
14398 then :
14399 ax_cv_PTHREAD_CLANG=yes
14400 fi
14401 rm -rf conftest*
14402
14403 fi
14404 ;;
14405 esac
14406 fi
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14408 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
14409 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
14410
14411
14412 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14413
14414 # Note that for GCC and Clang -pthread generally implies -lpthread,
14415 # except when -nostdlib is passed.
14416 # This is problematic using libtool to build C++ shared libraries with pthread:
14417 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
14418 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
14419 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
14420 # To solve this, first try -pthread together with -lpthread for GCC
14421
14422 if test "x$GCC" = "xyes"
14423 then :
14424 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
14425 fi
14426
14427 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
14428
14429 if test "x$ax_pthread_clang" = "xyes"
14430 then :
14431 ax_pthread_flags="-pthread,-lpthread -pthread"
14432 fi
14433
14434
14435 # The presence of a feature test macro requesting re-entrant function
14436 # definitions is, on some systems, a strong hint that pthreads support is
14437 # correctly enabled
14438
14439 case $host_os in
14440 darwin* | hpux* | linux* | osf* | solaris*)
14441 ax_pthread_check_macro="_REENTRANT"
14442 ;;
14443
14444 aix*)
14445 ax_pthread_check_macro="_THREAD_SAFE"
14446 ;;
14447
14448 *)
14449 ax_pthread_check_macro="--"
14450 ;;
14451 esac
14452 if test "x$ax_pthread_check_macro" = "x--"
14453 then :
14454 ax_pthread_check_cond=0
14455 else case e in #(
14456 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
14457 esac
14458 fi
14459
14460
14461 if test "x$ax_pthread_ok" = "xno"; then
14462 for ax_pthread_try_flag in $ax_pthread_flags; do
14463
14464 case $ax_pthread_try_flag in
14465 none)
14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14467 printf %s "checking whether pthreads work without any flags... " >&6; }
14468 ;;
14469
14470 *,*)
14471 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
14472 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
14474 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
14475 ;;
14476
14477 -*)
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14479 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14480 PTHREAD_CFLAGS="$ax_pthread_try_flag"
14481 ;;
14482
14483 pthread-config)
14484 # Extract the first word of "pthread-config", so it can be a program name with args.
14485 set dummy pthread-config; ac_word=$2
14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14487 printf %s "checking for $ac_word... " >&6; }
14488 if test ${ac_cv_prog_ax_pthread_config+y}
14489 then :
14490 printf %s "(cached) " >&6
14491 else case e in #(
14492 e) if test -n "$ax_pthread_config"; then
14493 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14494 else
14495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14496 for as_dir in $PATH
14497 do
14498 IFS=$as_save_IFS
14499 case $as_dir in #(((
14500 '') as_dir=./ ;;
14501 */) ;;
14502 *) as_dir=$as_dir/ ;;
14503 esac
14504 for ac_exec_ext in '' $ac_executable_extensions; do
14505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14506 ac_cv_prog_ax_pthread_config="yes"
14507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14508 break 2
14509 fi
14510 done
14511 done
14512 IFS=$as_save_IFS
14513
14514 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14515 fi ;;
14516 esac
14517 fi
14518 ax_pthread_config=$ac_cv_prog_ax_pthread_config
14519 if test -n "$ax_pthread_config"; then
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14521 printf "%s\n" "$ax_pthread_config" >&6; }
14522 else
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 printf "%s\n" "no" >&6; }
14525 fi
14526
14527
14528 if test "x$ax_pthread_config" = "xno"
14529 then :
14530 continue
14531 fi
14532 PTHREAD_CFLAGS="`pthread-config --cflags`"
14533 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14534 ;;
14535
14536 *)
14537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14538 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14539 PTHREAD_LIBS="-l$ax_pthread_try_flag"
14540 ;;
14541 esac
14542
14543 ax_pthread_save_CFLAGS="$CFLAGS"
14544 ax_pthread_save_LIBS="$LIBS"
14545 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14546 LIBS="$PTHREAD_LIBS $LIBS"
14547
14548 # Check for various functions. We must include pthread.h,
14549 # since some functions may be macros. (On the Sequent, we
14550 # need a special flag -Kthread to make this header compile.)
14551 # We check for pthread_join because it is in -lpthread on IRIX
14552 # while pthread_create is in libc. We check for pthread_attr_init
14553 # due to DEC craziness with -lpthreads. We check for
14554 # pthread_cleanup_push because it is one of the few pthread
14555 # functions on Solaris that doesn't have a non-functional libc stub.
14556 # We try pthread_create on general principles.
14557
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560 #include <pthread.h>
14561 # if $ax_pthread_check_cond
14562 # error "$ax_pthread_check_macro must be defined"
14563 # endif
14564 static void *some_global = NULL;
14565 static void routine(void *a)
14566 {
14567 /* To avoid any unused-parameter or
14568 unused-but-set-parameter warning. */
14569 some_global = a;
14570 }
14571 static void *start_routine(void *a) { return a; }
14572 int
14573 main (void)
14574 {
14575 pthread_t th; pthread_attr_t attr;
14576 pthread_create(&th, 0, start_routine, 0);
14577 pthread_join(th, 0);
14578 pthread_attr_init(&attr);
14579 pthread_cleanup_push(routine, 0);
14580 pthread_cleanup_pop(0) /* ; */
14581 ;
14582 return 0;
14583 }
14584 _ACEOF
14585 if ac_fn_c_try_link "$LINENO"
14586 then :
14587 ax_pthread_ok=yes
14588 fi
14589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14590 conftest$ac_exeext conftest.$ac_ext
14591
14592 CFLAGS="$ax_pthread_save_CFLAGS"
14593 LIBS="$ax_pthread_save_LIBS"
14594
14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14596 printf "%s\n" "$ax_pthread_ok" >&6; }
14597 if test "x$ax_pthread_ok" = "xyes"
14598 then :
14599 break
14600 fi
14601
14602 PTHREAD_LIBS=""
14603 PTHREAD_CFLAGS=""
14604 done
14605 fi
14606
14607
14608 # Clang needs special handling, because older versions handle the -pthread
14609 # option in a rather... idiosyncratic way
14610
14611 if test "x$ax_pthread_clang" = "xyes"; then
14612
14613 # Clang takes -pthread; it has never supported any other flag
14614
14615 # (Note 1: This will need to be revisited if a system that Clang
14616 # supports has POSIX threads in a separate library. This tends not
14617 # to be the way of modern systems, but it's conceivable.)
14618
14619 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14620 # to get POSIX threads support; the API is always present and
14621 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14622 # -pthread does define _REENTRANT, and while the Darwin headers
14623 # ignore this macro, third-party headers might not.)
14624
14625 # However, older versions of Clang make a point of warning the user
14626 # that, in an invocation where only linking and no compilation is
14627 # taking place, the -pthread option has no effect ("argument unused
14628 # during compilation"). They expect -pthread to be passed in only
14629 # when source code is being compiled.
14630 #
14631 # Problem is, this is at odds with the way Automake and most other
14632 # C build frameworks function, which is that the same flags used in
14633 # compilation (CFLAGS) are also used in linking. Many systems
14634 # supported by AX_PTHREAD require exactly this for POSIX threads
14635 # support, and in fact it is often not straightforward to specify a
14636 # flag that is used only in the compilation phase and not in
14637 # linking. Such a scenario is extremely rare in practice.
14638 #
14639 # Even though use of the -pthread flag in linking would only print
14640 # a warning, this can be a nuisance for well-run software projects
14641 # that build with -Werror. So if the active version of Clang has
14642 # this misfeature, we search for an option to squash it.
14643
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14645 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14646 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
14647 then :
14648 printf %s "(cached) " >&6
14649 else case e in #(
14650 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
14651 # Create an alternate version of $ac_link that compiles and
14652 # links in two steps (.c -> .o, .o -> exe) instead of one
14653 # (.c -> exe), because the warning occurs only in the second
14654 # step
14655 ax_pthread_save_ac_link="$ac_link"
14656 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14657 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
14658 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14659 ax_pthread_save_CFLAGS="$CFLAGS"
14660 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
14661 if test "x$ax_pthread_try" = "xunknown"
14662 then :
14663 break
14664 fi
14665 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14666 ac_link="$ax_pthread_save_ac_link"
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669 int main(void){return 0;}
14670 _ACEOF
14671 if ac_fn_c_try_link "$LINENO"
14672 then :
14673 ac_link="$ax_pthread_2step_ac_link"
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14676 int main(void){return 0;}
14677 _ACEOF
14678 if ac_fn_c_try_link "$LINENO"
14679 then :
14680 break
14681 fi
14682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14683 conftest$ac_exeext conftest.$ac_ext
14684
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14687 conftest$ac_exeext conftest.$ac_ext
14688 done
14689 ac_link="$ax_pthread_save_ac_link"
14690 CFLAGS="$ax_pthread_save_CFLAGS"
14691 if test "x$ax_pthread_try" = "x"
14692 then :
14693 ax_pthread_try=no
14694 fi
14695 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
14696 ;;
14697 esac
14698 fi
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14700 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14701
14702 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14703 no | unknown) ;;
14704 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14705 esac
14706
14707 fi # $ax_pthread_clang = yes
14708
14709
14710
14711 # Various other checks:
14712 if test "x$ax_pthread_ok" = "xyes"; then
14713 ax_pthread_save_CFLAGS="$CFLAGS"
14714 ax_pthread_save_LIBS="$LIBS"
14715 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14716 LIBS="$PTHREAD_LIBS $LIBS"
14717
14718 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14720 printf %s "checking for joinable pthread attribute... " >&6; }
14721 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
14722 then :
14723 printf %s "(cached) " >&6
14724 else case e in #(
14725 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
14726 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 #include <pthread.h>
14730 int
14731 main (void)
14732 {
14733 int attr = $ax_pthread_attr; return attr /* ; */
14734 ;
14735 return 0;
14736 }
14737 _ACEOF
14738 if ac_fn_c_try_link "$LINENO"
14739 then :
14740 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
14741 fi
14742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14743 conftest$ac_exeext conftest.$ac_ext
14744 done
14745 ;;
14746 esac
14747 fi
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14749 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14750 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14751 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14752 test "x$ax_pthread_joinable_attr_defined" != "xyes"
14753 then :
14754
14755 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
14756
14757 ax_pthread_joinable_attr_defined=yes
14758
14759 fi
14760
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14762 printf %s "checking whether more special flags are required for pthreads... " >&6; }
14763 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
14764 then :
14765 printf %s "(cached) " >&6
14766 else case e in #(
14767 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
14768 case $host_os in
14769 solaris*)
14770 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
14771 ;;
14772 esac
14773 ;;
14774 esac
14775 fi
14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14777 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14778 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14779 test "x$ax_pthread_special_flags_added" != "xyes"
14780 then :
14781 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14782 ax_pthread_special_flags_added=yes
14783 fi
14784
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14786 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14787 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
14788 then :
14789 printf %s "(cached) " >&6
14790 else case e in #(
14791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <pthread.h>
14794 int
14795 main (void)
14796 {
14797 int i = PTHREAD_PRIO_INHERIT;
14798 return i;
14799 ;
14800 return 0;
14801 }
14802 _ACEOF
14803 if ac_fn_c_try_link "$LINENO"
14804 then :
14805 ax_cv_PTHREAD_PRIO_INHERIT=yes
14806 else case e in #(
14807 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
14808 esac
14809 fi
14810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14811 conftest$ac_exeext conftest.$ac_ext
14812 ;;
14813 esac
14814 fi
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14816 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14817 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14818 test "x$ax_pthread_prio_inherit_defined" != "xyes"
14819 then :
14820
14821 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14822
14823 ax_pthread_prio_inherit_defined=yes
14824
14825 fi
14826
14827 CFLAGS="$ax_pthread_save_CFLAGS"
14828 LIBS="$ax_pthread_save_LIBS"
14829
14830 # More AIX lossage: compile with *_r variant
14831 if test "x$GCC" != "xyes"; then
14832 case $host_os in
14833 aix*)
14834 case "x/$CC" in #(
14835 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
14836 #handle absolute path differently from PATH based program lookup
14837 case "x$CC" in #(
14838 x/*) :
14839
14840 if as_fn_executable_p ${CC}_r
14841 then :
14842 PTHREAD_CC="${CC}_r"
14843 fi
14844 if test "x${CXX}" != "x"
14845 then :
14846 if as_fn_executable_p ${CXX}_r
14847 then :
14848 PTHREAD_CXX="${CXX}_r"
14849 fi
14850 fi
14851 ;; #(
14852 *) :
14853
14854 for ac_prog in ${CC}_r
14855 do
14856 # Extract the first word of "$ac_prog", so it can be a program name with args.
14857 set dummy $ac_prog; ac_word=$2
14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859 printf %s "checking for $ac_word... " >&6; }
14860 if test ${ac_cv_prog_PTHREAD_CC+y}
14861 then :
14862 printf %s "(cached) " >&6
14863 else case e in #(
14864 e) if test -n "$PTHREAD_CC"; then
14865 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14866 else
14867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14869 do
14870 IFS=$as_save_IFS
14871 case $as_dir in #(((
14872 '') as_dir=./ ;;
14873 */) ;;
14874 *) as_dir=$as_dir/ ;;
14875 esac
14876 for ac_exec_ext in '' $ac_executable_extensions; do
14877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14878 ac_cv_prog_PTHREAD_CC="$ac_prog"
14879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14880 break 2
14881 fi
14882 done
14883 done
14884 IFS=$as_save_IFS
14885
14886 fi ;;
14887 esac
14888 fi
14889 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14890 if test -n "$PTHREAD_CC"; then
14891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14892 printf "%s\n" "$PTHREAD_CC" >&6; }
14893 else
14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895 printf "%s\n" "no" >&6; }
14896 fi
14897
14898
14899 test -n "$PTHREAD_CC" && break
14900 done
14901 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14902
14903 if test "x${CXX}" != "x"
14904 then :
14905 for ac_prog in ${CXX}_r
14906 do
14907 # Extract the first word of "$ac_prog", so it can be a program name with args.
14908 set dummy $ac_prog; ac_word=$2
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14910 printf %s "checking for $ac_word... " >&6; }
14911 if test ${ac_cv_prog_PTHREAD_CXX+y}
14912 then :
14913 printf %s "(cached) " >&6
14914 else case e in #(
14915 e) if test -n "$PTHREAD_CXX"; then
14916 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
14917 else
14918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919 for as_dir in $PATH
14920 do
14921 IFS=$as_save_IFS
14922 case $as_dir in #(((
14923 '') as_dir=./ ;;
14924 */) ;;
14925 *) as_dir=$as_dir/ ;;
14926 esac
14927 for ac_exec_ext in '' $ac_executable_extensions; do
14928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14929 ac_cv_prog_PTHREAD_CXX="$ac_prog"
14930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14931 break 2
14932 fi
14933 done
14934 done
14935 IFS=$as_save_IFS
14936
14937 fi ;;
14938 esac
14939 fi
14940 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
14941 if test -n "$PTHREAD_CXX"; then
14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
14943 printf "%s\n" "$PTHREAD_CXX" >&6; }
14944 else
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946 printf "%s\n" "no" >&6; }
14947 fi
14948
14949
14950 test -n "$PTHREAD_CXX" && break
14951 done
14952 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
14953
14954 fi
14955
14956 ;;
14957 esac
14958 ;; #(
14959 *) :
14960 ;;
14961 esac
14962 ;;
14963 esac
14964 fi
14965 fi
14966
14967 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14968 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
14969
14970
14971
14972
14973
14974
14975 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14976 if test "x$ax_pthread_ok" = "xyes"; then
14977
14978 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
14979
14980 :
14981 else
14982 ax_pthread_ok=no
14983 as_fn_error $? "pthread is required to build $PACKAGE" "$LINENO" 5
14984 fi
14985 ac_ext=c
14986 ac_cpp='$CPP $CPPFLAGS'
14987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14990
14991
14992 ac_fn_c_check_func "$LINENO" "pthread_once" "ac_cv_func_pthread_once"
14993 if test "x$ac_cv_func_pthread_once" = xyes
14994 then :
14995 printf "%s\n" "#define HAVE_PTHREAD_ONCE 1" >>confdefs.h
14996
14997 fi
14998 ac_fn_c_check_func "$LINENO" "pthread_cancel" "ac_cv_func_pthread_cancel"
14999 if test "x$ac_cv_func_pthread_cancel" = xyes
15000 then :
15001 printf "%s\n" "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
15002
15003 fi
15004
15005 ;;
15006 *)
15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${host_os}" >&5
15008 printf "%s\n" "${host_os}" >&6; }
15009
15010
15011
15012
15013 ac_ext=c
15014 ac_cpp='$CPP $CPPFLAGS'
15015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15018
15019 ax_pthread_ok=no
15020
15021 # We used to check for pthread.h first, but this fails if pthread.h
15022 # requires special compiler flags (e.g. on Tru64 or Sequent).
15023 # It gets checked for in the link test anyway.
15024
15025 # First of all, check if the user has set any of the PTHREAD_LIBS,
15026 # etcetera environment variables, and if threads linking works using
15027 # them:
15028 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15029 ax_pthread_save_CC="$CC"
15030 ax_pthread_save_CFLAGS="$CFLAGS"
15031 ax_pthread_save_LIBS="$LIBS"
15032 if test "x$PTHREAD_CC" != "x"
15033 then :
15034 CC="$PTHREAD_CC"
15035 fi
15036 if test "x$PTHREAD_CXX" != "x"
15037 then :
15038 CXX="$PTHREAD_CXX"
15039 fi
15040 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15041 LIBS="$PTHREAD_LIBS $LIBS"
15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15043 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045 /* end confdefs.h. */
15046
15047 /* Override any GCC internal prototype to avoid an error.
15048 Use char because int might match the return type of a GCC
15049 builtin and then its argument prototype would still apply.
15050 The 'extern "C"' is for builds by C++ compilers;
15051 although this is not generally supported in C code supporting it here
15052 has little cost and some practical benefit (sr 110532). */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 char pthread_join (void);
15057 int
15058 main (void)
15059 {
15060 return pthread_join ();
15061 ;
15062 return 0;
15063 }
15064 _ACEOF
15065 if ac_fn_c_try_link "$LINENO"
15066 then :
15067 ax_pthread_ok=yes
15068 fi
15069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15070 conftest$ac_exeext conftest.$ac_ext
15071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15072 printf "%s\n" "$ax_pthread_ok" >&6; }
15073 if test "x$ax_pthread_ok" = "xno"; then
15074 PTHREAD_LIBS=""
15075 PTHREAD_CFLAGS=""
15076 fi
15077 CC="$ax_pthread_save_CC"
15078 CFLAGS="$ax_pthread_save_CFLAGS"
15079 LIBS="$ax_pthread_save_LIBS"
15080 fi
15081
15082 # We must check for the threads library under a number of different
15083 # names; the ordering is very important because some systems
15084 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15085 # libraries is broken (non-POSIX).
15086
15087 # Create a list of thread flags to try. Items with a "," contain both
15088 # C compiler flags (before ",") and linker flags (after ","). Other items
15089 # starting with a "-" are C compiler flags, and remaining items are
15090 # library names, except for "none" which indicates that we try without
15091 # any flags at all, and "pthread-config" which is a program returning
15092 # the flags for the Pth emulation library.
15093
15094 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15095
15096 # The ordering *is* (sometimes) important. Some notes on the
15097 # individual items follow:
15098
15099 # pthreads: AIX (must check this before -lpthread)
15100 # none: in case threads are in libc; should be tried before -Kthread and
15101 # other compiler flags to prevent continual compiler warnings
15102 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15103 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15104 # (Note: HP C rejects this with "bad form for `-t' option")
15105 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15106 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15107 # doesn't hurt to check since this sometimes defines pthreads and
15108 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15109 # is present but should not be used directly; and before -mthreads,
15110 # because the compiler interprets this as "-mt" + "-hreads")
15111 # -mthreads: Mingw32/gcc, Lynx/gcc
15112 # pthread: Linux, etcetera
15113 # --thread-safe: KAI C++
15114 # pthread-config: use pthread-config program (for GNU Pth library)
15115
15116 case $host_os in
15117
15118 freebsd*)
15119
15120 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15121 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15122
15123 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15124 ;;
15125
15126 hpux*)
15127
15128 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15129 # multi-threading and also sets -lpthread."
15130
15131 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15132 ;;
15133
15134 openedition*)
15135
15136 # IBM z/OS requires a feature-test macro to be defined in order to
15137 # enable POSIX threads at all, so give the user a hint if this is
15138 # not set. (We don't define these ourselves, as they can affect
15139 # other portions of the system API in unpredictable ways.)
15140
15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15143
15144 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15145 AX_PTHREAD_ZOS_MISSING
15146 # endif
15147
15148 _ACEOF
15149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15150 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
15151 then :
15152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15153 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15154 fi
15155 rm -rf conftest*
15156
15157 ;;
15158
15159 solaris*)
15160
15161 # On Solaris (at least, for some versions), libc contains stubbed
15162 # (non-functional) versions of the pthreads routines, so link-based
15163 # tests will erroneously succeed. (N.B.: The stubs are missing
15164 # pthread_cleanup_push, or rather a function called by this macro,
15165 # so we could check for that, but who knows whether they'll stub
15166 # that too in a future libc.) So we'll check first for the
15167 # standard Solaris way of linking pthreads (-mt -lpthread).
15168
15169 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
15170 ;;
15171 esac
15172
15173 # Are we compiling with Clang?
15174
15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15176 printf %s "checking whether $CC is Clang... " >&6; }
15177 if test ${ax_cv_PTHREAD_CLANG+y}
15178 then :
15179 printf %s "(cached) " >&6
15180 else case e in #(
15181 e) ax_cv_PTHREAD_CLANG=no
15182 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15183 if test "x$GCC" = "xyes"; then
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15186 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15187 # if defined(__clang__) && defined(__llvm__)
15188 AX_PTHREAD_CC_IS_CLANG
15189 # endif
15190
15191 _ACEOF
15192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15193 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
15194 then :
15195 ax_cv_PTHREAD_CLANG=yes
15196 fi
15197 rm -rf conftest*
15198
15199 fi
15200 ;;
15201 esac
15202 fi
15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15204 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
15205 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15206
15207
15208 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15209
15210 # Note that for GCC and Clang -pthread generally implies -lpthread,
15211 # except when -nostdlib is passed.
15212 # This is problematic using libtool to build C++ shared libraries with pthread:
15213 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
15214 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
15215 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
15216 # To solve this, first try -pthread together with -lpthread for GCC
15217
15218 if test "x$GCC" = "xyes"
15219 then :
15220 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
15221 fi
15222
15223 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
15224
15225 if test "x$ax_pthread_clang" = "xyes"
15226 then :
15227 ax_pthread_flags="-pthread,-lpthread -pthread"
15228 fi
15229
15230
15231 # The presence of a feature test macro requesting re-entrant function
15232 # definitions is, on some systems, a strong hint that pthreads support is
15233 # correctly enabled
15234
15235 case $host_os in
15236 darwin* | hpux* | linux* | osf* | solaris*)
15237 ax_pthread_check_macro="_REENTRANT"
15238 ;;
15239
15240 aix*)
15241 ax_pthread_check_macro="_THREAD_SAFE"
15242 ;;
15243
15244 *)
15245 ax_pthread_check_macro="--"
15246 ;;
15247 esac
15248 if test "x$ax_pthread_check_macro" = "x--"
15249 then :
15250 ax_pthread_check_cond=0
15251 else case e in #(
15252 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
15253 esac
15254 fi
15255
15256
15257 if test "x$ax_pthread_ok" = "xno"; then
15258 for ax_pthread_try_flag in $ax_pthread_flags; do
15259
15260 case $ax_pthread_try_flag in
15261 none)
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15263 printf %s "checking whether pthreads work without any flags... " >&6; }
15264 ;;
15265
15266 *,*)
15267 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
15268 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
15270 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
15271 ;;
15272
15273 -*)
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15275 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15276 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15277 ;;
15278
15279 pthread-config)
15280 # Extract the first word of "pthread-config", so it can be a program name with args.
15281 set dummy pthread-config; ac_word=$2
15282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15283 printf %s "checking for $ac_word... " >&6; }
15284 if test ${ac_cv_prog_ax_pthread_config+y}
15285 then :
15286 printf %s "(cached) " >&6
15287 else case e in #(
15288 e) if test -n "$ax_pthread_config"; then
15289 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15290 else
15291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15292 for as_dir in $PATH
15293 do
15294 IFS=$as_save_IFS
15295 case $as_dir in #(((
15296 '') as_dir=./ ;;
15297 */) ;;
15298 *) as_dir=$as_dir/ ;;
15299 esac
15300 for ac_exec_ext in '' $ac_executable_extensions; do
15301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15302 ac_cv_prog_ax_pthread_config="yes"
15303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15304 break 2
15305 fi
15306 done
15307 done
15308 IFS=$as_save_IFS
15309
15310 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15311 fi ;;
15312 esac
15313 fi
15314 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15315 if test -n "$ax_pthread_config"; then
15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15317 printf "%s\n" "$ax_pthread_config" >&6; }
15318 else
15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320 printf "%s\n" "no" >&6; }
15321 fi
15322
15323
15324 if test "x$ax_pthread_config" = "xno"
15325 then :
15326 continue
15327 fi
15328 PTHREAD_CFLAGS="`pthread-config --cflags`"
15329 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15330 ;;
15331
15332 *)
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15334 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15335 PTHREAD_LIBS="-l$ax_pthread_try_flag"
15336 ;;
15337 esac
15338
15339 ax_pthread_save_CFLAGS="$CFLAGS"
15340 ax_pthread_save_LIBS="$LIBS"
15341 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15342 LIBS="$PTHREAD_LIBS $LIBS"
15343
15344 # Check for various functions. We must include pthread.h,
15345 # since some functions may be macros. (On the Sequent, we
15346 # need a special flag -Kthread to make this header compile.)
15347 # We check for pthread_join because it is in -lpthread on IRIX
15348 # while pthread_create is in libc. We check for pthread_attr_init
15349 # due to DEC craziness with -lpthreads. We check for
15350 # pthread_cleanup_push because it is one of the few pthread
15351 # functions on Solaris that doesn't have a non-functional libc stub.
15352 # We try pthread_create on general principles.
15353
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15356 #include <pthread.h>
15357 # if $ax_pthread_check_cond
15358 # error "$ax_pthread_check_macro must be defined"
15359 # endif
15360 static void *some_global = NULL;
15361 static void routine(void *a)
15362 {
15363 /* To avoid any unused-parameter or
15364 unused-but-set-parameter warning. */
15365 some_global = a;
15366 }
15367 static void *start_routine(void *a) { return a; }
15368 int
15369 main (void)
15370 {
15371 pthread_t th; pthread_attr_t attr;
15372 pthread_create(&th, 0, start_routine, 0);
15373 pthread_join(th, 0);
15374 pthread_attr_init(&attr);
15375 pthread_cleanup_push(routine, 0);
15376 pthread_cleanup_pop(0) /* ; */
15377 ;
15378 return 0;
15379 }
15380 _ACEOF
15381 if ac_fn_c_try_link "$LINENO"
15382 then :
15383 ax_pthread_ok=yes
15384 fi
15385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15386 conftest$ac_exeext conftest.$ac_ext
15387
15388 CFLAGS="$ax_pthread_save_CFLAGS"
15389 LIBS="$ax_pthread_save_LIBS"
15390
15391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15392 printf "%s\n" "$ax_pthread_ok" >&6; }
15393 if test "x$ax_pthread_ok" = "xyes"
15394 then :
15395 break
15396 fi
15397
15398 PTHREAD_LIBS=""
15399 PTHREAD_CFLAGS=""
15400 done
15401 fi
15402
15403
15404 # Clang needs special handling, because older versions handle the -pthread
15405 # option in a rather... idiosyncratic way
15406
15407 if test "x$ax_pthread_clang" = "xyes"; then
15408
15409 # Clang takes -pthread; it has never supported any other flag
15410
15411 # (Note 1: This will need to be revisited if a system that Clang
15412 # supports has POSIX threads in a separate library. This tends not
15413 # to be the way of modern systems, but it's conceivable.)
15414
15415 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15416 # to get POSIX threads support; the API is always present and
15417 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15418 # -pthread does define _REENTRANT, and while the Darwin headers
15419 # ignore this macro, third-party headers might not.)
15420
15421 # However, older versions of Clang make a point of warning the user
15422 # that, in an invocation where only linking and no compilation is
15423 # taking place, the -pthread option has no effect ("argument unused
15424 # during compilation"). They expect -pthread to be passed in only
15425 # when source code is being compiled.
15426 #
15427 # Problem is, this is at odds with the way Automake and most other
15428 # C build frameworks function, which is that the same flags used in
15429 # compilation (CFLAGS) are also used in linking. Many systems
15430 # supported by AX_PTHREAD require exactly this for POSIX threads
15431 # support, and in fact it is often not straightforward to specify a
15432 # flag that is used only in the compilation phase and not in
15433 # linking. Such a scenario is extremely rare in practice.
15434 #
15435 # Even though use of the -pthread flag in linking would only print
15436 # a warning, this can be a nuisance for well-run software projects
15437 # that build with -Werror. So if the active version of Clang has
15438 # this misfeature, we search for an option to squash it.
15439
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15441 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15442 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
15443 then :
15444 printf %s "(cached) " >&6
15445 else case e in #(
15446 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15447 # Create an alternate version of $ac_link that compiles and
15448 # links in two steps (.c -> .o, .o -> exe) instead of one
15449 # (.c -> exe), because the warning occurs only in the second
15450 # step
15451 ax_pthread_save_ac_link="$ac_link"
15452 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15453 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
15454 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15455 ax_pthread_save_CFLAGS="$CFLAGS"
15456 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15457 if test "x$ax_pthread_try" = "xunknown"
15458 then :
15459 break
15460 fi
15461 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15462 ac_link="$ax_pthread_save_ac_link"
15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15465 int main(void){return 0;}
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"
15468 then :
15469 ac_link="$ax_pthread_2step_ac_link"
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472 int main(void){return 0;}
15473 _ACEOF
15474 if ac_fn_c_try_link "$LINENO"
15475 then :
15476 break
15477 fi
15478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15479 conftest$ac_exeext conftest.$ac_ext
15480
15481 fi
15482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15483 conftest$ac_exeext conftest.$ac_ext
15484 done
15485 ac_link="$ax_pthread_save_ac_link"
15486 CFLAGS="$ax_pthread_save_CFLAGS"
15487 if test "x$ax_pthread_try" = "x"
15488 then :
15489 ax_pthread_try=no
15490 fi
15491 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15492 ;;
15493 esac
15494 fi
15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15496 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15497
15498 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15499 no | unknown) ;;
15500 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15501 esac
15502
15503 fi # $ax_pthread_clang = yes
15504
15505
15506
15507 # Various other checks:
15508 if test "x$ax_pthread_ok" = "xyes"; then
15509 ax_pthread_save_CFLAGS="$CFLAGS"
15510 ax_pthread_save_LIBS="$LIBS"
15511 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15512 LIBS="$PTHREAD_LIBS $LIBS"
15513
15514 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15516 printf %s "checking for joinable pthread attribute... " >&6; }
15517 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
15518 then :
15519 printf %s "(cached) " >&6
15520 else case e in #(
15521 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15522 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15525 #include <pthread.h>
15526 int
15527 main (void)
15528 {
15529 int attr = $ax_pthread_attr; return attr /* ; */
15530 ;
15531 return 0;
15532 }
15533 _ACEOF
15534 if ac_fn_c_try_link "$LINENO"
15535 then :
15536 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
15537 fi
15538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15539 conftest$ac_exeext conftest.$ac_ext
15540 done
15541 ;;
15542 esac
15543 fi
15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
15545 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
15546 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
15547 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
15548 test "x$ax_pthread_joinable_attr_defined" != "xyes"
15549 then :
15550
15551 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
15552
15553 ax_pthread_joinable_attr_defined=yes
15554
15555 fi
15556
15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
15558 printf %s "checking whether more special flags are required for pthreads... " >&6; }
15559 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
15560 then :
15561 printf %s "(cached) " >&6
15562 else case e in #(
15563 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
15564 case $host_os in
15565 solaris*)
15566 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
15567 ;;
15568 esac
15569 ;;
15570 esac
15571 fi
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
15573 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
15574 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
15575 test "x$ax_pthread_special_flags_added" != "xyes"
15576 then :
15577 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
15578 ax_pthread_special_flags_added=yes
15579 fi
15580
15581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15582 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15583 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
15584 then :
15585 printf %s "(cached) " >&6
15586 else case e in #(
15587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15589 #include <pthread.h>
15590 int
15591 main (void)
15592 {
15593 int i = PTHREAD_PRIO_INHERIT;
15594 return i;
15595 ;
15596 return 0;
15597 }
15598 _ACEOF
15599 if ac_fn_c_try_link "$LINENO"
15600 then :
15601 ax_cv_PTHREAD_PRIO_INHERIT=yes
15602 else case e in #(
15603 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
15604 esac
15605 fi
15606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15607 conftest$ac_exeext conftest.$ac_ext
15608 ;;
15609 esac
15610 fi
15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15612 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15613 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
15614 test "x$ax_pthread_prio_inherit_defined" != "xyes"
15615 then :
15616
15617 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15618
15619 ax_pthread_prio_inherit_defined=yes
15620
15621 fi
15622
15623 CFLAGS="$ax_pthread_save_CFLAGS"
15624 LIBS="$ax_pthread_save_LIBS"
15625
15626 # More AIX lossage: compile with *_r variant
15627 if test "x$GCC" != "xyes"; then
15628 case $host_os in
15629 aix*)
15630 case "x/$CC" in #(
15631 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15632 #handle absolute path differently from PATH based program lookup
15633 case "x$CC" in #(
15634 x/*) :
15635
15636 if as_fn_executable_p ${CC}_r
15637 then :
15638 PTHREAD_CC="${CC}_r"
15639 fi
15640 if test "x${CXX}" != "x"
15641 then :
15642 if as_fn_executable_p ${CXX}_r
15643 then :
15644 PTHREAD_CXX="${CXX}_r"
15645 fi
15646 fi
15647 ;; #(
15648 *) :
15649
15650 for ac_prog in ${CC}_r
15651 do
15652 # Extract the first word of "$ac_prog", so it can be a program name with args.
15653 set dummy $ac_prog; ac_word=$2
15654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15655 printf %s "checking for $ac_word... " >&6; }
15656 if test ${ac_cv_prog_PTHREAD_CC+y}
15657 then :
15658 printf %s "(cached) " >&6
15659 else case e in #(
15660 e) if test -n "$PTHREAD_CC"; then
15661 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15662 else
15663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15664 for as_dir in $PATH
15665 do
15666 IFS=$as_save_IFS
15667 case $as_dir in #(((
15668 '') as_dir=./ ;;
15669 */) ;;
15670 *) as_dir=$as_dir/ ;;
15671 esac
15672 for ac_exec_ext in '' $ac_executable_extensions; do
15673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15674 ac_cv_prog_PTHREAD_CC="$ac_prog"
15675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15676 break 2
15677 fi
15678 done
15679 done
15680 IFS=$as_save_IFS
15681
15682 fi ;;
15683 esac
15684 fi
15685 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15686 if test -n "$PTHREAD_CC"; then
15687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15688 printf "%s\n" "$PTHREAD_CC" >&6; }
15689 else
15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 printf "%s\n" "no" >&6; }
15692 fi
15693
15694
15695 test -n "$PTHREAD_CC" && break
15696 done
15697 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15698
15699 if test "x${CXX}" != "x"
15700 then :
15701 for ac_prog in ${CXX}_r
15702 do
15703 # Extract the first word of "$ac_prog", so it can be a program name with args.
15704 set dummy $ac_prog; ac_word=$2
15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15706 printf %s "checking for $ac_word... " >&6; }
15707 if test ${ac_cv_prog_PTHREAD_CXX+y}
15708 then :
15709 printf %s "(cached) " >&6
15710 else case e in #(
15711 e) if test -n "$PTHREAD_CXX"; then
15712 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
15713 else
15714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15715 for as_dir in $PATH
15716 do
15717 IFS=$as_save_IFS
15718 case $as_dir in #(((
15719 '') as_dir=./ ;;
15720 */) ;;
15721 *) as_dir=$as_dir/ ;;
15722 esac
15723 for ac_exec_ext in '' $ac_executable_extensions; do
15724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15725 ac_cv_prog_PTHREAD_CXX="$ac_prog"
15726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15727 break 2
15728 fi
15729 done
15730 done
15731 IFS=$as_save_IFS
15732
15733 fi ;;
15734 esac
15735 fi
15736 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
15737 if test -n "$PTHREAD_CXX"; then
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
15739 printf "%s\n" "$PTHREAD_CXX" >&6; }
15740 else
15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15742 printf "%s\n" "no" >&6; }
15743 fi
15744
15745
15746 test -n "$PTHREAD_CXX" && break
15747 done
15748 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
15749
15750 fi
15751
15752 ;;
15753 esac
15754 ;; #(
15755 *) :
15756 ;;
15757 esac
15758 ;;
15759 esac
15760 fi
15761 fi
15762
15763 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15764 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
15765
15766
15767
15768
15769
15770
15771 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15772 if test "x$ax_pthread_ok" = "xyes"; then
15773
15774 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
15775
15776 :
15777 else
15778 ax_pthread_ok=no
15779 as_fn_error $? "pthread is required to build $PACKAGE_NAME" "$LINENO" 5
15780 fi
15781 ac_ext=c
15782 ac_cpp='$CPP $CPPFLAGS'
15783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15786
15787
15788 ac_fn_c_check_func "$LINENO" "pthread_cancel" "ac_cv_func_pthread_cancel"
15789 if test "x$ac_cv_func_pthread_cancel" = xyes
15790 then :
15791 printf "%s\n" "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
15792
15793 else case e in #(
15794 e)
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cancel in -lpthread" >&5
15796 printf %s "checking for pthread_cancel in -lpthread... " >&6; }
15797 if test ${ac_cv_lib_pthread_pthread_cancel+y}
15798 then :
15799 printf %s "(cached) " >&6
15800 else case e in #(
15801 e) ac_check_lib_save_LIBS=$LIBS
15802 LIBS="-lpthread $LIBS"
15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805
15806 /* Override any GCC internal prototype to avoid an error.
15807 Use char because int might match the return type of a GCC
15808 builtin and then its argument prototype would still apply.
15809 The 'extern "C"' is for builds by C++ compilers;
15810 although this is not generally supported in C code supporting it here
15811 has little cost and some practical benefit (sr 110532). */
15812 #ifdef __cplusplus
15813 extern "C"
15814 #endif
15815 char pthread_cancel (void);
15816 int
15817 main (void)
15818 {
15819 return pthread_cancel ();
15820 ;
15821 return 0;
15822 }
15823 _ACEOF
15824 if ac_fn_c_try_link "$LINENO"
15825 then :
15826 ac_cv_lib_pthread_pthread_cancel=yes
15827 else case e in #(
15828 e) ac_cv_lib_pthread_pthread_cancel=no ;;
15829 esac
15830 fi
15831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15832 conftest$ac_exeext conftest.$ac_ext
15833 LIBS=$ac_check_lib_save_LIBS ;;
15834 esac
15835 fi
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cancel" >&5
15837 printf "%s\n" "$ac_cv_lib_pthread_pthread_cancel" >&6; }
15838 if test "x$ac_cv_lib_pthread_pthread_cancel" = xyes
15839 then :
15840 printf "%s\n" "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
15841
15842 fi
15843
15844 ;;
15845 esac
15846 fi
15847
15848 ac_fn_c_check_func "$LINENO" "pthread_once" "ac_cv_func_pthread_once"
15849 if test "x$ac_cv_func_pthread_once" = xyes
15850 then :
15851 printf "%s\n" "#define HAVE_PTHREAD_ONCE 1" >>confdefs.h
15852
15853 else case e in #(
15854 e)
15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_once in -lpthread" >&5
15856 printf %s "checking for pthread_once in -lpthread... " >&6; }
15857 if test ${ac_cv_lib_pthread_pthread_once+y}
15858 then :
15859 printf %s "(cached) " >&6
15860 else case e in #(
15861 e) ac_check_lib_save_LIBS=$LIBS
15862 LIBS="-lpthread $LIBS"
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15865
15866 /* Override any GCC internal prototype to avoid an error.
15867 Use char because int might match the return type of a GCC
15868 builtin and then its argument prototype would still apply.
15869 The 'extern "C"' is for builds by C++ compilers;
15870 although this is not generally supported in C code supporting it here
15871 has little cost and some practical benefit (sr 110532). */
15872 #ifdef __cplusplus
15873 extern "C"
15874 #endif
15875 char pthread_once (void);
15876 int
15877 main (void)
15878 {
15879 return pthread_once ();
15880 ;
15881 return 0;
15882 }
15883 _ACEOF
15884 if ac_fn_c_try_link "$LINENO"
15885 then :
15886 ac_cv_lib_pthread_pthread_once=yes
15887 else case e in #(
15888 e) ac_cv_lib_pthread_pthread_once=no ;;
15889 esac
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15892 conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS ;;
15894 esac
15895 fi
15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_once" >&5
15897 printf "%s\n" "$ac_cv_lib_pthread_pthread_once" >&6; }
15898 if test "x$ac_cv_lib_pthread_pthread_once" = xyes
15899 then :
15900 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
15901
15902 LIBS="-lpthread $LIBS"
15903
15904 else case e in #(
15905 e) as_fn_error $? "pthread with pthread_once required to build $PACKAGE_NAME" "$LINENO" 5 ;;
15906 esac
15907 fi
15908
15909 ;;
15910 esac
15911 fi
15912
15913 ;;
15914 esac
15915 if test x$win32 = xtrue; then
15916 WIN32_TRUE=
15917 WIN32_FALSE='#'
15918 else
15919 WIN32_TRUE='#'
15920 WIN32_FALSE=
15921 fi
15922
15923
15924 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
15925 "
15926 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
15927 then :
15928
15929 printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
15930
15931 fi
15932
15933
15934 CACHED_CFLAGS="$CFLAGS"
15935 CFLAGS+=" $libplist_CFLAGS -Werror"
15936
15937 # check if libplist has plist_new_unix_date()
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for plist_new_unix_date" >&5
15939 printf %s "checking for plist_new_unix_date... " >&6; }
15940 if test ${ac_cv_plist_unix_date+y}
15941 then :
15942 printf %s "(cached) " >&6
15943 else case e in #(
15944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15946
15947 #include <plist/plist.h>
15948
15949 int
15950 main (void)
15951 {
15952
15953 return plist_new_unix_date(0) ? 0 : 1
15954
15955 ;
15956 return 0;
15957 }
15958 _ACEOF
15959 if ac_fn_c_try_compile "$LINENO"
15960 then :
15961 ac_cv_plist_unix_date=yes
15962 else case e in #(
15963 e) ac_cv_plist_unix_date=no ;;
15964 esac
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15967 esac
15968 fi
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_plist_unix_date" >&5
15970 printf "%s\n" "$ac_cv_plist_unix_date" >&6; }
15971 if test "$ac_cv_plist_unix_date" = "yes"; then
15972
15973 printf "%s\n" "#define HAVE_PLIST_UNIX_DATE 1" >>confdefs.h
15974
15975 fi
15976
15977 CFLAGS="$CACHED_CFLAGS"
15978
15979
15980 list="-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden"
15981 flags_supported=""
15982 flags_unsupported=""
15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
15984 printf %s "checking for supported compiler flags... " >&6; }
15985 for each in $list
15986 do
15987 save_CFLAGS="$CFLAGS"
15988 CFLAGS="$CFLAGS $each"
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991
15992 int
15993 main (void)
15994 {
15995
15996 ;
15997 return 0;
15998 }
15999 _ACEOF
16000 if ac_fn_c_try_compile "$LINENO"
16001 then :
16002 flag_ok=yes
16003 else case e in #(
16004 e) flag_ok=no ;;
16005 esac
16006 fi
16007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16008 CFLAGS="$save_CFLAGS"
16009
16010 if test "X$flag_ok" = Xyes ; then
16011 flags_supported="$flags_supported $each"
16012 else
16013 flags_unsupported="$flags_unsupported $each"
16014 fi
16015 done
16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
16017 printf "%s\n" "$flags_supported" >&6; }
16018 if test "X$flags_unsupported" != X ; then
16019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
16020 printf "%s\n" "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
16021 fi
16022 GLOBAL_CFLAGS="$GLOBAL_CFLAGS $flags_supported"
16023
16024
16025 if test "x$enable_static" = "xyes" -a "x$enable_shared" = "xno"; then
16026 GLOBAL_CFLAGS+=" -DLIMD_GLUE_STATIC"
16027 fi
16028
16029
16030
16031 # check for large file support
16032 # Check whether --enable-largefile was given.
16033 if test ${enable_largefile+y}
16034 then :
16035 enableval=$enable_largefile;
16036 fi
16037 if test "$enable_largefile,$enable_year2038" != no,no
16038 then :
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
16040 printf %s "checking for $CC option to enable large file support... " >&6; }
16041 if test ${ac_cv_sys_largefile_opts+y}
16042 then :
16043 printf %s "(cached) " >&6
16044 else case e in #(
16045 e) ac_save_CC="$CC"
16046 ac_opt_found=no
16047 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
16048 if test x"$ac_opt" != x"none needed"
16049 then :
16050 CC="$ac_save_CC $ac_opt"
16051 fi
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16054 #include <sys/types.h>
16055 #ifndef FTYPE
16056 # define FTYPE off_t
16057 #endif
16058 /* Check that FTYPE can represent 2**63 - 1 correctly.
16059 We can't simply define LARGE_FTYPE to be 9223372036854775807,
16060 since some C++ compilers masquerading as C compilers
16061 incorrectly reject 9223372036854775807. */
16062 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
16063 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
16064 && LARGE_FTYPE % 2147483647 == 1)
16065 ? 1 : -1];
16066 int
16067 main (void)
16068 {
16069
16070 ;
16071 return 0;
16072 }
16073 _ACEOF
16074 if ac_fn_c_try_compile "$LINENO"
16075 then :
16076 if test x"$ac_opt" = x"none needed"
16077 then :
16078 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
16079 CC="$CC -DFTYPE=ino_t"
16080 if ac_fn_c_try_compile "$LINENO"
16081 then :
16082
16083 else case e in #(
16084 e) CC="$CC -D_FILE_OFFSET_BITS=64"
16085 if ac_fn_c_try_compile "$LINENO"
16086 then :
16087 ac_opt='-D_FILE_OFFSET_BITS=64'
16088 fi
16089 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
16090 esac
16091 fi
16092 rm -f core conftest.err conftest.$ac_objext conftest.beam
16093 fi
16094 ac_cv_sys_largefile_opts=$ac_opt
16095 ac_opt_found=yes
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16098 test $ac_opt_found = no || break
16099 done
16100 CC="$ac_save_CC"
16101
16102 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
16103 esac
16104 fi
16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
16106 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
16107
16108 ac_have_largefile=yes
16109 case $ac_cv_sys_largefile_opts in #(
16110 "none needed") :
16111 ;; #(
16112 "supported through gnulib") :
16113 ;; #(
16114 "support not detected") :
16115 ac_have_largefile=no ;; #(
16116 "-D_FILE_OFFSET_BITS=64") :
16117
16118 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
16119 ;; #(
16120 "-D_LARGE_FILES=1") :
16121
16122 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
16123 ;; #(
16124 "-n32") :
16125 CC="$CC -n32" ;; #(
16126 *) :
16127 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
16128 esac
16129
16130 if test "$enable_year2038" != no
16131 then :
16132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
16133 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
16134 if test ${ac_cv_sys_year2038_opts+y}
16135 then :
16136 printf %s "(cached) " >&6
16137 else case e in #(
16138 e) ac_save_CPPFLAGS="$CPPFLAGS"
16139 ac_opt_found=no
16140 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
16141 if test x"$ac_opt" != x"none needed"
16142 then :
16143 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
16144 fi
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h. */
16147
16148 #include <time.h>
16149 /* Check that time_t can represent 2**32 - 1 correctly. */
16150 #define LARGE_TIME_T \\
16151 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
16152 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
16153 && LARGE_TIME_T % 65537 == 0)
16154 ? 1 : -1];
16155
16156 int
16157 main (void)
16158 {
16159
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 if ac_fn_c_try_compile "$LINENO"
16165 then :
16166 ac_cv_sys_year2038_opts="$ac_opt"
16167 ac_opt_found=yes
16168 fi
16169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16170 test $ac_opt_found = no || break
16171 done
16172 CPPFLAGS="$ac_save_CPPFLAGS"
16173 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
16174 esac
16175 fi
16176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
16177 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
16178
16179 ac_have_year2038=yes
16180 case $ac_cv_sys_year2038_opts in #(
16181 "none needed") :
16182 ;; #(
16183 "support not detected") :
16184 ac_have_year2038=no ;; #(
16185 "-D_TIME_BITS=64") :
16186
16187 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
16188 ;; #(
16189 "-D__MINGW_USE_VC2005_COMPAT") :
16190
16191 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
16192 ;; #(
16193 "-U_USE_32_BIT_TIME_T"*) :
16194 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16195 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16196 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
16197 will stop working after mid-January 2038. Remove
16198 _USE_32BIT_TIME_T from the compiler flags.
16199 See 'config.log' for more details" "$LINENO" 5; } ;; #(
16200 *) :
16201 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
16202 esac
16203
16204 fi
16205
16206 fi
16207
16208 # Check whether --enable-silent-rules was given.
16209 if test ${enable_silent_rules+y}
16210 then :
16211 enableval=$enable_silent_rules;
16212 fi
16213
16214 case $enable_silent_rules in # (((
16215 yes) AM_DEFAULT_VERBOSITY=0;;
16216 no) AM_DEFAULT_VERBOSITY=1;;
16217 *) AM_DEFAULT_VERBOSITY=0;;
16218 esac
16219 am_make=${MAKE-make}
16220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16221 printf %s "checking whether $am_make supports nested variables... " >&6; }
16222 if test ${am_cv_make_support_nested_variables+y}
16223 then :
16224 printf %s "(cached) " >&6
16225 else case e in #(
16226 e) if printf "%s\n" 'TRUE=$(BAR$(V))
16227 BAR0=false
16228 BAR1=true
16229 V=1
16230 am__doit:
16231 @$(TRUE)
16232 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16233 am_cv_make_support_nested_variables=yes
16234 else
16235 am_cv_make_support_nested_variables=no
16236 fi ;;
16237 esac
16238 fi
16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16240 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
16241 if test $am_cv_make_support_nested_variables = yes; then
16242 AM_V='$(V)'
16243 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16244 else
16245 AM_V=$AM_DEFAULT_VERBOSITY
16246 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16247 fi
16248 AM_BACKSLASH='\'
16249
16250
16251 ac_config_files="$ac_config_files Makefile src/Makefile src/libimobiledevice-glue-1.0.pc include/Makefile"
16252
16253 cat >confcache <<\_ACEOF
16254 # This file is a shell script that caches the results of configure
16255 # tests run on this system so they can be shared between configure
16256 # scripts and configure runs, see configure's option --config-cache.
16257 # It is not useful on other systems. If it contains results you don't
16258 # want to keep, you may remove or edit it.
16259 #
16260 # config.status only pays attention to the cache file if you give it
16261 # the --recheck option to rerun configure.
16262 #
16263 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16264 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16265 # following values.
16266
16267 _ACEOF
16268
16269 # The following way of writing the cache mishandles newlines in values,
16270 # but we know of no workaround that is simple, portable, and efficient.
16271 # So, we kill variables containing newlines.
16272 # Ultrix sh set writes to stderr and can't be redirected directly,
16273 # and sets the high bit in the cache file unless we assign to the vars.
16274 (
16275 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16276 eval ac_val=\$$ac_var
16277 case $ac_val in #(
16278 *${as_nl}*)
16279 case $ac_var in #(
16280 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16281 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16282 esac
16283 case $ac_var in #(
16284 _ | IFS | as_nl) ;; #(
16285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16286 *) { eval $ac_var=; unset $ac_var;} ;;
16287 esac ;;
16288 esac
16289 done
16290
16291 (set) 2>&1 |
16292 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16293 *${as_nl}ac_space=\ *)
16294 # 'set' does not quote correctly, so add quotes: double-quote
16295 # substitution turns \\\\ into \\, and sed turns \\ into \.
16296 sed -n \
16297 "s/'/'\\\\''/g;
16298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16299 ;; #(
16300 *)
16301 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16303 ;;
16304 esac |
16305 sort
16306 ) |
16307 sed '
16308 /^ac_cv_env_/b end
16309 t clear
16310 :clear
16311 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16312 t end
16313 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16314 :end' >>confcache
16315 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16316 if test -w "$cache_file"; then
16317 if test "x$cache_file" != "x/dev/null"; then
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16319 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16320 if test ! -f "$cache_file" || test -h "$cache_file"; then
16321 cat confcache >"$cache_file"
16322 else
16323 case $cache_file in #(
16324 */* | ?:*)
16325 mv -f confcache "$cache_file"$$ &&
16326 mv -f "$cache_file"$$ "$cache_file" ;; #(
16327 *)
16328 mv -f confcache "$cache_file" ;;
16329 esac
16330 fi
16331 fi
16332 else
16333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16334 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16335 fi
16336 fi
16337 rm -f confcache
16338
16339 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16340 # Let make expand exec_prefix.
16341 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16342
16343 DEFS=-DHAVE_CONFIG_H
16344
16345 ac_libobjs=
16346 ac_ltlibobjs=
16347 U=
16348 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16349 # 1. Remove the extension, and $U if already installed.
16350 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16351 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16352 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16353 # will be set to the directory where LIBOBJS objects are built.
16354 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16355 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16356 done
16357 LIBOBJS=$ac_libobjs
16358
16359 LTLIBOBJS=$ac_ltlibobjs
16360
16361
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16363 printf %s "checking that generated files are newer than configure... " >&6; }
16364 if test -n "$am_sleep_pid"; then
16365 # Hide warnings about reused PIDs.
16366 wait $am_sleep_pid 2>/dev/null
16367 fi
16368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16369 printf "%s\n" "done" >&6; }
16370 if test -n "$EXEEXT"; then
16371 am__EXEEXT_TRUE=
16372 am__EXEEXT_FALSE='#'
16373 else
16374 am__EXEEXT_TRUE='#'
16375 am__EXEEXT_FALSE=
16376 fi
16377
16378 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16379 as_fn_error $? "conditional \"AMDEP\" was never defined.
16380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16381 fi
16382 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16383 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16385 fi
16386
16387 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16388 as_fn_error $? "conditional \"WIN32\" was never defined.
16389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16390 fi
16391 # Check whether --enable-year2038 was given.
16392 if test ${enable_year2038+y}
16393 then :
16394 enableval=$enable_year2038;
16395 fi
16396
16397
16398 : "${CONFIG_STATUS=./config.status}"
16399 ac_write_fail=0
16400 ac_clean_files_save=$ac_clean_files
16401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16403 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16404 as_write_fail=0
16405 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16406 #! $SHELL
16407 # Generated by $as_me.
16408 # Run this file to recreate the current configuration.
16409 # Compiler output produced by configure, useful for debugging
16410 # configure, is in config.log if it exists.
16411
16412 debug=false
16413 ac_cs_recheck=false
16414 ac_cs_silent=false
16415
16416 SHELL=\${CONFIG_SHELL-$SHELL}
16417 export SHELL
16418 _ASEOF
16419 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16420 ## -------------------- ##
16421 ## M4sh Initialization. ##
16422 ## -------------------- ##
16423
16424 # Be more Bourne compatible
16425 DUALCASE=1; export DUALCASE # for MKS sh
16426 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16427 then :
16428 emulate sh
16429 NULLCMD=:
16430 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16431 # is contrary to our usage. Disable this feature.
16432 alias -g '${1+"$@"}'='"$@"'
16433 setopt NO_GLOB_SUBST
16434 else case e in #(
16435 e) case `(set -o) 2>/dev/null` in #(
16436 *posix*) :
16437 set -o posix ;; #(
16438 *) :
16439 ;;
16440 esac ;;
16441 esac
16442 fi
16443
16444
16445
16446 # Reset variables that may have inherited troublesome values from
16447 # the environment.
16448
16449 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16450 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16451 # side effect of setting IFS to empty, thus disabling word splitting.)
16452 # Quoting is to prevent editors from complaining about space-tab.
16453 as_nl='
16454 '
16455 export as_nl
16456 IFS=" "" $as_nl"
16457
16458 PS1='$ '
16459 PS2='> '
16460 PS4='+ '
16461
16462 # Ensure predictable behavior from utilities with locale-dependent output.
16463 LC_ALL=C
16464 export LC_ALL
16465 LANGUAGE=C
16466 export LANGUAGE
16467
16468 # We cannot yet rely on "unset" to work, but we need these variables
16469 # to be unset--not just set to an empty or harmless value--now, to
16470 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16471 # also avoids known problems related to "unset" and subshell syntax
16472 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16473 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16474 do eval test \${$as_var+y} \
16475 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16476 done
16477
16478 # Ensure that fds 0, 1, and 2 are open.
16479 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16480 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16481 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16482
16483 # The user is always right.
16484 if ${PATH_SEPARATOR+false} :; then
16485 PATH_SEPARATOR=:
16486 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16487 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16488 PATH_SEPARATOR=';'
16489 }
16490 fi
16491
16492
16493 # Find who we are. Look in the path if we contain no directory separator.
16494 as_myself=
16495 case $0 in #((
16496 *[\\/]* ) as_myself=$0 ;;
16497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 for as_dir in $PATH
16499 do
16500 IFS=$as_save_IFS
16501 case $as_dir in #(((
16502 '') as_dir=./ ;;
16503 */) ;;
16504 *) as_dir=$as_dir/ ;;
16505 esac
16506 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16507 done
16508 IFS=$as_save_IFS
16509
16510 ;;
16511 esac
16512 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16513 # in which case we are not to be found in the path.
16514 if test "x$as_myself" = x; then
16515 as_myself=$0
16516 fi
16517 if test ! -f "$as_myself"; then
16518 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16519 exit 1
16520 fi
16521
16522
16523
16524 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16525 # ----------------------------------------
16526 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16527 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16528 # script with STATUS, using 1 if that was 0.
16529 as_fn_error ()
16530 {
16531 as_status=$1; test $as_status -eq 0 && as_status=1
16532 if test "$4"; then
16533 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16535 fi
16536 printf "%s\n" "$as_me: error: $2" >&2
16537 as_fn_exit $as_status
16538 } # as_fn_error
16539
16540
16541 # as_fn_set_status STATUS
16542 # -----------------------
16543 # Set $? to STATUS, without forking.
16544 as_fn_set_status ()
16545 {
16546 return $1
16547 } # as_fn_set_status
16548
16549 # as_fn_exit STATUS
16550 # -----------------
16551 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16552 as_fn_exit ()
16553 {
16554 set +e
16555 as_fn_set_status $1
16556 exit $1
16557 } # as_fn_exit
16558
16559 # as_fn_unset VAR
16560 # ---------------
16561 # Portably unset VAR.
16562 as_fn_unset ()
16563 {
16564 { eval $1=; unset $1;}
16565 }
16566 as_unset=as_fn_unset
16567
16568 # as_fn_append VAR VALUE
16569 # ----------------------
16570 # Append the text in VALUE to the end of the definition contained in VAR. Take
16571 # advantage of any shell optimizations that allow amortized linear growth over
16572 # repeated appends, instead of the typical quadratic growth present in naive
16573 # implementations.
16574 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16575 then :
16576 eval 'as_fn_append ()
16577 {
16578 eval $1+=\$2
16579 }'
16580 else case e in #(
16581 e) as_fn_append ()
16582 {
16583 eval $1=\$$1\$2
16584 } ;;
16585 esac
16586 fi # as_fn_append
16587
16588 # as_fn_arith ARG...
16589 # ------------------
16590 # Perform arithmetic evaluation on the ARGs, and store the result in the
16591 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16592 # must be portable across $(()) and expr.
16593 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16594 then :
16595 eval 'as_fn_arith ()
16596 {
16597 as_val=$(( $* ))
16598 }'
16599 else case e in #(
16600 e) as_fn_arith ()
16601 {
16602 as_val=`expr "$@" || test $? -eq 1`
16603 } ;;
16604 esac
16605 fi # as_fn_arith
16606
16607
16608 if expr a : '\(a\)' >/dev/null 2>&1 &&
16609 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16610 as_expr=expr
16611 else
16612 as_expr=false
16613 fi
16614
16615 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16616 as_basename=basename
16617 else
16618 as_basename=false
16619 fi
16620
16621 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16622 as_dirname=dirname
16623 else
16624 as_dirname=false
16625 fi
16626
16627 as_me=`$as_basename -- "$0" ||
16628 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16629 X"$0" : 'X\(//\)$' \| \
16630 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16631 printf "%s\n" X/"$0" |
16632 sed '/^.*\/\([^/][^/]*\)\/*$/{
16633 s//\1/
16634 q
16635 }
16636 /^X\/\(\/\/\)$/{
16637 s//\1/
16638 q
16639 }
16640 /^X\/\(\/\).*/{
16641 s//\1/
16642 q
16643 }
16644 s/.*/./; q'`
16645
16646 # Avoid depending upon Character Ranges.
16647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16650 as_cr_digits='0123456789'
16651 as_cr_alnum=$as_cr_Letters$as_cr_digits
16652
16653
16654 # Determine whether it's possible to make 'echo' print without a newline.
16655 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16656 # for compatibility with existing Makefiles.
16657 ECHO_C= ECHO_N= ECHO_T=
16658 case `echo -n x` in #(((((
16659 -n*)
16660 case `echo 'xy\c'` in
16661 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16662 xy) ECHO_C='\c';;
16663 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16664 ECHO_T=' ';;
16665 esac;;
16666 *)
16667 ECHO_N='-n';;
16668 esac
16669
16670 # For backward compatibility with old third-party macros, we provide
16671 # the shell variables $as_echo and $as_echo_n. New code should use
16672 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16673 as_echo='printf %s\n'
16674 as_echo_n='printf %s'
16675
16676 rm -f conf$$ conf$$.exe conf$$.file
16677 if test -d conf$$.dir; then
16678 rm -f conf$$.dir/conf$$.file
16679 else
16680 rm -f conf$$.dir
16681 mkdir conf$$.dir 2>/dev/null
16682 fi
16683 if (echo >conf$$.file) 2>/dev/null; then
16684 if ln -s conf$$.file conf$$ 2>/dev/null; then
16685 as_ln_s='ln -s'
16686 # ... but there are two gotchas:
16687 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16688 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16689 # In both cases, we have to default to 'cp -pR'.
16690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16691 as_ln_s='cp -pR'
16692 elif ln conf$$.file conf$$ 2>/dev/null; then
16693 as_ln_s=ln
16694 else
16695 as_ln_s='cp -pR'
16696 fi
16697 else
16698 as_ln_s='cp -pR'
16699 fi
16700 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16701 rmdir conf$$.dir 2>/dev/null
16702
16703
16704 # as_fn_mkdir_p
16705 # -------------
16706 # Create "$as_dir" as a directory, including parents if necessary.
16707 as_fn_mkdir_p ()
16708 {
16709
16710 case $as_dir in #(
16711 -*) as_dir=./$as_dir;;
16712 esac
16713 test -d "$as_dir" || eval $as_mkdir_p || {
16714 as_dirs=
16715 while :; do
16716 case $as_dir in #(
16717 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16718 *) as_qdir=$as_dir;;
16719 esac
16720 as_dirs="'$as_qdir' $as_dirs"
16721 as_dir=`$as_dirname -- "$as_dir" ||
16722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16723 X"$as_dir" : 'X\(//\)[^/]' \| \
16724 X"$as_dir" : 'X\(//\)$' \| \
16725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16726 printf "%s\n" X"$as_dir" |
16727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16728 s//\1/
16729 q
16730 }
16731 /^X\(\/\/\)[^/].*/{
16732 s//\1/
16733 q
16734 }
16735 /^X\(\/\/\)$/{
16736 s//\1/
16737 q
16738 }
16739 /^X\(\/\).*/{
16740 s//\1/
16741 q
16742 }
16743 s/.*/./; q'`
16744 test -d "$as_dir" && break
16745 done
16746 test -z "$as_dirs" || eval "mkdir $as_dirs"
16747 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16748
16749
16750 } # as_fn_mkdir_p
16751 if mkdir -p . 2>/dev/null; then
16752 as_mkdir_p='mkdir -p "$as_dir"'
16753 else
16754 test -d ./-p && rmdir ./-p
16755 as_mkdir_p=false
16756 fi
16757
16758
16759 # as_fn_executable_p FILE
16760 # -----------------------
16761 # Test if FILE is an executable regular file.
16762 as_fn_executable_p ()
16763 {
16764 test -f "$1" && test -x "$1"
16765 } # as_fn_executable_p
16766 as_test_x='test -x'
16767 as_executable_p=as_fn_executable_p
16768
16769 # Sed expression to map a string onto a valid CPP name.
16770 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16771 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16772
16773 # Sed expression to map a string onto a valid variable name.
16774 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16775 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16776
16777
16778 exec 6>&1
16779 ## ----------------------------------- ##
16780 ## Main body of $CONFIG_STATUS script. ##
16781 ## ----------------------------------- ##
16782 _ASEOF
16783 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16784
16785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16786 # Save the log message, to keep $0 and so on meaningful, and to
16787 # report actual input values of CONFIG_FILES etc. instead of their
16788 # values after options handling.
16789 ac_log="
16790 This file was extended by libimobiledevice-glue $as_me 1.3.2, which was
16791 generated by GNU Autoconf 2.72. Invocation command line was
16792
16793 CONFIG_FILES = $CONFIG_FILES
16794 CONFIG_HEADERS = $CONFIG_HEADERS
16795 CONFIG_LINKS = $CONFIG_LINKS
16796 CONFIG_COMMANDS = $CONFIG_COMMANDS
16797 $ $0 $@
16798
16799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16800 "
16801
16802 _ACEOF
16803
16804 case $ac_config_files in *"
16805 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16806 esac
16807
16808 case $ac_config_headers in *"
16809 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16810 esac
16811
16812
16813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16814 # Files that config.status was made for.
16815 config_files="$ac_config_files"
16816 config_headers="$ac_config_headers"
16817 config_commands="$ac_config_commands"
16818
16819 _ACEOF
16820
16821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16822 ac_cs_usage="\
16823 '$as_me' instantiates files and other configuration actions
16824 from templates according to the current configuration. Unless the files
16825 and actions are specified as TAGs, all are instantiated by default.
16826
16827 Usage: $0 [OPTION]... [TAG]...
16828
16829 -h, --help print this help, then exit
16830 -V, --version print version number and configuration settings, then exit
16831 --config print configuration, then exit
16832 -q, --quiet, --silent
16833 do not print progress messages
16834 -d, --debug don't remove temporary files
16835 --recheck update $as_me by reconfiguring in the same conditions
16836 --file=FILE[:TEMPLATE]
16837 instantiate the configuration file FILE
16838 --header=FILE[:TEMPLATE]
16839 instantiate the configuration header FILE
16840
16841 Configuration files:
16842 $config_files
16843
16844 Configuration headers:
16845 $config_headers
16846
16847 Configuration commands:
16848 $config_commands
16849
16850 Report bugs to <https://github.com/libimobiledevice/libimobiledevice-glue/issues>.
16851 libimobiledevice-glue home page: <https://libimobiledevice.org>."
16852
16853 _ACEOF
16854 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16855 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16857 ac_cs_config='$ac_cs_config_escaped'
16858 ac_cs_version="\\
16859 libimobiledevice-glue config.status 1.3.2
16860 configured by $0, generated by GNU Autoconf 2.72,
16861 with options \\"\$ac_cs_config\\"
16862
16863 Copyright (C) 2023 Free Software Foundation, Inc.
16864 This config.status script is free software; the Free Software Foundation
16865 gives unlimited permission to copy, distribute and modify it."
16866
16867 ac_pwd='$ac_pwd'
16868 srcdir='$srcdir'
16869 INSTALL='$INSTALL'
16870 MKDIR_P='$MKDIR_P'
16871 AWK='$AWK'
16872 test -n "\$AWK" || AWK=awk
16873 _ACEOF
16874
16875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16876 # The default lists apply if the user does not specify any file.
16877 ac_need_defaults=:
16878 while test $# != 0
16879 do
16880 case $1 in
16881 --*=?*)
16882 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16883 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16884 ac_shift=:
16885 ;;
16886 --*=)
16887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16888 ac_optarg=
16889 ac_shift=:
16890 ;;
16891 *)
16892 ac_option=$1
16893 ac_optarg=$2
16894 ac_shift=shift
16895 ;;
16896 esac
16897
16898 case $ac_option in
16899 # Handling of the options.
16900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16901 ac_cs_recheck=: ;;
16902 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16903 printf "%s\n" "$ac_cs_version"; exit ;;
16904 --config | --confi | --conf | --con | --co | --c )
16905 printf "%s\n" "$ac_cs_config"; exit ;;
16906 --debug | --debu | --deb | --de | --d | -d )
16907 debug=: ;;
16908 --file | --fil | --fi | --f )
16909 $ac_shift
16910 case $ac_optarg in
16911 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16912 '') as_fn_error $? "missing file argument" ;;
16913 esac
16914 as_fn_append CONFIG_FILES " '$ac_optarg'"
16915 ac_need_defaults=false;;
16916 --header | --heade | --head | --hea )
16917 $ac_shift
16918 case $ac_optarg in
16919 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16920 esac
16921 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16922 ac_need_defaults=false;;
16923 --he | --h)
16924 # Conflict between --help and --header
16925 as_fn_error $? "ambiguous option: '$1'
16926 Try '$0 --help' for more information.";;
16927 --help | --hel | -h )
16928 printf "%s\n" "$ac_cs_usage"; exit ;;
16929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16931 ac_cs_silent=: ;;
16932
16933 # This is an error.
16934 -*) as_fn_error $? "unrecognized option: '$1'
16935 Try '$0 --help' for more information." ;;
16936
16937 *) as_fn_append ac_config_targets " $1"
16938 ac_need_defaults=false ;;
16939
16940 esac
16941 shift
16942 done
16943
16944 ac_configure_extra_args=
16945
16946 if $ac_cs_silent; then
16947 exec 6>/dev/null
16948 ac_configure_extra_args="$ac_configure_extra_args --silent"
16949 fi
16950
16951 _ACEOF
16952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16953 if \$ac_cs_recheck; then
16954 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16955 shift
16956 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16957 CONFIG_SHELL='$SHELL'
16958 export CONFIG_SHELL
16959 exec "\$@"
16960 fi
16961
16962 _ACEOF
16963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964 exec 5>>config.log
16965 {
16966 echo
16967 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16968 ## Running $as_me. ##
16969 _ASBOX
16970 printf "%s\n" "$ac_log"
16971 } >&5
16972
16973 _ACEOF
16974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16975 #
16976 # INIT-COMMANDS
16977 #
16978 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16979
16980
16981 # The HP-UX ksh and POSIX shell print the target directory to stdout
16982 # if CDPATH is set.
16983 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16984
16985 sed_quote_subst='$sed_quote_subst'
16986 double_quote_subst='$double_quote_subst'
16987 delay_variable_subst='$delay_variable_subst'
16988 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16989 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16990 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16991 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16992 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16993 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16994 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16995 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16996 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16997 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16998 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16999 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17000 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17001 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17002 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17003 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17004 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17005 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17006 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17007 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17008 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17009 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17010 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17011 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17012 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17013 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17014 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17015 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17016 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17017 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17018 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17019 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17020 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17021 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17022 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17023 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17024 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17025 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17026 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17027 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17028 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17029 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17030 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17031 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17032 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17033 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17034 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17035 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17036 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17037 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17038 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17039 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17040 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17041 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17042 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17043 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17044 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17045 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17046 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17047 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17048 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"`'
17049 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17050 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17051 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17052 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17053 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17054 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17055 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17056 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17057 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17058 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17059 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17060 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17061 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17062 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17063 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17064 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17065 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17066 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17067 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17068 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17069 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17070 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17071 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17072 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17073 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17074 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17075 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17076 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17077 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17078 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17079 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17080 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17081 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17082 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17083 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17084 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17085 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17086 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17087 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17088 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17089 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17090 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17091 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17092 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17093 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17094 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17095 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17096 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17097 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17098 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17099 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17100 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17101 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17102 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17103 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17104 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17105 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17106 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17107 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17108 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17109 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17110 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17111 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17112 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17113 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17114 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17115 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17116 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17117 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17118 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17119 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17120 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17121 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17122 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17123 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17124 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17125
17126 LTCC='$LTCC'
17127 LTCFLAGS='$LTCFLAGS'
17128 compiler='$compiler_DEFAULT'
17129
17130 # A function that is used when there is no print builtin or printf.
17131 func_fallback_echo ()
17132 {
17133 eval 'cat <<_LTECHO_EOF
17134 \$1
17135 _LTECHO_EOF'
17136 }
17137
17138 # Quote evaled strings.
17139 for var in SHELL \
17140 ECHO \
17141 PATH_SEPARATOR \
17142 SED \
17143 GREP \
17144 EGREP \
17145 FGREP \
17146 LD \
17147 NM \
17148 LN_S \
17149 lt_SP2NL \
17150 lt_NL2SP \
17151 reload_flag \
17152 FILECMD \
17153 OBJDUMP \
17154 deplibs_check_method \
17155 file_magic_cmd \
17156 file_magic_glob \
17157 want_nocaseglob \
17158 DLLTOOL \
17159 sharedlib_from_linklib_cmd \
17160 AR \
17161 archiver_list_spec \
17162 STRIP \
17163 RANLIB \
17164 CC \
17165 CFLAGS \
17166 compiler \
17167 lt_cv_sys_global_symbol_pipe \
17168 lt_cv_sys_global_symbol_to_cdecl \
17169 lt_cv_sys_global_symbol_to_import \
17170 lt_cv_sys_global_symbol_to_c_name_address \
17171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17172 lt_cv_nm_interface \
17173 nm_file_list_spec \
17174 lt_cv_truncate_bin \
17175 lt_prog_compiler_no_builtin_flag \
17176 lt_prog_compiler_pic \
17177 lt_prog_compiler_wl \
17178 lt_prog_compiler_static \
17179 lt_cv_prog_compiler_c_o \
17180 need_locks \
17181 MANIFEST_TOOL \
17182 DSYMUTIL \
17183 NMEDIT \
17184 LIPO \
17185 OTOOL \
17186 OTOOL64 \
17187 shrext_cmds \
17188 export_dynamic_flag_spec \
17189 whole_archive_flag_spec \
17190 compiler_needs_object \
17191 with_gnu_ld \
17192 allow_undefined_flag \
17193 no_undefined_flag \
17194 hardcode_libdir_flag_spec \
17195 hardcode_libdir_separator \
17196 exclude_expsyms \
17197 include_expsyms \
17198 file_list_spec \
17199 variables_saved_for_relink \
17200 libname_spec \
17201 library_names_spec \
17202 soname_spec \
17203 install_override_mode \
17204 finish_eval \
17205 old_striplib \
17206 striplib; do
17207 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17208 *[\\\\\\\`\\"\\\$]*)
17209 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17210 ;;
17211 *)
17212 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17213 ;;
17214 esac
17215 done
17216
17217 # Double-quote double-evaled strings.
17218 for var in reload_cmds \
17219 old_postinstall_cmds \
17220 old_postuninstall_cmds \
17221 old_archive_cmds \
17222 extract_expsyms_cmds \
17223 old_archive_from_new_cmds \
17224 old_archive_from_expsyms_cmds \
17225 archive_cmds \
17226 archive_expsym_cmds \
17227 module_cmds \
17228 module_expsym_cmds \
17229 export_symbols_cmds \
17230 prelink_cmds \
17231 postlink_cmds \
17232 postinstall_cmds \
17233 postuninstall_cmds \
17234 finish_cmds \
17235 sys_lib_search_path_spec \
17236 configure_time_dlsearch_path \
17237 configure_time_lt_sys_library_path; do
17238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17239 *[\\\\\\\`\\"\\\$]*)
17240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17241 ;;
17242 *)
17243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17244 ;;
17245 esac
17246 done
17247
17248 ac_aux_dir='$ac_aux_dir'
17249
17250 # See if we are running on zsh, and set the options that allow our
17251 # commands through without removal of \ escapes INIT.
17252 if test -n "\${ZSH_VERSION+set}"; then
17253 setopt NO_GLOB_SUBST
17254 fi
17255
17256
17257 PACKAGE='$PACKAGE'
17258 VERSION='$VERSION'
17259 RM='$RM'
17260 ofile='$ofile'
17261
17262
17263
17264
17265 _ACEOF
17266
17267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17268
17269 # Handling of arguments.
17270 for ac_config_target in $ac_config_targets
17271 do
17272 case $ac_config_target in
17273 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17274 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17275 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17276 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17277 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17278 "src/libimobiledevice-glue-1.0.pc") CONFIG_FILES="$CONFIG_FILES src/libimobiledevice-glue-1.0.pc" ;;
17279 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17280
17281 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17282 esac
17283 done
17284
17285
17286 # If the user did not use the arguments to specify the items to instantiate,
17287 # then the envvar interface is used. Set only those that are not.
17288 # We use the long form for the default assignment because of an extremely
17289 # bizarre bug on SunOS 4.1.3.
17290 if $ac_need_defaults; then
17291 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17292 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17293 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17294 fi
17295
17296 # Have a temporary directory for convenience. Make it in the build tree
17297 # simply because there is no reason against having it here, and in addition,
17298 # creating and moving files from /tmp can sometimes cause problems.
17299 # Hook for its removal unless debugging.
17300 # Note that there is a small window in which the directory will not be cleaned:
17301 # after its creation but before its name has been assigned to '$tmp'.
17302 $debug ||
17303 {
17304 tmp= ac_tmp=
17305 trap 'exit_status=$?
17306 : "${ac_tmp:=$tmp}"
17307 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17308 ' 0
17309 trap 'as_fn_exit 1' 1 2 13 15
17310 }
17311 # Create a (secure) tmp directory for tmp files.
17312
17313 {
17314 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17315 test -d "$tmp"
17316 } ||
17317 {
17318 tmp=./conf$$-$RANDOM
17319 (umask 077 && mkdir "$tmp")
17320 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17321 ac_tmp=$tmp
17322
17323 # Set up the scripts for CONFIG_FILES section.
17324 # No need to generate them if there are no CONFIG_FILES.
17325 # This happens for instance with './config.status config.h'.
17326 if test -n "$CONFIG_FILES"; then
17327
17328
17329 ac_cr=`echo X | tr X '\015'`
17330 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17331 # But we know of no other shell where ac_cr would be empty at this
17332 # point, so we can use a bashism as a fallback.
17333 if test "x$ac_cr" = x; then
17334 eval ac_cr=\$\'\\r\'
17335 fi
17336 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17337 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17338 ac_cs_awk_cr='\\r'
17339 else
17340 ac_cs_awk_cr=$ac_cr
17341 fi
17342
17343 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17344 _ACEOF
17345
17346
17347 {
17348 echo "cat >conf$$subs.awk <<_ACEOF" &&
17349 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17350 echo "_ACEOF"
17351 } >conf$$subs.sh ||
17352 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17353 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17354 ac_delim='%!_!# '
17355 for ac_last_try in false false false false false :; do
17356 . ./conf$$subs.sh ||
17357 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17358
17359 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17360 if test $ac_delim_n = $ac_delim_num; then
17361 break
17362 elif $ac_last_try; then
17363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17364 else
17365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17366 fi
17367 done
17368 rm -f conf$$subs.sh
17369
17370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17371 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17372 _ACEOF
17373 sed -n '
17374 h
17375 s/^/S["/; s/!.*/"]=/
17376 p
17377 g
17378 s/^[^!]*!//
17379 :repl
17380 t repl
17381 s/'"$ac_delim"'$//
17382 t delim
17383 :nl
17384 h
17385 s/\(.\{148\}\)..*/\1/
17386 t more1
17387 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17388 p
17389 n
17390 b repl
17391 :more1
17392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17393 p
17394 g
17395 s/.\{148\}//
17396 t nl
17397 :delim
17398 h
17399 s/\(.\{148\}\)..*/\1/
17400 t more2
17401 s/["\\]/\\&/g; s/^/"/; s/$/"/
17402 p
17403 b
17404 :more2
17405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17406 p
17407 g
17408 s/.\{148\}//
17409 t delim
17410 ' <conf$$subs.awk | sed '
17411 /^[^""]/{
17412 N
17413 s/\n//
17414 }
17415 ' >>$CONFIG_STATUS || ac_write_fail=1
17416 rm -f conf$$subs.awk
17417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17418 _ACAWK
17419 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17420 for (key in S) S_is_set[key] = 1
17421 FS = ""
17422
17423 }
17424 {
17425 line = $ 0
17426 nfields = split(line, field, "@")
17427 substed = 0
17428 len = length(field[1])
17429 for (i = 2; i < nfields; i++) {
17430 key = field[i]
17431 keylen = length(key)
17432 if (S_is_set[key]) {
17433 value = S[key]
17434 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17435 len += length(value) + length(field[++i])
17436 substed = 1
17437 } else
17438 len += 1 + keylen
17439 }
17440
17441 print line
17442 }
17443
17444 _ACAWK
17445 _ACEOF
17446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17447 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17448 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17449 else
17450 cat
17451 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17452 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17453 _ACEOF
17454
17455 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17456 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17457 # trailing colons and then remove the whole line if VPATH becomes empty
17458 # (actually we leave an empty line to preserve line numbers).
17459 if test "x$srcdir" = x.; then
17460 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17461 h
17462 s///
17463 s/^/:/
17464 s/[ ]*$/:/
17465 s/:\$(srcdir):/:/g
17466 s/:\${srcdir}:/:/g
17467 s/:@srcdir@:/:/g
17468 s/^:*//
17469 s/:*$//
17470 x
17471 s/\(=[ ]*\).*/\1/
17472 G
17473 s/\n//
17474 s/^[^=]*=[ ]*$//
17475 }'
17476 fi
17477
17478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17479 fi # test -n "$CONFIG_FILES"
17480
17481 # Set up the scripts for CONFIG_HEADERS section.
17482 # No need to generate them if there are no CONFIG_HEADERS.
17483 # This happens for instance with './config.status Makefile'.
17484 if test -n "$CONFIG_HEADERS"; then
17485 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17486 BEGIN {
17487 _ACEOF
17488
17489 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17490 # here-document in config.status, that substitutes the proper values into
17491 # config.h.in to produce config.h.
17492
17493 # Create a delimiter string that does not exist in confdefs.h, to ease
17494 # handling of long lines.
17495 ac_delim='%!_!# '
17496 for ac_last_try in false false :; do
17497 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17498 if test -z "$ac_tt"; then
17499 break
17500 elif $ac_last_try; then
17501 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17502 else
17503 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17504 fi
17505 done
17506
17507 # For the awk script, D is an array of macro values keyed by name,
17508 # likewise P contains macro parameters if any. Preserve backslash
17509 # newline sequences.
17510
17511 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17512 sed -n '
17513 s/.\{148\}/&'"$ac_delim"'/g
17514 t rset
17515 :rset
17516 s/^[ ]*#[ ]*define[ ][ ]*/ /
17517 t def
17518 d
17519 :def
17520 s/\\$//
17521 t bsnl
17522 s/["\\]/\\&/g
17523 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17524 D["\1"]=" \3"/p
17525 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17526 d
17527 :bsnl
17528 s/["\\]/\\&/g
17529 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17530 D["\1"]=" \3\\\\\\n"\\/p
17531 t cont
17532 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17533 t cont
17534 d
17535 :cont
17536 n
17537 s/.\{148\}/&'"$ac_delim"'/g
17538 t clear
17539 :clear
17540 s/\\$//
17541 t bsnlc
17542 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17543 d
17544 :bsnlc
17545 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17546 b cont
17547 ' <confdefs.h | sed '
17548 s/'"$ac_delim"'/"\\\
17549 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17550
17551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17552 for (key in D) D_is_set[key] = 1
17553 FS = ""
17554 }
17555 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17556 line = \$ 0
17557 split(line, arg, " ")
17558 if (arg[1] == "#") {
17559 defundef = arg[2]
17560 mac1 = arg[3]
17561 } else {
17562 defundef = substr(arg[1], 2)
17563 mac1 = arg[2]
17564 }
17565 split(mac1, mac2, "(") #)
17566 macro = mac2[1]
17567 prefix = substr(line, 1, index(line, defundef) - 1)
17568 if (D_is_set[macro]) {
17569 # Preserve the white space surrounding the "#".
17570 print prefix "define", macro P[macro] D[macro]
17571 next
17572 } else {
17573 # Replace #undef with comments. This is necessary, for example,
17574 # in the case of _POSIX_SOURCE, which is predefined and required
17575 # on some systems where configure will not decide to define it.
17576 if (defundef == "undef") {
17577 print "/*", prefix defundef, macro, "*/"
17578 next
17579 }
17580 }
17581 }
17582 { print }
17583 _ACAWK
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17587 fi # test -n "$CONFIG_HEADERS"
17588
17589
17590 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17591 shift
17592 for ac_tag
17593 do
17594 case $ac_tag in
17595 :[FHLC]) ac_mode=$ac_tag; continue;;
17596 esac
17597 case $ac_mode$ac_tag in
17598 :[FHL]*:*);;
17599 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17600 :[FH]-) ac_tag=-:-;;
17601 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17602 esac
17603 ac_save_IFS=$IFS
17604 IFS=:
17605 set x $ac_tag
17606 IFS=$ac_save_IFS
17607 shift
17608 ac_file=$1
17609 shift
17610
17611 case $ac_mode in
17612 :L) ac_source=$1;;
17613 :[FH])
17614 ac_file_inputs=
17615 for ac_f
17616 do
17617 case $ac_f in
17618 -) ac_f="$ac_tmp/stdin";;
17619 *) # Look for the file first in the build tree, then in the source tree
17620 # (if the path is not absolute). The absolute path cannot be DOS-style,
17621 # because $ac_f cannot contain ':'.
17622 test -f "$ac_f" ||
17623 case $ac_f in
17624 [\\/$]*) false;;
17625 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17626 esac ||
17627 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17628 esac
17629 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17630 as_fn_append ac_file_inputs " '$ac_f'"
17631 done
17632
17633 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17634 # use $as_me), people would be surprised to read:
17635 # /* config.h. Generated by config.status. */
17636 configure_input='Generated from '`
17637 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17638 `' by configure.'
17639 if test x"$ac_file" != x-; then
17640 configure_input="$ac_file. $configure_input"
17641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17642 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17643 fi
17644 # Neutralize special characters interpreted by sed in replacement strings.
17645 case $configure_input in #(
17646 *\&* | *\|* | *\\* )
17647 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17648 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17649 *) ac_sed_conf_input=$configure_input;;
17650 esac
17651
17652 case $ac_tag in
17653 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17655 esac
17656 ;;
17657 esac
17658
17659 ac_dir=`$as_dirname -- "$ac_file" ||
17660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17661 X"$ac_file" : 'X\(//\)[^/]' \| \
17662 X"$ac_file" : 'X\(//\)$' \| \
17663 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17664 printf "%s\n" X"$ac_file" |
17665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17666 s//\1/
17667 q
17668 }
17669 /^X\(\/\/\)[^/].*/{
17670 s//\1/
17671 q
17672 }
17673 /^X\(\/\/\)$/{
17674 s//\1/
17675 q
17676 }
17677 /^X\(\/\).*/{
17678 s//\1/
17679 q
17680 }
17681 s/.*/./; q'`
17682 as_dir="$ac_dir"; as_fn_mkdir_p
17683 ac_builddir=.
17684
17685 case "$ac_dir" in
17686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17687 *)
17688 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17689 # A ".." for each directory in $ac_dir_suffix.
17690 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17691 case $ac_top_builddir_sub in
17692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17694 esac ;;
17695 esac
17696 ac_abs_top_builddir=$ac_pwd
17697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17698 # for backward compatibility:
17699 ac_top_builddir=$ac_top_build_prefix
17700
17701 case $srcdir in
17702 .) # We are building in place.
17703 ac_srcdir=.
17704 ac_top_srcdir=$ac_top_builddir_sub
17705 ac_abs_top_srcdir=$ac_pwd ;;
17706 [\\/]* | ?:[\\/]* ) # Absolute name.
17707 ac_srcdir=$srcdir$ac_dir_suffix;
17708 ac_top_srcdir=$srcdir
17709 ac_abs_top_srcdir=$srcdir ;;
17710 *) # Relative name.
17711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17712 ac_top_srcdir=$ac_top_build_prefix$srcdir
17713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17714 esac
17715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17716
17717
17718 case $ac_mode in
17719 :F)
17720 #
17721 # CONFIG_FILE
17722 #
17723
17724 case $INSTALL in
17725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17726 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17727 esac
17728 ac_MKDIR_P=$MKDIR_P
17729 case $MKDIR_P in
17730 [\\/$]* | ?:[\\/]* ) ;;
17731 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17732 esac
17733 _ACEOF
17734
17735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17736 # If the template does not know about datarootdir, expand it.
17737 # FIXME: This hack should be removed a few years after 2.60.
17738 ac_datarootdir_hack=; ac_datarootdir_seen=
17739 ac_sed_dataroot='
17740 /datarootdir/ {
17741 p
17742 q
17743 }
17744 /@datadir@/p
17745 /@docdir@/p
17746 /@infodir@/p
17747 /@localedir@/p
17748 /@mandir@/p'
17749 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17750 *datarootdir*) ac_datarootdir_seen=yes;;
17751 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17753 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17754 _ACEOF
17755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17756 ac_datarootdir_hack='
17757 s&@datadir@&$datadir&g
17758 s&@docdir@&$docdir&g
17759 s&@infodir@&$infodir&g
17760 s&@localedir@&$localedir&g
17761 s&@mandir@&$mandir&g
17762 s&\\\${datarootdir}&$datarootdir&g' ;;
17763 esac
17764 _ACEOF
17765
17766 # Neutralize VPATH when '$srcdir' = '.'.
17767 # Shell code in configure.ac might set extrasub.
17768 # FIXME: do we really want to maintain this feature?
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770 ac_sed_extra="$ac_vpsub
17771 $extrasub
17772 _ACEOF
17773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17774 :t
17775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17776 s|@configure_input@|$ac_sed_conf_input|;t t
17777 s&@top_builddir@&$ac_top_builddir_sub&;t t
17778 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17779 s&@srcdir@&$ac_srcdir&;t t
17780 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17781 s&@top_srcdir@&$ac_top_srcdir&;t t
17782 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17783 s&@builddir@&$ac_builddir&;t t
17784 s&@abs_builddir@&$ac_abs_builddir&;t t
17785 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17786 s&@INSTALL@&$ac_INSTALL&;t t
17787 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17788 $ac_datarootdir_hack
17789 "
17790 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17791 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17792
17793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17794 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17796 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17798 which seems to be undefined. Please make sure it is defined" >&5
17799 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17800 which seems to be undefined. Please make sure it is defined" >&2;}
17801
17802 rm -f "$ac_tmp/stdin"
17803 case $ac_file in
17804 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17805 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17806 esac \
17807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17808 ;;
17809 :H)
17810 #
17811 # CONFIG_HEADER
17812 #
17813 if test x"$ac_file" != x-; then
17814 {
17815 printf "%s\n" "/* $configure_input */" >&1 \
17816 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17817 } >"$ac_tmp/config.h" \
17818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17819 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17821 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17822 else
17823 rm -f "$ac_file"
17824 mv "$ac_tmp/config.h" "$ac_file" \
17825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17826 fi
17827 else
17828 printf "%s\n" "/* $configure_input */" >&1 \
17829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17830 || as_fn_error $? "could not create -" "$LINENO" 5
17831 fi
17832 # Compute "$ac_file"'s index in $config_headers.
17833 _am_arg="$ac_file"
17834 _am_stamp_count=1
17835 for _am_header in $config_headers :; do
17836 case $_am_header in
17837 $_am_arg | $_am_arg:* )
17838 break ;;
17839 * )
17840 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17841 esac
17842 done
17843 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17844 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17845 X"$_am_arg" : 'X\(//\)[^/]' \| \
17846 X"$_am_arg" : 'X\(//\)$' \| \
17847 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17848 printf "%s\n" X"$_am_arg" |
17849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17850 s//\1/
17851 q
17852 }
17853 /^X\(\/\/\)[^/].*/{
17854 s//\1/
17855 q
17856 }
17857 /^X\(\/\/\)$/{
17858 s//\1/
17859 q
17860 }
17861 /^X\(\/\).*/{
17862 s//\1/
17863 q
17864 }
17865 s/.*/./; q'`/stamp-h$_am_stamp_count
17866 ;;
17867
17868 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17869 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17870 ;;
17871 esac
17872
17873
17874 case $ac_file$ac_mode in
17875 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17876 # Older Autoconf quotes --file arguments for eval, but not when files
17877 # are listed without --file. Let's play safe and only enable the eval
17878 # if we detect the quoting.
17879 # TODO: see whether this extra hack can be removed once we start
17880 # requiring Autoconf 2.70 or later.
17881 case $CONFIG_FILES in #(
17882 *\'*) :
17883 eval set x "$CONFIG_FILES" ;; #(
17884 *) :
17885 set x $CONFIG_FILES ;; #(
17886 *) :
17887 ;;
17888 esac
17889 shift
17890 # Used to flag and report bootstrapping failures.
17891 am_rc=0
17892 for am_mf
17893 do
17894 # Strip MF so we end up with the name of the file.
17895 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17896 # Check whether this is an Automake generated Makefile which includes
17897 # dependency-tracking related rules and includes.
17898 # Grep'ing the whole file directly is not great: AIX grep has a line
17899 # limit of 2048, but all sed's we know have understand at least 4000.
17900 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17901 || continue
17902 am_dirpart=`$as_dirname -- "$am_mf" ||
17903 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17904 X"$am_mf" : 'X\(//\)[^/]' \| \
17905 X"$am_mf" : 'X\(//\)$' \| \
17906 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17907 printf "%s\n" X"$am_mf" |
17908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17909 s//\1/
17910 q
17911 }
17912 /^X\(\/\/\)[^/].*/{
17913 s//\1/
17914 q
17915 }
17916 /^X\(\/\/\)$/{
17917 s//\1/
17918 q
17919 }
17920 /^X\(\/\).*/{
17921 s//\1/
17922 q
17923 }
17924 s/.*/./; q'`
17925 am_filepart=`$as_basename -- "$am_mf" ||
17926 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17927 X"$am_mf" : 'X\(//\)$' \| \
17928 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17929 printf "%s\n" X/"$am_mf" |
17930 sed '/^.*\/\([^/][^/]*\)\/*$/{
17931 s//\1/
17932 q
17933 }
17934 /^X\/\(\/\/\)$/{
17935 s//\1/
17936 q
17937 }
17938 /^X\/\(\/\).*/{
17939 s//\1/
17940 q
17941 }
17942 s/.*/./; q'`
17943 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17944 && sed -e '/# am--include-marker/d' "$am_filepart" \
17945 | $MAKE -f - am--depfiles" >&5
17946 (cd "$am_dirpart" \
17947 && sed -e '/# am--include-marker/d' "$am_filepart" \
17948 | $MAKE -f - am--depfiles) >&5 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } || am_rc=$?
17952 done
17953 if test $am_rc -ne 0; then
17954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17955 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17956 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17957 for automatic dependency tracking. If GNU make was not used, consider
17958 re-running the configure script with MAKE=\"gmake\" (or whatever is
17959 necessary). You can also try re-running configure with the
17960 '--disable-dependency-tracking' option to at least be able to build
17961 the package (albeit without support for automatic dependency tracking).
17962 See 'config.log' for more details" "$LINENO" 5; }
17963 fi
17964 { am_dirpart=; unset am_dirpart;}
17965 { am_filepart=; unset am_filepart;}
17966 { am_mf=; unset am_mf;}
17967 { am_rc=; unset am_rc;}
17968 rm -f conftest-deps.mk
17969 }
17970 ;;
17971 "libtool":C)
17972
17973 # See if we are running on zsh, and set the options that allow our
17974 # commands through without removal of \ escapes.
17975 if test -n "${ZSH_VERSION+set}"; then
17976 setopt NO_GLOB_SUBST
17977 fi
17978
17979 cfgfile=${ofile}T
17980 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17981 $RM "$cfgfile"
17982
17983 cat <<_LT_EOF >> "$cfgfile"
17984 #! $SHELL
17985 # Generated automatically by $as_me ($PACKAGE) $VERSION
17986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17987 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17988
17989 # Provide generalized library-building support services.
17990 # Written by Gordon Matzigkeit, 1996
17991
17992 # Copyright (C) 2014 Free Software Foundation, Inc.
17993 # This is free software; see the source for copying conditions. There is NO
17994 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17995
17996 # GNU Libtool is free software; you can redistribute it and/or modify
17997 # it under the terms of the GNU General Public License as published by
17998 # the Free Software Foundation; either version 2 of of the License, or
17999 # (at your option) any later version.
18000 #
18001 # As a special exception to the GNU General Public License, if you
18002 # distribute this file as part of a program or library that is built
18003 # using GNU Libtool, you may include this file under the same
18004 # distribution terms that you use for the rest of that program.
18005 #
18006 # GNU Libtool is distributed in the hope that it will be useful, but
18007 # WITHOUT ANY WARRANTY; without even the implied warranty of
18008 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18009 # GNU General Public License for more details.
18010 #
18011 # You should have received a copy of the GNU General Public License
18012 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18013
18014
18015 # The names of the tagged configurations supported by this script.
18016 available_tags=''
18017
18018 # Configured defaults for sys_lib_dlsearch_path munging.
18019 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18020
18021 # ### BEGIN LIBTOOL CONFIG
18022
18023 # Which release of libtool.m4 was used?
18024 macro_version=$macro_version
18025 macro_revision=$macro_revision
18026
18027 # Whether or not to build shared libraries.
18028 build_libtool_libs=$enable_shared
18029
18030 # Whether or not to build static libraries.
18031 build_old_libs=$enable_static
18032
18033 # What type of objects to build.
18034 pic_mode=$pic_mode
18035
18036 # Whether or not to optimize for fast installation.
18037 fast_install=$enable_fast_install
18038
18039 # Shared archive member basename,for filename based shared library versioning on AIX.
18040 shared_archive_member_spec=$shared_archive_member_spec
18041
18042 # Shell to use when invoking shell scripts.
18043 SHELL=$lt_SHELL
18044
18045 # An echo program that protects backslashes.
18046 ECHO=$lt_ECHO
18047
18048 # The PATH separator for the build system.
18049 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18050
18051 # The host system.
18052 host_alias=$host_alias
18053 host=$host
18054 host_os=$host_os
18055
18056 # The build system.
18057 build_alias=$build_alias
18058 build=$build
18059 build_os=$build_os
18060
18061 # A sed program that does not truncate output.
18062 SED=$lt_SED
18063
18064 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18065 Xsed="\$SED -e 1s/^X//"
18066
18067 # A grep program that handles long lines.
18068 GREP=$lt_GREP
18069
18070 # An ERE matcher.
18071 EGREP=$lt_EGREP
18072
18073 # A literal string matcher.
18074 FGREP=$lt_FGREP
18075
18076 # A BSD- or MS-compatible name lister.
18077 NM=$lt_NM
18078
18079 # Whether we need soft or hard links.
18080 LN_S=$lt_LN_S
18081
18082 # What is the maximum length of a command?
18083 max_cmd_len=$max_cmd_len
18084
18085 # Object file suffix (normally "o").
18086 objext=$ac_objext
18087
18088 # Executable file suffix (normally "").
18089 exeext=$exeext
18090
18091 # whether the shell understands "unset".
18092 lt_unset=$lt_unset
18093
18094 # turn spaces into newlines.
18095 SP2NL=$lt_lt_SP2NL
18096
18097 # turn newlines into spaces.
18098 NL2SP=$lt_lt_NL2SP
18099
18100 # convert \$build file names to \$host format.
18101 to_host_file_cmd=$lt_cv_to_host_file_cmd
18102
18103 # convert \$build files to toolchain format.
18104 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18105
18106 # A file(cmd) program that detects file types.
18107 FILECMD=$lt_FILECMD
18108
18109 # An object symbol dumper.
18110 OBJDUMP=$lt_OBJDUMP
18111
18112 # Method to check whether dependent libraries are shared objects.
18113 deplibs_check_method=$lt_deplibs_check_method
18114
18115 # Command to use when deplibs_check_method = "file_magic".
18116 file_magic_cmd=$lt_file_magic_cmd
18117
18118 # How to find potential files when deplibs_check_method = "file_magic".
18119 file_magic_glob=$lt_file_magic_glob
18120
18121 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18122 want_nocaseglob=$lt_want_nocaseglob
18123
18124 # DLL creation program.
18125 DLLTOOL=$lt_DLLTOOL
18126
18127 # Command to associate shared and link libraries.
18128 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18129
18130 # The archiver.
18131 AR=$lt_AR
18132
18133 # Flags to create an archive (by configure).
18134 lt_ar_flags=$lt_ar_flags
18135
18136 # Flags to create an archive.
18137 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18138
18139 # How to feed a file listing to the archiver.
18140 archiver_list_spec=$lt_archiver_list_spec
18141
18142 # A symbol stripping program.
18143 STRIP=$lt_STRIP
18144
18145 # Commands used to install an old-style archive.
18146 RANLIB=$lt_RANLIB
18147 old_postinstall_cmds=$lt_old_postinstall_cmds
18148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18149
18150 # Whether to use a lock for old archive extraction.
18151 lock_old_archive_extraction=$lock_old_archive_extraction
18152
18153 # A C compiler.
18154 LTCC=$lt_CC
18155
18156 # LTCC compiler flags.
18157 LTCFLAGS=$lt_CFLAGS
18158
18159 # Take the output of nm and produce a listing of raw symbols and C names.
18160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18161
18162 # Transform the output of nm in a proper C declaration.
18163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18164
18165 # Transform the output of nm into a list of symbols to manually relocate.
18166 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18167
18168 # Transform the output of nm in a C name address pair.
18169 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18170
18171 # Transform the output of nm in a C name address pair when lib prefix is needed.
18172 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18173
18174 # The name lister interface.
18175 nm_interface=$lt_lt_cv_nm_interface
18176
18177 # Specify filename containing input files for \$NM.
18178 nm_file_list_spec=$lt_nm_file_list_spec
18179
18180 # The root where to search for dependent libraries,and where our libraries should be installed.
18181 lt_sysroot=$lt_sysroot
18182
18183 # Command to truncate a binary pipe.
18184 lt_truncate_bin=$lt_lt_cv_truncate_bin
18185
18186 # The name of the directory that contains temporary libtool files.
18187 objdir=$objdir
18188
18189 # Used to examine libraries when file_magic_cmd begins with "file".
18190 MAGIC_CMD=$MAGIC_CMD
18191
18192 # Must we lock files when doing compilation?
18193 need_locks=$lt_need_locks
18194
18195 # Manifest tool.
18196 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18197
18198 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18199 DSYMUTIL=$lt_DSYMUTIL
18200
18201 # Tool to change global to local symbols on Mac OS X.
18202 NMEDIT=$lt_NMEDIT
18203
18204 # Tool to manipulate fat objects and archives on Mac OS X.
18205 LIPO=$lt_LIPO
18206
18207 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18208 OTOOL=$lt_OTOOL
18209
18210 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18211 OTOOL64=$lt_OTOOL64
18212
18213 # Old archive suffix (normally "a").
18214 libext=$libext
18215
18216 # Shared library suffix (normally ".so").
18217 shrext_cmds=$lt_shrext_cmds
18218
18219 # The commands to extract the exported symbol list from a shared archive.
18220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18221
18222 # Variables whose values should be saved in libtool wrapper scripts and
18223 # restored at link time.
18224 variables_saved_for_relink=$lt_variables_saved_for_relink
18225
18226 # Do we need the "lib" prefix for modules?
18227 need_lib_prefix=$need_lib_prefix
18228
18229 # Do we need a version for libraries?
18230 need_version=$need_version
18231
18232 # Library versioning type.
18233 version_type=$version_type
18234
18235 # Shared library runtime path variable.
18236 runpath_var=$runpath_var
18237
18238 # Shared library path variable.
18239 shlibpath_var=$shlibpath_var
18240
18241 # Is shlibpath searched before the hard-coded library search path?
18242 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18243
18244 # Format of library name prefix.
18245 libname_spec=$lt_libname_spec
18246
18247 # List of archive names. First name is the real one, the rest are links.
18248 # The last name is the one that the linker finds with -lNAME
18249 library_names_spec=$lt_library_names_spec
18250
18251 # The coded name of the library, if different from the real name.
18252 soname_spec=$lt_soname_spec
18253
18254 # Permission mode override for installation of shared libraries.
18255 install_override_mode=$lt_install_override_mode
18256
18257 # Command to use after installation of a shared archive.
18258 postinstall_cmds=$lt_postinstall_cmds
18259
18260 # Command to use after uninstallation of a shared archive.
18261 postuninstall_cmds=$lt_postuninstall_cmds
18262
18263 # Commands used to finish a libtool library installation in a directory.
18264 finish_cmds=$lt_finish_cmds
18265
18266 # As "finish_cmds", except a single script fragment to be evaled but
18267 # not shown.
18268 finish_eval=$lt_finish_eval
18269
18270 # Whether we should hardcode library paths into libraries.
18271 hardcode_into_libs=$hardcode_into_libs
18272
18273 # Compile-time system search path for libraries.
18274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18275
18276 # Detected run-time system search path for libraries.
18277 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18278
18279 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18280 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18281
18282 # Whether dlopen is supported.
18283 dlopen_support=$enable_dlopen
18284
18285 # Whether dlopen of programs is supported.
18286 dlopen_self=$enable_dlopen_self
18287
18288 # Whether dlopen of statically linked programs is supported.
18289 dlopen_self_static=$enable_dlopen_self_static
18290
18291 # Commands to strip libraries.
18292 old_striplib=$lt_old_striplib
18293 striplib=$lt_striplib
18294
18295
18296 # The linker used to build libraries.
18297 LD=$lt_LD
18298
18299 # How to create reloadable object files.
18300 reload_flag=$lt_reload_flag
18301 reload_cmds=$lt_reload_cmds
18302
18303 # Commands used to build an old-style archive.
18304 old_archive_cmds=$lt_old_archive_cmds
18305
18306 # A language specific compiler.
18307 CC=$lt_compiler
18308
18309 # Is the compiler the GNU compiler?
18310 with_gcc=$GCC
18311
18312 # Compiler flag to turn off builtin functions.
18313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18314
18315 # Additional compiler flags for building library objects.
18316 pic_flag=$lt_lt_prog_compiler_pic
18317
18318 # How to pass a linker flag through the compiler.
18319 wl=$lt_lt_prog_compiler_wl
18320
18321 # Compiler flag to prevent dynamic linking.
18322 link_static_flag=$lt_lt_prog_compiler_static
18323
18324 # Does compiler simultaneously support -c and -o options?
18325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18326
18327 # Whether or not to add -lc for building shared libraries.
18328 build_libtool_need_lc=$archive_cmds_need_lc
18329
18330 # Whether or not to disallow shared libs when runtime libs are static.
18331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18332
18333 # Compiler flag to allow reflexive dlopens.
18334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18335
18336 # Compiler flag to generate shared objects directly from archives.
18337 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18338
18339 # Whether the compiler copes with passing no objects directly.
18340 compiler_needs_object=$lt_compiler_needs_object
18341
18342 # Create an old-style archive from a shared archive.
18343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18344
18345 # Create a temporary old-style archive to link instead of a shared archive.
18346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18347
18348 # Commands used to build a shared archive.
18349 archive_cmds=$lt_archive_cmds
18350 archive_expsym_cmds=$lt_archive_expsym_cmds
18351
18352 # Commands used to build a loadable module if different from building
18353 # a shared archive.
18354 module_cmds=$lt_module_cmds
18355 module_expsym_cmds=$lt_module_expsym_cmds
18356
18357 # Whether we are building with GNU ld or not.
18358 with_gnu_ld=$lt_with_gnu_ld
18359
18360 # Flag that allows shared libraries with undefined symbols to be built.
18361 allow_undefined_flag=$lt_allow_undefined_flag
18362
18363 # Flag that enforces no undefined symbols.
18364 no_undefined_flag=$lt_no_undefined_flag
18365
18366 # Flag to hardcode \$libdir into a binary during linking.
18367 # This must work even if \$libdir does not exist
18368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18369
18370 # Whether we need a single "-rpath" flag with a separated argument.
18371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18372
18373 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18374 # DIR into the resulting binary.
18375 hardcode_direct=$hardcode_direct
18376
18377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18378 # DIR into the resulting binary and the resulting library dependency is
18379 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18380 # library is relocated.
18381 hardcode_direct_absolute=$hardcode_direct_absolute
18382
18383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18384 # into the resulting binary.
18385 hardcode_minus_L=$hardcode_minus_L
18386
18387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18388 # into the resulting binary.
18389 hardcode_shlibpath_var=$hardcode_shlibpath_var
18390
18391 # Set to "yes" if building a shared library automatically hardcodes DIR
18392 # into the library and all subsequent libraries and executables linked
18393 # against it.
18394 hardcode_automatic=$hardcode_automatic
18395
18396 # Set to yes if linker adds runtime paths of dependent libraries
18397 # to runtime path list.
18398 inherit_rpath=$inherit_rpath
18399
18400 # Whether libtool must link a program against all its dependency libraries.
18401 link_all_deplibs=$link_all_deplibs
18402
18403 # Set to "yes" if exported symbols are required.
18404 always_export_symbols=$always_export_symbols
18405
18406 # The commands to list exported symbols.
18407 export_symbols_cmds=$lt_export_symbols_cmds
18408
18409 # Symbols that should not be listed in the preloaded symbols.
18410 exclude_expsyms=$lt_exclude_expsyms
18411
18412 # Symbols that must always be exported.
18413 include_expsyms=$lt_include_expsyms
18414
18415 # Commands necessary for linking programs (against libraries) with templates.
18416 prelink_cmds=$lt_prelink_cmds
18417
18418 # Commands necessary for finishing linking programs.
18419 postlink_cmds=$lt_postlink_cmds
18420
18421 # Specify filename containing input files.
18422 file_list_spec=$lt_file_list_spec
18423
18424 # How to hardcode a shared library path into an executable.
18425 hardcode_action=$hardcode_action
18426
18427 # ### END LIBTOOL CONFIG
18428
18429 _LT_EOF
18430
18431 cat <<'_LT_EOF' >> "$cfgfile"
18432
18433 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18434
18435 # func_munge_path_list VARIABLE PATH
18436 # -----------------------------------
18437 # VARIABLE is name of variable containing _space_ separated list of
18438 # directories to be munged by the contents of PATH, which is string
18439 # having a format:
18440 # "DIR[:DIR]:"
18441 # string "DIR[ DIR]" will be prepended to VARIABLE
18442 # ":DIR[:DIR]"
18443 # string "DIR[ DIR]" will be appended to VARIABLE
18444 # "DIRP[:DIRP]::[DIRA:]DIRA"
18445 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18446 # "DIRA[ DIRA]" will be appended to VARIABLE
18447 # "DIR[:DIR]"
18448 # VARIABLE will be replaced by "DIR[ DIR]"
18449 func_munge_path_list ()
18450 {
18451 case x$2 in
18452 x)
18453 ;;
18454 *:)
18455 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18456 ;;
18457 x:*)
18458 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18459 ;;
18460 *::*)
18461 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18462 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18463 ;;
18464 *)
18465 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18466 ;;
18467 esac
18468 }
18469
18470
18471 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18472 func_cc_basename ()
18473 {
18474 for cc_temp in $*""; do
18475 case $cc_temp in
18476 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18477 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18478 \-*) ;;
18479 *) break;;
18480 esac
18481 done
18482 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18483 }
18484
18485
18486 # ### END FUNCTIONS SHARED WITH CONFIGURE
18487
18488 _LT_EOF
18489
18490 case $host_os in
18491 aix3*)
18492 cat <<\_LT_EOF >> "$cfgfile"
18493 # AIX sometimes has problems with the GCC collect2 program. For some
18494 # reason, if we set the COLLECT_NAMES environment variable, the problems
18495 # vanish in a puff of smoke.
18496 if test set != "${COLLECT_NAMES+set}"; then
18497 COLLECT_NAMES=
18498 export COLLECT_NAMES
18499 fi
18500 _LT_EOF
18501 ;;
18502 esac
18503
18504
18505
18506 ltmain=$ac_aux_dir/ltmain.sh
18507
18508
18509 # We use sed instead of cat because bash on DJGPP gets confused if
18510 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18511 # text mode, it properly converts lines to CR/LF. This bash problem
18512 # is reportedly fixed, but why not run on old versions too?
18513 $SED '$q' "$ltmain" >> "$cfgfile" \
18514 || (rm -f "$cfgfile"; exit 1)
18515
18516 mv -f "$cfgfile" "$ofile" ||
18517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18518 chmod +x "$ofile"
18519
18520 ;;
18521
18522 esac
18523 done # for ac_tag
18524
18525
18526 as_fn_exit 0
18527 _ACEOF
18528 ac_clean_files=$ac_clean_files_save
18529
18530 test $ac_write_fail = 0 ||
18531 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18532
18533
18534 # configure is writing to config.log, and then calls config.status.
18535 # config.status does its own redirection, appending to config.log.
18536 # Unfortunately, on DOS this fails, as config.log is still kept open
18537 # by configure, so config.status won't be able to write to it; its
18538 # output is simply discarded. So we exec the FD to /dev/null,
18539 # effectively closing config.log, so it can be properly (re)opened and
18540 # appended to by config.status. When coming back to configure, we
18541 # need to make the FD available again.
18542 if test "$no_create" != yes; then
18543 ac_cs_success=:
18544 ac_config_status_args=
18545 test "$silent" = yes &&
18546 ac_config_status_args="$ac_config_status_args --quiet"
18547 exec 5>/dev/null
18548 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18549 exec 5>>config.log
18550 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18551 # would make configure fail if this is the last instruction.
18552 $ac_cs_success || as_fn_exit 1
18553 fi
18554 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18556 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18557 fi
18558
18559
18560 echo "
18561 Configuration for $PACKAGE $VERSION:
18562 -------------------------------------------
18563
18564 Install prefix: .........: $prefix
18565
18566 Now type 'make' to build $PACKAGE $VERSION,
18567 and then 'make install' for installation.
18568 "
18569