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 libusbmuxd 2.1.1.
4 #
5 # Report bugs to <https://github.com/libimobiledevice/libusbmuxd/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/libusbmuxd/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='libusbmuxd'
617 PACKAGE_TARNAME='libusbmuxd'
618 PACKAGE_VERSION='2.1.1'
619 PACKAGE_STRING='libusbmuxd 2.1.1'
620 PACKAGE_BUGREPORT='https://github.com/libimobiledevice/libusbmuxd/issues'
621 PACKAGE_URL='https://libimobiledevice.org'
622
623 ac_unique_file="src/"
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 GLOBAL_LDFLAGS
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 limd_glue_LIBS
671 limd_glue_CFLAGS
672 libplist_LIBS
673 libplist_CFLAGS
674 PKG_CONFIG_LIBDIR
675 PKG_CONFIG_PATH
676 PKG_CONFIG
677 LT_SYS_LIBRARY_PATH
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 RANLIB
685 ac_ct_AR
686 AR
687 DLLTOOL
688 OBJDUMP
689 FILECMD
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 EGREP
697 GREP
698 SED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 LIBTOOL
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 LIMD_GLUE_VERSION
725 LIBPLIST_VERSION
726 LIBUSBMUXD_SO_VERSION
727 AM_BACKSLASH
728 AM_DEFAULT_VERBOSITY
729 AM_DEFAULT_V
730 AM_V
731 CSCOPE
732 ETAGS
733 CTAGS
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 runstatedir
777 localstatedir
778 sharedstatedir
779 sysconfdir
780 datadir
781 datarootdir
782 libexecdir
783 sbindir
784 bindir
785 program_transform_name
786 prefix
787 exec_prefix
788 PACKAGE_URL
789 PACKAGE_BUGREPORT
790 PACKAGE_STRING
791 PACKAGE_VERSION
792 PACKAGE_TARNAME
793 PACKAGE_NAME
794 PATH_SEPARATOR
795 SHELL
796 am__quote'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_silent_rules
801 enable_dependency_tracking
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_aix_soname
807 with_gnu_ld
808 with_sysroot
809 enable_libtool_lock
810 with_inotify
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 LT_SYS_LIBRARY_PATH
821 PKG_CONFIG
822 PKG_CONFIG_PATH
823 PKG_CONFIG_LIBDIR
824 libplist_CFLAGS
825 libplist_LIBS
826 limd_glue_CFLAGS
827 limd_glue_LIBS
828 CPP'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 runstatedir='${localstatedir}/run'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
905
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
920
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
925
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: '$ac_useropt'"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
958
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: '$ac_useropt'"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
994
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
999
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1029
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1046
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1067
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1103
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
1118 -runstatedir | --runstatedir | --runstatedi | --runstated \
1119 | --runstate | --runstat | --runsta | --runst | --runs \
1120 | --run | --ru | --r)
1121 ac_prev=runstatedir ;;
1122 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1123 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1124 | --run=* | --ru=* | --r=*)
1125 runstatedir=$ac_optarg ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1171
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: '$ac_useropt'"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1187
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: '$ac_useropt'"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) as_fn_error $? "unrecognized option: '$ac_option'
1223 Try '$0 --help' for more information"
1224 ;;
1225
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir runstatedir
1265 do
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: '$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 printf "%s\n" X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 'configure' configures libusbmuxd 2.1.1 to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print 'checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for '--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or '..']
1396
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1402
1403 By default, 'make install' will install all the files in
1404 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than '$ac_default_prefix' using '--prefix',
1406 for instance '--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/libusbmuxd]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of libusbmuxd 2.1.1:";;
1449 esac
1450 cat <<\_ACEOF
1451
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-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 --without-inotify (Linux only) do not build with inotify support
1480 (default is yes)
1481
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 LT_SYS_LIBRARY_PATH
1491 User-defined run-time library search path.
1492 PKG_CONFIG path to pkg-config utility
1493 PKG_CONFIG_PATH
1494 directories to add to pkg-config's search path
1495 PKG_CONFIG_LIBDIR
1496 path overriding pkg-config's built-in search path
1497 libplist_CFLAGS
1498 C compiler flags for libplist, overriding pkg-config
1499 libplist_LIBS
1500 linker flags for libplist, overriding pkg-config
1501 limd_glue_CFLAGS
1502 C compiler flags for limd_glue, overriding pkg-config
1503 limd_glue_LIBS
1504 linker flags for limd_glue, overriding pkg-config
1505 CPP C preprocessor
1506
1507 Use these variables to override the choices made by 'configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 Report bugs to <https://github.com/libimobiledevice/libusbmuxd/issues>.
1511 libusbmuxd home page: <https://libimobiledevice.org>.
1512 _ACEOF
1513 ac_status=$?
1514 fi
1515
1516 if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" ||
1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521 continue
1522 ac_builddir=.
1523
1524 case "$ac_dir" in
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *)
1527 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 esac ;;
1534 esac
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1539
1540 case $srcdir in
1541 .) # We are building in place.
1542 ac_srcdir=.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1549 *) # Relative name.
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 esac
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for configure.gnu first; this name is used for a wrapper for
1558 # Metaconfig's "Configure" on case-insensitive file systems.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 libusbmuxd configure 2.1.1
1576 generated by GNU Autoconf 2.72
1577
1578 Copyright (C) 2023 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582 exit
1583 fi
1584
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1588
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest.beam
1596 if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 printf "%s\n" "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext
1615 then :
1616 ac_retval=0
1617 else case e in #(
1618 e) printf "%s\n" "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1 ;;
1622 esac
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_compile
1628
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_link ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 printf "%s\n" "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 test -x conftest$ac_exeext
1657 }
1658 then :
1659 ac_retval=0
1660 else case e in #(
1661 e) printf "%s\n" "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1 ;;
1665 esac
1666 fi
1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1669 # interfere with the next link command; also delete a directory that is
1670 # left behind by Apple's compiler. We do this before executing the actions.
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_link
1676
1677 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists and can be compiled using the include files in
1680 # INCLUDES, setting the cache variable VAR accordingly.
1681 ac_fn_c_check_header_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 printf %s "checking for $2... " >&6; }
1686 if eval test \${$3+y}
1687 then :
1688 printf %s "(cached) " >&6
1689 else case e in #(
1690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 $4
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"
1696 then :
1697 eval "$3=yes"
1698 else case e in #(
1699 e) eval "$3=no" ;;
1700 esac
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1703 esac
1704 fi
1705 eval ac_res=\$$3
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 printf "%s\n" "$ac_res" >&6; }
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710 } # ac_fn_c_check_header_compile
1711
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 printf %s "checking for $2... " >&6; }
1720 if eval test \${$3+y}
1721 then :
1722 printf %s "(cached) " >&6
1723 else case e in #(
1724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1728 #define $2 innocuous_$2
1729
1730 /* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $2 (void); below. */
1732
1733 #include <limits.h>
1734 #undef $2
1735
1736 /* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1739 #ifdef __cplusplus
1740 extern "C"
1741 #endif
1742 char $2 (void);
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined __stub_$2 || defined __stub___$2
1747 choke me
1748 #endif
1749
1750 int
1751 main (void)
1752 {
1753 return $2 ();
1754 ;
1755 return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_link "$LINENO"
1759 then :
1760 eval "$3=yes"
1761 else case e in #(
1762 e) eval "$3=no" ;;
1763 esac
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1766 conftest$ac_exeext conftest.$ac_ext ;;
1767 esac
1768 fi
1769 eval ac_res=\$$3
1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 printf "%s\n" "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774 } # ac_fn_c_check_func
1775
1776 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1777 # -------------------------------------------
1778 # Tests whether TYPE exists after having included INCLUDES, setting cache
1779 # variable VAR accordingly.
1780 ac_fn_c_check_type ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 printf %s "checking for $2... " >&6; }
1785 if eval test \${$3+y}
1786 then :
1787 printf %s "(cached) " >&6
1788 else case e in #(
1789 e) eval "$3=no"
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 int
1794 main (void)
1795 {
1796 if (sizeof ($2))
1797 return 0;
1798 ;
1799 return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"
1803 then :
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $4
1807 int
1808 main (void)
1809 {
1810 if (sizeof (($2)))
1811 return 0;
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"
1817 then :
1818
1819 else case e in #(
1820 e) eval "$3=yes" ;;
1821 esac
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1826 esac
1827 fi
1828 eval ac_res=\$$3
1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 printf "%s\n" "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_type
1834
1835 # ac_fn_c_find_uintX_t LINENO BITS VAR
1836 # ------------------------------------
1837 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1838 # accordingly.
1839 ac_fn_c_find_uintX_t ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1843 printf %s "checking for uint$2_t... " >&6; }
1844 if eval test \${$3+y}
1845 then :
1846 printf %s "(cached) " >&6
1847 else case e in #(
1848 e) eval "$3=no"
1849 # Order is important - never check a type that is potentially smaller
1850 # than half of the expected target width.
1851 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1852 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 $ac_includes_default
1856 int
1857 main (void)
1858 {
1859 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1860 test_array [0] = 0;
1861 return test_array [0];
1862
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"
1868 then :
1869 case $ac_type in #(
1870 uint$2_t) :
1871 eval "$3=yes" ;; #(
1872 *) :
1873 eval "$3=\$ac_type" ;;
1874 esac
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1877 if eval test \"x\$"$3"\" = x"no"
1878 then :
1879
1880 else case e in #(
1881 e) break ;;
1882 esac
1883 fi
1884 done ;;
1885 esac
1886 fi
1887 eval ac_res=\$$3
1888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 printf "%s\n" "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_find_uintX_t
1893
1894 # ac_fn_c_try_cpp LINENO
1895 # ----------------------
1896 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_c_try_cpp ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_cpp conftest.$ac_ext"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 printf "%s\n" "$ac_try_echo"; } >&5
1907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } > conftest.i && {
1916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 }
1919 then :
1920 ac_retval=0
1921 else case e in #(
1922 e) printf "%s\n" "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1 ;;
1926 esac
1927 fi
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_cpp
1932 ac_configure_args_raw=
1933 for ac_arg
1934 do
1935 case $ac_arg in
1936 *\'*)
1937 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 esac
1939 as_fn_append ac_configure_args_raw " '$ac_arg'"
1940 done
1941
1942 case $ac_configure_args_raw in
1943 *$as_nl*)
1944 ac_safe_unquote= ;;
1945 *)
1946 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1947 ac_unsafe_a="$ac_unsafe_z#~"
1948 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1949 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1950 esac
1951
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1955
1956 It was created by libusbmuxd $as_me 2.1.1, which was
1957 generated by GNU Autoconf 2.72. Invocation command line was
1958
1959 $ $0$ac_configure_args_raw
1960
1961 _ACEOF
1962 exec 5>>config.log
1963 {
1964 cat <<_ASUNAME
1965 ## --------- ##
1966 ## Platform. ##
1967 ## --------- ##
1968
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1977
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1985
1986 _ASUNAME
1987
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991 IFS=$as_save_IFS
1992 case $as_dir in #(((
1993 '') as_dir=./ ;;
1994 */) ;;
1995 *) as_dir=$as_dir/ ;;
1996 esac
1997 printf "%s\n" "PATH: $as_dir"
1998 done
1999 IFS=$as_save_IFS
2000
2001 } >&5
2002
2003 cat >&5 <<_ACEOF
2004
2005
2006 ## ----------- ##
2007 ## Core tests. ##
2008 ## ----------- ##
2009
2010 _ACEOF
2011
2012
2013 # Keep a trace of the command line.
2014 # Strip out --no-create and --no-recursion so they do not pile up.
2015 # Strip out --silent because we don't want to record it for future runs.
2016 # Also quote any args containing shell meta-characters.
2017 # Make two passes to allow for proper duplicate-argument suppression.
2018 ac_configure_args=
2019 ac_configure_args0=
2020 ac_configure_args1=
2021 ac_must_keep_next=false
2022 for ac_pass in 1 2
2023 do
2024 for ac_arg
2025 do
2026 case $ac_arg in
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2030 continue ;;
2031 *\'*)
2032 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 esac
2034 case $ac_pass in
2035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2036 2)
2037 as_fn_append ac_configure_args1 " '$ac_arg'"
2038 if test $ac_must_keep_next = true; then
2039 ac_must_keep_next=false # Got value, back to normal.
2040 else
2041 case $ac_arg in
2042 *=* | --config-cache | -C | -disable-* | --disable-* \
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2045 | -with-* | --with-* | -without-* | --without-* | --x)
2046 case "$ac_configure_args0 " in
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 esac
2049 ;;
2050 -* ) ac_must_keep_next=true ;;
2051 esac
2052 fi
2053 as_fn_append ac_configure_args " '$ac_arg'"
2054 ;;
2055 esac
2056 done
2057 done
2058 { ac_configure_args0=; unset ac_configure_args0;}
2059 { ac_configure_args1=; unset ac_configure_args1;}
2060
2061 # When interrupted or exit'd, cleanup temporary files, and complete
2062 # config.log. We remove comments because anyway the quotes in there
2063 # would cause problems or look ugly.
2064 # WARNING: Use '\'' to represent an apostrophe within the trap.
2065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2066 trap 'exit_status=$?
2067 # Sanitize IFS.
2068 IFS=" "" $as_nl"
2069 # Save into config.log some information that might help in debugging.
2070 {
2071 echo
2072
2073 printf "%s\n" "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2076 echo
2077 # The following way of writing the cache mishandles newlines in values,
2078 (
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in #(
2082 *${as_nl}*)
2083 case $ac_var in #(
2084 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 esac
2087 case $ac_var in #(
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2091 esac ;;
2092 esac
2093 done
2094 (set) 2>&1 |
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2097 sed -n \
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 ;; #(
2101 *)
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103 ;;
2104 esac |
2105 sort
2106 )
2107 echo
2108
2109 printf "%s\n" "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2112 echo
2113 for ac_var in $ac_subst_vars
2114 do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 printf "%s\n" "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2122
2123 if test -n "$ac_subst_files"; then
2124 printf "%s\n" "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2127 echo
2128 for ac_var in $ac_subst_files
2129 do
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 printf "%s\n" "$ac_var='\''$ac_val'\''"
2135 done | sort
2136 echo
2137 fi
2138
2139 if test -s confdefs.h; then
2140 printf "%s\n" "## ----------- ##
2141 ## confdefs.h. ##
2142 ## ----------- ##"
2143 echo
2144 cat confdefs.h
2145 echo
2146 fi
2147 test "$ac_signal" != 0 &&
2148 printf "%s\n" "$as_me: caught signal $ac_signal"
2149 printf "%s\n" "$as_me: exit $exit_status"
2150 } >&5
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153 exit $exit_status
2154 ' 0
2155 for ac_signal in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2159
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2162
2163 printf "%s\n" "/* confdefs.h */" > confdefs.h
2164
2165 # Predefined preprocessor variables.
2166
2167 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2168
2169 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2170
2171 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2172
2173 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2174
2175 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2176
2177 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2178
2179
2180 # Let the site file select an alternate cache file if it wants to.
2181 # Prefer an explicitly selected file to automatically selected ones.
2182 if test -n "$CONFIG_SITE"; then
2183 ac_site_files="$CONFIG_SITE"
2184 elif test "x$prefix" != xNONE; then
2185 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2186 else
2187 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2188 fi
2189
2190 for ac_site_file in $ac_site_files
2191 do
2192 case $ac_site_file in #(
2193 */*) :
2194 ;; #(
2195 *) :
2196 ac_site_file=./$ac_site_file ;;
2197 esac
2198 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2201 sed 's/^/| /' "$ac_site_file" >&5
2202 . "$ac_site_file" \
2203 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2204 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2205 as_fn_error $? "failed to load site script $ac_site_file
2206 See 'config.log' for more details" "$LINENO" 5; }
2207 fi
2208 done
2209
2210 if test -r "$cache_file"; then
2211 # Some versions of bash will fail to source /dev/null (special files
2212 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2215 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2216 case $cache_file in
2217 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218 *) . "./$cache_file";;
2219 esac
2220 fi
2221 else
2222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2223 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2224 >$cache_file
2225 fi
2226
2227 # Test code for whether the C compiler supports C89 (global declarations)
2228 ac_c_conftest_c89_globals='
2229 /* Does the compiler advertise C89 conformance?
2230 Do not test the value of __STDC__, because some compilers set it to 0
2231 while being otherwise adequately conformant. */
2232 #if !defined __STDC__
2233 # error "Compiler does not advertise C89 conformance"
2234 #endif
2235
2236 #include <stddef.h>
2237 #include <stdarg.h>
2238 struct stat;
2239 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2240 struct buf { int x; };
2241 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2242 static char *e (char **p, int i)
2243 {
2244 return p[i];
2245 }
2246 static char *f (char * (*g) (char **, int), char **p, ...)
2247 {
2248 char *s;
2249 va_list v;
2250 va_start (v,p);
2251 s = g (p, va_arg (v,int));
2252 va_end (v);
2253 return s;
2254 }
2255
2256 /* C89 style stringification. */
2257 #define noexpand_stringify(a) #a
2258 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2259
2260 /* C89 style token pasting. Exercises some of the corner cases that
2261 e.g. old MSVC gets wrong, but not very hard. */
2262 #define noexpand_concat(a,b) a##b
2263 #define expand_concat(a,b) noexpand_concat(a,b)
2264 extern int vA;
2265 extern int vbee;
2266 #define aye A
2267 #define bee B
2268 int *pvA = &expand_concat(v,aye);
2269 int *pvbee = &noexpand_concat(v,bee);
2270
2271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2272 function prototypes and stuff, but not \xHH hex character constants.
2273 These do not provoke an error unfortunately, instead are silently treated
2274 as an "x". The following induces an error, until -std is added to get
2275 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2276 array size at least. It is necessary to write \x00 == 0 to get something
2277 that is true only with -std. */
2278 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2279
2280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2281 inside strings and character constants. */
2282 #define FOO(x) '\''x'\''
2283 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2284
2285 int test (int i, double x);
2286 struct s1 {int (*f) (int a);};
2287 struct s2 {int (*f) (double a);};
2288 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2289 int, int);'
2290
2291 # Test code for whether the C compiler supports C89 (body of main).
2292 ac_c_conftest_c89_main='
2293 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2294 '
2295
2296 # Test code for whether the C compiler supports C99 (global declarations)
2297 ac_c_conftest_c99_globals='
2298 /* Does the compiler advertise C99 conformance? */
2299 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2300 # error "Compiler does not advertise C99 conformance"
2301 #endif
2302
2303 // See if C++-style comments work.
2304
2305 #include <stdbool.h>
2306 extern int puts (const char *);
2307 extern int printf (const char *, ...);
2308 extern int dprintf (int, const char *, ...);
2309 extern void *malloc (size_t);
2310 extern void free (void *);
2311
2312 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2313 // dprintf is used instead of fprintf to avoid needing to declare
2314 // FILE and stderr.
2315 #define debug(...) dprintf (2, __VA_ARGS__)
2316 #define showlist(...) puts (#__VA_ARGS__)
2317 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2318 static void
2319 test_varargs_macros (void)
2320 {
2321 int x = 1234;
2322 int y = 5678;
2323 debug ("Flag");
2324 debug ("X = %d\n", x);
2325 showlist (The first, second, and third items.);
2326 report (x>y, "x is %d but y is %d", x, y);
2327 }
2328
2329 // Check long long types.
2330 #define BIG64 18446744073709551615ull
2331 #define BIG32 4294967295ul
2332 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2333 #if !BIG_OK
2334 #error "your preprocessor is broken"
2335 #endif
2336 #if BIG_OK
2337 #else
2338 #error "your preprocessor is broken"
2339 #endif
2340 static long long int bignum = -9223372036854775807LL;
2341 static unsigned long long int ubignum = BIG64;
2342
2343 struct incomplete_array
2344 {
2345 int datasize;
2346 double data[];
2347 };
2348
2349 struct named_init {
2350 int number;
2351 const wchar_t *name;
2352 double average;
2353 };
2354
2355 typedef const char *ccp;
2356
2357 static inline int
2358 test_restrict (ccp restrict text)
2359 {
2360 // Iterate through items via the restricted pointer.
2361 // Also check for declarations in for loops.
2362 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2363 continue;
2364 return 0;
2365 }
2366
2367 // Check varargs and va_copy.
2368 static bool
2369 test_varargs (const char *format, ...)
2370 {
2371 va_list args;
2372 va_start (args, format);
2373 va_list args_copy;
2374 va_copy (args_copy, args);
2375
2376 const char *str = "";
2377 int number = 0;
2378 float fnumber = 0;
2379
2380 while (*format)
2381 {
2382 switch (*format++)
2383 {
2384 case '\''s'\'': // string
2385 str = va_arg (args_copy, const char *);
2386 break;
2387 case '\''d'\'': // int
2388 number = va_arg (args_copy, int);
2389 break;
2390 case '\''f'\'': // float
2391 fnumber = va_arg (args_copy, double);
2392 break;
2393 default:
2394 break;
2395 }
2396 }
2397 va_end (args_copy);
2398 va_end (args);
2399
2400 return *str && number && fnumber;
2401 }
2402 '
2403
2404 # Test code for whether the C compiler supports C99 (body of main).
2405 ac_c_conftest_c99_main='
2406 // Check bool.
2407 _Bool success = false;
2408 success |= (argc != 0);
2409
2410 // Check restrict.
2411 if (test_restrict ("String literal") == 0)
2412 success = true;
2413 char *restrict newvar = "Another string";
2414
2415 // Check varargs.
2416 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2417 test_varargs_macros ();
2418
2419 // Check flexible array members.
2420 struct incomplete_array *ia =
2421 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2422 ia->datasize = 10;
2423 for (int i = 0; i < ia->datasize; ++i)
2424 ia->data[i] = i * 1.234;
2425 // Work around memory leak warnings.
2426 free (ia);
2427
2428 // Check named initializers.
2429 struct named_init ni = {
2430 .number = 34,
2431 .name = L"Test wide string",
2432 .average = 543.34343,
2433 };
2434
2435 ni.number = 58;
2436
2437 int dynamic_array[ni.number];
2438 dynamic_array[0] = argv[0][0];
2439 dynamic_array[ni.number - 1] = 543;
2440
2441 // work around unused variable warnings
2442 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2443 || dynamic_array[ni.number - 1] != 543);
2444 '
2445
2446 # Test code for whether the C compiler supports C11 (global declarations)
2447 ac_c_conftest_c11_globals='
2448 /* Does the compiler advertise C11 conformance? */
2449 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2450 # error "Compiler does not advertise C11 conformance"
2451 #endif
2452
2453 // Check _Alignas.
2454 char _Alignas (double) aligned_as_double;
2455 char _Alignas (0) no_special_alignment;
2456 extern char aligned_as_int;
2457 char _Alignas (0) _Alignas (int) aligned_as_int;
2458
2459 // Check _Alignof.
2460 enum
2461 {
2462 int_alignment = _Alignof (int),
2463 int_array_alignment = _Alignof (int[100]),
2464 char_alignment = _Alignof (char)
2465 };
2466 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2467
2468 // Check _Noreturn.
2469 int _Noreturn does_not_return (void) { for (;;) continue; }
2470
2471 // Check _Static_assert.
2472 struct test_static_assert
2473 {
2474 int x;
2475 _Static_assert (sizeof (int) <= sizeof (long int),
2476 "_Static_assert does not work in struct");
2477 long int y;
2478 };
2479
2480 // Check UTF-8 literals.
2481 #define u8 syntax error!
2482 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2483
2484 // Check duplicate typedefs.
2485 typedef long *long_ptr;
2486 typedef long int *long_ptr;
2487 typedef long_ptr long_ptr;
2488
2489 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2490 struct anonymous
2491 {
2492 union {
2493 struct { int i; int j; };
2494 struct { int k; long int l; } w;
2495 };
2496 int m;
2497 } v1;
2498 '
2499
2500 # Test code for whether the C compiler supports C11 (body of main).
2501 ac_c_conftest_c11_main='
2502 _Static_assert ((offsetof (struct anonymous, i)
2503 == offsetof (struct anonymous, w.k)),
2504 "Anonymous union alignment botch");
2505 v1.i = 2;
2506 v1.w.k = 5;
2507 ok |= v1.i != 5;
2508 '
2509
2510 # Test code for whether the C compiler supports C11 (complete).
2511 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2512 ${ac_c_conftest_c99_globals}
2513 ${ac_c_conftest_c11_globals}
2514
2515 int
2516 main (int argc, char **argv)
2517 {
2518 int ok = 0;
2519 ${ac_c_conftest_c89_main}
2520 ${ac_c_conftest_c99_main}
2521 ${ac_c_conftest_c11_main}
2522 return ok;
2523 }
2524 "
2525
2526 # Test code for whether the C compiler supports C99 (complete).
2527 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2528 ${ac_c_conftest_c99_globals}
2529
2530 int
2531 main (int argc, char **argv)
2532 {
2533 int ok = 0;
2534 ${ac_c_conftest_c89_main}
2535 ${ac_c_conftest_c99_main}
2536 return ok;
2537 }
2538 "
2539
2540 # Test code for whether the C compiler supports C89 (complete).
2541 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2542
2543 int
2544 main (int argc, char **argv)
2545 {
2546 int ok = 0;
2547 ${ac_c_conftest_c89_main}
2548 return ok;
2549 }
2550 "
2551
2552 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2553 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2554 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2555 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2556 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2557 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2558 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2559 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2560 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2561
2562 # Auxiliary files required by this configure script.
2563 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2564
2565 # Locations in which to look for auxiliary files.
2566 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2567
2568 # Search for a directory containing all of the required auxiliary files,
2569 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2570 # If we don't find one directory that contains all the files we need,
2571 # we report the set of missing files from the *first* directory in
2572 # $ac_aux_dir_candidates and give up.
2573 ac_missing_aux_files=""
2574 ac_first_candidate=:
2575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 as_found=false
2578 for as_dir in $ac_aux_dir_candidates
2579 do
2580 IFS=$as_save_IFS
2581 case $as_dir in #(((
2582 '') as_dir=./ ;;
2583 */) ;;
2584 *) as_dir=$as_dir/ ;;
2585 esac
2586 as_found=:
2587
2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2589 ac_aux_dir_found=yes
2590 ac_install_sh=
2591 for ac_aux in $ac_aux_files
2592 do
2593 # As a special case, if "install-sh" is required, that requirement
2594 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2595 # and $ac_install_sh is set appropriately for whichever one is found.
2596 if test x"$ac_aux" = x"install-sh"
2597 then
2598 if test -f "${as_dir}install-sh"; then
2599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2600 ac_install_sh="${as_dir}install-sh -c"
2601 elif test -f "${as_dir}install.sh"; then
2602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2603 ac_install_sh="${as_dir}install.sh -c"
2604 elif test -f "${as_dir}shtool"; then
2605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2606 ac_install_sh="${as_dir}shtool install -c"
2607 else
2608 ac_aux_dir_found=no
2609 if $ac_first_candidate; then
2610 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2611 else
2612 break
2613 fi
2614 fi
2615 else
2616 if test -f "${as_dir}${ac_aux}"; then
2617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2618 else
2619 ac_aux_dir_found=no
2620 if $ac_first_candidate; then
2621 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2622 else
2623 break
2624 fi
2625 fi
2626 fi
2627 done
2628 if test "$ac_aux_dir_found" = yes; then
2629 ac_aux_dir="$as_dir"
2630 break
2631 fi
2632 ac_first_candidate=false
2633
2634 as_found=false
2635 done
2636 IFS=$as_save_IFS
2637 if $as_found
2638 then :
2639
2640 else case e in #(
2641 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2642 esac
2643 fi
2644
2645
2646 # These three variables are undocumented and unsupported,
2647 # and are intended to be withdrawn in a future Autoconf release.
2648 # They can cause serious problems if a builder's source tree is in a directory
2649 # whose full name contains unusual characters.
2650 if test -f "${ac_aux_dir}config.guess"; then
2651 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2652 fi
2653 if test -f "${ac_aux_dir}config.sub"; then
2654 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2655 fi
2656 if test -f "$ac_aux_dir/configure"; then
2657 ac_configure="$SHELL ${ac_aux_dir}configure"
2658 fi
2659
2660 # Check that the precious variables saved in the cache have kept the same
2661 # value.
2662 ac_cache_corrupted=false
2663 for ac_var in $ac_precious_vars; do
2664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2665 eval ac_new_set=\$ac_env_${ac_var}_set
2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2667 eval ac_new_val=\$ac_env_${ac_var}_value
2668 case $ac_old_set,$ac_new_set in
2669 set,)
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2671 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2673 ,set)
2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2675 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2677 ,);;
2678 *)
2679 if test "x$ac_old_val" != "x$ac_new_val"; then
2680 # differences in whitespace do not lead to failure.
2681 ac_old_val_w=`echo x $ac_old_val`
2682 ac_new_val_w=`echo x $ac_new_val`
2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2685 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2686 ac_cache_corrupted=:
2687 else
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2689 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2690 eval $ac_var=\$ac_old_val
2691 fi
2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2693 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2695 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2696 fi;;
2697 esac
2698 # Pass precious variables to config.status.
2699 if test "$ac_new_set" = set; then
2700 case $ac_new_val in
2701 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2702 *) ac_arg=$ac_var=$ac_new_val ;;
2703 esac
2704 case " $ac_configure_args " in
2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707 esac
2708 fi
2709 done
2710 if $ac_cache_corrupted; then
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2712 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2714 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2715 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2716 and start over" "$LINENO" 5
2717 fi
2718 ## -------------------- ##
2719 ## Main body of script. ##
2720 ## -------------------- ##
2721
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727
2728
2729 am__api_version='1.16'
2730
2731
2732
2733 # Find a good install program. We prefer a C program (faster),
2734 # so one script is as good as another. But avoid the broken or
2735 # incompatible versions:
2736 # SysV /etc/install, /usr/sbin/install
2737 # SunOS /usr/etc/install
2738 # IRIX /sbin/install
2739 # AIX /bin/install
2740 # AmigaOS /C/install, which installs bootblocks on floppy discs
2741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2744 # OS/2's system install, which has a completely different semantic
2745 # ./install, which can be erroneously created by make from ./install.sh.
2746 # Reject install programs that cannot install multiple files.
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2748 printf %s "checking for a BSD-compatible install... " >&6; }
2749 if test -z "$INSTALL"; then
2750 if test ${ac_cv_path_install+y}
2751 then :
2752 printf %s "(cached) " >&6
2753 else case e in #(
2754 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757 IFS=$as_save_IFS
2758 case $as_dir in #(((
2759 '') as_dir=./ ;;
2760 */) ;;
2761 *) as_dir=$as_dir/ ;;
2762 esac
2763 # Account for fact that we put trailing slashes in our PATH walk.
2764 case $as_dir in #((
2765 ./ | /[cC]/* | \
2766 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2767 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2768 /usr/ucb/* ) ;;
2769 *)
2770 # OSF1 and SCO ODT 3.0 have their own names for install.
2771 # Don't use installbsd from OSF since it installs stuff as root
2772 # by default.
2773 for ac_prog in ginstall scoinst install; do
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2776 if test $ac_prog = install &&
2777 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778 # AIX install. It has an incompatible calling convention.
2779 :
2780 elif test $ac_prog = install &&
2781 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782 # program-specific install script used by HP pwplus--don't use.
2783 :
2784 else
2785 rm -rf conftest.one conftest.two conftest.dir
2786 echo one > conftest.one
2787 echo two > conftest.two
2788 mkdir conftest.dir
2789 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2790 test -s conftest.one && test -s conftest.two &&
2791 test -s conftest.dir/conftest.one &&
2792 test -s conftest.dir/conftest.two
2793 then
2794 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2795 break 3
2796 fi
2797 fi
2798 fi
2799 done
2800 done
2801 ;;
2802 esac
2803
2804 done
2805 IFS=$as_save_IFS
2806
2807 rm -rf conftest.one conftest.two conftest.dir
2808 ;;
2809 esac
2810 fi
2811 if test ${ac_cv_path_install+y}; then
2812 INSTALL=$ac_cv_path_install
2813 else
2814 # As a last resort, use the slow shell script. Don't cache a
2815 # value for INSTALL within a source directory, because that will
2816 # break other packages using the cache if that directory is
2817 # removed, or if the value is a relative name.
2818 INSTALL=$ac_install_sh
2819 fi
2820 fi
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2822 printf "%s\n" "$INSTALL" >&6; }
2823
2824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2825 # It thinks the first close brace ends the variable substitution.
2826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2827
2828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2829
2830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2831
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2833 printf %s "checking whether build environment is sane... " >&6; }
2834 # Reject unsafe characters in $srcdir or the absolute working directory
2835 # name. Accept space and tab only in the latter.
2836 am_lf='
2837 '
2838 case `pwd` in
2839 *[\\\"\#\$\&\'\`$am_lf]*)
2840 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2841 esac
2842 case $srcdir in
2843 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2844 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2845 esac
2846
2847 # Do 'set' in a subshell so we don't clobber the current shell's
2848 # arguments. Must try -L first in case configure is actually a
2849 # symlink; some systems play weird games with the mod time of symlinks
2850 # (eg FreeBSD returns the mod time of the symlink's containing
2851 # directory).
2852 if (
2853 am_has_slept=no
2854 for am_try in 1 2; do
2855 echo "timestamp, slept: $am_has_slept" > conftest.file
2856 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2857 if test "$*" = "X"; then
2858 # -L didn't work.
2859 set X `ls -t "$srcdir/configure" conftest.file`
2860 fi
2861 if test "$*" != "X $srcdir/configure conftest.file" \
2862 && test "$*" != "X conftest.file $srcdir/configure"; then
2863
2864 # If neither matched, then we have a broken ls. This can happen
2865 # if, for instance, CONFIG_SHELL is bash and it inherits a
2866 # broken ls alias from the environment. This has actually
2867 # happened. Such a system could not be considered "sane".
2868 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2869 alias in your environment" "$LINENO" 5
2870 fi
2871 if test "$2" = conftest.file || test $am_try -eq 2; then
2872 break
2873 fi
2874 # Just in case.
2875 sleep 1
2876 am_has_slept=yes
2877 done
2878 test "$2" = conftest.file
2879 )
2880 then
2881 # Ok.
2882 :
2883 else
2884 as_fn_error $? "newly created file is older than distributed files!
2885 Check your system clock" "$LINENO" 5
2886 fi
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888 printf "%s\n" "yes" >&6; }
2889 # If we didn't sleep, we still need to ensure time stamps of config.status and
2890 # generated files are strictly newer.
2891 am_sleep_pid=
2892 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2893 ( sleep 1 ) &
2894 am_sleep_pid=$!
2895 fi
2896
2897 rm -f conftest.file
2898
2899 test "$program_prefix" != NONE &&
2900 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2901 # Use a double $ so make ignores it.
2902 test "$program_suffix" != NONE &&
2903 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2904 # Double any \ or $.
2905 # By default was 's,x,x', remove it if useless.
2906 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2907 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2908
2909
2910 # Expand $ac_aux_dir to an absolute path.
2911 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2912
2913
2914 if test x"${MISSING+set}" != xset; then
2915 MISSING="\${SHELL} '$am_aux_dir/missing'"
2916 fi
2917 # Use eval to expand $SHELL
2918 if eval "$MISSING --is-lightweight"; then
2919 am_missing_run="$MISSING "
2920 else
2921 am_missing_run=
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2923 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2924 fi
2925
2926 if test x"${install_sh+set}" != xset; then
2927 case $am_aux_dir in
2928 *\ * | *\ *)
2929 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2930 *)
2931 install_sh="\${SHELL} $am_aux_dir/install-sh"
2932 esac
2933 fi
2934
2935 # Installed binaries are usually stripped using 'strip' when the user
2936 # run "make install-strip". However 'strip' might not be the right
2937 # tool to use in cross-compilation environments, therefore Automake
2938 # will honor the 'STRIP' environment variable to overrule this program.
2939 if test "$cross_compiling" != no; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}strip; ac_word=$2
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 printf %s "checking for $ac_word... " >&6; }
2945 if test ${ac_cv_prog_STRIP+y}
2946 then :
2947 printf %s "(cached) " >&6
2948 else case e in #(
2949 e) if test -n "$STRIP"; then
2950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 case $as_dir in #(((
2957 '') as_dir=./ ;;
2958 */) ;;
2959 *) as_dir=$as_dir/ ;;
2960 esac
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi ;;
2972 esac
2973 fi
2974 STRIP=$ac_cv_prog_STRIP
2975 if test -n "$STRIP"; then
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2977 printf "%s\n" "$STRIP" >&6; }
2978 else
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 printf "%s\n" "no" >&6; }
2981 fi
2982
2983
2984 fi
2985 if test -z "$ac_cv_prog_STRIP"; then
2986 ac_ct_STRIP=$STRIP
2987 # Extract the first word of "strip", so it can be a program name with args.
2988 set dummy strip; ac_word=$2
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 printf %s "checking for $ac_word... " >&6; }
2991 if test ${ac_cv_prog_ac_ct_STRIP+y}
2992 then :
2993 printf %s "(cached) " >&6
2994 else case e in #(
2995 e) if test -n "$ac_ct_STRIP"; then
2996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 case $as_dir in #(((
3003 '') as_dir=./ ;;
3004 */) ;;
3005 *) as_dir=$as_dir/ ;;
3006 esac
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3009 ac_cv_prog_ac_ct_STRIP="strip"
3010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 fi ;;
3018 esac
3019 fi
3020 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3021 if test -n "$ac_ct_STRIP"; then
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3023 printf "%s\n" "$ac_ct_STRIP" >&6; }
3024 else
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 printf "%s\n" "no" >&6; }
3027 fi
3028
3029 if test "x$ac_ct_STRIP" = x; then
3030 STRIP=":"
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 STRIP=$ac_ct_STRIP
3039 fi
3040 else
3041 STRIP="$ac_cv_prog_STRIP"
3042 fi
3043
3044 fi
3045 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3046
3047
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3049 printf %s "checking for a race-free mkdir -p... " >&6; }
3050 if test -z "$MKDIR_P"; then
3051 if test ${ac_cv_path_mkdir+y}
3052 then :
3053 printf %s "(cached) " >&6
3054 else case e in #(
3055 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3057 do
3058 IFS=$as_save_IFS
3059 case $as_dir in #(((
3060 '') as_dir=./ ;;
3061 */) ;;
3062 *) as_dir=$as_dir/ ;;
3063 esac
3064 for ac_prog in mkdir gmkdir; do
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3067 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3068 'mkdir ('*'coreutils) '* | \
3069 *'BusyBox '* | \
3070 'mkdir (fileutils) '4.1*)
3071 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3072 break 3;;
3073 esac
3074 done
3075 done
3076 done
3077 IFS=$as_save_IFS
3078 ;;
3079 esac
3080 fi
3081
3082 test -d ./--version && rmdir ./--version
3083 if test ${ac_cv_path_mkdir+y}; then
3084 MKDIR_P="$ac_cv_path_mkdir -p"
3085 else
3086 # As a last resort, use plain mkdir -p,
3087 # in the hope it doesn't have the bugs of ancient mkdir.
3088 MKDIR_P='mkdir -p'
3089 fi
3090 fi
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092 printf "%s\n" "$MKDIR_P" >&6; }
3093
3094 for ac_prog in gawk mawk nawk awk
3095 do
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 printf %s "checking for $ac_word... " >&6; }
3100 if test ${ac_cv_prog_AWK+y}
3101 then :
3102 printf %s "(cached) " >&6
3103 else case e in #(
3104 e) if test -n "$AWK"; then
3105 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 case $as_dir in #(((
3112 '') as_dir=./ ;;
3113 */) ;;
3114 *) as_dir=$as_dir/ ;;
3115 esac
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_AWK="$ac_prog"
3119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi ;;
3127 esac
3128 fi
3129 AWK=$ac_cv_prog_AWK
3130 if test -n "$AWK"; then
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132 printf "%s\n" "$AWK" >&6; }
3133 else
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 printf "%s\n" "no" >&6; }
3136 fi
3137
3138
3139 test -n "$AWK" && break
3140 done
3141
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144 set x ${MAKE-make}
3145 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3147 then :
3148 printf %s "(cached) " >&6
3149 else case e in #(
3150 e) cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3159 *)
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make ;;
3163 esac
3164 fi
3165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 printf "%s\n" "yes" >&6; }
3168 SET_MAKE=
3169 else
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf "%s\n" "no" >&6; }
3172 SET_MAKE="MAKE=${MAKE-make}"
3173 fi
3174
3175 rm -rf .tst 2>/dev/null
3176 mkdir .tst 2>/dev/null
3177 if test -d .tst; then
3178 am__leading_dot=.
3179 else
3180 am__leading_dot=_
3181 fi
3182 rmdir .tst 2>/dev/null
3183
3184 # Check whether --enable-silent-rules was given.
3185 if test ${enable_silent_rules+y}
3186 then :
3187 enableval=$enable_silent_rules;
3188 fi
3189
3190 case $enable_silent_rules in # (((
3191 yes) AM_DEFAULT_VERBOSITY=0;;
3192 no) AM_DEFAULT_VERBOSITY=1;;
3193 *) AM_DEFAULT_VERBOSITY=1;;
3194 esac
3195 am_make=${MAKE-make}
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3197 printf %s "checking whether $am_make supports nested variables... " >&6; }
3198 if test ${am_cv_make_support_nested_variables+y}
3199 then :
3200 printf %s "(cached) " >&6
3201 else case e in #(
3202 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3203 BAR0=false
3204 BAR1=true
3205 V=1
3206 am__doit:
3207 @$(TRUE)
3208 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3209 am_cv_make_support_nested_variables=yes
3210 else
3211 am_cv_make_support_nested_variables=no
3212 fi ;;
3213 esac
3214 fi
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3216 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3217 if test $am_cv_make_support_nested_variables = yes; then
3218 AM_V='$(V)'
3219 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3220 else
3221 AM_V=$AM_DEFAULT_VERBOSITY
3222 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3223 fi
3224 AM_BACKSLASH='\'
3225
3226 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3227 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3228 # is not polluted with repeated "-I."
3229 am__isrc=' -I$(srcdir)'
3230 # test to see if srcdir already configured
3231 if test -f $srcdir/config.status; then
3232 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3233 fi
3234 fi
3235
3236 # test whether we have cygpath
3237 if test -z "$CYGPATH_W"; then
3238 if (cygpath --version) >/dev/null 2>/dev/null; then
3239 CYGPATH_W='cygpath -w'
3240 else
3241 CYGPATH_W=echo
3242 fi
3243 fi
3244
3245
3246 # Define the identity of the package.
3247 PACKAGE='libusbmuxd'
3248 VERSION='2.1.1'
3249
3250
3251 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3252
3253
3254 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3255
3256 # Some tools Automake needs.
3257
3258 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3259
3260
3261 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3262
3263
3264 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3265
3266
3267 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3268
3269
3270 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3271
3272 # For better backward compatibility. To be removed once Automake 1.9.x
3273 # dies out for good. For more background, see:
3274 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3275 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3276 mkdir_p='$(MKDIR_P)'
3277
3278 # We need awk for the "check" target (and possibly the TAP driver). The
3279 # system "awk" is bad on some platforms.
3280 # Always define AMTAR for backward compatibility. Yes, it's still used
3281 # in the wild :-( We should find a proper way to deprecate it ...
3282 AMTAR='$${TAR-tar}'
3283
3284
3285 # We'll loop over all known methods to create a tar archive until one works.
3286 _am_tools='gnutar pax cpio none'
3287
3288 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3289
3290
3291
3292
3293
3294 # Variables for tags utilities; see am/tags.am
3295 if test -z "$CTAGS"; then
3296 CTAGS=ctags
3297 fi
3298
3299 if test -z "$ETAGS"; then
3300 ETAGS=etags
3301 fi
3302
3303 if test -z "$CSCOPE"; then
3304 CSCOPE=cscope
3305 fi
3306
3307
3308
3309 # POSIX will say in a future version that running "rm -f" with no argument
3310 # is OK; and we want to be able to make that assumption in our Makefile
3311 # recipes. So use an aggressive probe to check that the usage we want is
3312 # actually supported "in the wild" to an acceptable degree.
3313 # See automake bug#10828.
3314 # To make any issue more visible, cause the running configure to be aborted
3315 # by default if the 'rm' program in use doesn't match our expectations; the
3316 # user can still override this though.
3317 if rm -f && rm -fr && rm -rf; then : OK; else
3318 cat >&2 <<'END'
3319 Oops!
3320
3321 Your 'rm' program seems unable to run without file operands specified
3322 on the command line, even when the '-f' option is present. This is contrary
3323 to the behaviour of most rm programs out there, and not conforming with
3324 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3325
3326 Please tell [email protected] about your system, including the value
3327 of your $PATH and any error possibly output before this message. This
3328 can help us improve future automake versions.
3329
3330 END
3331 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3332 echo 'Configuration will proceed anyway, since you have set the' >&2
3333 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3334 echo >&2
3335 else
3336 cat >&2 <<'END'
3337 Aborting the configuration process, to ensure you take notice of the issue.
3338
3339 You can download and install GNU coreutils to get an 'rm' implementation
3340 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3341
3342 If you want to complete the configuration process using your problematic
3343 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3344 to "yes", and re-run configure.
3345
3346 END
3347 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3348 fi
3349 fi
3350
3351 # Check whether --enable-silent-rules was given.
3352 if test ${enable_silent_rules+y}
3353 then :
3354 enableval=$enable_silent_rules;
3355 fi
3356
3357 case $enable_silent_rules in # (((
3358 yes) AM_DEFAULT_VERBOSITY=0;;
3359 no) AM_DEFAULT_VERBOSITY=1;;
3360 *) AM_DEFAULT_VERBOSITY=1;;
3361 esac
3362 am_make=${MAKE-make}
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3364 printf %s "checking whether $am_make supports nested variables... " >&6; }
3365 if test ${am_cv_make_support_nested_variables+y}
3366 then :
3367 printf %s "(cached) " >&6
3368 else case e in #(
3369 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3370 BAR0=false
3371 BAR1=true
3372 V=1
3373 am__doit:
3374 @$(TRUE)
3375 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3376 am_cv_make_support_nested_variables=yes
3377 else
3378 am_cv_make_support_nested_variables=no
3379 fi ;;
3380 esac
3381 fi
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3383 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3384 if test $am_cv_make_support_nested_variables = yes; then
3385 AM_V='$(V)'
3386 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3387 else
3388 AM_V=$AM_DEFAULT_VERBOSITY
3389 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3390 fi
3391 AM_BACKSLASH='\'
3392
3393
3394 ac_config_headers="$ac_config_headers config.h"
3395
3396
3397
3398 # +1 : 0 : +1 == adds new functions to the interface
3399 # +1 : 0 : 0 == changes or removes functions (changes include both
3400 # changes to the signature and the semantic)
3401 # ? :+1 : ? == just internal changes
3402 # CURRENT : REVISION : AGE
3403 LIBUSBMUXD_SO_VERSION=7:1:0
3404
3405
3406
3407 # Check if we have a version defined
3408 if test -z $PACKAGE_VERSION; then
3409 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
3410 fi
3411
3412 LIBPLIST_VERSION=2.2.0
3413 LIMD_GLUE_VERSION=1.2.0
3414
3415
3416
3417
3418 # Checks for programs.
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 printf %s "checking for $ac_word... " >&6; }
3438 if test ${ac_cv_prog_CC+y}
3439 then :
3440 printf %s "(cached) " >&6
3441 else case e in #(
3442 e) if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 case $as_dir in #(((
3450 '') as_dir=./ ;;
3451 */) ;;
3452 *) as_dir=$as_dir/ ;;
3453 esac
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi ;;
3465 esac
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 printf "%s\n" "$CC" >&6; }
3471 else
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 printf "%s\n" "no" >&6; }
3474 fi
3475
3476
3477 fi
3478 if test -z "$ac_cv_prog_CC"; then
3479 ac_ct_CC=$CC
3480 # Extract the first word of "gcc", so it can be a program name with args.
3481 set dummy gcc; ac_word=$2
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 printf %s "checking for $ac_word... " >&6; }
3484 if test ${ac_cv_prog_ac_ct_CC+y}
3485 then :
3486 printf %s "(cached) " >&6
3487 else case e in #(
3488 e) if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 case $as_dir in #(((
3496 '') as_dir=./ ;;
3497 */) ;;
3498 *) as_dir=$as_dir/ ;;
3499 esac
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_ac_ct_CC="gcc"
3503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3504 break 2
3505 fi
3506 done
3507 done
3508 IFS=$as_save_IFS
3509
3510 fi ;;
3511 esac
3512 fi
3513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3514 if test -n "$ac_ct_CC"; then
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3516 printf "%s\n" "$ac_ct_CC" >&6; }
3517 else
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 printf "%s\n" "no" >&6; }
3520 fi
3521
3522 if test "x$ac_ct_CC" = x; then
3523 CC=""
3524 else
3525 case $cross_compiling:$ac_tool_warned in
3526 yes:)
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3528 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3529 ac_tool_warned=yes ;;
3530 esac
3531 CC=$ac_ct_CC
3532 fi
3533 else
3534 CC="$ac_cv_prog_CC"
3535 fi
3536
3537 if test -z "$CC"; then
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}cc; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_prog_CC+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else case e in #(
3547 e) if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 case $as_dir in #(((
3555 '') as_dir=./ ;;
3556 */) ;;
3557 *) as_dir=$as_dir/ ;;
3558 esac
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_CC="${ac_tool_prefix}cc"
3562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi ;;
3570 esac
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 printf "%s\n" "$CC" >&6; }
3576 else
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 printf "%s\n" "no" >&6; }
3579 fi
3580
3581
3582 fi
3583 fi
3584 if test -z "$CC"; then
3585 # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc; ac_word=$2
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 printf %s "checking for $ac_word... " >&6; }
3589 if test ${ac_cv_prog_CC+y}
3590 then :
3591 printf %s "(cached) " >&6
3592 else case e in #(
3593 e) if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 ac_prog_rejected=no
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 case $as_dir in #(((
3602 '') as_dir=./ ;;
3603 */) ;;
3604 *) as_dir=$as_dir/ ;;
3605 esac
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3609 ac_prog_rejected=yes
3610 continue
3611 fi
3612 ac_cv_prog_CC="cc"
3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 if test $ac_prog_rejected = yes; then
3621 # We found a bogon in the path, so make sure we never use it.
3622 set dummy $ac_cv_prog_CC
3623 shift
3624 if test $# != 0; then
3625 # We chose a different compiler from the bogus one.
3626 # However, it has the same basename, so the bogon will be chosen
3627 # first if we set CC to just the basename; use the full file name.
3628 shift
3629 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3630 fi
3631 fi
3632 fi ;;
3633 esac
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 printf "%s\n" "$CC" >&6; }
3639 else
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in cl.exe
3649 do
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 printf %s "checking for $ac_word... " >&6; }
3654 if test ${ac_cv_prog_CC+y}
3655 then :
3656 printf %s "(cached) " >&6
3657 else case e in #(
3658 e) if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 case $as_dir in #(((
3666 '') as_dir=./ ;;
3667 */) ;;
3668 *) as_dir=$as_dir/ ;;
3669 esac
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678 IFS=$as_save_IFS
3679
3680 fi ;;
3681 esac
3682 fi
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 printf "%s\n" "$CC" >&6; }
3687 else
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 printf "%s\n" "no" >&6; }
3690 fi
3691
3692
3693 test -n "$CC" && break
3694 done
3695 fi
3696 if test -z "$CC"; then
3697 ac_ct_CC=$CC
3698 for ac_prog in cl.exe
3699 do
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy $ac_prog; ac_word=$2
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 printf %s "checking for $ac_word... " >&6; }
3704 if test ${ac_cv_prog_ac_ct_CC+y}
3705 then :
3706 printf %s "(cached) " >&6
3707 else case e in #(
3708 e) if test -n "$ac_ct_CC"; then
3709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 case $as_dir in #(((
3716 '') as_dir=./ ;;
3717 */) ;;
3718 *) as_dir=$as_dir/ ;;
3719 esac
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_ac_ct_CC="$ac_prog"
3723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 fi ;;
3731 esac
3732 fi
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3736 printf "%s\n" "$ac_ct_CC" >&6; }
3737 else
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 printf "%s\n" "no" >&6; }
3740 fi
3741
3742
3743 test -n "$ac_ct_CC" && break
3744 done
3745
3746 if test "x$ac_ct_CC" = x; then
3747 CC=""
3748 else
3749 case $cross_compiling:$ac_tool_warned in
3750 yes:)
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753 ac_tool_warned=yes ;;
3754 esac
3755 CC=$ac_ct_CC
3756 fi
3757 fi
3758
3759 fi
3760 if test -z "$CC"; then
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}clang; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else case e in #(
3770 e) if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 case $as_dir in #(((
3778 '') as_dir=./ ;;
3779 */) ;;
3780 *) as_dir=$as_dir/ ;;
3781 esac
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="${ac_tool_prefix}clang"
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi ;;
3793 esac
3794 fi
3795 CC=$ac_cv_prog_CC
3796 if test -n "$CC"; then
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798 printf "%s\n" "$CC" >&6; }
3799 else
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 printf "%s\n" "no" >&6; }
3802 fi
3803
3804
3805 fi
3806 if test -z "$ac_cv_prog_CC"; then
3807 ac_ct_CC=$CC
3808 # Extract the first word of "clang", so it can be a program name with args.
3809 set dummy clang; ac_word=$2
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 printf %s "checking for $ac_word... " >&6; }
3812 if test ${ac_cv_prog_ac_ct_CC+y}
3813 then :
3814 printf %s "(cached) " >&6
3815 else case e in #(
3816 e) if test -n "$ac_ct_CC"; then
3817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822 IFS=$as_save_IFS
3823 case $as_dir in #(((
3824 '') as_dir=./ ;;
3825 */) ;;
3826 *) as_dir=$as_dir/ ;;
3827 esac
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_ac_ct_CC="clang"
3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834 done
3835 done
3836 IFS=$as_save_IFS
3837
3838 fi ;;
3839 esac
3840 fi
3841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3842 if test -n "$ac_ct_CC"; then
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3844 printf "%s\n" "$ac_ct_CC" >&6; }
3845 else
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 printf "%s\n" "no" >&6; }
3848 fi
3849
3850 if test "x$ac_ct_CC" = x; then
3851 CC=""
3852 else
3853 case $cross_compiling:$ac_tool_warned in
3854 yes:)
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859 CC=$ac_ct_CC
3860 fi
3861 else
3862 CC="$ac_cv_prog_CC"
3863 fi
3864
3865 fi
3866
3867
3868 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3869 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3870 as_fn_error $? "no acceptable C compiler found in \$PATH
3871 See 'config.log' for more details" "$LINENO" 5; }
3872
3873 # Provide some information about the compiler.
3874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3875 set X $ac_compile
3876 ac_compiler=$2
3877 for ac_option in --version -v -V -qversion -version; do
3878 { { ac_try="$ac_compiler $ac_option >&5"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 printf "%s\n" "$ac_try_echo"; } >&5
3885 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3886 ac_status=$?
3887 if test -s conftest.err; then
3888 sed '10a\
3889 ... rest of stderr output deleted ...
3890 10q' conftest.err >conftest.er1
3891 cat conftest.er1 >&5
3892 fi
3893 rm -f conftest.er1 conftest.err
3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }
3896 done
3897
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900
3901 int
3902 main (void)
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 ac_clean_files_save=$ac_clean_files
3910 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3911 # Try to create an executable without -o first, disregard a.out.
3912 # It will help us diagnose broken compilers, and finding out an intuition
3913 # of exeext.
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3915 printf %s "checking whether the C compiler works... " >&6; }
3916 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3917
3918 # The possible output files:
3919 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3920
3921 ac_rmfiles=
3922 for ac_file in $ac_files
3923 do
3924 case $ac_file in
3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3926 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3927 esac
3928 done
3929 rm -f $ac_rmfiles
3930
3931 if { { ac_try="$ac_link_default"
3932 case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 printf "%s\n" "$ac_try_echo"; } >&5
3938 (eval "$ac_link_default") 2>&5
3939 ac_status=$?
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }
3942 then :
3943 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3944 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3946 # so that the user can short-circuit this test for compilers unknown to
3947 # Autoconf.
3948 for ac_file in $ac_files ''
3949 do
3950 test -f "$ac_file" || continue
3951 case $ac_file in
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3953 ;;
3954 [ab].out )
3955 # We found the default executable, but exeext='' is most
3956 # certainly right.
3957 break;;
3958 *.* )
3959 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3960 then :; else
3961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3962 fi
3963 # We set ac_cv_exeext here because the later test for it is not
3964 # safe: cross compilers may not add the suffix if given an '-o'
3965 # argument, so we may need to know it at that point already.
3966 # Even if this section looks crufty: it has the advantage of
3967 # actually working.
3968 break;;
3969 * )
3970 break;;
3971 esac
3972 done
3973 test "$ac_cv_exeext" = no && ac_cv_exeext=
3974
3975 else case e in #(
3976 e) ac_file='' ;;
3977 esac
3978 fi
3979 if test -z "$ac_file"
3980 then :
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 printf "%s\n" "no" >&6; }
3983 printf "%s\n" "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3987 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3988 as_fn_error 77 "C compiler cannot create executables
3989 See 'config.log' for more details" "$LINENO" 5; }
3990 else case e in #(
3991 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992 printf "%s\n" "yes" >&6; } ;;
3993 esac
3994 fi
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3996 printf %s "checking for C compiler default output file name... " >&6; }
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3998 printf "%s\n" "$ac_file" >&6; }
3999 ac_exeext=$ac_cv_exeext
4000
4001 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4002 ac_clean_files=$ac_clean_files_save
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4004 printf %s "checking for suffix of executables... " >&6; }
4005 if { { ac_try="$ac_link"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 printf "%s\n" "$ac_try_echo"; } >&5
4012 (eval "$ac_link") 2>&5
4013 ac_status=$?
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }
4016 then :
4017 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4018 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4019 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4020 # 'rm'.
4021 for ac_file in conftest.exe conftest conftest.*; do
4022 test -f "$ac_file" || continue
4023 case $ac_file in
4024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4025 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4026 break;;
4027 * ) break;;
4028 esac
4029 done
4030 else case e in #(
4031 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4032 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4033 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4034 See 'config.log' for more details" "$LINENO" 5; } ;;
4035 esac
4036 fi
4037 rm -f conftest conftest$ac_cv_exeext
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4039 printf "%s\n" "$ac_cv_exeext" >&6; }
4040
4041 rm -f conftest.$ac_ext
4042 EXEEXT=$ac_cv_exeext
4043 ac_exeext=$EXEEXT
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #include <stdio.h>
4047 int
4048 main (void)
4049 {
4050 FILE *f = fopen ("conftest.out", "w");
4051 if (!f)
4052 return 1;
4053 return ferror (f) || fclose (f) != 0;
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 ac_clean_files="$ac_clean_files conftest.out"
4060 # Check that the compiler produces executables we can run. If not, either
4061 # the compiler is broken, or we cross compile.
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4063 printf %s "checking whether we are cross compiling... " >&6; }
4064 if test "$cross_compiling" != yes; then
4065 { { ac_try="$ac_link"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071 printf "%s\n" "$ac_try_echo"; } >&5
4072 (eval "$ac_link") 2>&5
4073 ac_status=$?
4074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075 test $ac_status = 0; }
4076 if { ac_try='./conftest$ac_cv_exeext'
4077 { { case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 printf "%s\n" "$ac_try_echo"; } >&5
4083 (eval "$ac_try") 2>&5
4084 ac_status=$?
4085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }; }; then
4087 cross_compiling=no
4088 else
4089 if test "$cross_compiling" = maybe; then
4090 cross_compiling=yes
4091 else
4092 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4093 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4094 as_fn_error 77 "cannot run C compiled programs.
4095 If you meant to cross compile, use '--host'.
4096 See 'config.log' for more details" "$LINENO" 5; }
4097 fi
4098 fi
4099 fi
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4101 printf "%s\n" "$cross_compiling" >&6; }
4102
4103 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4104 conftest.o conftest.obj conftest.out
4105 ac_clean_files=$ac_clean_files_save
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4107 printf %s "checking for suffix of object files... " >&6; }
4108 if test ${ac_cv_objext+y}
4109 then :
4110 printf %s "(cached) " >&6
4111 else case e in #(
4112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 int
4116 main (void)
4117 {
4118
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.o conftest.obj
4124 if { { ac_try="$ac_compile"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4130 printf "%s\n" "$ac_try_echo"; } >&5
4131 (eval "$ac_compile") 2>&5
4132 ac_status=$?
4133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4134 test $ac_status = 0; }
4135 then :
4136 for ac_file in conftest.o conftest.obj conftest.*; do
4137 test -f "$ac_file" || continue;
4138 case $ac_file in
4139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4141 break;;
4142 esac
4143 done
4144 else case e in #(
4145 e) printf "%s\n" "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4149 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4150 as_fn_error $? "cannot compute suffix of object files: cannot compile
4151 See 'config.log' for more details" "$LINENO" 5; } ;;
4152 esac
4153 fi
4154 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4155 esac
4156 fi
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4158 printf "%s\n" "$ac_cv_objext" >&6; }
4159 OBJEXT=$ac_cv_objext
4160 ac_objext=$OBJEXT
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4162 printf %s "checking whether the compiler supports GNU C... " >&6; }
4163 if test ${ac_cv_c_compiler_gnu+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else case e in #(
4167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169
4170 int
4171 main (void)
4172 {
4173 #ifndef __GNUC__
4174 choke me
4175 #endif
4176
4177 ;
4178 return 0;
4179 }
4180 _ACEOF
4181 if ac_fn_c_try_compile "$LINENO"
4182 then :
4183 ac_compiler_gnu=yes
4184 else case e in #(
4185 e) ac_compiler_gnu=no ;;
4186 esac
4187 fi
4188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4190 ;;
4191 esac
4192 fi
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4194 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197 if test $ac_compiler_gnu = yes; then
4198 GCC=yes
4199 else
4200 GCC=
4201 fi
4202 ac_test_CFLAGS=${CFLAGS+y}
4203 ac_save_CFLAGS=$CFLAGS
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4205 printf %s "checking whether $CC accepts -g... " >&6; }
4206 if test ${ac_cv_prog_cc_g+y}
4207 then :
4208 printf %s "(cached) " >&6
4209 else case e in #(
4210 e) ac_save_c_werror_flag=$ac_c_werror_flag
4211 ac_c_werror_flag=yes
4212 ac_cv_prog_cc_g=no
4213 CFLAGS="-g"
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216
4217 int
4218 main (void)
4219 {
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 if ac_fn_c_try_compile "$LINENO"
4226 then :
4227 ac_cv_prog_cc_g=yes
4228 else case e in #(
4229 e) CFLAGS=""
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232
4233 int
4234 main (void)
4235 {
4236
4237 ;
4238 return 0;
4239 }
4240 _ACEOF
4241 if ac_fn_c_try_compile "$LINENO"
4242 then :
4243
4244 else case e in #(
4245 e) ac_c_werror_flag=$ac_save_c_werror_flag
4246 CFLAGS="-g"
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249
4250 int
4251 main (void)
4252 {
4253
4254 ;
4255 return 0;
4256 }
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"
4259 then :
4260 ac_cv_prog_cc_g=yes
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4263 esac
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4266 esac
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4269 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4270 esac
4271 fi
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4273 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4274 if test $ac_test_CFLAGS; then
4275 CFLAGS=$ac_save_CFLAGS
4276 elif test $ac_cv_prog_cc_g = yes; then
4277 if test "$GCC" = yes; then
4278 CFLAGS="-g -O2"
4279 else
4280 CFLAGS="-g"
4281 fi
4282 else
4283 if test "$GCC" = yes; then
4284 CFLAGS="-O2"
4285 else
4286 CFLAGS=
4287 fi
4288 fi
4289 ac_prog_cc_stdc=no
4290 if test x$ac_prog_cc_stdc = xno
4291 then :
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4293 printf %s "checking for $CC option to enable C11 features... " >&6; }
4294 if test ${ac_cv_prog_cc_c11+y}
4295 then :
4296 printf %s "(cached) " >&6
4297 else case e in #(
4298 e) ac_cv_prog_cc_c11=no
4299 ac_save_CC=$CC
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 $ac_c_conftest_c11_program
4303 _ACEOF
4304 for ac_arg in '' -std=gnu11
4305 do
4306 CC="$ac_save_CC $ac_arg"
4307 if ac_fn_c_try_compile "$LINENO"
4308 then :
4309 ac_cv_prog_cc_c11=$ac_arg
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.beam
4312 test "x$ac_cv_prog_cc_c11" != "xno" && break
4313 done
4314 rm -f conftest.$ac_ext
4315 CC=$ac_save_CC ;;
4316 esac
4317 fi
4318
4319 if test "x$ac_cv_prog_cc_c11" = xno
4320 then :
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4322 printf "%s\n" "unsupported" >&6; }
4323 else case e in #(
4324 e) if test "x$ac_cv_prog_cc_c11" = x
4325 then :
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327 printf "%s\n" "none needed" >&6; }
4328 else case e in #(
4329 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4330 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4331 CC="$CC $ac_cv_prog_cc_c11" ;;
4332 esac
4333 fi
4334 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4335 ac_prog_cc_stdc=c11 ;;
4336 esac
4337 fi
4338 fi
4339 if test x$ac_prog_cc_stdc = xno
4340 then :
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4342 printf %s "checking for $CC option to enable C99 features... " >&6; }
4343 if test ${ac_cv_prog_cc_c99+y}
4344 then :
4345 printf %s "(cached) " >&6
4346 else case e in #(
4347 e) ac_cv_prog_cc_c99=no
4348 ac_save_CC=$CC
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 $ac_c_conftest_c99_program
4352 _ACEOF
4353 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4354 do
4355 CC="$ac_save_CC $ac_arg"
4356 if ac_fn_c_try_compile "$LINENO"
4357 then :
4358 ac_cv_prog_cc_c99=$ac_arg
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.beam
4361 test "x$ac_cv_prog_cc_c99" != "xno" && break
4362 done
4363 rm -f conftest.$ac_ext
4364 CC=$ac_save_CC ;;
4365 esac
4366 fi
4367
4368 if test "x$ac_cv_prog_cc_c99" = xno
4369 then :
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4371 printf "%s\n" "unsupported" >&6; }
4372 else case e in #(
4373 e) if test "x$ac_cv_prog_cc_c99" = x
4374 then :
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4376 printf "%s\n" "none needed" >&6; }
4377 else case e in #(
4378 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4379 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4380 CC="$CC $ac_cv_prog_cc_c99" ;;
4381 esac
4382 fi
4383 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4384 ac_prog_cc_stdc=c99 ;;
4385 esac
4386 fi
4387 fi
4388 if test x$ac_prog_cc_stdc = xno
4389 then :
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4391 printf %s "checking for $CC option to enable C89 features... " >&6; }
4392 if test ${ac_cv_prog_cc_c89+y}
4393 then :
4394 printf %s "(cached) " >&6
4395 else case e in #(
4396 e) ac_cv_prog_cc_c89=no
4397 ac_save_CC=$CC
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400 $ac_c_conftest_c89_program
4401 _ACEOF
4402 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4403 do
4404 CC="$ac_save_CC $ac_arg"
4405 if ac_fn_c_try_compile "$LINENO"
4406 then :
4407 ac_cv_prog_cc_c89=$ac_arg
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext conftest.beam
4410 test "x$ac_cv_prog_cc_c89" != "xno" && break
4411 done
4412 rm -f conftest.$ac_ext
4413 CC=$ac_save_CC ;;
4414 esac
4415 fi
4416
4417 if test "x$ac_cv_prog_cc_c89" = xno
4418 then :
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4420 printf "%s\n" "unsupported" >&6; }
4421 else case e in #(
4422 e) if test "x$ac_cv_prog_cc_c89" = x
4423 then :
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4425 printf "%s\n" "none needed" >&6; }
4426 else case e in #(
4427 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4428 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4429 CC="$CC $ac_cv_prog_cc_c89" ;;
4430 esac
4431 fi
4432 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4433 ac_prog_cc_stdc=c89 ;;
4434 esac
4435 fi
4436 fi
4437
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443
4444
4445 ac_ext=c
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4451 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4452 if test ${am_cv_prog_cc_c_o+y}
4453 then :
4454 printf %s "(cached) " >&6
4455 else case e in #(
4456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458
4459 int
4460 main (void)
4461 {
4462
4463 ;
4464 return 0;
4465 }
4466 _ACEOF
4467 # Make sure it works both with $CC and with simple cc.
4468 # Following AC_PROG_CC_C_O, we do the test twice because some
4469 # compilers refuse to overwrite an existing .o file with -o,
4470 # though they will create one.
4471 am_cv_prog_cc_c_o=yes
4472 for am_i in 1 2; do
4473 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4474 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } \
4478 && test -f conftest2.$ac_objext; then
4479 : OK
4480 else
4481 am_cv_prog_cc_c_o=no
4482 break
4483 fi
4484 done
4485 rm -f core conftest*
4486 unset am_i ;;
4487 esac
4488 fi
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4490 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4491 if test "$am_cv_prog_cc_c_o" != yes; then
4492 # Losing compiler, so override with the script.
4493 # FIXME: It is wrong to rewrite CC.
4494 # But if we don't then we get into trouble of one sort or another.
4495 # A longer-term fix would be to have automake use am__CC in this case,
4496 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4497 CC="$am_aux_dir/compile $CC"
4498 fi
4499 ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504
4505 DEPDIR="${am__leading_dot}deps"
4506
4507 ac_config_commands="$ac_config_commands depfiles"
4508
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4510 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4511 cat > confinc.mk << 'END'
4512 am__doit:
4513 @echo this is the am__doit target >confinc.out
4514 .PHONY: am__doit
4515 END
4516 am__include="#"
4517 am__quote=
4518 # BSD make does it like this.
4519 echo '.include "confinc.mk" # ignored' > confmf.BSD
4520 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4521 echo 'include confinc.mk # ignored' > confmf.GNU
4522 _am_result=no
4523 for s in GNU BSD; do
4524 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4525 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }
4529 case $?:`cat confinc.out 2>/dev/null` in #(
4530 '0:this is the am__doit target') :
4531 case $s in #(
4532 BSD) :
4533 am__include='.include' am__quote='"' ;; #(
4534 *) :
4535 am__include='include' am__quote='' ;;
4536 esac ;; #(
4537 *) :
4538 ;;
4539 esac
4540 if test "$am__include" != "#"; then
4541 _am_result="yes ($s style)"
4542 break
4543 fi
4544 done
4545 rm -f confinc.* confmf.*
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4547 printf "%s\n" "${_am_result}" >&6; }
4548
4549 # Check whether --enable-dependency-tracking was given.
4550 if test ${enable_dependency_tracking+y}
4551 then :
4552 enableval=$enable_dependency_tracking;
4553 fi
4554
4555 if test "x$enable_dependency_tracking" != xno; then
4556 am_depcomp="$ac_aux_dir/depcomp"
4557 AMDEPBACKSLASH='\'
4558 am__nodep='_no'
4559 fi
4560 if test "x$enable_dependency_tracking" != xno; then
4561 AMDEP_TRUE=
4562 AMDEP_FALSE='#'
4563 else
4564 AMDEP_TRUE='#'
4565 AMDEP_FALSE=
4566 fi
4567
4568
4569
4570 depcc="$CC" am_compiler_list=
4571
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4573 printf %s "checking dependency style of $depcc... " >&6; }
4574 if test ${am_cv_CC_dependencies_compiler_type+y}
4575 then :
4576 printf %s "(cached) " >&6
4577 else case e in #(
4578 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4579 # We make a subdir and do the tests there. Otherwise we can end up
4580 # making bogus files that we don't know about and never remove. For
4581 # instance it was reported that on HP-UX the gcc test will end up
4582 # making a dummy file named 'D' -- because '-MD' means "put the output
4583 # in D".
4584 rm -rf conftest.dir
4585 mkdir conftest.dir
4586 # Copy depcomp to subdir because otherwise we won't find it if we're
4587 # using a relative directory.
4588 cp "$am_depcomp" conftest.dir
4589 cd conftest.dir
4590 # We will build objects and dependencies in a subdirectory because
4591 # it helps to detect inapplicable dependency modes. For instance
4592 # both Tru64's cc and ICC support -MD to output dependencies as a
4593 # side effect of compilation, but ICC will put the dependencies in
4594 # the current directory while Tru64 will put them in the object
4595 # directory.
4596 mkdir sub
4597
4598 am_cv_CC_dependencies_compiler_type=none
4599 if test "$am_compiler_list" = ""; then
4600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4601 fi
4602 am__universal=false
4603 case " $depcc " in #(
4604 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4605 esac
4606
4607 for depmode in $am_compiler_list; do
4608 # Setup a source with many dependencies, because some compilers
4609 # like to wrap large dependency lists on column 80 (with \), and
4610 # we should not choose a depcomp mode which is confused by this.
4611 #
4612 # We need to recreate these files for each test, as the compiler may
4613 # overwrite some of them when testing with obscure command lines.
4614 # This happens at least with the AIX C compiler.
4615 : > sub/conftest.c
4616 for i in 1 2 3 4 5 6; do
4617 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4618 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4619 # Solaris 10 /bin/sh.
4620 echo '/* dummy */' > sub/conftst$i.h
4621 done
4622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4623
4624 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4625 # mode. It turns out that the SunPro C++ compiler does not properly
4626 # handle '-M -o', and we need to detect this. Also, some Intel
4627 # versions had trouble with output in subdirs.
4628 am__obj=sub/conftest.${OBJEXT-o}
4629 am__minus_obj="-o $am__obj"
4630 case $depmode in
4631 gcc)
4632 # This depmode causes a compiler race in universal mode.
4633 test "$am__universal" = false || continue
4634 ;;
4635 nosideeffect)
4636 # After this tag, mechanisms are not by side-effect, so they'll
4637 # only be used when explicitly requested.
4638 if test "x$enable_dependency_tracking" = xyes; then
4639 continue
4640 else
4641 break
4642 fi
4643 ;;
4644 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4645 # This compiler won't grok '-c -o', but also, the minuso test has
4646 # not run yet. These depmodes are late enough in the game, and
4647 # so weak that their functioning should not be impacted.
4648 am__obj=conftest.${OBJEXT-o}
4649 am__minus_obj=
4650 ;;
4651 none) break ;;
4652 esac
4653 if depmode=$depmode \
4654 source=sub/conftest.c object=$am__obj \
4655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4656 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4657 >/dev/null 2>conftest.err &&
4658 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4660 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4662 # icc doesn't choke on unknown options, it will just issue warnings
4663 # or remarks (even with -Werror). So we grep stderr for any message
4664 # that says an option was ignored or not supported.
4665 # When given -MP, icc 7.0 and 7.1 complain thusly:
4666 # icc: Command line warning: ignoring option '-M'; no argument required
4667 # The diagnosis changed in icc 8.0:
4668 # icc: Command line remark: option '-MP' not supported
4669 if (grep 'ignoring option' conftest.err ||
4670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4671 am_cv_CC_dependencies_compiler_type=$depmode
4672 break
4673 fi
4674 fi
4675 done
4676
4677 cd ..
4678 rm -rf conftest.dir
4679 else
4680 am_cv_CC_dependencies_compiler_type=none
4681 fi
4682 ;;
4683 esac
4684 fi
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4686 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4687 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4688
4689 if
4690 test "x$enable_dependency_tracking" != xno \
4691 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4692 am__fastdepCC_TRUE=
4693 am__fastdepCC_FALSE='#'
4694 else
4695 am__fastdepCC_TRUE='#'
4696 am__fastdepCC_FALSE=
4697 fi
4698
4699
4700 #AC_PROG_CXX
4701
4702 case `pwd` in
4703 *\ * | *\ *)
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4705 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4706 esac
4707
4708
4709
4710 macro_version='2.4.7'
4711 macro_revision='2.4.7'
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726 ltmain=$ac_aux_dir/ltmain.sh
4727
4728
4729
4730 # Make sure we can run config.sub.
4731 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4732 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4733
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4735 printf %s "checking build system type... " >&6; }
4736 if test ${ac_cv_build+y}
4737 then :
4738 printf %s "(cached) " >&6
4739 else case e in #(
4740 e) ac_build_alias=$build_alias
4741 test "x$ac_build_alias" = x &&
4742 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4743 test "x$ac_build_alias" = x &&
4744 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4745 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4746 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4747 ;;
4748 esac
4749 fi
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4751 printf "%s\n" "$ac_cv_build" >&6; }
4752 case $ac_cv_build in
4753 *-*-*) ;;
4754 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4755 esac
4756 build=$ac_cv_build
4757 ac_save_IFS=$IFS; IFS='-'
4758 set x $ac_cv_build
4759 shift
4760 build_cpu=$1
4761 build_vendor=$2
4762 shift; shift
4763 # Remember, the first character of IFS is used to create $*,
4764 # except with old shells:
4765 build_os=$*
4766 IFS=$ac_save_IFS
4767 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4768
4769
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4771 printf %s "checking host system type... " >&6; }
4772 if test ${ac_cv_host+y}
4773 then :
4774 printf %s "(cached) " >&6
4775 else case e in #(
4776 e) if test "x$host_alias" = x; then
4777 ac_cv_host=$ac_cv_build
4778 else
4779 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4780 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4781 fi
4782 ;;
4783 esac
4784 fi
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4786 printf "%s\n" "$ac_cv_host" >&6; }
4787 case $ac_cv_host in
4788 *-*-*) ;;
4789 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4790 esac
4791 host=$ac_cv_host
4792 ac_save_IFS=$IFS; IFS='-'
4793 set x $ac_cv_host
4794 shift
4795 host_cpu=$1
4796 host_vendor=$2
4797 shift; shift
4798 # Remember, the first character of IFS is used to create $*,
4799 # except with old shells:
4800 host_os=$*
4801 IFS=$ac_save_IFS
4802 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4803
4804
4805 # Backslashify metacharacters that are still active within
4806 # double-quoted strings.
4807 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4808
4809 # Same as above, but do not quote variable references.
4810 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4811
4812 # Sed substitution to delay expansion of an escaped shell variable in a
4813 # double_quote_subst'ed string.
4814 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4815
4816 # Sed substitution to delay expansion of an escaped single quote.
4817 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4818
4819 # Sed substitution to avoid accidental globbing in evaled expressions
4820 no_glob_subst='s/\*/\\\*/g'
4821
4822 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4823 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4824 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4825
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4827 printf %s "checking how to print strings... " >&6; }
4828 # Test print first, because it will be a builtin if present.
4829 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4830 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4831 ECHO='print -r --'
4832 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4833 ECHO='printf %s\n'
4834 else
4835 # Use this function as a fallback that always works.
4836 func_fallback_echo ()
4837 {
4838 eval 'cat <<_LTECHO_EOF
4839 $1
4840 _LTECHO_EOF'
4841 }
4842 ECHO='func_fallback_echo'
4843 fi
4844
4845 # func_echo_all arg...
4846 # Invoke $ECHO with all args, space-separated.
4847 func_echo_all ()
4848 {
4849 $ECHO ""
4850 }
4851
4852 case $ECHO in
4853 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4854 printf "%s\n" "printf" >&6; } ;;
4855 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4856 printf "%s\n" "print -r" >&6; } ;;
4857 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4858 printf "%s\n" "cat" >&6; } ;;
4859 esac
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4875 printf %s "checking for a sed that does not truncate output... " >&6; }
4876 if test ${ac_cv_path_SED+y}
4877 then :
4878 printf %s "(cached) " >&6
4879 else case e in #(
4880 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4881 for ac_i in 1 2 3 4 5 6 7; do
4882 ac_script="$ac_script$as_nl$ac_script"
4883 done
4884 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4885 { ac_script=; unset ac_script;}
4886 if test -z "$SED"; then
4887 ac_path_SED_found=false
4888 # Loop through the user's path and test for each of PROGNAME-LIST
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892 IFS=$as_save_IFS
4893 case $as_dir in #(((
4894 '') as_dir=./ ;;
4895 */) ;;
4896 *) as_dir=$as_dir/ ;;
4897 esac
4898 for ac_prog in sed gsed
4899 do
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4902 as_fn_executable_p "$ac_path_SED" || continue
4903 # Check for GNU ac_path_SED and select it if it is found.
4904 # Check for GNU $ac_path_SED
4905 case `"$ac_path_SED" --version 2>&1` in #(
4906 *GNU*)
4907 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4908 #(
4909 *)
4910 ac_count=0
4911 printf %s 0123456789 >"conftest.in"
4912 while :
4913 do
4914 cat "conftest.in" "conftest.in" >"conftest.tmp"
4915 mv "conftest.tmp" "conftest.in"
4916 cp "conftest.in" "conftest.nl"
4917 printf "%s\n" '' >> "conftest.nl"
4918 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4920 as_fn_arith $ac_count + 1 && ac_count=$as_val
4921 if test $ac_count -gt ${ac_path_SED_max-0}; then
4922 # Best one so far, save it but keep looking for a better one
4923 ac_cv_path_SED="$ac_path_SED"
4924 ac_path_SED_max=$ac_count
4925 fi
4926 # 10*(2^10) chars as input seems more than enough
4927 test $ac_count -gt 10 && break
4928 done
4929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4930 esac
4931
4932 $ac_path_SED_found && break 3
4933 done
4934 done
4935 done
4936 IFS=$as_save_IFS
4937 if test -z "$ac_cv_path_SED"; then
4938 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4939 fi
4940 else
4941 ac_cv_path_SED=$SED
4942 fi
4943 ;;
4944 esac
4945 fi
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4947 printf "%s\n" "$ac_cv_path_SED" >&6; }
4948 SED="$ac_cv_path_SED"
4949 rm -f conftest.sed
4950
4951 test -z "$SED" && SED=sed
4952 Xsed="$SED -e 1s/^X//"
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4965 printf %s "checking for grep that handles long lines and -e... " >&6; }
4966 if test ${ac_cv_path_GREP+y}
4967 then :
4968 printf %s "(cached) " >&6
4969 else case e in #(
4970 e) if test -z "$GREP"; then
4971 ac_path_GREP_found=false
4972 # Loop through the user's path and test for each of PROGNAME-LIST
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4975 do
4976 IFS=$as_save_IFS
4977 case $as_dir in #(((
4978 '') as_dir=./ ;;
4979 */) ;;
4980 *) as_dir=$as_dir/ ;;
4981 esac
4982 for ac_prog in grep ggrep
4983 do
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4986 as_fn_executable_p "$ac_path_GREP" || continue
4987 # Check for GNU ac_path_GREP and select it if it is found.
4988 # Check for GNU $ac_path_GREP
4989 case `"$ac_path_GREP" --version 2>&1` in #(
4990 *GNU*)
4991 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4992 #(
4993 *)
4994 ac_count=0
4995 printf %s 0123456789 >"conftest.in"
4996 while :
4997 do
4998 cat "conftest.in" "conftest.in" >"conftest.tmp"
4999 mv "conftest.tmp" "conftest.in"
5000 cp "conftest.in" "conftest.nl"
5001 printf "%s\n" 'GREP' >> "conftest.nl"
5002 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004 as_fn_arith $ac_count + 1 && ac_count=$as_val
5005 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5006 # Best one so far, save it but keep looking for a better one
5007 ac_cv_path_GREP="$ac_path_GREP"
5008 ac_path_GREP_max=$ac_count
5009 fi
5010 # 10*(2^10) chars as input seems more than enough
5011 test $ac_count -gt 10 && break
5012 done
5013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 esac
5015
5016 $ac_path_GREP_found && break 3
5017 done
5018 done
5019 done
5020 IFS=$as_save_IFS
5021 if test -z "$ac_cv_path_GREP"; then
5022 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5023 fi
5024 else
5025 ac_cv_path_GREP=$GREP
5026 fi
5027 ;;
5028 esac
5029 fi
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5031 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5032 GREP="$ac_cv_path_GREP"
5033
5034
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5036 printf %s "checking for egrep... " >&6; }
5037 if test ${ac_cv_path_EGREP+y}
5038 then :
5039 printf %s "(cached) " >&6
5040 else case e in #(
5041 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5042 then ac_cv_path_EGREP="$GREP -E"
5043 else
5044 if test -z "$EGREP"; then
5045 ac_path_EGREP_found=false
5046 # Loop through the user's path and test for each of PROGNAME-LIST
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5049 do
5050 IFS=$as_save_IFS
5051 case $as_dir in #(((
5052 '') as_dir=./ ;;
5053 */) ;;
5054 *) as_dir=$as_dir/ ;;
5055 esac
5056 for ac_prog in egrep
5057 do
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5060 as_fn_executable_p "$ac_path_EGREP" || continue
5061 # Check for GNU ac_path_EGREP and select it if it is found.
5062 # Check for GNU $ac_path_EGREP
5063 case `"$ac_path_EGREP" --version 2>&1` in #(
5064 *GNU*)
5065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5066 #(
5067 *)
5068 ac_count=0
5069 printf %s 0123456789 >"conftest.in"
5070 while :
5071 do
5072 cat "conftest.in" "conftest.in" >"conftest.tmp"
5073 mv "conftest.tmp" "conftest.in"
5074 cp "conftest.in" "conftest.nl"
5075 printf "%s\n" 'EGREP' >> "conftest.nl"
5076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078 as_fn_arith $ac_count + 1 && ac_count=$as_val
5079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080 # Best one so far, save it but keep looking for a better one
5081 ac_cv_path_EGREP="$ac_path_EGREP"
5082 ac_path_EGREP_max=$ac_count
5083 fi
5084 # 10*(2^10) chars as input seems more than enough
5085 test $ac_count -gt 10 && break
5086 done
5087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 esac
5089
5090 $ac_path_EGREP_found && break 3
5091 done
5092 done
5093 done
5094 IFS=$as_save_IFS
5095 if test -z "$ac_cv_path_EGREP"; then
5096 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097 fi
5098 else
5099 ac_cv_path_EGREP=$EGREP
5100 fi
5101
5102 fi ;;
5103 esac
5104 fi
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5106 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5107 EGREP="$ac_cv_path_EGREP"
5108
5109 EGREP_TRADITIONAL=$EGREP
5110 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5111
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5113 printf %s "checking for fgrep... " >&6; }
5114 if test ${ac_cv_path_FGREP+y}
5115 then :
5116 printf %s "(cached) " >&6
5117 else case e in #(
5118 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5119 then ac_cv_path_FGREP="$GREP -F"
5120 else
5121 if test -z "$FGREP"; then
5122 ac_path_FGREP_found=false
5123 # Loop through the user's path and test for each of PROGNAME-LIST
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126 do
5127 IFS=$as_save_IFS
5128 case $as_dir in #(((
5129 '') as_dir=./ ;;
5130 */) ;;
5131 *) as_dir=$as_dir/ ;;
5132 esac
5133 for ac_prog in fgrep
5134 do
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5137 as_fn_executable_p "$ac_path_FGREP" || continue
5138 # Check for GNU ac_path_FGREP and select it if it is found.
5139 # Check for GNU $ac_path_FGREP
5140 case `"$ac_path_FGREP" --version 2>&1` in #(
5141 *GNU*)
5142 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5143 #(
5144 *)
5145 ac_count=0
5146 printf %s 0123456789 >"conftest.in"
5147 while :
5148 do
5149 cat "conftest.in" "conftest.in" >"conftest.tmp"
5150 mv "conftest.tmp" "conftest.in"
5151 cp "conftest.in" "conftest.nl"
5152 printf "%s\n" 'FGREP' >> "conftest.nl"
5153 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5155 as_fn_arith $ac_count + 1 && ac_count=$as_val
5156 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5157 # Best one so far, save it but keep looking for a better one
5158 ac_cv_path_FGREP="$ac_path_FGREP"
5159 ac_path_FGREP_max=$ac_count
5160 fi
5161 # 10*(2^10) chars as input seems more than enough
5162 test $ac_count -gt 10 && break
5163 done
5164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5165 esac
5166
5167 $ac_path_FGREP_found && break 3
5168 done
5169 done
5170 done
5171 IFS=$as_save_IFS
5172 if test -z "$ac_cv_path_FGREP"; then
5173 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5174 fi
5175 else
5176 ac_cv_path_FGREP=$FGREP
5177 fi
5178
5179 fi ;;
5180 esac
5181 fi
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5183 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5184 FGREP="$ac_cv_path_FGREP"
5185
5186
5187 test -z "$GREP" && GREP=grep
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 # Check whether --with-gnu-ld was given.
5208 if test ${with_gnu_ld+y}
5209 then :
5210 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5211 else case e in #(
5212 e) with_gnu_ld=no ;;
5213 esac
5214 fi
5215
5216 ac_prog=ld
5217 if test yes = "$GCC"; then
5218 # Check if gcc -print-prog-name=ld gives a path.
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5220 printf %s "checking for ld used by $CC... " >&6; }
5221 case $host in
5222 *-*-mingw*)
5223 # gcc leaves a trailing carriage return, which upsets mingw
5224 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5225 *)
5226 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5227 esac
5228 case $ac_prog in
5229 # Accept absolute paths.
5230 [\\/]* | ?:[\\/]*)
5231 re_direlt='/[^/][^/]*/\.\./'
5232 # Canonicalize the pathname of ld
5233 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5234 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5235 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5236 done
5237 test -z "$LD" && LD=$ac_prog
5238 ;;
5239 "")
5240 # If it fails, then pretend we aren't using GCC.
5241 ac_prog=ld
5242 ;;
5243 *)
5244 # If it is relative, then search for the first ld in PATH.
5245 with_gnu_ld=unknown
5246 ;;
5247 esac
5248 elif test yes = "$with_gnu_ld"; then
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5250 printf %s "checking for GNU ld... " >&6; }
5251 else
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5253 printf %s "checking for non-GNU ld... " >&6; }
5254 fi
5255 if test ${lt_cv_path_LD+y}
5256 then :
5257 printf %s "(cached) " >&6
5258 else case e in #(
5259 e) if test -z "$LD"; then
5260 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5261 for ac_dir in $PATH; do
5262 IFS=$lt_save_ifs
5263 test -z "$ac_dir" && ac_dir=.
5264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5265 lt_cv_path_LD=$ac_dir/$ac_prog
5266 # Check to see if the program is GNU ld. I'd rather use --version,
5267 # but apparently some variants of GNU ld only accept -v.
5268 # Break only if it was the GNU/non-GNU ld that we prefer.
5269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5270 *GNU* | *'with BFD'*)
5271 test no != "$with_gnu_ld" && break
5272 ;;
5273 *)
5274 test yes != "$with_gnu_ld" && break
5275 ;;
5276 esac
5277 fi
5278 done
5279 IFS=$lt_save_ifs
5280 else
5281 lt_cv_path_LD=$LD # Let the user override the test with a path.
5282 fi ;;
5283 esac
5284 fi
5285
5286 LD=$lt_cv_path_LD
5287 if test -n "$LD"; then
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5289 printf "%s\n" "$LD" >&6; }
5290 else
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 printf "%s\n" "no" >&6; }
5293 fi
5294 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5296 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5297 if test ${lt_cv_prog_gnu_ld+y}
5298 then :
5299 printf %s "(cached) " >&6
5300 else case e in #(
5301 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5302 case `$LD -v 2>&1 </dev/null` in
5303 *GNU* | *'with BFD'*)
5304 lt_cv_prog_gnu_ld=yes
5305 ;;
5306 *)
5307 lt_cv_prog_gnu_ld=no
5308 ;;
5309 esac ;;
5310 esac
5311 fi
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5313 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5314 with_gnu_ld=$lt_cv_prog_gnu_ld
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5325 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5326 if test ${lt_cv_path_NM+y}
5327 then :
5328 printf %s "(cached) " >&6
5329 else case e in #(
5330 e) if test -n "$NM"; then
5331 # Let the user override the test.
5332 lt_cv_path_NM=$NM
5333 else
5334 lt_nm_to_check=${ac_tool_prefix}nm
5335 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5336 lt_nm_to_check="$lt_nm_to_check nm"
5337 fi
5338 for lt_tmp_nm in $lt_nm_to_check; do
5339 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5340 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5341 IFS=$lt_save_ifs
5342 test -z "$ac_dir" && ac_dir=.
5343 tmp_nm=$ac_dir/$lt_tmp_nm
5344 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5345 # Check to see if the nm accepts a BSD-compat flag.
5346 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5347 # nm: unknown option "B" ignored
5348 # Tru64's nm complains that /dev/null is an invalid object file
5349 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5350 case $build_os in
5351 mingw*) lt_bad_file=conftest.nm/nofile ;;
5352 *) lt_bad_file=/dev/null ;;
5353 esac
5354 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5355 *$lt_bad_file* | *'Invalid file or object type'*)
5356 lt_cv_path_NM="$tmp_nm -B"
5357 break 2
5358 ;;
5359 *)
5360 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5361 */dev/null*)
5362 lt_cv_path_NM="$tmp_nm -p"
5363 break 2
5364 ;;
5365 *)
5366 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5367 continue # so that we can try to find one that supports BSD flags
5368 ;;
5369 esac
5370 ;;
5371 esac
5372 fi
5373 done
5374 IFS=$lt_save_ifs
5375 done
5376 : ${lt_cv_path_NM=no}
5377 fi ;;
5378 esac
5379 fi
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5381 printf "%s\n" "$lt_cv_path_NM" >&6; }
5382 if test no != "$lt_cv_path_NM"; then
5383 NM=$lt_cv_path_NM
5384 else
5385 # Didn't find any BSD compatible name lister, look for dumpbin.
5386 if test -n "$DUMPBIN"; then :
5387 # Let the user override the test.
5388 else
5389 if test -n "$ac_tool_prefix"; then
5390 for ac_prog in dumpbin "link -dump"
5391 do
5392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 printf %s "checking for $ac_word... " >&6; }
5396 if test ${ac_cv_prog_DUMPBIN+y}
5397 then :
5398 printf %s "(cached) " >&6
5399 else case e in #(
5400 e) if test -n "$DUMPBIN"; then
5401 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 case $as_dir in #(((
5408 '') as_dir=./ ;;
5409 */) ;;
5410 *) as_dir=$as_dir/ ;;
5411 esac
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi ;;
5423 esac
5424 fi
5425 DUMPBIN=$ac_cv_prog_DUMPBIN
5426 if test -n "$DUMPBIN"; then
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5428 printf "%s\n" "$DUMPBIN" >&6; }
5429 else
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 printf "%s\n" "no" >&6; }
5432 fi
5433
5434
5435 test -n "$DUMPBIN" && break
5436 done
5437 fi
5438 if test -z "$DUMPBIN"; then
5439 ac_ct_DUMPBIN=$DUMPBIN
5440 for ac_prog in dumpbin "link -dump"
5441 do
5442 # Extract the first word of "$ac_prog", so it can be a program name with args.
5443 set dummy $ac_prog; ac_word=$2
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 printf %s "checking for $ac_word... " >&6; }
5446 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5447 then :
5448 printf %s "(cached) " >&6
5449 else case e in #(
5450 e) if test -n "$ac_ct_DUMPBIN"; then
5451 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456 IFS=$as_save_IFS
5457 case $as_dir in #(((
5458 '') as_dir=./ ;;
5459 */) ;;
5460 *) as_dir=$as_dir/ ;;
5461 esac
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi ;;
5473 esac
5474 fi
5475 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5476 if test -n "$ac_ct_DUMPBIN"; then
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5478 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5479 else
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 printf "%s\n" "no" >&6; }
5482 fi
5483
5484
5485 test -n "$ac_ct_DUMPBIN" && break
5486 done
5487
5488 if test "x$ac_ct_DUMPBIN" = x; then
5489 DUMPBIN=":"
5490 else
5491 case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495 ac_tool_warned=yes ;;
5496 esac
5497 DUMPBIN=$ac_ct_DUMPBIN
5498 fi
5499 fi
5500
5501 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5502 *COFF*)
5503 DUMPBIN="$DUMPBIN -symbols -headers"
5504 ;;
5505 *)
5506 DUMPBIN=:
5507 ;;
5508 esac
5509 fi
5510
5511 if test : != "$DUMPBIN"; then
5512 NM=$DUMPBIN
5513 fi
5514 fi
5515 test -z "$NM" && NM=nm
5516
5517
5518
5519
5520
5521
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5523 printf %s "checking the name lister ($NM) interface... " >&6; }
5524 if test ${lt_cv_nm_interface+y}
5525 then :
5526 printf %s "(cached) " >&6
5527 else case e in #(
5528 e) lt_cv_nm_interface="BSD nm"
5529 echo "int some_variable = 0;" > conftest.$ac_ext
5530 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5531 (eval "$ac_compile" 2>conftest.err)
5532 cat conftest.err >&5
5533 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5534 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5535 cat conftest.err >&5
5536 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5537 cat conftest.out >&5
5538 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5539 lt_cv_nm_interface="MS dumpbin"
5540 fi
5541 rm -f conftest* ;;
5542 esac
5543 fi
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5545 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5546
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5548 printf %s "checking whether ln -s works... " >&6; }
5549 LN_S=$as_ln_s
5550 if test "$LN_S" = "ln -s"; then
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5552 printf "%s\n" "yes" >&6; }
5553 else
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5555 printf "%s\n" "no, using $LN_S" >&6; }
5556 fi
5557
5558 # find the maximum length of command line arguments
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5560 printf %s "checking the maximum length of command line arguments... " >&6; }
5561 if test ${lt_cv_sys_max_cmd_len+y}
5562 then :
5563 printf %s "(cached) " >&6
5564 else case e in #(
5565 e) i=0
5566 teststring=ABCD
5567
5568 case $build_os in
5569 msdosdjgpp*)
5570 # On DJGPP, this test can blow up pretty badly due to problems in libc
5571 # (any single argument exceeding 2000 bytes causes a buffer overrun
5572 # during glob expansion). Even if it were fixed, the result of this
5573 # check would be larger than it should be.
5574 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5575 ;;
5576
5577 gnu*)
5578 # Under GNU Hurd, this test is not required because there is
5579 # no limit to the length of command line arguments.
5580 # Libtool will interpret -1 as no limit whatsoever
5581 lt_cv_sys_max_cmd_len=-1;
5582 ;;
5583
5584 cygwin* | mingw* | cegcc*)
5585 # On Win9x/ME, this test blows up -- it succeeds, but takes
5586 # about 5 minutes as the teststring grows exponentially.
5587 # Worse, since 9x/ME are not pre-emptively multitasking,
5588 # you end up with a "frozen" computer, even though with patience
5589 # the test eventually succeeds (with a max line length of 256k).
5590 # Instead, let's just punt: use the minimum linelength reported by
5591 # all of the supported platforms: 8192 (on NT/2K/XP).
5592 lt_cv_sys_max_cmd_len=8192;
5593 ;;
5594
5595 mint*)
5596 # On MiNT this can take a long time and run out of memory.
5597 lt_cv_sys_max_cmd_len=8192;
5598 ;;
5599
5600 amigaos*)
5601 # On AmigaOS with pdksh, this test takes hours, literally.
5602 # So we just punt and use a minimum line length of 8192.
5603 lt_cv_sys_max_cmd_len=8192;
5604 ;;
5605
5606 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5607 # This has been around since 386BSD, at least. Likely further.
5608 if test -x /sbin/sysctl; then
5609 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5610 elif test -x /usr/sbin/sysctl; then
5611 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5612 else
5613 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5614 fi
5615 # And add a safety zone
5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5618 ;;
5619
5620 interix*)
5621 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5622 lt_cv_sys_max_cmd_len=196608
5623 ;;
5624
5625 os2*)
5626 # The test takes a long time on OS/2.
5627 lt_cv_sys_max_cmd_len=8192
5628 ;;
5629
5630 osf*)
5631 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5632 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5633 # nice to cause kernel panics so lets avoid the loop below.
5634 # First set a reasonable default.
5635 lt_cv_sys_max_cmd_len=16384
5636 #
5637 if test -x /sbin/sysconfig; then
5638 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5639 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5640 esac
5641 fi
5642 ;;
5643 sco3.2v5*)
5644 lt_cv_sys_max_cmd_len=102400
5645 ;;
5646 sysv5* | sco5v6* | sysv4.2uw2*)
5647 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5648 if test -n "$kargmax"; then
5649 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5650 else
5651 lt_cv_sys_max_cmd_len=32768
5652 fi
5653 ;;
5654 *)
5655 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5656 if test -n "$lt_cv_sys_max_cmd_len" && \
5657 test undefined != "$lt_cv_sys_max_cmd_len"; then
5658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5660 else
5661 # Make teststring a little bigger before we do anything with it.
5662 # a 1K string should be a reasonable start.
5663 for i in 1 2 3 4 5 6 7 8; do
5664 teststring=$teststring$teststring
5665 done
5666 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5667 # If test is not a shell built-in, we'll probably end up computing a
5668 # maximum length that is only half of the actual maximum length, but
5669 # we can't tell.
5670 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5671 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5672 test 17 != "$i" # 1/2 MB should be enough
5673 do
5674 i=`expr $i + 1`
5675 teststring=$teststring$teststring
5676 done
5677 # Only check the string length outside the loop.
5678 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5679 teststring=
5680 # Add a significant safety factor because C++ compilers can tack on
5681 # massive amounts of additional arguments before passing them to the
5682 # linker. It appears as though 1/2 is a usable value.
5683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5684 fi
5685 ;;
5686 esac
5687 ;;
5688 esac
5689 fi
5690
5691 if test -n "$lt_cv_sys_max_cmd_len"; then
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5693 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5694 else
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5696 printf "%s\n" "none" >&6; }
5697 fi
5698 max_cmd_len=$lt_cv_sys_max_cmd_len
5699
5700
5701
5702
5703
5704
5705 : ${CP="cp -f"}
5706 : ${MV="mv -f"}
5707 : ${RM="rm -f"}
5708
5709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5710 lt_unset=unset
5711 else
5712 lt_unset=false
5713 fi
5714
5715
5716
5717
5718
5719 # test EBCDIC or ASCII
5720 case `echo X|tr X '\101'` in
5721 A) # ASCII based system
5722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5723 lt_SP2NL='tr \040 \012'
5724 lt_NL2SP='tr \015\012 \040\040'
5725 ;;
5726 *) # EBCDIC based system
5727 lt_SP2NL='tr \100 \n'
5728 lt_NL2SP='tr \r\n \100\100'
5729 ;;
5730 esac
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5741 printf %s "checking how to convert $build file names to $host format... " >&6; }
5742 if test ${lt_cv_to_host_file_cmd+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else case e in #(
5746 e) case $host in
5747 *-*-mingw* )
5748 case $build in
5749 *-*-mingw* ) # actually msys
5750 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5751 ;;
5752 *-*-cygwin* )
5753 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5754 ;;
5755 * ) # otherwise, assume *nix
5756 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5757 ;;
5758 esac
5759 ;;
5760 *-*-cygwin* )
5761 case $build in
5762 *-*-mingw* ) # actually msys
5763 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5764 ;;
5765 *-*-cygwin* )
5766 lt_cv_to_host_file_cmd=func_convert_file_noop
5767 ;;
5768 * ) # otherwise, assume *nix
5769 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5770 ;;
5771 esac
5772 ;;
5773 * ) # unhandled hosts (and "normal" native builds)
5774 lt_cv_to_host_file_cmd=func_convert_file_noop
5775 ;;
5776 esac
5777 ;;
5778 esac
5779 fi
5780
5781 to_host_file_cmd=$lt_cv_to_host_file_cmd
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5783 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5784
5785
5786
5787
5788
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5790 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5791 if test ${lt_cv_to_tool_file_cmd+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else case e in #(
5795 e) #assume ordinary cross tools, or native build.
5796 lt_cv_to_tool_file_cmd=func_convert_file_noop
5797 case $host in
5798 *-*-mingw* )
5799 case $build in
5800 *-*-mingw* ) # actually msys
5801 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5802 ;;
5803 esac
5804 ;;
5805 esac
5806 ;;
5807 esac
5808 fi
5809
5810 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5812 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5813
5814
5815
5816
5817
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5819 printf %s "checking for $LD option to reload object files... " >&6; }
5820 if test ${lt_cv_ld_reload_flag+y}
5821 then :
5822 printf %s "(cached) " >&6
5823 else case e in #(
5824 e) lt_cv_ld_reload_flag='-r' ;;
5825 esac
5826 fi
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5828 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5829 reload_flag=$lt_cv_ld_reload_flag
5830 case $reload_flag in
5831 "" | " "*) ;;
5832 *) reload_flag=" $reload_flag" ;;
5833 esac
5834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5835 case $host_os in
5836 cygwin* | mingw* | pw32* | cegcc*)
5837 if test yes != "$GCC"; then
5838 reload_cmds=false
5839 fi
5840 ;;
5841 darwin*)
5842 if test yes = "$GCC"; then
5843 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5844 else
5845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5846 fi
5847 ;;
5848 esac
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 if test -n "$ac_tool_prefix"; then
5859 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5860 set dummy ${ac_tool_prefix}file; ac_word=$2
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 printf %s "checking for $ac_word... " >&6; }
5863 if test ${ac_cv_prog_FILECMD+y}
5864 then :
5865 printf %s "(cached) " >&6
5866 else case e in #(
5867 e) if test -n "$FILECMD"; then
5868 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 case $as_dir in #(((
5875 '') as_dir=./ ;;
5876 */) ;;
5877 *) as_dir=$as_dir/ ;;
5878 esac
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi ;;
5890 esac
5891 fi
5892 FILECMD=$ac_cv_prog_FILECMD
5893 if test -n "$FILECMD"; then
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5895 printf "%s\n" "$FILECMD" >&6; }
5896 else
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 printf "%s\n" "no" >&6; }
5899 fi
5900
5901
5902 fi
5903 if test -z "$ac_cv_prog_FILECMD"; then
5904 ac_ct_FILECMD=$FILECMD
5905 # Extract the first word of "file", so it can be a program name with args.
5906 set dummy file; ac_word=$2
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 printf %s "checking for $ac_word... " >&6; }
5909 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5910 then :
5911 printf %s "(cached) " >&6
5912 else case e in #(
5913 e) if test -n "$ac_ct_FILECMD"; then
5914 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919 IFS=$as_save_IFS
5920 case $as_dir in #(((
5921 '') as_dir=./ ;;
5922 */) ;;
5923 *) as_dir=$as_dir/ ;;
5924 esac
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_ac_ct_FILECMD="file"
5928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935 fi ;;
5936 esac
5937 fi
5938 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5939 if test -n "$ac_ct_FILECMD"; then
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5941 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5942 else
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 printf "%s\n" "no" >&6; }
5945 fi
5946
5947 if test "x$ac_ct_FILECMD" = x; then
5948 FILECMD=":"
5949 else
5950 case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956 FILECMD=$ac_ct_FILECMD
5957 fi
5958 else
5959 FILECMD="$ac_cv_prog_FILECMD"
5960 fi
5961
5962
5963
5964
5965
5966
5967
5968 if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 printf %s "checking for $ac_word... " >&6; }
5973 if test ${ac_cv_prog_OBJDUMP+y}
5974 then :
5975 printf %s "(cached) " >&6
5976 else case e in #(
5977 e) if test -n "$OBJDUMP"; then
5978 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983 IFS=$as_save_IFS
5984 case $as_dir in #(((
5985 '') as_dir=./ ;;
5986 */) ;;
5987 *) as_dir=$as_dir/ ;;
5988 esac
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999 fi ;;
6000 esac
6001 fi
6002 OBJDUMP=$ac_cv_prog_OBJDUMP
6003 if test -n "$OBJDUMP"; then
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6005 printf "%s\n" "$OBJDUMP" >&6; }
6006 else
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 printf "%s\n" "no" >&6; }
6009 fi
6010
6011
6012 fi
6013 if test -z "$ac_cv_prog_OBJDUMP"; then
6014 ac_ct_OBJDUMP=$OBJDUMP
6015 # Extract the first word of "objdump", so it can be a program name with args.
6016 set dummy objdump; ac_word=$2
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 printf %s "checking for $ac_word... " >&6; }
6019 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6020 then :
6021 printf %s "(cached) " >&6
6022 else case e in #(
6023 e) if test -n "$ac_ct_OBJDUMP"; then
6024 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029 IFS=$as_save_IFS
6030 case $as_dir in #(((
6031 '') as_dir=./ ;;
6032 */) ;;
6033 *) as_dir=$as_dir/ ;;
6034 esac
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045 fi ;;
6046 esac
6047 fi
6048 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6049 if test -n "$ac_ct_OBJDUMP"; then
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6051 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6052 else
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 printf "%s\n" "no" >&6; }
6055 fi
6056
6057 if test "x$ac_ct_OBJDUMP" = x; then
6058 OBJDUMP="false"
6059 else
6060 case $cross_compiling:$ac_tool_warned in
6061 yes:)
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6064 ac_tool_warned=yes ;;
6065 esac
6066 OBJDUMP=$ac_ct_OBJDUMP
6067 fi
6068 else
6069 OBJDUMP="$ac_cv_prog_OBJDUMP"
6070 fi
6071
6072 test -z "$OBJDUMP" && OBJDUMP=objdump
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6083 printf %s "checking how to recognize dependent libraries... " >&6; }
6084 if test ${lt_cv_deplibs_check_method+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else case e in #(
6088 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6089 lt_cv_file_magic_test_file=
6090 lt_cv_deplibs_check_method='unknown'
6091 # Need to set the preceding variable on all platforms that support
6092 # interlibrary dependencies.
6093 # 'none' -- dependencies not supported.
6094 # 'unknown' -- same as none, but documents that we really don't know.
6095 # 'pass_all' -- all dependencies passed with no checks.
6096 # 'test_compile' -- check by making test program.
6097 # 'file_magic [[regex]]' -- check by looking for files in library path
6098 # that responds to the $file_magic_cmd with a given extended regex.
6099 # If you have 'file' or equivalent on your system and you're not sure
6100 # whether 'pass_all' will *always* work, you probably want this one.
6101
6102 case $host_os in
6103 aix[4-9]*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 beos*)
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111 bsdi[45]*)
6112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6113 lt_cv_file_magic_cmd='$FILECMD -L'
6114 lt_cv_file_magic_test_file=/shlib/libc.so
6115 ;;
6116
6117 cygwin*)
6118 # func_win32_libid is a shell function defined in ltmain.sh
6119 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6120 lt_cv_file_magic_cmd='func_win32_libid'
6121 ;;
6122
6123 mingw* | pw32*)
6124 # Base MSYS/MinGW do not provide the 'file' command needed by
6125 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6126 # unless we find 'file', for example because we are cross-compiling.
6127 if ( file / ) >/dev/null 2>&1; then
6128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6129 lt_cv_file_magic_cmd='func_win32_libid'
6130 else
6131 # Keep this pattern in sync with the one in func_win32_libid.
6132 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6133 lt_cv_file_magic_cmd='$OBJDUMP -f'
6134 fi
6135 ;;
6136
6137 cegcc*)
6138 # use the weaker test based on 'objdump'. See mingw*.
6139 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6140 lt_cv_file_magic_cmd='$OBJDUMP -f'
6141 ;;
6142
6143 darwin* | rhapsody*)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146
6147 freebsd* | dragonfly* | midnightbsd*)
6148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6149 case $host_cpu in
6150 i*86 )
6151 # Not sure whether the presence of OpenBSD here was a mistake.
6152 # Let's accept both of them until this is cleared up.
6153 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6154 lt_cv_file_magic_cmd=$FILECMD
6155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6156 ;;
6157 esac
6158 else
6159 lt_cv_deplibs_check_method=pass_all
6160 fi
6161 ;;
6162
6163 haiku*)
6164 lt_cv_deplibs_check_method=pass_all
6165 ;;
6166
6167 hpux10.20* | hpux11*)
6168 lt_cv_file_magic_cmd=$FILECMD
6169 case $host_cpu in
6170 ia64*)
6171 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6172 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6173 ;;
6174 hppa*64*)
6175 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]'
6176 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6177 ;;
6178 *)
6179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6180 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6181 ;;
6182 esac
6183 ;;
6184
6185 interix[3-9]*)
6186 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6188 ;;
6189
6190 irix5* | irix6* | nonstopux*)
6191 case $LD in
6192 *-32|*"-32 ") libmagic=32-bit;;
6193 *-n32|*"-n32 ") libmagic=N32;;
6194 *-64|*"-64 ") libmagic=64-bit;;
6195 *) libmagic=never-match;;
6196 esac
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 # This must be glibc/ELF.
6201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
6204
6205 netbsd*)
6206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6208 else
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6210 fi
6211 ;;
6212
6213 newos6*)
6214 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6215 lt_cv_file_magic_cmd=$FILECMD
6216 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6217 ;;
6218
6219 *nto* | *qnx*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223 openbsd* | bitrig*)
6224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6226 else
6227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6228 fi
6229 ;;
6230
6231 osf3* | osf4* | osf5*)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234
6235 rdos*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239 solaris*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6244 lt_cv_deplibs_check_method=pass_all
6245 ;;
6246
6247 sysv4 | sysv4.3*)
6248 case $host_vendor in
6249 motorola)
6250 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]'
6251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6252 ;;
6253 ncr)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256 sequent)
6257 lt_cv_file_magic_cmd='/bin/file'
6258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6259 ;;
6260 sni)
6261 lt_cv_file_magic_cmd='/bin/file'
6262 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6263 lt_cv_file_magic_test_file=/lib/libc.so
6264 ;;
6265 siemens)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268 pc)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271 esac
6272 ;;
6273
6274 tpf*)
6275 lt_cv_deplibs_check_method=pass_all
6276 ;;
6277 os2*)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280 esac
6281 ;;
6282 esac
6283 fi
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6285 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6286
6287 file_magic_glob=
6288 want_nocaseglob=no
6289 if test "$build" = "$host"; then
6290 case $host_os in
6291 mingw* | pw32*)
6292 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6293 want_nocaseglob=yes
6294 else
6295 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6296 fi
6297 ;;
6298 esac
6299 fi
6300
6301 file_magic_cmd=$lt_cv_file_magic_cmd
6302 deplibs_check_method=$lt_cv_deplibs_check_method
6303 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 printf %s "checking for $ac_word... " >&6; }
6331 if test ${ac_cv_prog_DLLTOOL+y}
6332 then :
6333 printf %s "(cached) " >&6
6334 else case e in #(
6335 e) if test -n "$DLLTOOL"; then
6336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341 IFS=$as_save_IFS
6342 case $as_dir in #(((
6343 '') as_dir=./ ;;
6344 */) ;;
6345 *) as_dir=$as_dir/ ;;
6346 esac
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi ;;
6358 esac
6359 fi
6360 DLLTOOL=$ac_cv_prog_DLLTOOL
6361 if test -n "$DLLTOOL"; then
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6363 printf "%s\n" "$DLLTOOL" >&6; }
6364 else
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 printf "%s\n" "no" >&6; }
6367 fi
6368
6369
6370 fi
6371 if test -z "$ac_cv_prog_DLLTOOL"; then
6372 ac_ct_DLLTOOL=$DLLTOOL
6373 # Extract the first word of "dlltool", so it can be a program name with args.
6374 set dummy dlltool; ac_word=$2
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 printf %s "checking for $ac_word... " >&6; }
6377 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6378 then :
6379 printf %s "(cached) " >&6
6380 else case e in #(
6381 e) if test -n "$ac_ct_DLLTOOL"; then
6382 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387 IFS=$as_save_IFS
6388 case $as_dir in #(((
6389 '') as_dir=./ ;;
6390 */) ;;
6391 *) as_dir=$as_dir/ ;;
6392 esac
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399 done
6400 done
6401 IFS=$as_save_IFS
6402
6403 fi ;;
6404 esac
6405 fi
6406 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6407 if test -n "$ac_ct_DLLTOOL"; then
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6409 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6410 else
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 printf "%s\n" "no" >&6; }
6413 fi
6414
6415 if test "x$ac_ct_DLLTOOL" = x; then
6416 DLLTOOL="false"
6417 else
6418 case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6421 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6422 ac_tool_warned=yes ;;
6423 esac
6424 DLLTOOL=$ac_ct_DLLTOOL
6425 fi
6426 else
6427 DLLTOOL="$ac_cv_prog_DLLTOOL"
6428 fi
6429
6430 test -z "$DLLTOOL" && DLLTOOL=dlltool
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6442 printf %s "checking how to associate runtime and link libraries... " >&6; }
6443 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6444 then :
6445 printf %s "(cached) " >&6
6446 else case e in #(
6447 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6448
6449 case $host_os in
6450 cygwin* | mingw* | pw32* | cegcc*)
6451 # two different shell functions defined in ltmain.sh;
6452 # decide which one to use based on capabilities of $DLLTOOL
6453 case `$DLLTOOL --help 2>&1` in
6454 *--identify-strict*)
6455 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6456 ;;
6457 *)
6458 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6459 ;;
6460 esac
6461 ;;
6462 *)
6463 # fallback: assume linklib IS sharedlib
6464 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6465 ;;
6466 esac
6467 ;;
6468 esac
6469 fi
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6471 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6472 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6473 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6474
6475
6476
6477
6478
6479
6480
6481
6482 if test -n "$ac_tool_prefix"; then
6483 for ac_prog in ar
6484 do
6485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 printf %s "checking for $ac_word... " >&6; }
6489 if test ${ac_cv_prog_AR+y}
6490 then :
6491 printf %s "(cached) " >&6
6492 else case e in #(
6493 e) if test -n "$AR"; then
6494 ac_cv_prog_AR="$AR" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499 IFS=$as_save_IFS
6500 case $as_dir in #(((
6501 '') as_dir=./ ;;
6502 */) ;;
6503 *) as_dir=$as_dir/ ;;
6504 esac
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515 fi ;;
6516 esac
6517 fi
6518 AR=$ac_cv_prog_AR
6519 if test -n "$AR"; then
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6521 printf "%s\n" "$AR" >&6; }
6522 else
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 printf "%s\n" "no" >&6; }
6525 fi
6526
6527
6528 test -n "$AR" && break
6529 done
6530 fi
6531 if test -z "$AR"; then
6532 ac_ct_AR=$AR
6533 for ac_prog in ar
6534 do
6535 # Extract the first word of "$ac_prog", so it can be a program name with args.
6536 set dummy $ac_prog; ac_word=$2
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 printf %s "checking for $ac_word... " >&6; }
6539 if test ${ac_cv_prog_ac_ct_AR+y}
6540 then :
6541 printf %s "(cached) " >&6
6542 else case e in #(
6543 e) if test -n "$ac_ct_AR"; then
6544 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 case $as_dir in #(((
6551 '') as_dir=./ ;;
6552 */) ;;
6553 *) as_dir=$as_dir/ ;;
6554 esac
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_ac_ct_AR="$ac_prog"
6558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi ;;
6566 esac
6567 fi
6568 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6569 if test -n "$ac_ct_AR"; then
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6571 printf "%s\n" "$ac_ct_AR" >&6; }
6572 else
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 printf "%s\n" "no" >&6; }
6575 fi
6576
6577
6578 test -n "$ac_ct_AR" && break
6579 done
6580
6581 if test "x$ac_ct_AR" = x; then
6582 AR="false"
6583 else
6584 case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590 AR=$ac_ct_AR
6591 fi
6592 fi
6593
6594 : ${AR=ar}
6595
6596
6597
6598
6599
6600
6601 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6602 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6603 # higher priority because thats what people were doing historically (setting
6604 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6605 # variable obsoleted/removed.
6606
6607 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6608 lt_ar_flags=$AR_FLAGS
6609
6610
6611
6612
6613
6614
6615 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6616 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6617
6618
6619
6620
6621
6622
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6624 printf %s "checking for archiver @FILE support... " >&6; }
6625 if test ${lt_cv_ar_at_file+y}
6626 then :
6627 printf %s "(cached) " >&6
6628 else case e in #(
6629 e) lt_cv_ar_at_file=no
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632
6633 int
6634 main (void)
6635 {
6636
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_c_try_compile "$LINENO"
6642 then :
6643 echo conftest.$ac_objext > conftest.lst
6644 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6646 (eval $lt_ar_try) 2>&5
6647 ac_status=$?
6648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649 test $ac_status = 0; }
6650 if test 0 -eq "$ac_status"; then
6651 # Ensure the archiver fails upon bogus file names.
6652 rm -f conftest.$ac_objext libconftest.a
6653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6654 (eval $lt_ar_try) 2>&5
6655 ac_status=$?
6656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657 test $ac_status = 0; }
6658 if test 0 -ne "$ac_status"; then
6659 lt_cv_ar_at_file=@
6660 fi
6661 fi
6662 rm -f conftest.* libconftest.a
6663
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6666 ;;
6667 esac
6668 fi
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6670 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6671
6672 if test no = "$lt_cv_ar_at_file"; then
6673 archiver_list_spec=
6674 else
6675 archiver_list_spec=$lt_cv_ar_at_file
6676 fi
6677
6678
6679
6680
6681
6682
6683
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}strip; ac_word=$2
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 printf %s "checking for $ac_word... " >&6; }
6689 if test ${ac_cv_prog_STRIP+y}
6690 then :
6691 printf %s "(cached) " >&6
6692 else case e in #(
6693 e) if test -n "$STRIP"; then
6694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699 IFS=$as_save_IFS
6700 case $as_dir in #(((
6701 '') as_dir=./ ;;
6702 */) ;;
6703 *) as_dir=$as_dir/ ;;
6704 esac
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi ;;
6716 esac
6717 fi
6718 STRIP=$ac_cv_prog_STRIP
6719 if test -n "$STRIP"; then
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6721 printf "%s\n" "$STRIP" >&6; }
6722 else
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 printf "%s\n" "no" >&6; }
6725 fi
6726
6727
6728 fi
6729 if test -z "$ac_cv_prog_STRIP"; then
6730 ac_ct_STRIP=$STRIP
6731 # Extract the first word of "strip", so it can be a program name with args.
6732 set dummy strip; ac_word=$2
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 printf %s "checking for $ac_word... " >&6; }
6735 if test ${ac_cv_prog_ac_ct_STRIP+y}
6736 then :
6737 printf %s "(cached) " >&6
6738 else case e in #(
6739 e) if test -n "$ac_ct_STRIP"; then
6740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 case $as_dir in #(((
6747 '') as_dir=./ ;;
6748 */) ;;
6749 *) as_dir=$as_dir/ ;;
6750 esac
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6753 ac_cv_prog_ac_ct_STRIP="strip"
6754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 fi ;;
6762 esac
6763 fi
6764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6765 if test -n "$ac_ct_STRIP"; then
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6767 printf "%s\n" "$ac_ct_STRIP" >&6; }
6768 else
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 printf "%s\n" "no" >&6; }
6771 fi
6772
6773 if test "x$ac_ct_STRIP" = x; then
6774 STRIP=":"
6775 else
6776 case $cross_compiling:$ac_tool_warned in
6777 yes:)
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6779 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780 ac_tool_warned=yes ;;
6781 esac
6782 STRIP=$ac_ct_STRIP
6783 fi
6784 else
6785 STRIP="$ac_cv_prog_STRIP"
6786 fi
6787
6788 test -z "$STRIP" && STRIP=:
6789
6790
6791
6792
6793
6794
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 printf %s "checking for $ac_word... " >&6; }
6800 if test ${ac_cv_prog_RANLIB+y}
6801 then :
6802 printf %s "(cached) " >&6
6803 else case e in #(
6804 e) if test -n "$RANLIB"; then
6805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 case $as_dir in #(((
6812 '') as_dir=./ ;;
6813 */) ;;
6814 *) as_dir=$as_dir/ ;;
6815 esac
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826 fi ;;
6827 esac
6828 fi
6829 RANLIB=$ac_cv_prog_RANLIB
6830 if test -n "$RANLIB"; then
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6832 printf "%s\n" "$RANLIB" >&6; }
6833 else
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 printf "%s\n" "no" >&6; }
6836 fi
6837
6838
6839 fi
6840 if test -z "$ac_cv_prog_RANLIB"; then
6841 ac_ct_RANLIB=$RANLIB
6842 # Extract the first word of "ranlib", so it can be a program name with args.
6843 set dummy ranlib; ac_word=$2
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 printf %s "checking for $ac_word... " >&6; }
6846 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6847 then :
6848 printf %s "(cached) " >&6
6849 else case e in #(
6850 e) if test -n "$ac_ct_RANLIB"; then
6851 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856 IFS=$as_save_IFS
6857 case $as_dir in #(((
6858 '') as_dir=./ ;;
6859 */) ;;
6860 *) as_dir=$as_dir/ ;;
6861 esac
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_ac_ct_RANLIB="ranlib"
6865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi ;;
6873 esac
6874 fi
6875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6876 if test -n "$ac_ct_RANLIB"; then
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6878 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6879 else
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 printf "%s\n" "no" >&6; }
6882 fi
6883
6884 if test "x$ac_ct_RANLIB" = x; then
6885 RANLIB=":"
6886 else
6887 case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893 RANLIB=$ac_ct_RANLIB
6894 fi
6895 else
6896 RANLIB="$ac_cv_prog_RANLIB"
6897 fi
6898
6899 test -z "$RANLIB" && RANLIB=:
6900
6901
6902
6903
6904
6905
6906 # Determine commands to create old-style static archives.
6907 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6908 old_postinstall_cmds='chmod 644 $oldlib'
6909 old_postuninstall_cmds=
6910
6911 if test -n "$RANLIB"; then
6912 case $host_os in
6913 bitrig* | openbsd*)
6914 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6915 ;;
6916 *)
6917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6918 ;;
6919 esac
6920 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6921 fi
6922
6923 case $host_os in
6924 darwin*)
6925 lock_old_archive_extraction=yes ;;
6926 *)
6927 lock_old_archive_extraction=no ;;
6928 esac
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968 # If no C compiler was specified, use CC.
6969 LTCC=${LTCC-"$CC"}
6970
6971 # If no C compiler flags were specified, use CFLAGS.
6972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6973
6974 # Allow CC to be a program name with arguments.
6975 compiler=$CC
6976
6977
6978 # Check for command to grab the raw symbol name followed by C symbol from nm.
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6980 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6981 if test ${lt_cv_sys_global_symbol_pipe+y}
6982 then :
6983 printf %s "(cached) " >&6
6984 else case e in #(
6985 e)
6986 # These are sane defaults that work on at least a few old systems.
6987 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6988
6989 # Character class describing NM global symbol codes.
6990 symcode='[BCDEGRST]'
6991
6992 # Regexp to match symbols that can be accessed directly from C.
6993 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6994
6995 # Define system-specific variables.
6996 case $host_os in
6997 aix*)
6998 symcode='[BCDT]'
6999 ;;
7000 cygwin* | mingw* | pw32* | cegcc*)
7001 symcode='[ABCDGISTW]'
7002 ;;
7003 hpux*)
7004 if test ia64 = "$host_cpu"; then
7005 symcode='[ABCDEGRST]'
7006 fi
7007 ;;
7008 irix* | nonstopux*)
7009 symcode='[BCDEGRST]'
7010 ;;
7011 osf*)
7012 symcode='[BCDEGQRST]'
7013 ;;
7014 solaris*)
7015 symcode='[BDRT]'
7016 ;;
7017 sco3.2v5*)
7018 symcode='[DT]'
7019 ;;
7020 sysv4.2uw2*)
7021 symcode='[DT]'
7022 ;;
7023 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7024 symcode='[ABDT]'
7025 ;;
7026 sysv4)
7027 symcode='[DFNSTU]'
7028 ;;
7029 esac
7030
7031 # If we're using GNU nm, then use its standard symbol codes.
7032 case `$NM -V 2>&1` in
7033 *GNU* | *'with BFD'*)
7034 symcode='[ABCDGIRSTW]' ;;
7035 esac
7036
7037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7038 # Gets list of data symbols to import.
7039 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7040 # Adjust the below global symbol transforms to fixup imported variables.
7041 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7042 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7043 lt_c_name_lib_hook="\
7044 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7045 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7046 else
7047 # Disable hooks by default.
7048 lt_cv_sys_global_symbol_to_import=
7049 lt_cdecl_hook=
7050 lt_c_name_hook=
7051 lt_c_name_lib_hook=
7052 fi
7053
7054 # Transform an extracted symbol line into a proper C declaration.
7055 # Some systems (esp. on ia64) link data and code symbols differently,
7056 # so use this general approach.
7057 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7058 $lt_cdecl_hook\
7059 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7060 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7061
7062 # Transform an extracted symbol line into symbol name and symbol address
7063 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7064 $lt_c_name_hook\
7065 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7066 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7067
7068 # Transform an extracted symbol line into symbol name with lib prefix and
7069 # symbol address.
7070 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7071 $lt_c_name_lib_hook\
7072 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7073 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7074 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7075
7076 # Handle CRLF in mingw tool chain
7077 opt_cr=
7078 case $build_os in
7079 mingw*)
7080 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7081 ;;
7082 esac
7083
7084 # Try without a prefix underscore, then with it.
7085 for ac_symprfx in "" "_"; do
7086
7087 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7088 symxfrm="\\1 $ac_symprfx\\2 \\2"
7089
7090 # Write the raw and C identifiers.
7091 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7092 # Fake it for dumpbin and say T for any non-static function,
7093 # D for any global variable and I for any imported variable.
7094 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7095 # which start with @ or ?.
7096 lt_cv_sys_global_symbol_pipe="$AWK '"\
7097 " {last_section=section; section=\$ 3};"\
7098 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7099 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7100 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7101 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7102 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7103 " \$ 0!~/External *\|/{next};"\
7104 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7105 " {if(hide[section]) next};"\
7106 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7107 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7108 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7109 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7110 " ' prfx=^$ac_symprfx"
7111 else
7112 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7113 fi
7114 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7115
7116 # Check to see that the pipe works correctly.
7117 pipe_works=no
7118
7119 rm -f conftest*
7120 cat > conftest.$ac_ext <<_LT_EOF
7121 #ifdef __cplusplus
7122 extern "C" {
7123 #endif
7124 char nm_test_var;
7125 void nm_test_func(void);
7126 void nm_test_func(void){}
7127 #ifdef __cplusplus
7128 }
7129 #endif
7130 int main(){nm_test_var='a';nm_test_func();return(0);}
7131 _LT_EOF
7132
7133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134 (eval $ac_compile) 2>&5
7135 ac_status=$?
7136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137 test $ac_status = 0; }; then
7138 # Now try to grab the symbols.
7139 nlist=conftest.nm
7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7141 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7142 ac_status=$?
7143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; } && test -s "$nlist"; then
7145 # Try sorting and uniquifying the output.
7146 if sort "$nlist" | uniq > "$nlist"T; then
7147 mv -f "$nlist"T "$nlist"
7148 else
7149 rm -f "$nlist"T
7150 fi
7151
7152 # Make sure that we snagged all the symbols we need.
7153 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7154 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7155 cat <<_LT_EOF > conftest.$ac_ext
7156 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7157 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7158 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7159 relocations are performed -- see ld's documentation on pseudo-relocs. */
7160 # define LT_DLSYM_CONST
7161 #elif defined __osf__
7162 /* This system does not cope well with relocations in const data. */
7163 # define LT_DLSYM_CONST
7164 #else
7165 # define LT_DLSYM_CONST const
7166 #endif
7167
7168 #ifdef __cplusplus
7169 extern "C" {
7170 #endif
7171
7172 _LT_EOF
7173 # Now generate the symbol file.
7174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7175
7176 cat <<_LT_EOF >> conftest.$ac_ext
7177
7178 /* The mapping between symbol names and symbols. */
7179 LT_DLSYM_CONST struct {
7180 const char *name;
7181 void *address;
7182 }
7183 lt__PROGRAM__LTX_preloaded_symbols[] =
7184 {
7185 { "@PROGRAM@", (void *) 0 },
7186 _LT_EOF
7187 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7188 cat <<\_LT_EOF >> conftest.$ac_ext
7189 {0, (void *) 0}
7190 };
7191
7192 /* This works around a problem in FreeBSD linker */
7193 #ifdef FREEBSD_WORKAROUND
7194 static const void *lt_preloaded_setup() {
7195 return lt__PROGRAM__LTX_preloaded_symbols;
7196 }
7197 #endif
7198
7199 #ifdef __cplusplus
7200 }
7201 #endif
7202 _LT_EOF
7203 # Now try linking the two files.
7204 mv conftest.$ac_objext conftstm.$ac_objext
7205 lt_globsym_save_LIBS=$LIBS
7206 lt_globsym_save_CFLAGS=$CFLAGS
7207 LIBS=conftstm.$ac_objext
7208 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7210 (eval $ac_link) 2>&5
7211 ac_status=$?
7212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7214 pipe_works=yes
7215 fi
7216 LIBS=$lt_globsym_save_LIBS
7217 CFLAGS=$lt_globsym_save_CFLAGS
7218 else
7219 echo "cannot find nm_test_func in $nlist" >&5
7220 fi
7221 else
7222 echo "cannot find nm_test_var in $nlist" >&5
7223 fi
7224 else
7225 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7226 fi
7227 else
7228 echo "$progname: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7230 fi
7231 rm -rf conftest* conftst*
7232
7233 # Do not use the global_symbol_pipe unless it works.
7234 if test yes = "$pipe_works"; then
7235 break
7236 else
7237 lt_cv_sys_global_symbol_pipe=
7238 fi
7239 done
7240 ;;
7241 esac
7242 fi
7243
7244 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7245 lt_cv_sys_global_symbol_to_cdecl=
7246 fi
7247 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7249 printf "%s\n" "failed" >&6; }
7250 else
7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7252 printf "%s\n" "ok" >&6; }
7253 fi
7254
7255 # Response file support.
7256 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7257 nm_file_list_spec='@'
7258 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7259 nm_file_list_spec='@'
7260 fi
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7299 printf %s "checking for sysroot... " >&6; }
7300
7301 # Check whether --with-sysroot was given.
7302 if test ${with_sysroot+y}
7303 then :
7304 withval=$with_sysroot;
7305 else case e in #(
7306 e) with_sysroot=no ;;
7307 esac
7308 fi
7309
7310
7311 lt_sysroot=
7312 case $with_sysroot in #(
7313 yes)
7314 if test yes = "$GCC"; then
7315 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7316 fi
7317 ;; #(
7318 /*)
7319 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7320 ;; #(
7321 no|'')
7322 ;; #(
7323 *)
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7325 printf "%s\n" "$with_sysroot" >&6; }
7326 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7327 ;;
7328 esac
7329
7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7331 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7332
7333
7334
7335
7336
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7338 printf %s "checking for a working dd... " >&6; }
7339 if test ${ac_cv_path_lt_DD+y}
7340 then :
7341 printf %s "(cached) " >&6
7342 else case e in #(
7343 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7344 cat conftest.i conftest.i >conftest2.i
7345 : ${lt_DD:=$DD}
7346 if test -z "$lt_DD"; then
7347 ac_path_lt_DD_found=false
7348 # Loop through the user's path and test for each of PROGNAME-LIST
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 case $as_dir in #(((
7354 '') as_dir=./ ;;
7355 */) ;;
7356 *) as_dir=$as_dir/ ;;
7357 esac
7358 for ac_prog in dd
7359 do
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7362 as_fn_executable_p "$ac_path_lt_DD" || continue
7363 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7364 cmp -s conftest.i conftest.out \
7365 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7366 fi
7367 $ac_path_lt_DD_found && break 3
7368 done
7369 done
7370 done
7371 IFS=$as_save_IFS
7372 if test -z "$ac_cv_path_lt_DD"; then
7373 :
7374 fi
7375 else
7376 ac_cv_path_lt_DD=$lt_DD
7377 fi
7378
7379 rm -f conftest.i conftest2.i conftest.out ;;
7380 esac
7381 fi
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7383 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7384
7385
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7387 printf %s "checking how to truncate binary pipes... " >&6; }
7388 if test ${lt_cv_truncate_bin+y}
7389 then :
7390 printf %s "(cached) " >&6
7391 else case e in #(
7392 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7393 cat conftest.i conftest.i >conftest2.i
7394 lt_cv_truncate_bin=
7395 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7396 cmp -s conftest.i conftest.out \
7397 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7398 fi
7399 rm -f conftest.i conftest2.i conftest.out
7400 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7401 esac
7402 fi
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7404 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7405
7406
7407
7408
7409
7410
7411
7412 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7413 func_cc_basename ()
7414 {
7415 for cc_temp in $*""; do
7416 case $cc_temp in
7417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7419 \-*) ;;
7420 *) break;;
7421 esac
7422 done
7423 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7424 }
7425
7426 # Check whether --enable-libtool-lock was given.
7427 if test ${enable_libtool_lock+y}
7428 then :
7429 enableval=$enable_libtool_lock;
7430 fi
7431
7432 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7433
7434 # Some flags need to be propagated to the compiler or linker for good
7435 # libtool support.
7436 case $host in
7437 ia64-*-hpux*)
7438 # Find out what ABI is being produced by ac_compile, and set mode
7439 # options accordingly.
7440 echo 'int i;' > conftest.$ac_ext
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
7444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }; then
7446 case `$FILECMD conftest.$ac_objext` in
7447 *ELF-32*)
7448 HPUX_IA64_MODE=32
7449 ;;
7450 *ELF-64*)
7451 HPUX_IA64_MODE=64
7452 ;;
7453 esac
7454 fi
7455 rm -rf conftest*
7456 ;;
7457 *-*-irix6*)
7458 # Find out what ABI is being produced by ac_compile, and set linker
7459 # options accordingly.
7460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7462 (eval $ac_compile) 2>&5
7463 ac_status=$?
7464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465 test $ac_status = 0; }; then
7466 if test yes = "$lt_cv_prog_gnu_ld"; then
7467 case `$FILECMD conftest.$ac_objext` in
7468 *32-bit*)
7469 LD="${LD-ld} -melf32bsmip"
7470 ;;
7471 *N32*)
7472 LD="${LD-ld} -melf32bmipn32"
7473 ;;
7474 *64-bit*)
7475 LD="${LD-ld} -melf64bmip"
7476 ;;
7477 esac
7478 else
7479 case `$FILECMD conftest.$ac_objext` in
7480 *32-bit*)
7481 LD="${LD-ld} -32"
7482 ;;
7483 *N32*)
7484 LD="${LD-ld} -n32"
7485 ;;
7486 *64-bit*)
7487 LD="${LD-ld} -64"
7488 ;;
7489 esac
7490 fi
7491 fi
7492 rm -rf conftest*
7493 ;;
7494
7495 mips64*-*linux*)
7496 # Find out what ABI is being produced by ac_compile, and set linker
7497 # options accordingly.
7498 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7500 (eval $ac_compile) 2>&5
7501 ac_status=$?
7502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503 test $ac_status = 0; }; then
7504 emul=elf
7505 case `$FILECMD conftest.$ac_objext` in
7506 *32-bit*)
7507 emul="${emul}32"
7508 ;;
7509 *64-bit*)
7510 emul="${emul}64"
7511 ;;
7512 esac
7513 case `$FILECMD conftest.$ac_objext` in
7514 *MSB*)
7515 emul="${emul}btsmip"
7516 ;;
7517 *LSB*)
7518 emul="${emul}ltsmip"
7519 ;;
7520 esac
7521 case `$FILECMD conftest.$ac_objext` in
7522 *N32*)
7523 emul="${emul}n32"
7524 ;;
7525 esac
7526 LD="${LD-ld} -m $emul"
7527 fi
7528 rm -rf conftest*
7529 ;;
7530
7531 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7532 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7533 # Find out what ABI is being produced by ac_compile, and set linker
7534 # options accordingly. Note that the listed cases only cover the
7535 # situations where additional linker options are needed (such as when
7536 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7537 # vice versa); the common cases where no linker options are needed do
7538 # not appear in the list.
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.o` in
7546 *32-bit*)
7547 case $host in
7548 x86_64-*kfreebsd*-gnu)
7549 LD="${LD-ld} -m elf_i386_fbsd"
7550 ;;
7551 x86_64-*linux*)
7552 case `$FILECMD conftest.o` in
7553 *x86-64*)
7554 LD="${LD-ld} -m elf32_x86_64"
7555 ;;
7556 *)
7557 LD="${LD-ld} -m elf_i386"
7558 ;;
7559 esac
7560 ;;
7561 powerpc64le-*linux*)
7562 LD="${LD-ld} -m elf32lppclinux"
7563 ;;
7564 powerpc64-*linux*)
7565 LD="${LD-ld} -m elf32ppclinux"
7566 ;;
7567 s390x-*linux*)
7568 LD="${LD-ld} -m elf_s390"
7569 ;;
7570 sparc64-*linux*)
7571 LD="${LD-ld} -m elf32_sparc"
7572 ;;
7573 esac
7574 ;;
7575 *64-bit*)
7576 case $host in
7577 x86_64-*kfreebsd*-gnu)
7578 LD="${LD-ld} -m elf_x86_64_fbsd"
7579 ;;
7580 x86_64-*linux*)
7581 LD="${LD-ld} -m elf_x86_64"
7582 ;;
7583 powerpcle-*linux*)
7584 LD="${LD-ld} -m elf64lppc"
7585 ;;
7586 powerpc-*linux*)
7587 LD="${LD-ld} -m elf64ppc"
7588 ;;
7589 s390*-*linux*|s390*-*tpf*)
7590 LD="${LD-ld} -m elf64_s390"
7591 ;;
7592 sparc*-*linux*)
7593 LD="${LD-ld} -m elf64_sparc"
7594 ;;
7595 esac
7596 ;;
7597 esac
7598 fi
7599 rm -rf conftest*
7600 ;;
7601
7602 *-*-sco3.2v5*)
7603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7604 SAVE_CFLAGS=$CFLAGS
7605 CFLAGS="$CFLAGS -belf"
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7607 printf %s "checking whether the C compiler needs -belf... " >&6; }
7608 if test ${lt_cv_cc_needs_belf+y}
7609 then :
7610 printf %s "(cached) " >&6
7611 else case e in #(
7612 e) ac_ext=c
7613 ac_cpp='$CPP $CPPFLAGS'
7614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7617
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620
7621 int
7622 main (void)
7623 {
7624
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_link "$LINENO"
7630 then :
7631 lt_cv_cc_needs_belf=yes
7632 else case e in #(
7633 e) lt_cv_cc_needs_belf=no ;;
7634 esac
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7637 conftest$ac_exeext conftest.$ac_ext
7638 ac_ext=c
7639 ac_cpp='$CPP $CPPFLAGS'
7640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643 ;;
7644 esac
7645 fi
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7647 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7648 if test yes != "$lt_cv_cc_needs_belf"; then
7649 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7650 CFLAGS=$SAVE_CFLAGS
7651 fi
7652 ;;
7653 *-*solaris*)
7654 # Find out what ABI is being produced by ac_compile, and set linker
7655 # options accordingly.
7656 echo 'int i;' > conftest.$ac_ext
7657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7658 (eval $ac_compile) 2>&5
7659 ac_status=$?
7660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661 test $ac_status = 0; }; then
7662 case `$FILECMD conftest.o` in
7663 *64-bit*)
7664 case $lt_cv_prog_gnu_ld in
7665 yes*)
7666 case $host in
7667 i?86-*-solaris*|x86_64-*-solaris*)
7668 LD="${LD-ld} -m elf_x86_64"
7669 ;;
7670 sparc*-*-solaris*)
7671 LD="${LD-ld} -m elf64_sparc"
7672 ;;
7673 esac
7674 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7675 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7676 LD=${LD-ld}_sol2
7677 fi
7678 ;;
7679 *)
7680 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7681 LD="${LD-ld} -64"
7682 fi
7683 ;;
7684 esac
7685 ;;
7686 esac
7687 fi
7688 rm -rf conftest*
7689 ;;
7690 esac
7691
7692 need_locks=$enable_libtool_lock
7693
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}mt; ac_word=$2
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 printf %s "checking for $ac_word... " >&6; }
7699 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7700 then :
7701 printf %s "(cached) " >&6
7702 else case e in #(
7703 e) if test -n "$MANIFEST_TOOL"; then
7704 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709 IFS=$as_save_IFS
7710 case $as_dir in #(((
7711 '') as_dir=./ ;;
7712 */) ;;
7713 *) as_dir=$as_dir/ ;;
7714 esac
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725 fi ;;
7726 esac
7727 fi
7728 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7729 if test -n "$MANIFEST_TOOL"; then
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7731 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7732 else
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 printf "%s\n" "no" >&6; }
7735 fi
7736
7737
7738 fi
7739 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7740 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7741 # Extract the first word of "mt", so it can be a program name with args.
7742 set dummy mt; ac_word=$2
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 printf %s "checking for $ac_word... " >&6; }
7745 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7746 then :
7747 printf %s "(cached) " >&6
7748 else case e in #(
7749 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7750 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755 IFS=$as_save_IFS
7756 case $as_dir in #(((
7757 '') as_dir=./ ;;
7758 */) ;;
7759 *) as_dir=$as_dir/ ;;
7760 esac
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7763 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767 done
7768 done
7769 IFS=$as_save_IFS
7770
7771 fi ;;
7772 esac
7773 fi
7774 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7775 if test -n "$ac_ct_MANIFEST_TOOL"; then
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7777 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7778 else
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 printf "%s\n" "no" >&6; }
7781 fi
7782
7783 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7784 MANIFEST_TOOL=":"
7785 else
7786 case $cross_compiling:$ac_tool_warned in
7787 yes:)
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7789 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7790 ac_tool_warned=yes ;;
7791 esac
7792 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7793 fi
7794 else
7795 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7796 fi
7797
7798 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7800 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7801 if test ${lt_cv_path_mainfest_tool+y}
7802 then :
7803 printf %s "(cached) " >&6
7804 else case e in #(
7805 e) lt_cv_path_mainfest_tool=no
7806 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7807 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7808 cat conftest.err >&5
7809 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7810 lt_cv_path_mainfest_tool=yes
7811 fi
7812 rm -f conftest* ;;
7813 esac
7814 fi
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7816 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7817 if test yes != "$lt_cv_path_mainfest_tool"; then
7818 MANIFEST_TOOL=:
7819 fi
7820
7821
7822
7823
7824
7825
7826 case $host_os in
7827 rhapsody* | darwin*)
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 printf %s "checking for $ac_word... " >&6; }
7833 if test ${ac_cv_prog_DSYMUTIL+y}
7834 then :
7835 printf %s "(cached) " >&6
7836 else case e in #(
7837 e) if test -n "$DSYMUTIL"; then
7838 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843 IFS=$as_save_IFS
7844 case $as_dir in #(((
7845 '') as_dir=./ ;;
7846 */) ;;
7847 *) as_dir=$as_dir/ ;;
7848 esac
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859 fi ;;
7860 esac
7861 fi
7862 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7863 if test -n "$DSYMUTIL"; then
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7865 printf "%s\n" "$DSYMUTIL" >&6; }
7866 else
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 printf "%s\n" "no" >&6; }
7869 fi
7870
7871
7872 fi
7873 if test -z "$ac_cv_prog_DSYMUTIL"; then
7874 ac_ct_DSYMUTIL=$DSYMUTIL
7875 # Extract the first word of "dsymutil", so it can be a program name with args.
7876 set dummy dsymutil; ac_word=$2
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 printf %s "checking for $ac_word... " >&6; }
7879 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7880 then :
7881 printf %s "(cached) " >&6
7882 else case e in #(
7883 e) if test -n "$ac_ct_DSYMUTIL"; then
7884 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889 IFS=$as_save_IFS
7890 case $as_dir in #(((
7891 '') as_dir=./ ;;
7892 */) ;;
7893 *) as_dir=$as_dir/ ;;
7894 esac
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 fi ;;
7906 esac
7907 fi
7908 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7909 if test -n "$ac_ct_DSYMUTIL"; then
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7911 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7912 else
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 printf "%s\n" "no" >&6; }
7915 fi
7916
7917 if test "x$ac_ct_DSYMUTIL" = x; then
7918 DSYMUTIL=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 DSYMUTIL=$ac_ct_DSYMUTIL
7927 fi
7928 else
7929 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7930 fi
7931
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 printf %s "checking for $ac_word... " >&6; }
7937 if test ${ac_cv_prog_NMEDIT+y}
7938 then :
7939 printf %s "(cached) " >&6
7940 else case e in #(
7941 e) if test -n "$NMEDIT"; then
7942 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947 IFS=$as_save_IFS
7948 case $as_dir in #(((
7949 '') as_dir=./ ;;
7950 */) ;;
7951 *) as_dir=$as_dir/ ;;
7952 esac
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7957 break 2
7958 fi
7959 done
7960 done
7961 IFS=$as_save_IFS
7962
7963 fi ;;
7964 esac
7965 fi
7966 NMEDIT=$ac_cv_prog_NMEDIT
7967 if test -n "$NMEDIT"; then
7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7969 printf "%s\n" "$NMEDIT" >&6; }
7970 else
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 printf "%s\n" "no" >&6; }
7973 fi
7974
7975
7976 fi
7977 if test -z "$ac_cv_prog_NMEDIT"; then
7978 ac_ct_NMEDIT=$NMEDIT
7979 # Extract the first word of "nmedit", so it can be a program name with args.
7980 set dummy nmedit; ac_word=$2
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 printf %s "checking for $ac_word... " >&6; }
7983 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7984 then :
7985 printf %s "(cached) " >&6
7986 else case e in #(
7987 e) if test -n "$ac_ct_NMEDIT"; then
7988 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993 IFS=$as_save_IFS
7994 case $as_dir in #(((
7995 '') as_dir=./ ;;
7996 */) ;;
7997 *) as_dir=$as_dir/ ;;
7998 esac
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8001 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8003 break 2
8004 fi
8005 done
8006 done
8007 IFS=$as_save_IFS
8008
8009 fi ;;
8010 esac
8011 fi
8012 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8013 if test -n "$ac_ct_NMEDIT"; then
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8015 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8016 else
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 printf "%s\n" "no" >&6; }
8019 fi
8020
8021 if test "x$ac_ct_NMEDIT" = x; then
8022 NMEDIT=":"
8023 else
8024 case $cross_compiling:$ac_tool_warned in
8025 yes:)
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8027 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8028 ac_tool_warned=yes ;;
8029 esac
8030 NMEDIT=$ac_ct_NMEDIT
8031 fi
8032 else
8033 NMEDIT="$ac_cv_prog_NMEDIT"
8034 fi
8035
8036 if test -n "$ac_tool_prefix"; then
8037 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8038 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 printf %s "checking for $ac_word... " >&6; }
8041 if test ${ac_cv_prog_LIPO+y}
8042 then :
8043 printf %s "(cached) " >&6
8044 else case e in #(
8045 e) if test -n "$LIPO"; then
8046 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051 IFS=$as_save_IFS
8052 case $as_dir in #(((
8053 '') as_dir=./ ;;
8054 */) ;;
8055 *) as_dir=$as_dir/ ;;
8056 esac
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8059 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8061 break 2
8062 fi
8063 done
8064 done
8065 IFS=$as_save_IFS
8066
8067 fi ;;
8068 esac
8069 fi
8070 LIPO=$ac_cv_prog_LIPO
8071 if test -n "$LIPO"; then
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8073 printf "%s\n" "$LIPO" >&6; }
8074 else
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 printf "%s\n" "no" >&6; }
8077 fi
8078
8079
8080 fi
8081 if test -z "$ac_cv_prog_LIPO"; then
8082 ac_ct_LIPO=$LIPO
8083 # Extract the first word of "lipo", so it can be a program name with args.
8084 set dummy lipo; ac_word=$2
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 printf %s "checking for $ac_word... " >&6; }
8087 if test ${ac_cv_prog_ac_ct_LIPO+y}
8088 then :
8089 printf %s "(cached) " >&6
8090 else case e in #(
8091 e) if test -n "$ac_ct_LIPO"; then
8092 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097 IFS=$as_save_IFS
8098 case $as_dir in #(((
8099 '') as_dir=./ ;;
8100 */) ;;
8101 *) as_dir=$as_dir/ ;;
8102 esac
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8105 ac_cv_prog_ac_ct_LIPO="lipo"
8106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109 done
8110 done
8111 IFS=$as_save_IFS
8112
8113 fi ;;
8114 esac
8115 fi
8116 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8117 if test -n "$ac_ct_LIPO"; then
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8119 printf "%s\n" "$ac_ct_LIPO" >&6; }
8120 else
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 printf "%s\n" "no" >&6; }
8123 fi
8124
8125 if test "x$ac_ct_LIPO" = x; then
8126 LIPO=":"
8127 else
8128 case $cross_compiling:$ac_tool_warned in
8129 yes:)
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8133 esac
8134 LIPO=$ac_ct_LIPO
8135 fi
8136 else
8137 LIPO="$ac_cv_prog_LIPO"
8138 fi
8139
8140 if test -n "$ac_tool_prefix"; then
8141 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8142 set dummy ${ac_tool_prefix}otool; ac_word=$2
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 printf %s "checking for $ac_word... " >&6; }
8145 if test ${ac_cv_prog_OTOOL+y}
8146 then :
8147 printf %s "(cached) " >&6
8148 else case e in #(
8149 e) if test -n "$OTOOL"; then
8150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155 IFS=$as_save_IFS
8156 case $as_dir in #(((
8157 '') as_dir=./ ;;
8158 */) ;;
8159 *) as_dir=$as_dir/ ;;
8160 esac
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8165 break 2
8166 fi
8167 done
8168 done
8169 IFS=$as_save_IFS
8170
8171 fi ;;
8172 esac
8173 fi
8174 OTOOL=$ac_cv_prog_OTOOL
8175 if test -n "$OTOOL"; then
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8177 printf "%s\n" "$OTOOL" >&6; }
8178 else
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 printf "%s\n" "no" >&6; }
8181 fi
8182
8183
8184 fi
8185 if test -z "$ac_cv_prog_OTOOL"; then
8186 ac_ct_OTOOL=$OTOOL
8187 # Extract the first word of "otool", so it can be a program name with args.
8188 set dummy otool; ac_word=$2
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 printf %s "checking for $ac_word... " >&6; }
8191 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8192 then :
8193 printf %s "(cached) " >&6
8194 else case e in #(
8195 e) if test -n "$ac_ct_OTOOL"; then
8196 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201 IFS=$as_save_IFS
8202 case $as_dir in #(((
8203 '') as_dir=./ ;;
8204 */) ;;
8205 *) as_dir=$as_dir/ ;;
8206 esac
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8209 ac_cv_prog_ac_ct_OTOOL="otool"
8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8211 break 2
8212 fi
8213 done
8214 done
8215 IFS=$as_save_IFS
8216
8217 fi ;;
8218 esac
8219 fi
8220 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8221 if test -n "$ac_ct_OTOOL"; then
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8223 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8224 else
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 printf "%s\n" "no" >&6; }
8227 fi
8228
8229 if test "x$ac_ct_OTOOL" = x; then
8230 OTOOL=":"
8231 else
8232 case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238 OTOOL=$ac_ct_OTOOL
8239 fi
8240 else
8241 OTOOL="$ac_cv_prog_OTOOL"
8242 fi
8243
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 printf %s "checking for $ac_word... " >&6; }
8249 if test ${ac_cv_prog_OTOOL64+y}
8250 then :
8251 printf %s "(cached) " >&6
8252 else case e in #(
8253 e) if test -n "$OTOOL64"; then
8254 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259 IFS=$as_save_IFS
8260 case $as_dir in #(((
8261 '') as_dir=./ ;;
8262 */) ;;
8263 *) as_dir=$as_dir/ ;;
8264 esac
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8267 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271 done
8272 done
8273 IFS=$as_save_IFS
8274
8275 fi ;;
8276 esac
8277 fi
8278 OTOOL64=$ac_cv_prog_OTOOL64
8279 if test -n "$OTOOL64"; then
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8281 printf "%s\n" "$OTOOL64" >&6; }
8282 else
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 printf "%s\n" "no" >&6; }
8285 fi
8286
8287
8288 fi
8289 if test -z "$ac_cv_prog_OTOOL64"; then
8290 ac_ct_OTOOL64=$OTOOL64
8291 # Extract the first word of "otool64", so it can be a program name with args.
8292 set dummy otool64; ac_word=$2
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 printf %s "checking for $ac_word... " >&6; }
8295 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8296 then :
8297 printf %s "(cached) " >&6
8298 else case e in #(
8299 e) if test -n "$ac_ct_OTOOL64"; then
8300 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8301 else
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305 IFS=$as_save_IFS
8306 case $as_dir in #(((
8307 '') as_dir=./ ;;
8308 */) ;;
8309 *) as_dir=$as_dir/ ;;
8310 esac
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8313 ac_cv_prog_ac_ct_OTOOL64="otool64"
8314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321 fi ;;
8322 esac
8323 fi
8324 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8325 if test -n "$ac_ct_OTOOL64"; then
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8327 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8328 else
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 printf "%s\n" "no" >&6; }
8331 fi
8332
8333 if test "x$ac_ct_OTOOL64" = x; then
8334 OTOOL64=":"
8335 else
8336 case $cross_compiling:$ac_tool_warned in
8337 yes:)
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8341 esac
8342 OTOOL64=$ac_ct_OTOOL64
8343 fi
8344 else
8345 OTOOL64="$ac_cv_prog_OTOOL64"
8346 fi
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8375 printf %s "checking for -single_module linker flag... " >&6; }
8376 if test ${lt_cv_apple_cc_single_mod+y}
8377 then :
8378 printf %s "(cached) " >&6
8379 else case e in #(
8380 e) lt_cv_apple_cc_single_mod=no
8381 if test -z "$LT_MULTI_MODULE"; then
8382 # By default we will add the -single_module flag. You can override
8383 # by either setting the environment variable LT_MULTI_MODULE
8384 # non-empty at configure time, or by adding -multi_module to the
8385 # link flags.
8386 rm -rf libconftest.dylib*
8387 echo "int foo(void){return 1;}" > conftest.c
8388 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8389 -dynamiclib -Wl,-single_module conftest.c" >&5
8390 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8391 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8392 _lt_result=$?
8393 # If there is a non-empty error log, and "single_module"
8394 # appears in it, assume the flag caused a linker warning
8395 if test -s conftest.err && $GREP single_module conftest.err; then
8396 cat conftest.err >&5
8397 # Otherwise, if the output was created with a 0 exit code from
8398 # the compiler, it worked.
8399 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8400 lt_cv_apple_cc_single_mod=yes
8401 else
8402 cat conftest.err >&5
8403 fi
8404 rm -rf libconftest.dylib*
8405 rm -f conftest.*
8406 fi ;;
8407 esac
8408 fi
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8410 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8411
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8413 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8414 if test ${lt_cv_ld_exported_symbols_list+y}
8415 then :
8416 printf %s "(cached) " >&6
8417 else case e in #(
8418 e) lt_cv_ld_exported_symbols_list=no
8419 save_LDFLAGS=$LDFLAGS
8420 echo "_main" > conftest.sym
8421 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424
8425 int
8426 main (void)
8427 {
8428
8429 ;
8430 return 0;
8431 }
8432 _ACEOF
8433 if ac_fn_c_try_link "$LINENO"
8434 then :
8435 lt_cv_ld_exported_symbols_list=yes
8436 else case e in #(
8437 e) lt_cv_ld_exported_symbols_list=no ;;
8438 esac
8439 fi
8440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8441 conftest$ac_exeext conftest.$ac_ext
8442 LDFLAGS=$save_LDFLAGS
8443 ;;
8444 esac
8445 fi
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8447 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8448
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8450 printf %s "checking for -force_load linker flag... " >&6; }
8451 if test ${lt_cv_ld_force_load+y}
8452 then :
8453 printf %s "(cached) " >&6
8454 else case e in #(
8455 e) lt_cv_ld_force_load=no
8456 cat > conftest.c << _LT_EOF
8457 int forced_loaded() { return 2;}
8458 _LT_EOF
8459 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8460 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8461 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8462 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8463 echo "$RANLIB libconftest.a" >&5
8464 $RANLIB libconftest.a 2>&5
8465 cat > conftest.c << _LT_EOF
8466 int main() { return 0;}
8467 _LT_EOF
8468 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8469 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8470 _lt_result=$?
8471 if test -s conftest.err && $GREP force_load conftest.err; then
8472 cat conftest.err >&5
8473 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8474 lt_cv_ld_force_load=yes
8475 else
8476 cat conftest.err >&5
8477 fi
8478 rm -f conftest.err libconftest.a conftest conftest.c
8479 rm -rf conftest.dSYM
8480 ;;
8481 esac
8482 fi
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8484 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8485 case $host_os in
8486 rhapsody* | darwin1.[012])
8487 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8488 darwin1.*)
8489 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8490 darwin*)
8491 case $MACOSX_DEPLOYMENT_TARGET,$host in
8492 10.[012],*|,*powerpc*-darwin[5-8]*)
8493 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8494 *)
8495 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8496 esac
8497 ;;
8498 esac
8499 if test yes = "$lt_cv_apple_cc_single_mod"; then
8500 _lt_dar_single_mod='$single_module'
8501 fi
8502 _lt_dar_needs_single_mod=no
8503 case $host_os in
8504 rhapsody* | darwin1.*)
8505 _lt_dar_needs_single_mod=yes ;;
8506 darwin*)
8507 # When targeting Mac OS X 10.4 (darwin 8) or later,
8508 # -single_module is the default and -multi_module is unsupported.
8509 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8510 # target any OS version that needs -single_module.
8511 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8512 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8513 _lt_dar_needs_single_mod=yes ;;
8514 esac
8515 ;;
8516 esac
8517 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8518 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8519 else
8520 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8521 fi
8522 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8523 _lt_dsymutil='~$DSYMUTIL $lib || :'
8524 else
8525 _lt_dsymutil=
8526 fi
8527 ;;
8528 esac
8529
8530 # func_munge_path_list VARIABLE PATH
8531 # -----------------------------------
8532 # VARIABLE is name of variable containing _space_ separated list of
8533 # directories to be munged by the contents of PATH, which is string
8534 # having a format:
8535 # "DIR[:DIR]:"
8536 # string "DIR[ DIR]" will be prepended to VARIABLE
8537 # ":DIR[:DIR]"
8538 # string "DIR[ DIR]" will be appended to VARIABLE
8539 # "DIRP[:DIRP]::[DIRA:]DIRA"
8540 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8541 # "DIRA[ DIRA]" will be appended to VARIABLE
8542 # "DIR[:DIR]"
8543 # VARIABLE will be replaced by "DIR[ DIR]"
8544 func_munge_path_list ()
8545 {
8546 case x$2 in
8547 x)
8548 ;;
8549 *:)
8550 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8551 ;;
8552 x:*)
8553 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8554 ;;
8555 *::*)
8556 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8557 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8558 ;;
8559 *)
8560 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8561 ;;
8562 esac
8563 }
8564
8565 ac_header= ac_cache=
8566 for ac_item in $ac_header_c_list
8567 do
8568 if test $ac_cache; then
8569 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8570 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8571 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8572 fi
8573 ac_header= ac_cache=
8574 elif test $ac_header; then
8575 ac_cache=$ac_item
8576 else
8577 ac_header=$ac_item
8578 fi
8579 done
8580
8581
8582
8583
8584
8585
8586
8587
8588 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8589 then :
8590
8591 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8592
8593 fi
8594 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8595 "
8596 if test "x$ac_cv_header_dlfcn_h" = xyes
8597 then :
8598 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8599
8600 fi
8601
8602
8603
8604
8605
8606 # Set options
8607
8608
8609
8610 enable_dlopen=no
8611
8612
8613 enable_win32_dll=no
8614
8615
8616 # Check whether --enable-shared was given.
8617 if test ${enable_shared+y}
8618 then :
8619 enableval=$enable_shared; p=${PACKAGE-default}
8620 case $enableval in
8621 yes) enable_shared=yes ;;
8622 no) enable_shared=no ;;
8623 *)
8624 enable_shared=no
8625 # Look at the argument we got. We use all the common list separators.
8626 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8627 for pkg in $enableval; do
8628 IFS=$lt_save_ifs
8629 if test "X$pkg" = "X$p"; then
8630 enable_shared=yes
8631 fi
8632 done
8633 IFS=$lt_save_ifs
8634 ;;
8635 esac
8636 else case e in #(
8637 e) enable_shared=yes ;;
8638 esac
8639 fi
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649 # Check whether --enable-static was given.
8650 if test ${enable_static+y}
8651 then :
8652 enableval=$enable_static; p=${PACKAGE-default}
8653 case $enableval in
8654 yes) enable_static=yes ;;
8655 no) enable_static=no ;;
8656 *)
8657 enable_static=no
8658 # Look at the argument we got. We use all the common list separators.
8659 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8660 for pkg in $enableval; do
8661 IFS=$lt_save_ifs
8662 if test "X$pkg" = "X$p"; then
8663 enable_static=yes
8664 fi
8665 done
8666 IFS=$lt_save_ifs
8667 ;;
8668 esac
8669 else case e in #(
8670 e) enable_static=yes ;;
8671 esac
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683 # Check whether --with-pic was given.
8684 if test ${with_pic+y}
8685 then :
8686 withval=$with_pic; lt_p=${PACKAGE-default}
8687 case $withval in
8688 yes|no) pic_mode=$withval ;;
8689 *)
8690 pic_mode=default
8691 # Look at the argument we got. We use all the common list separators.
8692 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8693 for lt_pkg in $withval; do
8694 IFS=$lt_save_ifs
8695 if test "X$lt_pkg" = "X$lt_p"; then
8696 pic_mode=yes
8697 fi
8698 done
8699 IFS=$lt_save_ifs
8700 ;;
8701 esac
8702 else case e in #(
8703 e) pic_mode=default ;;
8704 esac
8705 fi
8706
8707
8708
8709
8710
8711
8712
8713
8714 # Check whether --enable-fast-install was given.
8715 if test ${enable_fast_install+y}
8716 then :
8717 enableval=$enable_fast_install; p=${PACKAGE-default}
8718 case $enableval in
8719 yes) enable_fast_install=yes ;;
8720 no) enable_fast_install=no ;;
8721 *)
8722 enable_fast_install=no
8723 # Look at the argument we got. We use all the common list separators.
8724 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8725 for pkg in $enableval; do
8726 IFS=$lt_save_ifs
8727 if test "X$pkg" = "X$p"; then
8728 enable_fast_install=yes
8729 fi
8730 done
8731 IFS=$lt_save_ifs
8732 ;;
8733 esac
8734 else case e in #(
8735 e) enable_fast_install=yes ;;
8736 esac
8737 fi
8738
8739
8740
8741
8742
8743
8744
8745
8746 shared_archive_member_spec=
8747 case $host,$enable_shared in
8748 power*-*-aix[5-9]*,yes)
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8750 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8751
8752 # Check whether --with-aix-soname was given.
8753 if test ${with_aix_soname+y}
8754 then :
8755 withval=$with_aix_soname; case $withval in
8756 aix|svr4|both)
8757 ;;
8758 *)
8759 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8760 ;;
8761 esac
8762 lt_cv_with_aix_soname=$with_aix_soname
8763 else case e in #(
8764 e) if test ${lt_cv_with_aix_soname+y}
8765 then :
8766 printf %s "(cached) " >&6
8767 else case e in #(
8768 e) lt_cv_with_aix_soname=aix ;;
8769 esac
8770 fi
8771
8772 with_aix_soname=$lt_cv_with_aix_soname ;;
8773 esac
8774 fi
8775
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8777 printf "%s\n" "$with_aix_soname" >&6; }
8778 if test aix != "$with_aix_soname"; then
8779 # For the AIX way of multilib, we name the shared archive member
8780 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8781 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8782 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8783 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8784 if test 64 = "${OBJECT_MODE-32}"; then
8785 shared_archive_member_spec=shr_64
8786 else
8787 shared_archive_member_spec=shr
8788 fi
8789 fi
8790 ;;
8791 *)
8792 with_aix_soname=aix
8793 ;;
8794 esac
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805 # This can be used to rebuild libtool when needed
8806 LIBTOOL_DEPS=$ltmain
8807
8808 # Always use our own libtool.
8809 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840 test -z "$LN_S" && LN_S="ln -s"
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855 if test -n "${ZSH_VERSION+set}"; then
8856 setopt NO_GLOB_SUBST
8857 fi
8858
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8860 printf %s "checking for objdir... " >&6; }
8861 if test ${lt_cv_objdir+y}
8862 then :
8863 printf %s "(cached) " >&6
8864 else case e in #(
8865 e) rm -f .libs 2>/dev/null
8866 mkdir .libs 2>/dev/null
8867 if test -d .libs; then
8868 lt_cv_objdir=.libs
8869 else
8870 # MS-DOS does not allow filenames that begin with a dot.
8871 lt_cv_objdir=_libs
8872 fi
8873 rmdir .libs 2>/dev/null ;;
8874 esac
8875 fi
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8877 printf "%s\n" "$lt_cv_objdir" >&6; }
8878 objdir=$lt_cv_objdir
8879
8880
8881
8882
8883
8884 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8885
8886
8887
8888
8889 case $host_os in
8890 aix3*)
8891 # AIX sometimes has problems with the GCC collect2 program. For some
8892 # reason, if we set the COLLECT_NAMES environment variable, the problems
8893 # vanish in a puff of smoke.
8894 if test set != "${COLLECT_NAMES+set}"; then
8895 COLLECT_NAMES=
8896 export COLLECT_NAMES
8897 fi
8898 ;;
8899 esac
8900
8901 # Global variables:
8902 ofile=libtool
8903 can_build_shared=yes
8904
8905 # All known linkers require a '.a' archive for static linking (except MSVC and
8906 # ICC, which need '.lib').
8907 libext=a
8908
8909 with_gnu_ld=$lt_cv_prog_gnu_ld
8910
8911 old_CC=$CC
8912 old_CFLAGS=$CFLAGS
8913
8914 # Set sane defaults for various variables
8915 test -z "$CC" && CC=cc
8916 test -z "$LTCC" && LTCC=$CC
8917 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8918 test -z "$LD" && LD=ld
8919 test -z "$ac_objext" && ac_objext=o
8920
8921 func_cc_basename $compiler
8922 cc_basename=$func_cc_basename_result
8923
8924
8925 # Only perform the check for file, if the check method requires it
8926 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8927 case $deplibs_check_method in
8928 file_magic*)
8929 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8931 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8932 if test ${lt_cv_path_MAGIC_CMD+y}
8933 then :
8934 printf %s "(cached) " >&6
8935 else case e in #(
8936 e) case $MAGIC_CMD in
8937 [\\/*] | ?:[\\/]*)
8938 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8939 ;;
8940 *)
8941 lt_save_MAGIC_CMD=$MAGIC_CMD
8942 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8944 for ac_dir in $ac_dummy; do
8945 IFS=$lt_save_ifs
8946 test -z "$ac_dir" && ac_dir=.
8947 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8948 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8949 if test -n "$file_magic_test_file"; then
8950 case $deplibs_check_method in
8951 "file_magic "*)
8952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8953 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8955 $EGREP "$file_magic_regex" > /dev/null; then
8956 :
8957 else
8958 cat <<_LT_EOF 1>&2
8959
8960 *** Warning: the command libtool uses to detect shared libraries,
8961 *** $file_magic_cmd, produces output that libtool cannot recognize.
8962 *** The result is that libtool may fail to recognize shared libraries
8963 *** as such. This will affect the creation of libtool libraries that
8964 *** depend on shared libraries, but programs linked with such libtool
8965 *** libraries will work regardless of this problem. Nevertheless, you
8966 *** may want to report the problem to your system manager and/or to
8967 *** [email protected]
8968
8969 _LT_EOF
8970 fi ;;
8971 esac
8972 fi
8973 break
8974 fi
8975 done
8976 IFS=$lt_save_ifs
8977 MAGIC_CMD=$lt_save_MAGIC_CMD
8978 ;;
8979 esac ;;
8980 esac
8981 fi
8982
8983 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8984 if test -n "$MAGIC_CMD"; then
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986 printf "%s\n" "$MAGIC_CMD" >&6; }
8987 else
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 printf "%s\n" "no" >&6; }
8990 fi
8991
8992
8993
8994
8995
8996 if test -z "$lt_cv_path_MAGIC_CMD"; then
8997 if test -n "$ac_tool_prefix"; then
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8999 printf %s "checking for file... " >&6; }
9000 if test ${lt_cv_path_MAGIC_CMD+y}
9001 then :
9002 printf %s "(cached) " >&6
9003 else case e in #(
9004 e) case $MAGIC_CMD in
9005 [\\/*] | ?:[\\/]*)
9006 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9007 ;;
9008 *)
9009 lt_save_MAGIC_CMD=$MAGIC_CMD
9010 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9011 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9012 for ac_dir in $ac_dummy; do
9013 IFS=$lt_save_ifs
9014 test -z "$ac_dir" && ac_dir=.
9015 if test -f "$ac_dir/file"; then
9016 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9017 if test -n "$file_magic_test_file"; then
9018 case $deplibs_check_method in
9019 "file_magic "*)
9020 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9021 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9022 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9023 $EGREP "$file_magic_regex" > /dev/null; then
9024 :
9025 else
9026 cat <<_LT_EOF 1>&2
9027
9028 *** Warning: the command libtool uses to detect shared libraries,
9029 *** $file_magic_cmd, produces output that libtool cannot recognize.
9030 *** The result is that libtool may fail to recognize shared libraries
9031 *** as such. This will affect the creation of libtool libraries that
9032 *** depend on shared libraries, but programs linked with such libtool
9033 *** libraries will work regardless of this problem. Nevertheless, you
9034 *** may want to report the problem to your system manager and/or to
9035 *** [email protected]
9036
9037 _LT_EOF
9038 fi ;;
9039 esac
9040 fi
9041 break
9042 fi
9043 done
9044 IFS=$lt_save_ifs
9045 MAGIC_CMD=$lt_save_MAGIC_CMD
9046 ;;
9047 esac ;;
9048 esac
9049 fi
9050
9051 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9052 if test -n "$MAGIC_CMD"; then
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9054 printf "%s\n" "$MAGIC_CMD" >&6; }
9055 else
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 printf "%s\n" "no" >&6; }
9058 fi
9059
9060
9061 else
9062 MAGIC_CMD=:
9063 fi
9064 fi
9065
9066 fi
9067 ;;
9068 esac
9069
9070 # Use C for the default configuration in the libtool script
9071
9072 lt_save_CC=$CC
9073 ac_ext=c
9074 ac_cpp='$CPP $CPPFLAGS'
9075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9078
9079
9080 # Source file extension for C test sources.
9081 ac_ext=c
9082
9083 # Object file extension for compiled C test sources.
9084 objext=o
9085 objext=$objext
9086
9087 # Code to be used in simple compile tests
9088 lt_simple_compile_test_code="int some_variable = 0;"
9089
9090 # Code to be used in simple link tests
9091 lt_simple_link_test_code='int main(){return(0);}'
9092
9093
9094
9095
9096
9097
9098
9099 # If no C compiler was specified, use CC.
9100 LTCC=${LTCC-"$CC"}
9101
9102 # If no C compiler flags were specified, use CFLAGS.
9103 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9104
9105 # Allow CC to be a program name with arguments.
9106 compiler=$CC
9107
9108 # Save the default compiler, since it gets overwritten when the other
9109 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9110 compiler_DEFAULT=$CC
9111
9112 # save warnings/boilerplate of simple test code
9113 ac_outfile=conftest.$ac_objext
9114 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9115 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9116 _lt_compiler_boilerplate=`cat conftest.err`
9117 $RM conftest*
9118
9119 ac_outfile=conftest.$ac_objext
9120 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9121 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9122 _lt_linker_boilerplate=`cat conftest.err`
9123 $RM -r conftest*
9124
9125
9126 ## CAVEAT EMPTOR:
9127 ## There is no encapsulation within the following macros, do not change
9128 ## the running order or otherwise move them around unless you know exactly
9129 ## what you are doing...
9130 if test -n "$compiler"; then
9131
9132 lt_prog_compiler_no_builtin_flag=
9133
9134 if test yes = "$GCC"; then
9135 case $cc_basename in
9136 nvcc*)
9137 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9138 *)
9139 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9140 esac
9141
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9143 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9144 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9145 then :
9146 printf %s "(cached) " >&6
9147 else case e in #(
9148 e) lt_cv_prog_compiler_rtti_exceptions=no
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9152 # Insert the option either (1) after the last *FLAGS variable, or
9153 # (2) before a word containing "conftest.", or (3) at the end.
9154 # Note that $ac_compile itself does not contain backslashes and begins
9155 # with a dollar sign (not a hyphen), so the echo should work correctly.
9156 # The option is referenced via a variable to avoid confusing sed.
9157 lt_compile=`echo "$ac_compile" | $SED \
9158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160 -e 's:$: $lt_compiler_flag:'`
9161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9162 (eval "$lt_compile" 2>conftest.err)
9163 ac_status=$?
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 if (exit $ac_status) && test -s "$ac_outfile"; then
9167 # The compiler can only warn and ignore the option if not recognized
9168 # So say no if there are warnings other than the usual output.
9169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9172 lt_cv_prog_compiler_rtti_exceptions=yes
9173 fi
9174 fi
9175 $RM conftest*
9176 ;;
9177 esac
9178 fi
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9180 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9181
9182 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9184 else
9185 :
9186 fi
9187
9188 fi
9189
9190
9191
9192
9193
9194
9195 lt_prog_compiler_wl=
9196 lt_prog_compiler_pic=
9197 lt_prog_compiler_static=
9198
9199
9200 if test yes = "$GCC"; then
9201 lt_prog_compiler_wl='-Wl,'
9202 lt_prog_compiler_static='-static'
9203
9204 case $host_os in
9205 aix*)
9206 # All AIX code is PIC.
9207 if test ia64 = "$host_cpu"; then
9208 # AIX 5 now supports IA64 processor
9209 lt_prog_compiler_static='-Bstatic'
9210 fi
9211 lt_prog_compiler_pic='-fPIC'
9212 ;;
9213
9214 amigaos*)
9215 case $host_cpu in
9216 powerpc)
9217 # see comment about AmigaOS4 .so support
9218 lt_prog_compiler_pic='-fPIC'
9219 ;;
9220 m68k)
9221 # FIXME: we need at least 68020 code to build shared libraries, but
9222 # adding the '-m68020' flag to GCC prevents building anything better,
9223 # like '-m68040'.
9224 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9225 ;;
9226 esac
9227 ;;
9228
9229 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9230 # PIC is the default for these OSes.
9231 ;;
9232
9233 mingw* | cygwin* | pw32* | os2* | cegcc*)
9234 # This hack is so that the source file can tell whether it is being
9235 # built for inclusion in a dll (and should export symbols for example).
9236 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9237 # (--disable-auto-import) libraries
9238 lt_prog_compiler_pic='-DDLL_EXPORT'
9239 case $host_os in
9240 os2*)
9241 lt_prog_compiler_static='$wl-static'
9242 ;;
9243 esac
9244 ;;
9245
9246 darwin* | rhapsody*)
9247 # PIC is the default on this platform
9248 # Common symbols not allowed in MH_DYLIB files
9249 lt_prog_compiler_pic='-fno-common'
9250 ;;
9251
9252 haiku*)
9253 # PIC is the default for Haiku.
9254 # The "-static" flag exists, but is broken.
9255 lt_prog_compiler_static=
9256 ;;
9257
9258 hpux*)
9259 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9260 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9261 # sets the default TLS model and affects inlining.
9262 case $host_cpu in
9263 hppa*64*)
9264 # +Z the default
9265 ;;
9266 *)
9267 lt_prog_compiler_pic='-fPIC'
9268 ;;
9269 esac
9270 ;;
9271
9272 interix[3-9]*)
9273 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9274 # Instead, we relocate shared libraries at runtime.
9275 ;;
9276
9277 msdosdjgpp*)
9278 # Just because we use GCC doesn't mean we suddenly get shared libraries
9279 # on systems that don't support them.
9280 lt_prog_compiler_can_build_shared=no
9281 enable_shared=no
9282 ;;
9283
9284 *nto* | *qnx*)
9285 # QNX uses GNU C++, but need to define -shared option too, otherwise
9286 # it will coredump.
9287 lt_prog_compiler_pic='-fPIC -shared'
9288 ;;
9289
9290 sysv4*MP*)
9291 if test -d /usr/nec; then
9292 lt_prog_compiler_pic=-Kconform_pic
9293 fi
9294 ;;
9295
9296 *)
9297 lt_prog_compiler_pic='-fPIC'
9298 ;;
9299 esac
9300
9301 case $cc_basename in
9302 nvcc*) # Cuda Compiler Driver 2.2
9303 lt_prog_compiler_wl='-Xlinker '
9304 if test -n "$lt_prog_compiler_pic"; then
9305 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9306 fi
9307 ;;
9308 esac
9309 else
9310 # PORTME Check for flag to pass linker flags through the system compiler.
9311 case $host_os in
9312 aix*)
9313 lt_prog_compiler_wl='-Wl,'
9314 if test ia64 = "$host_cpu"; then
9315 # AIX 5 now supports IA64 processor
9316 lt_prog_compiler_static='-Bstatic'
9317 else
9318 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9319 fi
9320 ;;
9321
9322 darwin* | rhapsody*)
9323 # PIC is the default on this platform
9324 # Common symbols not allowed in MH_DYLIB files
9325 lt_prog_compiler_pic='-fno-common'
9326 case $cc_basename in
9327 nagfor*)
9328 # NAG Fortran compiler
9329 lt_prog_compiler_wl='-Wl,-Wl,,'
9330 lt_prog_compiler_pic='-PIC'
9331 lt_prog_compiler_static='-Bstatic'
9332 ;;
9333 esac
9334 ;;
9335
9336 mingw* | cygwin* | pw32* | os2* | cegcc*)
9337 # This hack is so that the source file can tell whether it is being
9338 # built for inclusion in a dll (and should export symbols for example).
9339 lt_prog_compiler_pic='-DDLL_EXPORT'
9340 case $host_os in
9341 os2*)
9342 lt_prog_compiler_static='$wl-static'
9343 ;;
9344 esac
9345 ;;
9346
9347 hpux9* | hpux10* | hpux11*)
9348 lt_prog_compiler_wl='-Wl,'
9349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9350 # not for PA HP-UX.
9351 case $host_cpu in
9352 hppa*64*|ia64*)
9353 # +Z the default
9354 ;;
9355 *)
9356 lt_prog_compiler_pic='+Z'
9357 ;;
9358 esac
9359 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9360 lt_prog_compiler_static='$wl-a ${wl}archive'
9361 ;;
9362
9363 irix5* | irix6* | nonstopux*)
9364 lt_prog_compiler_wl='-Wl,'
9365 # PIC (with -KPIC) is the default.
9366 lt_prog_compiler_static='-non_shared'
9367 ;;
9368
9369 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9370 case $cc_basename in
9371 # old Intel for x86_64, which still supported -KPIC.
9372 ecc*)
9373 lt_prog_compiler_wl='-Wl,'
9374 lt_prog_compiler_pic='-KPIC'
9375 lt_prog_compiler_static='-static'
9376 ;;
9377 # icc used to be incompatible with GCC.
9378 # ICC 10 doesn't accept -KPIC any more.
9379 icc* | ifort*)
9380 lt_prog_compiler_wl='-Wl,'
9381 lt_prog_compiler_pic='-fPIC'
9382 lt_prog_compiler_static='-static'
9383 ;;
9384 # Lahey Fortran 8.1.
9385 lf95*)
9386 lt_prog_compiler_wl='-Wl,'
9387 lt_prog_compiler_pic='--shared'
9388 lt_prog_compiler_static='--static'
9389 ;;
9390 nagfor*)
9391 # NAG Fortran compiler
9392 lt_prog_compiler_wl='-Wl,-Wl,,'
9393 lt_prog_compiler_pic='-PIC'
9394 lt_prog_compiler_static='-Bstatic'
9395 ;;
9396 tcc*)
9397 # Fabrice Bellard et al's Tiny C Compiler
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='-fPIC'
9400 lt_prog_compiler_static='-static'
9401 ;;
9402 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9403 # Portland Group compilers (*not* the Pentium gcc compiler,
9404 # which looks to be a dead project)
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-fpic'
9407 lt_prog_compiler_static='-Bstatic'
9408 ;;
9409 ccc*)
9410 lt_prog_compiler_wl='-Wl,'
9411 # All Alpha code is PIC.
9412 lt_prog_compiler_static='-non_shared'
9413 ;;
9414 xl* | bgxl* | bgf* | mpixl*)
9415 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9416 lt_prog_compiler_wl='-Wl,'
9417 lt_prog_compiler_pic='-qpic'
9418 lt_prog_compiler_static='-qstaticlink'
9419 ;;
9420 *)
9421 case `$CC -V 2>&1 | $SED 5q` in
9422 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9423 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9424 lt_prog_compiler_pic='-KPIC'
9425 lt_prog_compiler_static='-Bstatic'
9426 lt_prog_compiler_wl=''
9427 ;;
9428 *Sun\ F* | *Sun*Fortran*)
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9431 lt_prog_compiler_wl='-Qoption ld '
9432 ;;
9433 *Sun\ C*)
9434 # Sun C 5.9
9435 lt_prog_compiler_pic='-KPIC'
9436 lt_prog_compiler_static='-Bstatic'
9437 lt_prog_compiler_wl='-Wl,'
9438 ;;
9439 *Intel*\ [CF]*Compiler*)
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_pic='-fPIC'
9442 lt_prog_compiler_static='-static'
9443 ;;
9444 *Portland\ Group*)
9445 lt_prog_compiler_wl='-Wl,'
9446 lt_prog_compiler_pic='-fpic'
9447 lt_prog_compiler_static='-Bstatic'
9448 ;;
9449 esac
9450 ;;
9451 esac
9452 ;;
9453
9454 newsos6)
9455 lt_prog_compiler_pic='-KPIC'
9456 lt_prog_compiler_static='-Bstatic'
9457 ;;
9458
9459 *nto* | *qnx*)
9460 # QNX uses GNU C++, but need to define -shared option too, otherwise
9461 # it will coredump.
9462 lt_prog_compiler_pic='-fPIC -shared'
9463 ;;
9464
9465 osf3* | osf4* | osf5*)
9466 lt_prog_compiler_wl='-Wl,'
9467 # All OSF/1 code is PIC.
9468 lt_prog_compiler_static='-non_shared'
9469 ;;
9470
9471 rdos*)
9472 lt_prog_compiler_static='-non_shared'
9473 ;;
9474
9475 solaris*)
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9478 case $cc_basename in
9479 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9480 lt_prog_compiler_wl='-Qoption ld ';;
9481 *)
9482 lt_prog_compiler_wl='-Wl,';;
9483 esac
9484 ;;
9485
9486 sunos4*)
9487 lt_prog_compiler_wl='-Qoption ld '
9488 lt_prog_compiler_pic='-PIC'
9489 lt_prog_compiler_static='-Bstatic'
9490 ;;
9491
9492 sysv4 | sysv4.2uw2* | sysv4.3*)
9493 lt_prog_compiler_wl='-Wl,'
9494 lt_prog_compiler_pic='-KPIC'
9495 lt_prog_compiler_static='-Bstatic'
9496 ;;
9497
9498 sysv4*MP*)
9499 if test -d /usr/nec; then
9500 lt_prog_compiler_pic='-Kconform_pic'
9501 lt_prog_compiler_static='-Bstatic'
9502 fi
9503 ;;
9504
9505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='-KPIC'
9508 lt_prog_compiler_static='-Bstatic'
9509 ;;
9510
9511 unicos*)
9512 lt_prog_compiler_wl='-Wl,'
9513 lt_prog_compiler_can_build_shared=no
9514 ;;
9515
9516 uts4*)
9517 lt_prog_compiler_pic='-pic'
9518 lt_prog_compiler_static='-Bstatic'
9519 ;;
9520
9521 *)
9522 lt_prog_compiler_can_build_shared=no
9523 ;;
9524 esac
9525 fi
9526
9527 case $host_os in
9528 # For platforms that do not support PIC, -DPIC is meaningless:
9529 *djgpp*)
9530 lt_prog_compiler_pic=
9531 ;;
9532 *)
9533 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9534 ;;
9535 esac
9536
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9538 printf %s "checking for $compiler option to produce PIC... " >&6; }
9539 if test ${lt_cv_prog_compiler_pic+y}
9540 then :
9541 printf %s "(cached) " >&6
9542 else case e in #(
9543 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9544 esac
9545 fi
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9547 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9548 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9549
9550 #
9551 # Check to make sure the PIC flag actually works.
9552 #
9553 if test -n "$lt_prog_compiler_pic"; then
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9555 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9556 if test ${lt_cv_prog_compiler_pic_works+y}
9557 then :
9558 printf %s "(cached) " >&6
9559 else case e in #(
9560 e) lt_cv_prog_compiler_pic_works=no
9561 ac_outfile=conftest.$ac_objext
9562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9563 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9564 # Insert the option either (1) after the last *FLAGS variable, or
9565 # (2) before a word containing "conftest.", or (3) at the end.
9566 # Note that $ac_compile itself does not contain backslashes and begins
9567 # with a dollar sign (not a hyphen), so the echo should work correctly.
9568 # The option is referenced via a variable to avoid confusing sed.
9569 lt_compile=`echo "$ac_compile" | $SED \
9570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9572 -e 's:$: $lt_compiler_flag:'`
9573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9574 (eval "$lt_compile" 2>conftest.err)
9575 ac_status=$?
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 if (exit $ac_status) && test -s "$ac_outfile"; then
9579 # The compiler can only warn and ignore the option if not recognized
9580 # So say no if there are warnings other than the usual output.
9581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9584 lt_cv_prog_compiler_pic_works=yes
9585 fi
9586 fi
9587 $RM conftest*
9588 ;;
9589 esac
9590 fi
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9592 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9593
9594 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9595 case $lt_prog_compiler_pic in
9596 "" | " "*) ;;
9597 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9598 esac
9599 else
9600 lt_prog_compiler_pic=
9601 lt_prog_compiler_can_build_shared=no
9602 fi
9603
9604 fi
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616 #
9617 # Check to make sure the static flag actually works.
9618 #
9619 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9621 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9622 if test ${lt_cv_prog_compiler_static_works+y}
9623 then :
9624 printf %s "(cached) " >&6
9625 else case e in #(
9626 e) lt_cv_prog_compiler_static_works=no
9627 save_LDFLAGS=$LDFLAGS
9628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9629 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9631 # The linker can only warn and ignore the option if not recognized
9632 # So say no if there are warnings
9633 if test -s conftest.err; then
9634 # Append any errors to the config.log.
9635 cat conftest.err 1>&5
9636 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9638 if diff conftest.exp conftest.er2 >/dev/null; then
9639 lt_cv_prog_compiler_static_works=yes
9640 fi
9641 else
9642 lt_cv_prog_compiler_static_works=yes
9643 fi
9644 fi
9645 $RM -r conftest*
9646 LDFLAGS=$save_LDFLAGS
9647 ;;
9648 esac
9649 fi
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9651 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9652
9653 if test yes = "$lt_cv_prog_compiler_static_works"; then
9654 :
9655 else
9656 lt_prog_compiler_static=
9657 fi
9658
9659
9660
9661
9662
9663
9664
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9666 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9667 if test ${lt_cv_prog_compiler_c_o+y}
9668 then :
9669 printf %s "(cached) " >&6
9670 else case e in #(
9671 e) lt_cv_prog_compiler_c_o=no
9672 $RM -r conftest 2>/dev/null
9673 mkdir conftest
9674 cd conftest
9675 mkdir out
9676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677
9678 lt_compiler_flag="-o out/conftest2.$ac_objext"
9679 # Insert the option either (1) after the last *FLAGS variable, or
9680 # (2) before a word containing "conftest.", or (3) at the end.
9681 # Note that $ac_compile itself does not contain backslashes and begins
9682 # with a dollar sign (not a hyphen), so the echo should work correctly.
9683 lt_compile=`echo "$ac_compile" | $SED \
9684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686 -e 's:$: $lt_compiler_flag:'`
9687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9688 (eval "$lt_compile" 2>out/conftest.err)
9689 ac_status=$?
9690 cat out/conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9693 then
9694 # The compiler can only warn and ignore the option if not recognized
9695 # So say no if there are warnings
9696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9699 lt_cv_prog_compiler_c_o=yes
9700 fi
9701 fi
9702 chmod u+w . 2>&5
9703 $RM conftest*
9704 # SGI C++ compiler will create directory out/ii_files/ for
9705 # template instantiation
9706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9707 $RM out/* && rmdir out
9708 cd ..
9709 $RM -r conftest
9710 $RM conftest*
9711 ;;
9712 esac
9713 fi
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9715 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9716
9717
9718
9719
9720
9721
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9723 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9724 if test ${lt_cv_prog_compiler_c_o+y}
9725 then :
9726 printf %s "(cached) " >&6
9727 else case e in #(
9728 e) lt_cv_prog_compiler_c_o=no
9729 $RM -r conftest 2>/dev/null
9730 mkdir conftest
9731 cd conftest
9732 mkdir out
9733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9734
9735 lt_compiler_flag="-o out/conftest2.$ac_objext"
9736 # Insert the option either (1) after the last *FLAGS variable, or
9737 # (2) before a word containing "conftest.", or (3) at the end.
9738 # Note that $ac_compile itself does not contain backslashes and begins
9739 # with a dollar sign (not a hyphen), so the echo should work correctly.
9740 lt_compile=`echo "$ac_compile" | $SED \
9741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9743 -e 's:$: $lt_compiler_flag:'`
9744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9745 (eval "$lt_compile" 2>out/conftest.err)
9746 ac_status=$?
9747 cat out/conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9750 then
9751 # The compiler can only warn and ignore the option if not recognized
9752 # So say no if there are warnings
9753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9754 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9755 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9756 lt_cv_prog_compiler_c_o=yes
9757 fi
9758 fi
9759 chmod u+w . 2>&5
9760 $RM conftest*
9761 # SGI C++ compiler will create directory out/ii_files/ for
9762 # template instantiation
9763 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9764 $RM out/* && rmdir out
9765 cd ..
9766 $RM -r conftest
9767 $RM conftest*
9768 ;;
9769 esac
9770 fi
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9772 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9773
9774
9775
9776
9777 hard_links=nottested
9778 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9779 # do not overwrite the value of need_locks provided by the user
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9781 printf %s "checking if we can lock with hard links... " >&6; }
9782 hard_links=yes
9783 $RM conftest*
9784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9785 touch conftest.a
9786 ln conftest.a conftest.b 2>&5 || hard_links=no
9787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9789 printf "%s\n" "$hard_links" >&6; }
9790 if test no = "$hard_links"; then
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9792 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9793 need_locks=warn
9794 fi
9795 else
9796 need_locks=no
9797 fi
9798
9799
9800
9801
9802
9803
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9805 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9806
9807 runpath_var=
9808 allow_undefined_flag=
9809 always_export_symbols=no
9810 archive_cmds=
9811 archive_expsym_cmds=
9812 compiler_needs_object=no
9813 enable_shared_with_static_runtimes=no
9814 export_dynamic_flag_spec=
9815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9816 hardcode_automatic=no
9817 hardcode_direct=no
9818 hardcode_direct_absolute=no
9819 hardcode_libdir_flag_spec=
9820 hardcode_libdir_separator=
9821 hardcode_minus_L=no
9822 hardcode_shlibpath_var=unsupported
9823 inherit_rpath=no
9824 link_all_deplibs=unknown
9825 module_cmds=
9826 module_expsym_cmds=
9827 old_archive_from_new_cmds=
9828 old_archive_from_expsyms_cmds=
9829 thread_safe_flag_spec=
9830 whole_archive_flag_spec=
9831 # include_expsyms should be a list of space-separated symbols to be *always*
9832 # included in the symbol list
9833 include_expsyms=
9834 # exclude_expsyms can be an extended regexp of symbols to exclude
9835 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9836 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9837 # as well as any symbol that contains 'd'.
9838 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9840 # platforms (ab)use it in PIC code, but their linkers get confused if
9841 # the symbol is explicitly referenced. Since portable code cannot
9842 # rely on this symbol name, it's probably fine to never include it in
9843 # preloaded symbol tables.
9844 # Exclude shared library initialization/finalization symbols.
9845 extract_expsyms_cmds=
9846
9847 case $host_os in
9848 cygwin* | mingw* | pw32* | cegcc*)
9849 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9850 # When not using gcc, we currently assume that we are using
9851 # Microsoft Visual C++ or Intel C++ Compiler.
9852 if test yes != "$GCC"; then
9853 with_gnu_ld=no
9854 fi
9855 ;;
9856 interix*)
9857 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9858 with_gnu_ld=yes
9859 ;;
9860 openbsd* | bitrig*)
9861 with_gnu_ld=no
9862 ;;
9863 esac
9864
9865 ld_shlibs=yes
9866
9867 # On some targets, GNU ld is compatible enough with the native linker
9868 # that we're better off using the native interface for both.
9869 lt_use_gnu_ld_interface=no
9870 if test yes = "$with_gnu_ld"; then
9871 case $host_os in
9872 aix*)
9873 # The AIX port of GNU ld has always aspired to compatibility
9874 # with the native linker. However, as the warning in the GNU ld
9875 # block says, versions before 2.19.5* couldn't really create working
9876 # shared libraries, regardless of the interface used.
9877 case `$LD -v 2>&1` in
9878 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9879 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9880 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9881 *)
9882 lt_use_gnu_ld_interface=yes
9883 ;;
9884 esac
9885 ;;
9886 *)
9887 lt_use_gnu_ld_interface=yes
9888 ;;
9889 esac
9890 fi
9891
9892 if test yes = "$lt_use_gnu_ld_interface"; then
9893 # If archive_cmds runs LD, not CC, wlarc should be empty
9894 wlarc='$wl'
9895
9896 # Set some defaults for GNU ld with shared library support. These
9897 # are reset later if shared libraries are not supported. Putting them
9898 # here allows them to be overridden if necessary.
9899 runpath_var=LD_RUN_PATH
9900 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9901 export_dynamic_flag_spec='$wl--export-dynamic'
9902 # ancient GNU ld didn't support --whole-archive et. al.
9903 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9904 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9905 else
9906 whole_archive_flag_spec=
9907 fi
9908 supports_anon_versioning=no
9909 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9910 *GNU\ gold*) supports_anon_versioning=yes ;;
9911 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9912 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9913 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9914 *\ 2.11.*) ;; # other 2.11 versions
9915 *) supports_anon_versioning=yes ;;
9916 esac
9917
9918 # See if GNU ld supports shared libraries.
9919 case $host_os in
9920 aix[3-9]*)
9921 # On AIX/PPC, the GNU linker is very broken
9922 if test ia64 != "$host_cpu"; then
9923 ld_shlibs=no
9924 cat <<_LT_EOF 1>&2
9925
9926 *** Warning: the GNU linker, at least up to release 2.19, is reported
9927 *** to be unable to reliably create shared libraries on AIX.
9928 *** Therefore, libtool is disabling shared libraries support. If you
9929 *** really care for shared libraries, you may want to install binutils
9930 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9931 *** You will then need to restart the configuration process.
9932
9933 _LT_EOF
9934 fi
9935 ;;
9936
9937 amigaos*)
9938 case $host_cpu in
9939 powerpc)
9940 # see comment about AmigaOS4 .so support
9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9942 archive_expsym_cmds=''
9943 ;;
9944 m68k)
9945 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)'
9946 hardcode_libdir_flag_spec='-L$libdir'
9947 hardcode_minus_L=yes
9948 ;;
9949 esac
9950 ;;
9951
9952 beos*)
9953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9954 allow_undefined_flag=unsupported
9955 # Joseph Beckenbach <[email protected]> says some releases of gcc
9956 # support --undefined. This deserves some investigation. FIXME
9957 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9958 else
9959 ld_shlibs=no
9960 fi
9961 ;;
9962
9963 cygwin* | mingw* | pw32* | cegcc*)
9964 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9965 # as there is no search path for DLLs.
9966 hardcode_libdir_flag_spec='-L$libdir'
9967 export_dynamic_flag_spec='$wl--export-all-symbols'
9968 allow_undefined_flag=unsupported
9969 always_export_symbols=no
9970 enable_shared_with_static_runtimes=yes
9971 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'
9972 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9973
9974 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9976 # If the export-symbols file already is a .def file, use it as
9977 # is; otherwise, prepend EXPORTS...
9978 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9979 cp $export_symbols $output_objdir/$soname.def;
9980 else
9981 echo EXPORTS > $output_objdir/$soname.def;
9982 cat $export_symbols >> $output_objdir/$soname.def;
9983 fi~
9984 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9985 else
9986 ld_shlibs=no
9987 fi
9988 ;;
9989
9990 haiku*)
9991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9992 link_all_deplibs=yes
9993 ;;
9994
9995 os2*)
9996 hardcode_libdir_flag_spec='-L$libdir'
9997 hardcode_minus_L=yes
9998 allow_undefined_flag=unsupported
9999 shrext_cmds=.dll
10000 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10001 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10002 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10003 $ECHO EXPORTS >> $output_objdir/$libname.def~
10004 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10005 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10006 emximp -o $lib $output_objdir/$libname.def'
10007 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10008 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10009 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10010 $ECHO EXPORTS >> $output_objdir/$libname.def~
10011 prefix_cmds="$SED"~
10012 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10013 prefix_cmds="$prefix_cmds -e 1d";
10014 fi~
10015 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10016 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10018 emximp -o $lib $output_objdir/$libname.def'
10019 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10020 enable_shared_with_static_runtimes=yes
10021 file_list_spec='@'
10022 ;;
10023
10024 interix[3-9]*)
10025 hardcode_direct=no
10026 hardcode_shlibpath_var=no
10027 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10028 export_dynamic_flag_spec='$wl-E'
10029 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10030 # Instead, shared libraries are loaded at an image base (0x10000000 by
10031 # default) and relocated if they conflict, which is a slow very memory
10032 # consuming and fragmenting process. To avoid this, we pick a random,
10033 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10034 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10036 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'
10037 ;;
10038
10039 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10040 tmp_diet=no
10041 if test linux-dietlibc = "$host_os"; then
10042 case $cc_basename in
10043 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10044 esac
10045 fi
10046 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10047 && test no = "$tmp_diet"
10048 then
10049 tmp_addflag=' $pic_flag'
10050 tmp_sharedflag='-shared'
10051 case $cc_basename,$host_cpu in
10052 pgcc*) # Portland Group C compiler
10053 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'
10054 tmp_addflag=' $pic_flag'
10055 ;;
10056 pgf77* | pgf90* | pgf95* | pgfortran*)
10057 # Portland Group f77 and f90 compilers
10058 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'
10059 tmp_addflag=' $pic_flag -Mnomain' ;;
10060 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10061 tmp_addflag=' -i_dynamic' ;;
10062 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10063 tmp_addflag=' -i_dynamic -nofor_main' ;;
10064 ifc* | ifort*) # Intel Fortran compiler
10065 tmp_addflag=' -nofor_main' ;;
10066 lf95*) # Lahey Fortran 8.1
10067 whole_archive_flag_spec=
10068 tmp_sharedflag='--shared' ;;
10069 nagfor*) # NAGFOR 5.3
10070 tmp_sharedflag='-Wl,-shared' ;;
10071 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10072 tmp_sharedflag='-qmkshrobj'
10073 tmp_addflag= ;;
10074 nvcc*) # Cuda Compiler Driver 2.2
10075 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'
10076 compiler_needs_object=yes
10077 ;;
10078 esac
10079 case `$CC -V 2>&1 | $SED 5q` in
10080 *Sun\ C*) # Sun C 5.9
10081 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'
10082 compiler_needs_object=yes
10083 tmp_sharedflag='-G' ;;
10084 *Sun\ F*) # Sun Fortran 8.3
10085 tmp_sharedflag='-G' ;;
10086 esac
10087 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088
10089 if test yes = "$supports_anon_versioning"; then
10090 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10091 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10092 echo "local: *; };" >> $output_objdir/$libname.ver~
10093 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10094 fi
10095
10096 case $cc_basename in
10097 tcc*)
10098 export_dynamic_flag_spec='-rdynamic'
10099 ;;
10100 xlf* | bgf* | bgxlf* | mpixlf*)
10101 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10102 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10103 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10104 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10105 if test yes = "$supports_anon_versioning"; then
10106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10107 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10108 echo "local: *; };" >> $output_objdir/$libname.ver~
10109 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10110 fi
10111 ;;
10112 esac
10113 else
10114 ld_shlibs=no
10115 fi
10116 ;;
10117
10118 netbsd*)
10119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10120 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10121 wlarc=
10122 else
10123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10125 fi
10126 ;;
10127
10128 solaris*)
10129 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10130 ld_shlibs=no
10131 cat <<_LT_EOF 1>&2
10132
10133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10134 *** create shared libraries on Solaris systems. Therefore, libtool
10135 *** is disabling shared libraries support. We urge you to upgrade GNU
10136 *** binutils to release 2.9.1 or newer. Another option is to modify
10137 *** your PATH or compiler configuration so that the native linker is
10138 *** used, and then restart.
10139
10140 _LT_EOF
10141 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10144 else
10145 ld_shlibs=no
10146 fi
10147 ;;
10148
10149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10150 case `$LD -v 2>&1` in
10151 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10152 ld_shlibs=no
10153 cat <<_LT_EOF 1>&2
10154
10155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10156 *** reliably create shared libraries on SCO systems. Therefore, libtool
10157 *** is disabling shared libraries support. We urge you to upgrade GNU
10158 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10159 *** your PATH or compiler configuration so that the native linker is
10160 *** used, and then restart.
10161
10162 _LT_EOF
10163 ;;
10164 *)
10165 # For security reasons, it is highly recommended that you always
10166 # use absolute paths for naming shared libraries, and exclude the
10167 # DT_RUNPATH tag from executables and libraries. But doing so
10168 # requires that you compile everything twice, which is a pain.
10169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10170 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10173 else
10174 ld_shlibs=no
10175 fi
10176 ;;
10177 esac
10178 ;;
10179
10180 sunos4*)
10181 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10182 wlarc=
10183 hardcode_direct=yes
10184 hardcode_shlibpath_var=no
10185 ;;
10186
10187 *)
10188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10191 else
10192 ld_shlibs=no
10193 fi
10194 ;;
10195 esac
10196
10197 if test no = "$ld_shlibs"; then
10198 runpath_var=
10199 hardcode_libdir_flag_spec=
10200 export_dynamic_flag_spec=
10201 whole_archive_flag_spec=
10202 fi
10203 else
10204 # PORTME fill in a description of your system's linker (not GNU ld)
10205 case $host_os in
10206 aix3*)
10207 allow_undefined_flag=unsupported
10208 always_export_symbols=yes
10209 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'
10210 # Note: this linker hardcodes the directories in LIBPATH if there
10211 # are no directories specified by -L.
10212 hardcode_minus_L=yes
10213 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10214 # Neither direct hardcoding nor static linking is supported with a
10215 # broken collect2.
10216 hardcode_direct=unsupported
10217 fi
10218 ;;
10219
10220 aix[4-9]*)
10221 if test ia64 = "$host_cpu"; then
10222 # On IA64, the linker does run time linking by default, so we don't
10223 # have to do anything special.
10224 aix_use_runtimelinking=no
10225 exp_sym_flag='-Bexport'
10226 no_entry_flag=
10227 else
10228 # If we're using GNU nm, then we don't want the "-C" option.
10229 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10230 # Without the "-l" option, or with the "-B" option, AIX nm treats
10231 # weak defined symbols like other global defined symbols, whereas
10232 # GNU nm marks them as "W".
10233 # While the 'weak' keyword is ignored in the Export File, we need
10234 # it in the Import File for the 'aix-soname' feature, so we have
10235 # to replace the "-B" option with "-P" for AIX nm.
10236 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10237 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'
10238 else
10239 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'
10240 fi
10241 aix_use_runtimelinking=no
10242
10243 # Test if we are trying to use run time linking or normal
10244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10245 # have runtime linking enabled, and use it for executables.
10246 # For shared libraries, we enable/disable runtime linking
10247 # depending on the kind of the shared library created -
10248 # when "with_aix_soname,aix_use_runtimelinking" is:
10249 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10250 # "aix,yes" lib.so shared, rtl:yes, for executables
10251 # lib.a static archive
10252 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10253 # lib.a(lib.so.V) shared, rtl:no, for executables
10254 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10255 # lib.a(lib.so.V) shared, rtl:no
10256 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10257 # lib.a static archive
10258 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10259 for ld_flag in $LDFLAGS; do
10260 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10261 aix_use_runtimelinking=yes
10262 break
10263 fi
10264 done
10265 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10266 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10267 # so we don't have lib.a shared libs to link our executables.
10268 # We have to force runtime linking in this case.
10269 aix_use_runtimelinking=yes
10270 LDFLAGS="$LDFLAGS -Wl,-brtl"
10271 fi
10272 ;;
10273 esac
10274
10275 exp_sym_flag='-bexport'
10276 no_entry_flag='-bnoentry'
10277 fi
10278
10279 # When large executables or shared objects are built, AIX ld can
10280 # have problems creating the table of contents. If linking a library
10281 # or program results in "error TOC overflow" add -mminimal-toc to
10282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10284
10285 archive_cmds=''
10286 hardcode_direct=yes
10287 hardcode_direct_absolute=yes
10288 hardcode_libdir_separator=':'
10289 link_all_deplibs=yes
10290 file_list_spec='$wl-f,'
10291 case $with_aix_soname,$aix_use_runtimelinking in
10292 aix,*) ;; # traditional, no import file
10293 svr4,* | *,yes) # use import file
10294 # The Import File defines what to hardcode.
10295 hardcode_direct=no
10296 hardcode_direct_absolute=no
10297 ;;
10298 esac
10299
10300 if test yes = "$GCC"; then
10301 case $host_os in aix4.[012]|aix4.[012].*)
10302 # We only want to do this on AIX 4.2 and lower, the check
10303 # below for broken collect2 doesn't work under 4.3+
10304 collect2name=`$CC -print-prog-name=collect2`
10305 if test -f "$collect2name" &&
10306 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10307 then
10308 # We have reworked collect2
10309 :
10310 else
10311 # We have old collect2
10312 hardcode_direct=unsupported
10313 # It fails to find uninstalled libraries when the uninstalled
10314 # path is not listed in the libpath. Setting hardcode_minus_L
10315 # to unsupported forces relinking
10316 hardcode_minus_L=yes
10317 hardcode_libdir_flag_spec='-L$libdir'
10318 hardcode_libdir_separator=
10319 fi
10320 ;;
10321 esac
10322 shared_flag='-shared'
10323 if test yes = "$aix_use_runtimelinking"; then
10324 shared_flag="$shared_flag "'$wl-G'
10325 fi
10326 # Need to ensure runtime linking is disabled for the traditional
10327 # shared library, or the linker may eventually find shared libraries
10328 # /with/ Import File - we do not want to mix them.
10329 shared_flag_aix='-shared'
10330 shared_flag_svr4='-shared $wl-G'
10331 else
10332 # not using gcc
10333 if test ia64 = "$host_cpu"; then
10334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10335 # chokes on -Wl,-G. The following line is correct:
10336 shared_flag='-G'
10337 else
10338 if test yes = "$aix_use_runtimelinking"; then
10339 shared_flag='$wl-G'
10340 else
10341 shared_flag='$wl-bM:SRE'
10342 fi
10343 shared_flag_aix='$wl-bM:SRE'
10344 shared_flag_svr4='$wl-G'
10345 fi
10346 fi
10347
10348 export_dynamic_flag_spec='$wl-bexpall'
10349 # It seems that -bexpall does not export symbols beginning with
10350 # underscore (_), so it is better to generate a list of symbols to export.
10351 always_export_symbols=yes
10352 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10353 # Warning - without using the other runtime loading flags (-brtl),
10354 # -berok will link without error, but may produce a broken library.
10355 allow_undefined_flag='-berok'
10356 # Determine the default libpath from the value encoded in an
10357 # empty executable.
10358 if test set = "${lt_cv_aix_libpath+set}"; then
10359 aix_libpath=$lt_cv_aix_libpath
10360 else
10361 if test ${lt_cv_aix_libpath_+y}
10362 then :
10363 printf %s "(cached) " >&6
10364 else case e in #(
10365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10367
10368 int
10369 main (void)
10370 {
10371
10372 ;
10373 return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"
10377 then :
10378
10379 lt_aix_libpath_sed='
10380 /Import File Strings/,/^$/ {
10381 /^0/ {
10382 s/^0 *\([^ ]*\) *$/\1/
10383 p
10384 }
10385 }'
10386 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387 # Check for a 64-bit object if we didn't find anything.
10388 if test -z "$lt_cv_aix_libpath_"; then
10389 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390 fi
10391 fi
10392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10393 conftest$ac_exeext conftest.$ac_ext
10394 if test -z "$lt_cv_aix_libpath_"; then
10395 lt_cv_aix_libpath_=/usr/lib:/lib
10396 fi
10397 ;;
10398 esac
10399 fi
10400
10401 aix_libpath=$lt_cv_aix_libpath_
10402 fi
10403
10404 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10405 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
10406 else
10407 if test ia64 = "$host_cpu"; then
10408 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10409 allow_undefined_flag="-z nodefs"
10410 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"
10411 else
10412 # Determine the default libpath from the value encoded in an
10413 # empty executable.
10414 if test set = "${lt_cv_aix_libpath+set}"; then
10415 aix_libpath=$lt_cv_aix_libpath
10416 else
10417 if test ${lt_cv_aix_libpath_+y}
10418 then :
10419 printf %s "(cached) " >&6
10420 else case e in #(
10421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423
10424 int
10425 main (void)
10426 {
10427
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"
10433 then :
10434
10435 lt_aix_libpath_sed='
10436 /Import File Strings/,/^$/ {
10437 /^0/ {
10438 s/^0 *\([^ ]*\) *$/\1/
10439 p
10440 }
10441 }'
10442 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10443 # Check for a 64-bit object if we didn't find anything.
10444 if test -z "$lt_cv_aix_libpath_"; then
10445 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10446 fi
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10449 conftest$ac_exeext conftest.$ac_ext
10450 if test -z "$lt_cv_aix_libpath_"; then
10451 lt_cv_aix_libpath_=/usr/lib:/lib
10452 fi
10453 ;;
10454 esac
10455 fi
10456
10457 aix_libpath=$lt_cv_aix_libpath_
10458 fi
10459
10460 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10461 # Warning - without using the other run time loading flags,
10462 # -berok will link without error, but may produce a broken library.
10463 no_undefined_flag=' $wl-bernotok'
10464 allow_undefined_flag=' $wl-berok'
10465 if test yes = "$with_gnu_ld"; then
10466 # We only use this code for GNU lds that support --whole-archive.
10467 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10468 else
10469 # Exported symbols can be pulled into shared objects from archives
10470 whole_archive_flag_spec='$convenience'
10471 fi
10472 archive_cmds_need_lc=yes
10473 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10474 # -brtl affects multiple linker settings, -berok does not and is overridden later
10475 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10476 if test svr4 != "$with_aix_soname"; then
10477 # This is similar to how AIX traditionally builds its shared libraries.
10478 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'
10479 fi
10480 if test aix != "$with_aix_soname"; then
10481 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'
10482 else
10483 # used by -dlpreopen to get the symbols
10484 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10485 fi
10486 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10487 fi
10488 fi
10489 ;;
10490
10491 amigaos*)
10492 case $host_cpu in
10493 powerpc)
10494 # see comment about AmigaOS4 .so support
10495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10496 archive_expsym_cmds=''
10497 ;;
10498 m68k)
10499 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)'
10500 hardcode_libdir_flag_spec='-L$libdir'
10501 hardcode_minus_L=yes
10502 ;;
10503 esac
10504 ;;
10505
10506 bsdi[45]*)
10507 export_dynamic_flag_spec=-rdynamic
10508 ;;
10509
10510 cygwin* | mingw* | pw32* | cegcc*)
10511 # When not using gcc, we currently assume that we are using
10512 # Microsoft Visual C++ or Intel C++ Compiler.
10513 # hardcode_libdir_flag_spec is actually meaningless, as there is
10514 # no search path for DLLs.
10515 case $cc_basename in
10516 cl* | icl*)
10517 # Native MSVC or ICC
10518 hardcode_libdir_flag_spec=' '
10519 allow_undefined_flag=unsupported
10520 always_export_symbols=yes
10521 file_list_spec='@'
10522 # Tell ltmain to make .lib files, not .a files.
10523 libext=lib
10524 # Tell ltmain to make .dll files, not .so files.
10525 shrext_cmds=.dll
10526 # FIXME: Setting linknames here is a bad hack.
10527 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10528 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10529 cp "$export_symbols" "$output_objdir/$soname.def";
10530 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10531 else
10532 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10533 fi~
10534 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10535 linknames='
10536 # The linker will not automatically build a static lib if we build a DLL.
10537 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10538 enable_shared_with_static_runtimes=yes
10539 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10540 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10541 # Don't use ranlib
10542 old_postinstall_cmds='chmod 644 $oldlib'
10543 postlink_cmds='lt_outputfile="@OUTPUT@"~
10544 lt_tool_outputfile="@TOOL_OUTPUT@"~
10545 case $lt_outputfile in
10546 *.exe|*.EXE) ;;
10547 *)
10548 lt_outputfile=$lt_outputfile.exe
10549 lt_tool_outputfile=$lt_tool_outputfile.exe
10550 ;;
10551 esac~
10552 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10553 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10554 $RM "$lt_outputfile.manifest";
10555 fi'
10556 ;;
10557 *)
10558 # Assume MSVC and ICC wrapper
10559 hardcode_libdir_flag_spec=' '
10560 allow_undefined_flag=unsupported
10561 # Tell ltmain to make .lib files, not .a files.
10562 libext=lib
10563 # Tell ltmain to make .dll files, not .so files.
10564 shrext_cmds=.dll
10565 # FIXME: Setting linknames here is a bad hack.
10566 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10567 # The linker will automatically build a .lib file if we build a DLL.
10568 old_archive_from_new_cmds='true'
10569 # FIXME: Should let the user specify the lib program.
10570 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10571 enable_shared_with_static_runtimes=yes
10572 ;;
10573 esac
10574 ;;
10575
10576 darwin* | rhapsody*)
10577
10578
10579 archive_cmds_need_lc=no
10580 hardcode_direct=no
10581 hardcode_automatic=yes
10582 hardcode_shlibpath_var=unsupported
10583 if test yes = "$lt_cv_ld_force_load"; then
10584 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\"`'
10585
10586 else
10587 whole_archive_flag_spec=''
10588 fi
10589 link_all_deplibs=yes
10590 allow_undefined_flag=$_lt_dar_allow_undefined
10591 case $cc_basename in
10592 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10593 *) _lt_dar_can_shared=$GCC ;;
10594 esac
10595 if test yes = "$_lt_dar_can_shared"; then
10596 output_verbose_link_cmd=func_echo_all
10597 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10598 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10599 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"
10600 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"
10601
10602 else
10603 ld_shlibs=no
10604 fi
10605
10606 ;;
10607
10608 dgux*)
10609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10610 hardcode_libdir_flag_spec='-L$libdir'
10611 hardcode_shlibpath_var=no
10612 ;;
10613
10614 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10615 # support. Future versions do this automatically, but an explicit c++rt0.o
10616 # does not break anything, and helps significantly (at the cost of a little
10617 # extra space).
10618 freebsd2.2*)
10619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10620 hardcode_libdir_flag_spec='-R$libdir'
10621 hardcode_direct=yes
10622 hardcode_shlibpath_var=no
10623 ;;
10624
10625 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10626 freebsd2.*)
10627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_direct=yes
10629 hardcode_minus_L=yes
10630 hardcode_shlibpath_var=no
10631 ;;
10632
10633 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10634 freebsd* | dragonfly* | midnightbsd*)
10635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10636 hardcode_libdir_flag_spec='-R$libdir'
10637 hardcode_direct=yes
10638 hardcode_shlibpath_var=no
10639 ;;
10640
10641 hpux9*)
10642 if test yes = "$GCC"; then
10643 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'
10644 else
10645 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'
10646 fi
10647 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10648 hardcode_libdir_separator=:
10649 hardcode_direct=yes
10650
10651 # hardcode_minus_L: Not really in the search PATH,
10652 # but as the default location of the library.
10653 hardcode_minus_L=yes
10654 export_dynamic_flag_spec='$wl-E'
10655 ;;
10656
10657 hpux10*)
10658 if test yes,no = "$GCC,$with_gnu_ld"; then
10659 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10660 else
10661 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10662 fi
10663 if test no = "$with_gnu_ld"; then
10664 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10665 hardcode_libdir_separator=:
10666 hardcode_direct=yes
10667 hardcode_direct_absolute=yes
10668 export_dynamic_flag_spec='$wl-E'
10669 # hardcode_minus_L: Not really in the search PATH,
10670 # but as the default location of the library.
10671 hardcode_minus_L=yes
10672 fi
10673 ;;
10674
10675 hpux11*)
10676 if test yes,no = "$GCC,$with_gnu_ld"; then
10677 case $host_cpu in
10678 hppa*64*)
10679 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 ;;
10681 ia64*)
10682 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10683 ;;
10684 *)
10685 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10686 ;;
10687 esac
10688 else
10689 case $host_cpu in
10690 hppa*64*)
10691 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 ;;
10693 ia64*)
10694 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10695 ;;
10696 *)
10697
10698 # Older versions of the 11.00 compiler do not understand -b yet
10699 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10701 printf %s "checking if $CC understands -b... " >&6; }
10702 if test ${lt_cv_prog_compiler__b+y}
10703 then :
10704 printf %s "(cached) " >&6
10705 else case e in #(
10706 e) lt_cv_prog_compiler__b=no
10707 save_LDFLAGS=$LDFLAGS
10708 LDFLAGS="$LDFLAGS -b"
10709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10711 # The linker can only warn and ignore the option if not recognized
10712 # So say no if there are warnings
10713 if test -s conftest.err; then
10714 # Append any errors to the config.log.
10715 cat conftest.err 1>&5
10716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10718 if diff conftest.exp conftest.er2 >/dev/null; then
10719 lt_cv_prog_compiler__b=yes
10720 fi
10721 else
10722 lt_cv_prog_compiler__b=yes
10723 fi
10724 fi
10725 $RM -r conftest*
10726 LDFLAGS=$save_LDFLAGS
10727 ;;
10728 esac
10729 fi
10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10731 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10732
10733 if test yes = "$lt_cv_prog_compiler__b"; then
10734 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10735 else
10736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10737 fi
10738
10739 ;;
10740 esac
10741 fi
10742 if test no = "$with_gnu_ld"; then
10743 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10744 hardcode_libdir_separator=:
10745
10746 case $host_cpu in
10747 hppa*64*|ia64*)
10748 hardcode_direct=no
10749 hardcode_shlibpath_var=no
10750 ;;
10751 *)
10752 hardcode_direct=yes
10753 hardcode_direct_absolute=yes
10754 export_dynamic_flag_spec='$wl-E'
10755
10756 # hardcode_minus_L: Not really in the search PATH,
10757 # but as the default location of the library.
10758 hardcode_minus_L=yes
10759 ;;
10760 esac
10761 fi
10762 ;;
10763
10764 irix5* | irix6* | nonstopux*)
10765 if test yes = "$GCC"; then
10766 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'
10767 # Try to use the -exported_symbol ld option, if it does not
10768 # work, assume that -exports_file does not work either and
10769 # implicitly export all symbols.
10770 # This should be the same for all languages, so no per-tag cache variable.
10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10772 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10773 if test ${lt_cv_irix_exported_symbol+y}
10774 then :
10775 printf %s "(cached) " >&6
10776 else case e in #(
10777 e) save_LDFLAGS=$LDFLAGS
10778 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 int foo (void) { return 0; }
10782 _ACEOF
10783 if ac_fn_c_try_link "$LINENO"
10784 then :
10785 lt_cv_irix_exported_symbol=yes
10786 else case e in #(
10787 e) lt_cv_irix_exported_symbol=no ;;
10788 esac
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LDFLAGS=$save_LDFLAGS ;;
10793 esac
10794 fi
10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10796 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10797 if test yes = "$lt_cv_irix_exported_symbol"; then
10798 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'
10799 fi
10800 else
10801 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'
10802 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'
10803 fi
10804 archive_cmds_need_lc='no'
10805 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10806 hardcode_libdir_separator=:
10807 inherit_rpath=yes
10808 link_all_deplibs=yes
10809 ;;
10810
10811 linux*)
10812 case $cc_basename in
10813 tcc*)
10814 # Fabrice Bellard et al's Tiny C Compiler
10815 ld_shlibs=yes
10816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10817 ;;
10818 esac
10819 ;;
10820
10821 netbsd*)
10822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10824 else
10825 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10826 fi
10827 hardcode_libdir_flag_spec='-R$libdir'
10828 hardcode_direct=yes
10829 hardcode_shlibpath_var=no
10830 ;;
10831
10832 newsos6)
10833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10834 hardcode_direct=yes
10835 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10836 hardcode_libdir_separator=:
10837 hardcode_shlibpath_var=no
10838 ;;
10839
10840 *nto* | *qnx*)
10841 ;;
10842
10843 openbsd* | bitrig*)
10844 if test -f /usr/libexec/ld.so; then
10845 hardcode_direct=yes
10846 hardcode_shlibpath_var=no
10847 hardcode_direct_absolute=yes
10848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10849 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10850 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10851 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10852 export_dynamic_flag_spec='$wl-E'
10853 else
10854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10855 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10856 fi
10857 else
10858 ld_shlibs=no
10859 fi
10860 ;;
10861
10862 os2*)
10863 hardcode_libdir_flag_spec='-L$libdir'
10864 hardcode_minus_L=yes
10865 allow_undefined_flag=unsupported
10866 shrext_cmds=.dll
10867 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10868 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10869 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10870 $ECHO EXPORTS >> $output_objdir/$libname.def~
10871 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10872 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10873 emximp -o $lib $output_objdir/$libname.def'
10874 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10875 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10876 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10877 $ECHO EXPORTS >> $output_objdir/$libname.def~
10878 prefix_cmds="$SED"~
10879 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10880 prefix_cmds="$prefix_cmds -e 1d";
10881 fi~
10882 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10883 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10884 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10885 emximp -o $lib $output_objdir/$libname.def'
10886 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10887 enable_shared_with_static_runtimes=yes
10888 file_list_spec='@'
10889 ;;
10890
10891 osf3*)
10892 if test yes = "$GCC"; then
10893 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10894 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'
10895 else
10896 allow_undefined_flag=' -expect_unresolved \*'
10897 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'
10898 fi
10899 archive_cmds_need_lc='no'
10900 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10901 hardcode_libdir_separator=:
10902 ;;
10903
10904 osf4* | osf5*) # as osf3* with the addition of -msym flag
10905 if test yes = "$GCC"; then
10906 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10907 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'
10908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10909 else
10910 allow_undefined_flag=' -expect_unresolved \*'
10911 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'
10912 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~
10913 $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'
10914
10915 # Both c and cxx compiler support -rpath directly
10916 hardcode_libdir_flag_spec='-rpath $libdir'
10917 fi
10918 archive_cmds_need_lc='no'
10919 hardcode_libdir_separator=:
10920 ;;
10921
10922 solaris*)
10923 no_undefined_flag=' -z defs'
10924 if test yes = "$GCC"; then
10925 wlarc='$wl'
10926 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10928 $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'
10929 else
10930 case `$CC -V 2>&1` in
10931 *"Compilers 5.0"*)
10932 wlarc=''
10933 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10935 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10936 ;;
10937 *)
10938 wlarc='$wl'
10939 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10941 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10942 ;;
10943 esac
10944 fi
10945 hardcode_libdir_flag_spec='-R$libdir'
10946 hardcode_shlibpath_var=no
10947 case $host_os in
10948 solaris2.[0-5] | solaris2.[0-5].*) ;;
10949 *)
10950 # The compiler driver will combine and reorder linker options,
10951 # but understands '-z linker_flag'. GCC discards it without '$wl',
10952 # but is careful enough not to reorder.
10953 # Supported since Solaris 2.6 (maybe 2.5.1?)
10954 if test yes = "$GCC"; then
10955 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10956 else
10957 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10958 fi
10959 ;;
10960 esac
10961 link_all_deplibs=yes
10962 ;;
10963
10964 sunos4*)
10965 if test sequent = "$host_vendor"; then
10966 # Use $CC to link under sequent, because it throws in some extra .o
10967 # files that make .init and .fini sections work.
10968 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10969 else
10970 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10971 fi
10972 hardcode_libdir_flag_spec='-L$libdir'
10973 hardcode_direct=yes
10974 hardcode_minus_L=yes
10975 hardcode_shlibpath_var=no
10976 ;;
10977
10978 sysv4)
10979 case $host_vendor in
10980 sni)
10981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982 hardcode_direct=yes # is this really true???
10983 ;;
10984 siemens)
10985 ## LD is ld it makes a PLAMLIB
10986 ## CC just makes a GrossModule.
10987 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10988 reload_cmds='$CC -r -o $output$reload_objs'
10989 hardcode_direct=no
10990 ;;
10991 motorola)
10992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10994 ;;
10995 esac
10996 runpath_var='LD_RUN_PATH'
10997 hardcode_shlibpath_var=no
10998 ;;
10999
11000 sysv4.3*)
11001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002 hardcode_shlibpath_var=no
11003 export_dynamic_flag_spec='-Bexport'
11004 ;;
11005
11006 sysv4*MP*)
11007 if test -d /usr/nec; then
11008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11009 hardcode_shlibpath_var=no
11010 runpath_var=LD_RUN_PATH
11011 hardcode_runpath_var=yes
11012 ld_shlibs=yes
11013 fi
11014 ;;
11015
11016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11017 no_undefined_flag='$wl-z,text'
11018 archive_cmds_need_lc=no
11019 hardcode_shlibpath_var=no
11020 runpath_var='LD_RUN_PATH'
11021
11022 if test yes = "$GCC"; then
11023 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 else
11026 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 fi
11029 ;;
11030
11031 sysv5* | sco3.2v5* | sco5v6*)
11032 # Note: We CANNOT use -z defs as we might desire, because we do not
11033 # link with -lc, and that would cause any symbols used from libc to
11034 # always be unresolved, which means just about no library would
11035 # ever link correctly. If we're not using GNU ld we use -z text
11036 # though, which does catch some bad symbols but isn't as heavy-handed
11037 # as -z defs.
11038 no_undefined_flag='$wl-z,text'
11039 allow_undefined_flag='$wl-z,nodefs'
11040 archive_cmds_need_lc=no
11041 hardcode_shlibpath_var=no
11042 hardcode_libdir_flag_spec='$wl-R,$libdir'
11043 hardcode_libdir_separator=':'
11044 link_all_deplibs=yes
11045 export_dynamic_flag_spec='$wl-Bexport'
11046 runpath_var='LD_RUN_PATH'
11047
11048 if test yes = "$GCC"; then
11049 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11050 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11051 else
11052 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11053 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054 fi
11055 ;;
11056
11057 uts4*)
11058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11059 hardcode_libdir_flag_spec='-L$libdir'
11060 hardcode_shlibpath_var=no
11061 ;;
11062
11063 *)
11064 ld_shlibs=no
11065 ;;
11066 esac
11067
11068 if test sni = "$host_vendor"; then
11069 case $host in
11070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11071 export_dynamic_flag_spec='$wl-Blargedynsym'
11072 ;;
11073 esac
11074 fi
11075 fi
11076
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11078 printf "%s\n" "$ld_shlibs" >&6; }
11079 test no = "$ld_shlibs" && can_build_shared=no
11080
11081 with_gnu_ld=$with_gnu_ld
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097 #
11098 # Do we need to explicitly link libc?
11099 #
11100 case "x$archive_cmds_need_lc" in
11101 x|xyes)
11102 # Assume -lc should be added
11103 archive_cmds_need_lc=yes
11104
11105 if test yes,yes = "$GCC,$enable_shared"; then
11106 case $archive_cmds in
11107 *'~'*)
11108 # FIXME: we may have to deal with multi-command sequences.
11109 ;;
11110 '$CC '*)
11111 # Test whether the compiler implicitly links with -lc since on some
11112 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11113 # to ld, don't add -lc before -lgcc.
11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11115 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11116 if test ${lt_cv_archive_cmds_need_lc+y}
11117 then :
11118 printf %s "(cached) " >&6
11119 else case e in #(
11120 e) $RM conftest*
11121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11122
11123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11124 (eval $ac_compile) 2>&5
11125 ac_status=$?
11126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11127 test $ac_status = 0; } 2>conftest.err; then
11128 soname=conftest
11129 lib=conftest
11130 libobjs=conftest.$ac_objext
11131 deplibs=
11132 wl=$lt_prog_compiler_wl
11133 pic_flag=$lt_prog_compiler_pic
11134 compiler_flags=-v
11135 linker_flags=-v
11136 verstring=
11137 output_objdir=.
11138 libname=conftest
11139 lt_save_allow_undefined_flag=$allow_undefined_flag
11140 allow_undefined_flag=
11141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11142 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11143 ac_status=$?
11144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11145 test $ac_status = 0; }
11146 then
11147 lt_cv_archive_cmds_need_lc=no
11148 else
11149 lt_cv_archive_cmds_need_lc=yes
11150 fi
11151 allow_undefined_flag=$lt_save_allow_undefined_flag
11152 else
11153 cat conftest.err 1>&5
11154 fi
11155 $RM conftest*
11156 ;;
11157 esac
11158 fi
11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11160 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11161 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11162 ;;
11163 esac
11164 fi
11165 ;;
11166 esac
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11320 printf %s "checking dynamic linker characteristics... " >&6; }
11321
11322 if test yes = "$GCC"; then
11323 case $host_os in
11324 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11325 *) lt_awk_arg='/^libraries:/' ;;
11326 esac
11327 case $host_os in
11328 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11329 *) lt_sed_strip_eq='s|=/|/|g' ;;
11330 esac
11331 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11332 case $lt_search_path_spec in
11333 *\;*)
11334 # if the path contains ";" then we assume it to be the separator
11335 # otherwise default to the standard path separator (i.e. ":") - it is
11336 # assumed that no part of a normal pathname contains ";" but that should
11337 # okay in the real world where ";" in dirpaths is itself problematic.
11338 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11339 ;;
11340 *)
11341 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11342 ;;
11343 esac
11344 # Ok, now we have the path, separated by spaces, we can step through it
11345 # and add multilib dir if necessary...
11346 lt_tmp_lt_search_path_spec=
11347 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11348 # ...but if some path component already ends with the multilib dir we assume
11349 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11350 case "$lt_multi_os_dir; $lt_search_path_spec " in
11351 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11352 lt_multi_os_dir=
11353 ;;
11354 esac
11355 for lt_sys_path in $lt_search_path_spec; do
11356 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11358 elif test -n "$lt_multi_os_dir"; then
11359 test -d "$lt_sys_path" && \
11360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11361 fi
11362 done
11363 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11364 BEGIN {RS = " "; FS = "/|\n";} {
11365 lt_foo = "";
11366 lt_count = 0;
11367 for (lt_i = NF; lt_i > 0; lt_i--) {
11368 if ($lt_i != "" && $lt_i != ".") {
11369 if ($lt_i == "..") {
11370 lt_count++;
11371 } else {
11372 if (lt_count == 0) {
11373 lt_foo = "/" $lt_i lt_foo;
11374 } else {
11375 lt_count--;
11376 }
11377 }
11378 }
11379 }
11380 if (lt_foo != "") { lt_freq[lt_foo]++; }
11381 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11382 }'`
11383 # AWK program above erroneously prepends '/' to C:/dos/paths
11384 # for these hosts.
11385 case $host_os in
11386 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11387 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11388 esac
11389 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11390 else
11391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11392 fi
11393 library_names_spec=
11394 libname_spec='lib$name'
11395 soname_spec=
11396 shrext_cmds=.so
11397 postinstall_cmds=
11398 postuninstall_cmds=
11399 finish_cmds=
11400 finish_eval=
11401 shlibpath_var=
11402 shlibpath_overrides_runpath=unknown
11403 version_type=none
11404 dynamic_linker="$host_os ld.so"
11405 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11406 need_lib_prefix=unknown
11407 hardcode_into_libs=no
11408
11409 # when you set need_version to no, make sure it does not cause -set_version
11410 # flags to be left without arguments
11411 need_version=unknown
11412
11413
11414
11415 case $host_os in
11416 aix3*)
11417 version_type=linux # correct to gnu/linux during the next big refactor
11418 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11419 shlibpath_var=LIBPATH
11420
11421 # AIX 3 has no versioning support, so we append a major version to the name.
11422 soname_spec='$libname$release$shared_ext$major'
11423 ;;
11424
11425 aix[4-9]*)
11426 version_type=linux # correct to gnu/linux during the next big refactor
11427 need_lib_prefix=no
11428 need_version=no
11429 hardcode_into_libs=yes
11430 if test ia64 = "$host_cpu"; then
11431 # AIX 5 supports IA64
11432 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11433 shlibpath_var=LD_LIBRARY_PATH
11434 else
11435 # With GCC up to 2.95.x, collect2 would create an import file
11436 # for dependence libraries. The import file would start with
11437 # the line '#! .'. This would cause the generated library to
11438 # depend on '.', always an invalid library. This was fixed in
11439 # development snapshots of GCC prior to 3.0.
11440 case $host_os in
11441 aix4 | aix4.[01] | aix4.[01].*)
11442 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11443 echo ' yes '
11444 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11445 :
11446 else
11447 can_build_shared=no
11448 fi
11449 ;;
11450 esac
11451 # Using Import Files as archive members, it is possible to support
11452 # filename-based versioning of shared library archives on AIX. While
11453 # this would work for both with and without runtime linking, it will
11454 # prevent static linking of such archives. So we do filename-based
11455 # shared library versioning with .so extension only, which is used
11456 # when both runtime linking and shared linking is enabled.
11457 # Unfortunately, runtime linking may impact performance, so we do
11458 # not want this to be the default eventually. Also, we use the
11459 # versioned .so libs for executables only if there is the -brtl
11460 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11461 # To allow for filename-based versioning support, we need to create
11462 # libNAME.so.V as an archive file, containing:
11463 # *) an Import File, referring to the versioned filename of the
11464 # archive as well as the shared archive member, telling the
11465 # bitwidth (32 or 64) of that shared object, and providing the
11466 # list of exported symbols of that shared object, eventually
11467 # decorated with the 'weak' keyword
11468 # *) the shared object with the F_LOADONLY flag set, to really avoid
11469 # it being seen by the linker.
11470 # At run time we better use the real file rather than another symlink,
11471 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11472
11473 case $with_aix_soname,$aix_use_runtimelinking in
11474 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11475 # soname into executable. Probably we can add versioning support to
11476 # collect2, so additional links can be useful in future.
11477 aix,yes) # traditional libtool
11478 dynamic_linker='AIX unversionable lib.so'
11479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11480 # instead of lib<name>.a to let people know that these are not
11481 # typical AIX shared libraries.
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 ;;
11484 aix,no) # traditional AIX only
11485 dynamic_linker='AIX lib.a(lib.so.V)'
11486 # We preserve .a as extension for shared libraries through AIX4.2
11487 # and later when we are not doing run time linking.
11488 library_names_spec='$libname$release.a $libname.a'
11489 soname_spec='$libname$release$shared_ext$major'
11490 ;;
11491 svr4,*) # full svr4 only
11492 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11493 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11494 # We do not specify a path in Import Files, so LIBPATH fires.
11495 shlibpath_overrides_runpath=yes
11496 ;;
11497 *,yes) # both, prefer svr4
11498 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11499 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11500 # unpreferred sharedlib libNAME.a needs extra handling
11501 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"'
11502 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"'
11503 # We do not specify a path in Import Files, so LIBPATH fires.
11504 shlibpath_overrides_runpath=yes
11505 ;;
11506 *,no) # both, prefer aix
11507 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11508 library_names_spec='$libname$release.a $libname.a'
11509 soname_spec='$libname$release$shared_ext$major'
11510 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11511 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)'
11512 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"'
11513 ;;
11514 esac
11515 shlibpath_var=LIBPATH
11516 fi
11517 ;;
11518
11519 amigaos*)
11520 case $host_cpu in
11521 powerpc)
11522 # Since July 2007 AmigaOS4 officially supports .so libraries.
11523 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525 ;;
11526 m68k)
11527 library_names_spec='$libname.ixlibrary $libname.a'
11528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11529 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'
11530 ;;
11531 esac
11532 ;;
11533
11534 beos*)
11535 library_names_spec='$libname$shared_ext'
11536 dynamic_linker="$host_os ld.so"
11537 shlibpath_var=LIBRARY_PATH
11538 ;;
11539
11540 bsdi[45]*)
11541 version_type=linux # correct to gnu/linux during the next big refactor
11542 need_version=no
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544 soname_spec='$libname$release$shared_ext$major'
11545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11549 # the default ld.so.conf also contains /usr/contrib/lib and
11550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11551 # libtool to hard-code these into programs
11552 ;;
11553
11554 cygwin* | mingw* | pw32* | cegcc*)
11555 version_type=windows
11556 shrext_cmds=.dll
11557 need_version=no
11558 need_lib_prefix=no
11559
11560 case $GCC,$cc_basename in
11561 yes,*)
11562 # gcc
11563 library_names_spec='$libname.dll.a'
11564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11565 postinstall_cmds='base_file=`basename \$file`~
11566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11567 dldir=$destdir/`dirname \$dlpath`~
11568 test -d \$dldir || mkdir -p \$dldir~
11569 $install_prog $dir/$dlname \$dldir/$dlname~
11570 chmod a+x \$dldir/$dlname~
11571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11573 fi'
11574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11575 dlpath=$dir/\$dldll~
11576 $RM \$dlpath'
11577 shlibpath_overrides_runpath=yes
11578
11579 case $host_os in
11580 cygwin*)
11581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11582 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11583
11584 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11585 ;;
11586 mingw* | cegcc*)
11587 # MinGW DLLs use traditional 'lib' prefix
11588 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11589 ;;
11590 pw32*)
11591 # pw32 DLLs use 'pw' prefix rather than 'lib'
11592 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11593 ;;
11594 esac
11595 dynamic_linker='Win32 ld.exe'
11596 ;;
11597
11598 *,cl* | *,icl*)
11599 # Native MSVC or ICC
11600 libname_spec='$name'
11601 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11602 library_names_spec='$libname.dll.lib'
11603
11604 case $build_os in
11605 mingw*)
11606 sys_lib_search_path_spec=
11607 lt_save_ifs=$IFS
11608 IFS=';'
11609 for lt_path in $LIB
11610 do
11611 IFS=$lt_save_ifs
11612 # Let DOS variable expansion print the short 8.3 style file name.
11613 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11614 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11615 done
11616 IFS=$lt_save_ifs
11617 # Convert to MSYS style.
11618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11619 ;;
11620 cygwin*)
11621 # Convert to unix form, then to dos form, then back to unix form
11622 # but this time dos style (no spaces!) so that the unix form looks
11623 # like /cygdrive/c/PROGRA~1:/cygdr...
11624 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11625 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11626 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11627 ;;
11628 *)
11629 sys_lib_search_path_spec=$LIB
11630 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11631 # It is most probably a Windows format PATH.
11632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11633 else
11634 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11635 fi
11636 # FIXME: find the short name or the path components, as spaces are
11637 # common. (e.g. "Program Files" -> "PROGRA~1")
11638 ;;
11639 esac
11640
11641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11642 postinstall_cmds='base_file=`basename \$file`~
11643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11644 dldir=$destdir/`dirname \$dlpath`~
11645 test -d \$dldir || mkdir -p \$dldir~
11646 $install_prog $dir/$dlname \$dldir/$dlname'
11647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11648 dlpath=$dir/\$dldll~
11649 $RM \$dlpath'
11650 shlibpath_overrides_runpath=yes
11651 dynamic_linker='Win32 link.exe'
11652 ;;
11653
11654 *)
11655 # Assume MSVC and ICC wrapper
11656 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11657 dynamic_linker='Win32 ld.exe'
11658 ;;
11659 esac
11660 # FIXME: first we should search . and the directory the executable is in
11661 shlibpath_var=PATH
11662 ;;
11663
11664 darwin* | rhapsody*)
11665 dynamic_linker="$host_os dyld"
11666 version_type=darwin
11667 need_lib_prefix=no
11668 need_version=no
11669 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11670 soname_spec='$libname$release$major$shared_ext'
11671 shlibpath_overrides_runpath=yes
11672 shlibpath_var=DYLD_LIBRARY_PATH
11673 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11674
11675 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11677 ;;
11678
11679 dgux*)
11680 version_type=linux # correct to gnu/linux during the next big refactor
11681 need_lib_prefix=no
11682 need_version=no
11683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11684 soname_spec='$libname$release$shared_ext$major'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 ;;
11687
11688 freebsd* | dragonfly* | midnightbsd*)
11689 # DragonFly does not have aout. When/if they implement a new
11690 # versioning mechanism, adjust this.
11691 if test -x /usr/bin/objformat; then
11692 objformat=`/usr/bin/objformat`
11693 else
11694 case $host_os in
11695 freebsd[23].*) objformat=aout ;;
11696 *) objformat=elf ;;
11697 esac
11698 fi
11699 version_type=freebsd-$objformat
11700 case $version_type in
11701 freebsd-elf*)
11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703 soname_spec='$libname$release$shared_ext$major'
11704 need_version=no
11705 need_lib_prefix=no
11706 ;;
11707 freebsd-*)
11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11709 need_version=yes
11710 ;;
11711 esac
11712 shlibpath_var=LD_LIBRARY_PATH
11713 case $host_os in
11714 freebsd2.*)
11715 shlibpath_overrides_runpath=yes
11716 ;;
11717 freebsd3.[01]* | freebsdelf3.[01]*)
11718 shlibpath_overrides_runpath=yes
11719 hardcode_into_libs=yes
11720 ;;
11721 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11722 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11723 shlibpath_overrides_runpath=no
11724 hardcode_into_libs=yes
11725 ;;
11726 *) # from 4.6 on, and DragonFly
11727 shlibpath_overrides_runpath=yes
11728 hardcode_into_libs=yes
11729 ;;
11730 esac
11731 ;;
11732
11733 haiku*)
11734 version_type=linux # correct to gnu/linux during the next big refactor
11735 need_lib_prefix=no
11736 need_version=no
11737 dynamic_linker="$host_os runtime_loader"
11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11739 soname_spec='$libname$release$shared_ext$major'
11740 shlibpath_var=LIBRARY_PATH
11741 shlibpath_overrides_runpath=no
11742 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11743 hardcode_into_libs=yes
11744 ;;
11745
11746 hpux9* | hpux10* | hpux11*)
11747 # Give a soname corresponding to the major version so that dld.sl refuses to
11748 # link against other versions.
11749 version_type=sunos
11750 need_lib_prefix=no
11751 need_version=no
11752 case $host_cpu in
11753 ia64*)
11754 shrext_cmds='.so'
11755 hardcode_into_libs=yes
11756 dynamic_linker="$host_os dld.so"
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760 soname_spec='$libname$release$shared_ext$major'
11761 if test 32 = "$HPUX_IA64_MODE"; then
11762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11763 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11764 else
11765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11766 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11767 fi
11768 ;;
11769 hppa*64*)
11770 shrext_cmds='.sl'
11771 hardcode_into_libs=yes
11772 dynamic_linker="$host_os dld.sl"
11773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11776 soname_spec='$libname$release$shared_ext$major'
11777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11779 ;;
11780 *)
11781 shrext_cmds='.sl'
11782 dynamic_linker="$host_os dld.sl"
11783 shlibpath_var=SHLIB_PATH
11784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11786 soname_spec='$libname$release$shared_ext$major'
11787 ;;
11788 esac
11789 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11790 postinstall_cmds='chmod 555 $lib'
11791 # or fails outright, so override atomically:
11792 install_override_mode=555
11793 ;;
11794
11795 interix[3-9]*)
11796 version_type=linux # correct to gnu/linux during the next big refactor
11797 need_lib_prefix=no
11798 need_version=no
11799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800 soname_spec='$libname$release$shared_ext$major'
11801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=no
11804 hardcode_into_libs=yes
11805 ;;
11806
11807 irix5* | irix6* | nonstopux*)
11808 case $host_os in
11809 nonstopux*) version_type=nonstopux ;;
11810 *)
11811 if test yes = "$lt_cv_prog_gnu_ld"; then
11812 version_type=linux # correct to gnu/linux during the next big refactor
11813 else
11814 version_type=irix
11815 fi ;;
11816 esac
11817 need_lib_prefix=no
11818 need_version=no
11819 soname_spec='$libname$release$shared_ext$major'
11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11821 case $host_os in
11822 irix5* | nonstopux*)
11823 libsuff= shlibsuff=
11824 ;;
11825 *)
11826 case $LD in # libtool.m4 will add one of these switches to LD
11827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11828 libsuff= shlibsuff= libmagic=32-bit;;
11829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11830 libsuff=32 shlibsuff=N32 libmagic=N32;;
11831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11832 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11833 *) libsuff= shlibsuff= libmagic=never-match;;
11834 esac
11835 ;;
11836 esac
11837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11838 shlibpath_overrides_runpath=no
11839 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11840 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11841 hardcode_into_libs=yes
11842 ;;
11843
11844 # No shared lib support for Linux oldld, aout, or coff.
11845 linux*oldld* | linux*aout* | linux*coff*)
11846 dynamic_linker=no
11847 ;;
11848
11849 linux*android*)
11850 version_type=none # Android doesn't support versioned libraries.
11851 need_lib_prefix=no
11852 need_version=no
11853 library_names_spec='$libname$release$shared_ext'
11854 soname_spec='$libname$release$shared_ext'
11855 finish_cmds=
11856 shlibpath_var=LD_LIBRARY_PATH
11857 shlibpath_overrides_runpath=yes
11858
11859 # This implies no fast_install, which is unacceptable.
11860 # Some rework will be needed to allow for fast_install
11861 # before this can be enabled.
11862 hardcode_into_libs=yes
11863
11864 dynamic_linker='Android linker'
11865 # Don't embed -rpath directories since the linker doesn't support them.
11866 hardcode_libdir_flag_spec='-L$libdir'
11867 ;;
11868
11869 # This must be glibc/ELF.
11870 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11871 version_type=linux # correct to gnu/linux during the next big refactor
11872 need_lib_prefix=no
11873 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=no
11879
11880 # Some binutils ld are patched to set DT_RUNPATH
11881 if test ${lt_cv_shlibpath_overrides_runpath+y}
11882 then :
11883 printf %s "(cached) " >&6
11884 else case e in #(
11885 e) lt_cv_shlibpath_overrides_runpath=no
11886 save_LDFLAGS=$LDFLAGS
11887 save_libdir=$libdir
11888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11892
11893 int
11894 main (void)
11895 {
11896
11897 ;
11898 return 0;
11899 }
11900 _ACEOF
11901 if ac_fn_c_try_link "$LINENO"
11902 then :
11903 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11904 then :
11905 lt_cv_shlibpath_overrides_runpath=yes
11906 fi
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11909 conftest$ac_exeext conftest.$ac_ext
11910 LDFLAGS=$save_LDFLAGS
11911 libdir=$save_libdir
11912 ;;
11913 esac
11914 fi
11915
11916 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11917
11918 # This implies no fast_install, which is unacceptable.
11919 # Some rework will be needed to allow for fast_install
11920 # before this can be enabled.
11921 hardcode_into_libs=yes
11922
11923 # Ideally, we could use ldconfig to report *all* directores which are
11924 # searched for libraries, however this is still not possible. Aside from not
11925 # being certain /sbin/ldconfig is available, command
11926 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11927 # even though it is searched at run-time. Try to do the best guess by
11928 # appending ld.so.conf contents (and includes) to the search path.
11929 if test -f /etc/ld.so.conf; then
11930 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' ' '`
11931 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11932 fi
11933
11934 # We used to test for /lib/ld.so.1 and disable shared libraries on
11935 # powerpc, because MkLinux only supported shared libraries with the
11936 # GNU dynamic linker. Since this was broken with cross compilers,
11937 # most powerpc-linux boxes support dynamic linking these days and
11938 # people can always --disable-shared, the test was removed, and we
11939 # assume the GNU/Linux dynamic linker is in use.
11940 dynamic_linker='GNU/Linux ld.so'
11941 ;;
11942
11943 netbsd*)
11944 version_type=sunos
11945 need_lib_prefix=no
11946 need_version=no
11947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11950 dynamic_linker='NetBSD (a.out) ld.so'
11951 else
11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11953 soname_spec='$libname$release$shared_ext$major'
11954 dynamic_linker='NetBSD ld.elf_so'
11955 fi
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=yes
11958 hardcode_into_libs=yes
11959 ;;
11960
11961 newsos6)
11962 version_type=linux # correct to gnu/linux during the next big refactor
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 shlibpath_overrides_runpath=yes
11966 ;;
11967
11968 *nto* | *qnx*)
11969 version_type=qnx
11970 need_lib_prefix=no
11971 need_version=no
11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11973 soname_spec='$libname$release$shared_ext$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 shlibpath_overrides_runpath=no
11976 hardcode_into_libs=yes
11977 dynamic_linker='ldqnx.so'
11978 ;;
11979
11980 openbsd* | bitrig*)
11981 version_type=sunos
11982 sys_lib_dlsearch_path_spec=/usr/lib
11983 need_lib_prefix=no
11984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11985 need_version=no
11986 else
11987 need_version=yes
11988 fi
11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 shlibpath_overrides_runpath=yes
11993 ;;
11994
11995 os2*)
11996 libname_spec='$name'
11997 version_type=windows
11998 shrext_cmds=.dll
11999 need_version=no
12000 need_lib_prefix=no
12001 # OS/2 can only load a DLL with a base name of 8 characters or less.
12002 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12003 v=$($ECHO $release$versuffix | tr -d .-);
12004 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12005 $ECHO $n$v`$shared_ext'
12006 library_names_spec='${libname}_dll.$libext'
12007 dynamic_linker='OS/2 ld.exe'
12008 shlibpath_var=BEGINLIBPATH
12009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12011 postinstall_cmds='base_file=`basename \$file`~
12012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12013 dldir=$destdir/`dirname \$dlpath`~
12014 test -d \$dldir || mkdir -p \$dldir~
12015 $install_prog $dir/$dlname \$dldir/$dlname~
12016 chmod a+x \$dldir/$dlname~
12017 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12018 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12019 fi'
12020 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12021 dlpath=$dir/\$dldll~
12022 $RM \$dlpath'
12023 ;;
12024
12025 osf3* | osf4* | osf5*)
12026 version_type=osf
12027 need_lib_prefix=no
12028 need_version=no
12029 soname_spec='$libname$release$shared_ext$major'
12030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031 shlibpath_var=LD_LIBRARY_PATH
12032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12034 ;;
12035
12036 rdos*)
12037 dynamic_linker=no
12038 ;;
12039
12040 solaris*)
12041 version_type=linux # correct to gnu/linux during the next big refactor
12042 need_lib_prefix=no
12043 need_version=no
12044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12045 soname_spec='$libname$release$shared_ext$major'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 shlibpath_overrides_runpath=yes
12048 hardcode_into_libs=yes
12049 # ldd complains unless libraries are executable
12050 postinstall_cmds='chmod +x $lib'
12051 ;;
12052
12053 sunos4*)
12054 version_type=sunos
12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12057 shlibpath_var=LD_LIBRARY_PATH
12058 shlibpath_overrides_runpath=yes
12059 if test yes = "$with_gnu_ld"; then
12060 need_lib_prefix=no
12061 fi
12062 need_version=yes
12063 ;;
12064
12065 sysv4 | sysv4.3*)
12066 version_type=linux # correct to gnu/linux during the next big refactor
12067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12068 soname_spec='$libname$release$shared_ext$major'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 case $host_vendor in
12071 sni)
12072 shlibpath_overrides_runpath=no
12073 need_lib_prefix=no
12074 runpath_var=LD_RUN_PATH
12075 ;;
12076 siemens)
12077 need_lib_prefix=no
12078 ;;
12079 motorola)
12080 need_lib_prefix=no
12081 need_version=no
12082 shlibpath_overrides_runpath=no
12083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12084 ;;
12085 esac
12086 ;;
12087
12088 sysv4*MP*)
12089 if test -d /usr/nec; then
12090 version_type=linux # correct to gnu/linux during the next big refactor
12091 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12092 soname_spec='$libname$shared_ext.$major'
12093 shlibpath_var=LD_LIBRARY_PATH
12094 fi
12095 ;;
12096
12097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12098 version_type=sco
12099 need_lib_prefix=no
12100 need_version=no
12101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12102 soname_spec='$libname$release$shared_ext$major'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 shlibpath_overrides_runpath=yes
12105 hardcode_into_libs=yes
12106 if test yes = "$with_gnu_ld"; then
12107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12108 else
12109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12110 case $host_os in
12111 sco3.2v5*)
12112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12113 ;;
12114 esac
12115 fi
12116 sys_lib_dlsearch_path_spec='/usr/lib'
12117 ;;
12118
12119 tpf*)
12120 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12121 version_type=linux # correct to gnu/linux during the next big refactor
12122 need_lib_prefix=no
12123 need_version=no
12124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12125 shlibpath_var=LD_LIBRARY_PATH
12126 shlibpath_overrides_runpath=no
12127 hardcode_into_libs=yes
12128 ;;
12129
12130 uts4*)
12131 version_type=linux # correct to gnu/linux during the next big refactor
12132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12133 soname_spec='$libname$release$shared_ext$major'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 ;;
12136
12137 *)
12138 dynamic_linker=no
12139 ;;
12140 esac
12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12142 printf "%s\n" "$dynamic_linker" >&6; }
12143 test no = "$dynamic_linker" && can_build_shared=no
12144
12145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12146 if test yes = "$GCC"; then
12147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12148 fi
12149
12150 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12151 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12152 fi
12153
12154 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12155 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12156 fi
12157
12158 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12159 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12160
12161 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12162 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12163
12164 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12165 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12264 printf %s "checking how to hardcode library paths into programs... " >&6; }
12265 hardcode_action=
12266 if test -n "$hardcode_libdir_flag_spec" ||
12267 test -n "$runpath_var" ||
12268 test yes = "$hardcode_automatic"; then
12269
12270 # We can hardcode non-existent directories.
12271 if test no != "$hardcode_direct" &&
12272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12273 # have to relink, otherwise we might link with an installed library
12274 # when we should be linking with a yet-to-be-installed one
12275 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12276 test no != "$hardcode_minus_L"; then
12277 # Linking always hardcodes the temporary library directory.
12278 hardcode_action=relink
12279 else
12280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12281 hardcode_action=immediate
12282 fi
12283 else
12284 # We cannot hardcode anything, or else we can only hardcode existing
12285 # directories.
12286 hardcode_action=unsupported
12287 fi
12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12289 printf "%s\n" "$hardcode_action" >&6; }
12290
12291 if test relink = "$hardcode_action" ||
12292 test yes = "$inherit_rpath"; then
12293 # Fast installation is not supported
12294 enable_fast_install=no
12295 elif test yes = "$shlibpath_overrides_runpath" ||
12296 test no = "$enable_shared"; then
12297 # Fast installation is not necessary
12298 enable_fast_install=needless
12299 fi
12300
12301
12302
12303
12304
12305
12306 if test yes != "$enable_dlopen"; then
12307 enable_dlopen=unknown
12308 enable_dlopen_self=unknown
12309 enable_dlopen_self_static=unknown
12310 else
12311 lt_cv_dlopen=no
12312 lt_cv_dlopen_libs=
12313
12314 case $host_os in
12315 beos*)
12316 lt_cv_dlopen=load_add_on
12317 lt_cv_dlopen_libs=
12318 lt_cv_dlopen_self=yes
12319 ;;
12320
12321 mingw* | pw32* | cegcc*)
12322 lt_cv_dlopen=LoadLibrary
12323 lt_cv_dlopen_libs=
12324 ;;
12325
12326 cygwin*)
12327 lt_cv_dlopen=dlopen
12328 lt_cv_dlopen_libs=
12329 ;;
12330
12331 darwin*)
12332 # if libdl is installed we need to link against it
12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12334 printf %s "checking for dlopen in -ldl... " >&6; }
12335 if test ${ac_cv_lib_dl_dlopen+y}
12336 then :
12337 printf %s "(cached) " >&6
12338 else case e in #(
12339 e) ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-ldl $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply.
12347 The 'extern "C"' is for builds by C++ compilers;
12348 although this is not generally supported in C code supporting it here
12349 has little cost and some practical benefit (sr 110532). */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 char dlopen (void);
12354 int
12355 main (void)
12356 {
12357 return dlopen ();
12358 ;
12359 return 0;
12360 }
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"
12363 then :
12364 ac_cv_lib_dl_dlopen=yes
12365 else case e in #(
12366 e) ac_cv_lib_dl_dlopen=no ;;
12367 esac
12368 fi
12369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS ;;
12372 esac
12373 fi
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12375 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12376 if test "x$ac_cv_lib_dl_dlopen" = xyes
12377 then :
12378 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12379 else case e in #(
12380 e)
12381 lt_cv_dlopen=dyld
12382 lt_cv_dlopen_libs=
12383 lt_cv_dlopen_self=yes
12384 ;;
12385 esac
12386 fi
12387
12388 ;;
12389
12390 tpf*)
12391 # Don't try to run any link tests for TPF. We know it's impossible
12392 # because TPF is a cross-compiler, and we know how we open DSOs.
12393 lt_cv_dlopen=dlopen
12394 lt_cv_dlopen_libs=
12395 lt_cv_dlopen_self=no
12396 ;;
12397
12398 *)
12399 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12400 if test "x$ac_cv_func_shl_load" = xyes
12401 then :
12402 lt_cv_dlopen=shl_load
12403 else case e in #(
12404 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12405 printf %s "checking for shl_load in -ldld... " >&6; }
12406 if test ${ac_cv_lib_dld_shl_load+y}
12407 then :
12408 printf %s "(cached) " >&6
12409 else case e in #(
12410 e) ac_check_lib_save_LIBS=$LIBS
12411 LIBS="-ldld $LIBS"
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12414
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply.
12418 The 'extern "C"' is for builds by C++ compilers;
12419 although this is not generally supported in C code supporting it here
12420 has little cost and some practical benefit (sr 110532). */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char shl_load (void);
12425 int
12426 main (void)
12427 {
12428 return shl_load ();
12429 ;
12430 return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"
12434 then :
12435 ac_cv_lib_dld_shl_load=yes
12436 else case e in #(
12437 e) ac_cv_lib_dld_shl_load=no ;;
12438 esac
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LIBS=$ac_check_lib_save_LIBS ;;
12443 esac
12444 fi
12445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12446 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12447 if test "x$ac_cv_lib_dld_shl_load" = xyes
12448 then :
12449 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12450 else case e in #(
12451 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12452 if test "x$ac_cv_func_dlopen" = xyes
12453 then :
12454 lt_cv_dlopen=dlopen
12455 else case e in #(
12456 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12457 printf %s "checking for dlopen in -ldl... " >&6; }
12458 if test ${ac_cv_lib_dl_dlopen+y}
12459 then :
12460 printf %s "(cached) " >&6
12461 else case e in #(
12462 e) ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-ldl $LIBS"
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply.
12470 The 'extern "C"' is for builds by C++ compilers;
12471 although this is not generally supported in C code supporting it here
12472 has little cost and some practical benefit (sr 110532). */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 char dlopen (void);
12477 int
12478 main (void)
12479 {
12480 return dlopen ();
12481 ;
12482 return 0;
12483 }
12484 _ACEOF
12485 if ac_fn_c_try_link "$LINENO"
12486 then :
12487 ac_cv_lib_dl_dlopen=yes
12488 else case e in #(
12489 e) ac_cv_lib_dl_dlopen=no ;;
12490 esac
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS ;;
12495 esac
12496 fi
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12498 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12499 if test "x$ac_cv_lib_dl_dlopen" = xyes
12500 then :
12501 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12502 else case e in #(
12503 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12504 printf %s "checking for dlopen in -lsvld... " >&6; }
12505 if test ${ac_cv_lib_svld_dlopen+y}
12506 then :
12507 printf %s "(cached) " >&6
12508 else case e in #(
12509 e) ac_check_lib_save_LIBS=$LIBS
12510 LIBS="-lsvld $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 dlopen (void);
12524 int
12525 main (void)
12526 {
12527 return dlopen ();
12528 ;
12529 return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"
12533 then :
12534 ac_cv_lib_svld_dlopen=yes
12535 else case e in #(
12536 e) ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
12545 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12546 if test "x$ac_cv_lib_svld_dlopen" = xyes
12547 then :
12548 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12549 else case e in #(
12550 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12551 printf %s "checking for dld_link in -ldld... " >&6; }
12552 if test ${ac_cv_lib_dld_dld_link+y}
12553 then :
12554 printf %s "(cached) " >&6
12555 else case e in #(
12556 e) ac_check_lib_save_LIBS=$LIBS
12557 LIBS="-ldld $LIBS"
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560
12561 /* Override any GCC internal prototype to avoid an error.
12562 Use char because int might match the return type of a GCC
12563 builtin and then its argument prototype would still apply.
12564 The 'extern "C"' is for builds by C++ compilers;
12565 although this is not generally supported in C code supporting it here
12566 has little cost and some practical benefit (sr 110532). */
12567 #ifdef __cplusplus
12568 extern "C"
12569 #endif
12570 char dld_link (void);
12571 int
12572 main (void)
12573 {
12574 return dld_link ();
12575 ;
12576 return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_c_try_link "$LINENO"
12580 then :
12581 ac_cv_lib_dld_dld_link=yes
12582 else case e in #(
12583 e) ac_cv_lib_dld_dld_link=no ;;
12584 esac
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12587 conftest$ac_exeext conftest.$ac_ext
12588 LIBS=$ac_check_lib_save_LIBS ;;
12589 esac
12590 fi
12591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12592 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12593 if test "x$ac_cv_lib_dld_dld_link" = xyes
12594 then :
12595 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12596 fi
12597
12598 ;;
12599 esac
12600 fi
12601
12602 ;;
12603 esac
12604 fi
12605
12606 ;;
12607 esac
12608 fi
12609
12610 ;;
12611 esac
12612 fi
12613
12614 ;;
12615 esac
12616 fi
12617
12618 ;;
12619 esac
12620
12621 if test no = "$lt_cv_dlopen"; then
12622 enable_dlopen=no
12623 else
12624 enable_dlopen=yes
12625 fi
12626
12627 case $lt_cv_dlopen in
12628 dlopen)
12629 save_CPPFLAGS=$CPPFLAGS
12630 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12631
12632 save_LDFLAGS=$LDFLAGS
12633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12634
12635 save_LIBS=$LIBS
12636 LIBS="$lt_cv_dlopen_libs $LIBS"
12637
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12639 printf %s "checking whether a program can dlopen itself... " >&6; }
12640 if test ${lt_cv_dlopen_self+y}
12641 then :
12642 printf %s "(cached) " >&6
12643 else case e in #(
12644 e) if test yes = "$cross_compiling"; then :
12645 lt_cv_dlopen_self=cross
12646 else
12647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12648 lt_status=$lt_dlunknown
12649 cat > conftest.$ac_ext <<_LT_EOF
12650 #line $LINENO "configure"
12651 #include "confdefs.h"
12652
12653 #if HAVE_DLFCN_H
12654 #include <dlfcn.h>
12655 #endif
12656
12657 #include <stdio.h>
12658
12659 #ifdef RTLD_GLOBAL
12660 # define LT_DLGLOBAL RTLD_GLOBAL
12661 #else
12662 # ifdef DL_GLOBAL
12663 # define LT_DLGLOBAL DL_GLOBAL
12664 # else
12665 # define LT_DLGLOBAL 0
12666 # endif
12667 #endif
12668
12669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12670 find out it does not work in some platform. */
12671 #ifndef LT_DLLAZY_OR_NOW
12672 # ifdef RTLD_LAZY
12673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12674 # else
12675 # ifdef DL_LAZY
12676 # define LT_DLLAZY_OR_NOW DL_LAZY
12677 # else
12678 # ifdef RTLD_NOW
12679 # define LT_DLLAZY_OR_NOW RTLD_NOW
12680 # else
12681 # ifdef DL_NOW
12682 # define LT_DLLAZY_OR_NOW DL_NOW
12683 # else
12684 # define LT_DLLAZY_OR_NOW 0
12685 # endif
12686 # endif
12687 # endif
12688 # endif
12689 #endif
12690
12691 /* When -fvisibility=hidden is used, assume the code has been annotated
12692 correspondingly for the symbols needed. */
12693 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12694 int fnord () __attribute__((visibility("default")));
12695 #endif
12696
12697 int fnord () { return 42; }
12698 int main ()
12699 {
12700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12701 int status = $lt_dlunknown;
12702
12703 if (self)
12704 {
12705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12706 else
12707 {
12708 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12709 else puts (dlerror ());
12710 }
12711 /* dlclose (self); */
12712 }
12713 else
12714 puts (dlerror ());
12715
12716 return status;
12717 }
12718 _LT_EOF
12719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12720 (eval $ac_link) 2>&5
12721 ac_status=$?
12722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12723 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12724 (./conftest; exit; ) >&5 2>/dev/null
12725 lt_status=$?
12726 case x$lt_status in
12727 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12728 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12729 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12730 esac
12731 else :
12732 # compilation failed
12733 lt_cv_dlopen_self=no
12734 fi
12735 fi
12736 rm -fr conftest*
12737
12738 ;;
12739 esac
12740 fi
12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12742 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12743
12744 if test yes = "$lt_cv_dlopen_self"; then
12745 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12747 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12748 if test ${lt_cv_dlopen_self_static+y}
12749 then :
12750 printf %s "(cached) " >&6
12751 else case e in #(
12752 e) if test yes = "$cross_compiling"; then :
12753 lt_cv_dlopen_self_static=cross
12754 else
12755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12756 lt_status=$lt_dlunknown
12757 cat > conftest.$ac_ext <<_LT_EOF
12758 #line $LINENO "configure"
12759 #include "confdefs.h"
12760
12761 #if HAVE_DLFCN_H
12762 #include <dlfcn.h>
12763 #endif
12764
12765 #include <stdio.h>
12766
12767 #ifdef RTLD_GLOBAL
12768 # define LT_DLGLOBAL RTLD_GLOBAL
12769 #else
12770 # ifdef DL_GLOBAL
12771 # define LT_DLGLOBAL DL_GLOBAL
12772 # else
12773 # define LT_DLGLOBAL 0
12774 # endif
12775 #endif
12776
12777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12778 find out it does not work in some platform. */
12779 #ifndef LT_DLLAZY_OR_NOW
12780 # ifdef RTLD_LAZY
12781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12782 # else
12783 # ifdef DL_LAZY
12784 # define LT_DLLAZY_OR_NOW DL_LAZY
12785 # else
12786 # ifdef RTLD_NOW
12787 # define LT_DLLAZY_OR_NOW RTLD_NOW
12788 # else
12789 # ifdef DL_NOW
12790 # define LT_DLLAZY_OR_NOW DL_NOW
12791 # else
12792 # define LT_DLLAZY_OR_NOW 0
12793 # endif
12794 # endif
12795 # endif
12796 # endif
12797 #endif
12798
12799 /* When -fvisibility=hidden is used, assume the code has been annotated
12800 correspondingly for the symbols needed. */
12801 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12802 int fnord () __attribute__((visibility("default")));
12803 #endif
12804
12805 int fnord () { return 42; }
12806 int main ()
12807 {
12808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12809 int status = $lt_dlunknown;
12810
12811 if (self)
12812 {
12813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12814 else
12815 {
12816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12817 else puts (dlerror ());
12818 }
12819 /* dlclose (self); */
12820 }
12821 else
12822 puts (dlerror ());
12823
12824 return status;
12825 }
12826 _LT_EOF
12827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12828 (eval $ac_link) 2>&5
12829 ac_status=$?
12830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12832 (./conftest; exit; ) >&5 2>/dev/null
12833 lt_status=$?
12834 case x$lt_status in
12835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12838 esac
12839 else :
12840 # compilation failed
12841 lt_cv_dlopen_self_static=no
12842 fi
12843 fi
12844 rm -fr conftest*
12845
12846 ;;
12847 esac
12848 fi
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12850 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12851 fi
12852
12853 CPPFLAGS=$save_CPPFLAGS
12854 LDFLAGS=$save_LDFLAGS
12855 LIBS=$save_LIBS
12856 ;;
12857 esac
12858
12859 case $lt_cv_dlopen_self in
12860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12861 *) enable_dlopen_self=unknown ;;
12862 esac
12863
12864 case $lt_cv_dlopen_self_static in
12865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12866 *) enable_dlopen_self_static=unknown ;;
12867 esac
12868 fi
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886 striplib=
12887 old_striplib=
12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12889 printf %s "checking whether stripping libraries is possible... " >&6; }
12890 if test -z "$STRIP"; then
12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 printf "%s\n" "no" >&6; }
12893 else
12894 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12895 old_striplib="$STRIP --strip-debug"
12896 striplib="$STRIP --strip-unneeded"
12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12898 printf "%s\n" "yes" >&6; }
12899 else
12900 case $host_os in
12901 darwin*)
12902 # FIXME - insert some real tests, host_os isn't really good enough
12903 striplib="$STRIP -x"
12904 old_striplib="$STRIP -S"
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12906 printf "%s\n" "yes" >&6; }
12907 ;;
12908 freebsd*)
12909 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12910 old_striplib="$STRIP --strip-debug"
12911 striplib="$STRIP --strip-unneeded"
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12913 printf "%s\n" "yes" >&6; }
12914 else
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 printf "%s\n" "no" >&6; }
12917 fi
12918 ;;
12919 *)
12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 printf "%s\n" "no" >&6; }
12922 ;;
12923 esac
12924 fi
12925 fi
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938 # Report what library types will actually be built
12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12940 printf %s "checking if libtool supports shared libraries... " >&6; }
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12942 printf "%s\n" "$can_build_shared" >&6; }
12943
12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12945 printf %s "checking whether to build shared libraries... " >&6; }
12946 test no = "$can_build_shared" && enable_shared=no
12947
12948 # On AIX, shared libraries and static libraries use the same namespace, and
12949 # are all built from PIC.
12950 case $host_os in
12951 aix3*)
12952 test yes = "$enable_shared" && enable_static=no
12953 if test -n "$RANLIB"; then
12954 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12955 postinstall_cmds='$RANLIB $lib'
12956 fi
12957 ;;
12958
12959 aix[4-9]*)
12960 if test ia64 != "$host_cpu"; then
12961 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12962 yes,aix,yes) ;; # shared object as lib.so file only
12963 yes,svr4,*) ;; # shared object as lib.so archive member only
12964 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12965 esac
12966 fi
12967 ;;
12968 esac
12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12970 printf "%s\n" "$enable_shared" >&6; }
12971
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12973 printf %s "checking whether to build static libraries... " >&6; }
12974 # Make sure either enable_shared or enable_static is yes.
12975 test yes = "$enable_shared" || enable_static=yes
12976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12977 printf "%s\n" "$enable_static" >&6; }
12978
12979
12980
12981
12982 fi
12983 ac_ext=c
12984 ac_cpp='$CPP $CPPFLAGS'
12985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988
12989 CC=$lt_save_CC
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005 ac_config_commands="$ac_config_commands libtool"
13006
13007
13008
13009
13010 # Only expand once:
13011
13012
13013
13014 # Checks for libraries.
13015
13016
13017
13018
13019
13020
13021
13022 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13023 if test -n "$ac_tool_prefix"; then
13024 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13025 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027 printf %s "checking for $ac_word... " >&6; }
13028 if test ${ac_cv_path_PKG_CONFIG+y}
13029 then :
13030 printf %s "(cached) " >&6
13031 else case e in #(
13032 e) case $PKG_CONFIG in
13033 [\\/]* | ?:[\\/]*)
13034 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13035 ;;
13036 *)
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13039 do
13040 IFS=$as_save_IFS
13041 case $as_dir in #(((
13042 '') as_dir=./ ;;
13043 */) ;;
13044 *) as_dir=$as_dir/ ;;
13045 esac
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13048 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13050 break 2
13051 fi
13052 done
13053 done
13054 IFS=$as_save_IFS
13055
13056 ;;
13057 esac ;;
13058 esac
13059 fi
13060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13061 if test -n "$PKG_CONFIG"; then
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13063 printf "%s\n" "$PKG_CONFIG" >&6; }
13064 else
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 printf "%s\n" "no" >&6; }
13067 fi
13068
13069
13070 fi
13071 if test -z "$ac_cv_path_PKG_CONFIG"; then
13072 ac_pt_PKG_CONFIG=$PKG_CONFIG
13073 # Extract the first word of "pkg-config", so it can be a program name with args.
13074 set dummy pkg-config; ac_word=$2
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 printf %s "checking for $ac_word... " >&6; }
13077 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13078 then :
13079 printf %s "(cached) " >&6
13080 else case e in #(
13081 e) case $ac_pt_PKG_CONFIG in
13082 [\\/]* | ?:[\\/]*)
13083 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13084 ;;
13085 *)
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089 IFS=$as_save_IFS
13090 case $as_dir in #(((
13091 '') as_dir=./ ;;
13092 */) ;;
13093 *) as_dir=$as_dir/ ;;
13094 esac
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13097 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13099 break 2
13100 fi
13101 done
13102 done
13103 IFS=$as_save_IFS
13104
13105 ;;
13106 esac ;;
13107 esac
13108 fi
13109 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13110 if test -n "$ac_pt_PKG_CONFIG"; then
13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13112 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13113 else
13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 printf "%s\n" "no" >&6; }
13116 fi
13117
13118 if test "x$ac_pt_PKG_CONFIG" = x; then
13119 PKG_CONFIG=""
13120 else
13121 case $cross_compiling:$ac_tool_warned in
13122 yes:)
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13124 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13125 ac_tool_warned=yes ;;
13126 esac
13127 PKG_CONFIG=$ac_pt_PKG_CONFIG
13128 fi
13129 else
13130 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13131 fi
13132
13133 fi
13134 if test -n "$PKG_CONFIG"; then
13135 _pkg_min_version=0.9.0
13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13137 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13138 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13140 printf "%s\n" "yes" >&6; }
13141 else
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 printf "%s\n" "no" >&6; }
13144 PKG_CONFIG=""
13145 fi
13146 fi
13147
13148 pkg_failed=no
13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libplist-2.0 >= $LIBPLIST_VERSION" >&5
13150 printf %s "checking for libplist-2.0 >= $LIBPLIST_VERSION... " >&6; }
13151
13152 if test -n "$libplist_CFLAGS"; then
13153 pkg_cv_libplist_CFLAGS="$libplist_CFLAGS"
13154 elif test -n "$PKG_CONFIG"; then
13155 if test -n "$PKG_CONFIG" && \
13156 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist-2.0 >= \$LIBPLIST_VERSION\""; } >&5
13157 ($PKG_CONFIG --exists --print-errors "libplist-2.0 >= $LIBPLIST_VERSION") 2>&5
13158 ac_status=$?
13159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13160 test $ac_status = 0; }; then
13161 pkg_cv_libplist_CFLAGS=`$PKG_CONFIG --cflags "libplist-2.0 >= $LIBPLIST_VERSION" 2>/dev/null`
13162 test "x$?" != "x0" && pkg_failed=yes
13163 else
13164 pkg_failed=yes
13165 fi
13166 else
13167 pkg_failed=untried
13168 fi
13169 if test -n "$libplist_LIBS"; then
13170 pkg_cv_libplist_LIBS="$libplist_LIBS"
13171 elif test -n "$PKG_CONFIG"; then
13172 if test -n "$PKG_CONFIG" && \
13173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist-2.0 >= \$LIBPLIST_VERSION\""; } >&5
13174 ($PKG_CONFIG --exists --print-errors "libplist-2.0 >= $LIBPLIST_VERSION") 2>&5
13175 ac_status=$?
13176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13177 test $ac_status = 0; }; then
13178 pkg_cv_libplist_LIBS=`$PKG_CONFIG --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>/dev/null`
13179 test "x$?" != "x0" && pkg_failed=yes
13180 else
13181 pkg_failed=yes
13182 fi
13183 else
13184 pkg_failed=untried
13185 fi
13186
13187
13188
13189 if test $pkg_failed = yes; then
13190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 printf "%s\n" "no" >&6; }
13192
13193 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13194 _pkg_short_errors_supported=yes
13195 else
13196 _pkg_short_errors_supported=no
13197 fi
13198 if test $_pkg_short_errors_supported = yes; then
13199 libplist_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>&1`
13200 else
13201 libplist_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>&1`
13202 fi
13203 # Put the nasty error message in config.log where it belongs
13204 echo "$libplist_PKG_ERRORS" >&5
13205
13206 as_fn_error $? "Package requirements (libplist-2.0 >= $LIBPLIST_VERSION) were not met:
13207
13208 $libplist_PKG_ERRORS
13209
13210 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13211 installed software in a non-standard prefix.
13212
13213 Alternatively, you may set the environment variables libplist_CFLAGS
13214 and libplist_LIBS to avoid the need to call pkg-config.
13215 See the pkg-config man page for more details." "$LINENO" 5
13216 elif test $pkg_failed = untried; then
13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 printf "%s\n" "no" >&6; }
13219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13221 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13222 is in your PATH or set the PKG_CONFIG environment variable to the full
13223 path to pkg-config.
13224
13225 Alternatively, you may set the environment variables libplist_CFLAGS
13226 and libplist_LIBS to avoid the need to call pkg-config.
13227 See the pkg-config man page for more details.
13228
13229 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13230 See 'config.log' for more details" "$LINENO" 5; }
13231 else
13232 libplist_CFLAGS=$pkg_cv_libplist_CFLAGS
13233 libplist_LIBS=$pkg_cv_libplist_LIBS
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13235 printf "%s\n" "yes" >&6; }
13236
13237 fi
13238
13239 pkg_failed=no
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION" >&5
13241 printf %s "checking for libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION... " >&6; }
13242
13243 if test -n "$limd_glue_CFLAGS"; then
13244 pkg_cv_limd_glue_CFLAGS="$limd_glue_CFLAGS"
13245 elif test -n "$PKG_CONFIG"; then
13246 if test -n "$PKG_CONFIG" && \
13247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-glue-1.0 >= \$LIMD_GLUE_VERSION\""; } >&5
13248 ($PKG_CONFIG --exists --print-errors "libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION") 2>&5
13249 ac_status=$?
13250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251 test $ac_status = 0; }; then
13252 pkg_cv_limd_glue_CFLAGS=`$PKG_CONFIG --cflags "libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION" 2>/dev/null`
13253 test "x$?" != "x0" && pkg_failed=yes
13254 else
13255 pkg_failed=yes
13256 fi
13257 else
13258 pkg_failed=untried
13259 fi
13260 if test -n "$limd_glue_LIBS"; then
13261 pkg_cv_limd_glue_LIBS="$limd_glue_LIBS"
13262 elif test -n "$PKG_CONFIG"; then
13263 if test -n "$PKG_CONFIG" && \
13264 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-glue-1.0 >= \$LIMD_GLUE_VERSION\""; } >&5
13265 ($PKG_CONFIG --exists --print-errors "libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION") 2>&5
13266 ac_status=$?
13267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268 test $ac_status = 0; }; then
13269 pkg_cv_limd_glue_LIBS=`$PKG_CONFIG --libs "libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION" 2>/dev/null`
13270 test "x$?" != "x0" && pkg_failed=yes
13271 else
13272 pkg_failed=yes
13273 fi
13274 else
13275 pkg_failed=untried
13276 fi
13277
13278
13279
13280 if test $pkg_failed = yes; then
13281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 printf "%s\n" "no" >&6; }
13283
13284 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13285 _pkg_short_errors_supported=yes
13286 else
13287 _pkg_short_errors_supported=no
13288 fi
13289 if test $_pkg_short_errors_supported = yes; then
13290 limd_glue_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION" 2>&1`
13291 else
13292 limd_glue_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION" 2>&1`
13293 fi
13294 # Put the nasty error message in config.log where it belongs
13295 echo "$limd_glue_PKG_ERRORS" >&5
13296
13297 as_fn_error $? "Package requirements (libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION) were not met:
13298
13299 $limd_glue_PKG_ERRORS
13300
13301 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13302 installed software in a non-standard prefix.
13303
13304 Alternatively, you may set the environment variables limd_glue_CFLAGS
13305 and limd_glue_LIBS to avoid the need to call pkg-config.
13306 See the pkg-config man page for more details." "$LINENO" 5
13307 elif test $pkg_failed = untried; then
13308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 printf "%s\n" "no" >&6; }
13310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13311 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13312 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13313 is in your PATH or set the PKG_CONFIG environment variable to the full
13314 path to pkg-config.
13315
13316 Alternatively, you may set the environment variables limd_glue_CFLAGS
13317 and limd_glue_LIBS to avoid the need to call pkg-config.
13318 See the pkg-config man page for more details.
13319
13320 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13321 See 'config.log' for more details" "$LINENO" 5; }
13322 else
13323 limd_glue_CFLAGS=$pkg_cv_limd_glue_CFLAGS
13324 limd_glue_LIBS=$pkg_cv_limd_glue_LIBS
13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13326 printf "%s\n" "yes" >&6; }
13327
13328 fi
13329 for ac_header in sys/inotify.h
13330 do :
13331 ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
13332 if test "x$ac_cv_header_sys_inotify_h" = xyes
13333 then :
13334 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
13335 have_inotify=yes
13336 else case e in #(
13337 e) have_inotify=no ;;
13338 esac
13339 fi
13340
13341 done
13342
13343
13344 # Check whether --with-inotify was given.
13345 if test ${with_inotify+y}
13346 then :
13347 withval=$with_inotify; with_inotify=no
13348 else case e in #(
13349 e) with_inotify=yes ;;
13350 esac
13351 fi
13352
13353
13354 if test "x$have_inotify" = "xyes"; then
13355 if test "x$with_inotify" != "xyes"; then
13356 have_inotify=no
13357 echo "*** Note: inotify support has been disabled ***"
13358 else
13359
13360 printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
13361
13362 fi
13363 fi
13364
13365 # Checks for header files.
13366 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13367 if test "x$ac_cv_header_stdint_h" = xyes
13368 then :
13369 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13370
13371 fi
13372 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13373 if test "x$ac_cv_header_stdlib_h" = xyes
13374 then :
13375 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13376
13377 fi
13378 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
13379 if test "x$ac_cv_header_string_h" = xyes
13380 then :
13381 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
13382
13383 fi
13384
13385
13386 # Checks for typedefs, structures, and compiler characteristics.
13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13388 printf %s "checking for an ANSI C-conforming const... " >&6; }
13389 if test ${ac_cv_c_const+y}
13390 then :
13391 printf %s "(cached) " >&6
13392 else case e in #(
13393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395
13396 int
13397 main (void)
13398 {
13399
13400 #ifndef __cplusplus
13401 /* Ultrix mips cc rejects this sort of thing. */
13402 typedef int charset[2];
13403 const charset cs = { 0, 0 };
13404 /* SunOS 4.1.1 cc rejects this. */
13405 char const *const *pcpcc;
13406 char **ppc;
13407 /* NEC SVR4.0.2 mips cc rejects this. */
13408 struct point {int x, y;};
13409 static struct point const zero = {0,0};
13410 /* IBM XL C 1.02.0.0 rejects this.
13411 It does not let you subtract one const X* pointer from another in
13412 an arm of an if-expression whose if-part is not a constant
13413 expression */
13414 const char *g = "string";
13415 pcpcc = &g + (g ? g-g : 0);
13416 /* HPUX 7.0 cc rejects these. */
13417 ++pcpcc;
13418 ppc = (char**) pcpcc;
13419 pcpcc = (char const *const *) ppc;
13420 { /* SCO 3.2v4 cc rejects this sort of thing. */
13421 char tx;
13422 char *t = &tx;
13423 char const *s = 0 ? (char *) 0 : (char const *) 0;
13424
13425 *t++ = 0;
13426 if (s) return 0;
13427 }
13428 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13429 int x[] = {25, 17};
13430 const int *foo = &x[0];
13431 ++foo;
13432 }
13433 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13434 typedef const int *iptr;
13435 iptr p = 0;
13436 ++p;
13437 }
13438 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13439 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13440 struct s { int j; const int *ap[3]; } bx;
13441 struct s *b = &bx; b->j = 5;
13442 }
13443 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13444 const int foo = 10;
13445 if (!foo) return 0;
13446 }
13447 return !cs[0] && !zero.x;
13448 #endif
13449
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 if ac_fn_c_try_compile "$LINENO"
13455 then :
13456 ac_cv_c_const=yes
13457 else case e in #(
13458 e) ac_cv_c_const=no ;;
13459 esac
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13462 esac
13463 fi
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13465 printf "%s\n" "$ac_cv_c_const" >&6; }
13466 if test $ac_cv_c_const = no; then
13467
13468 printf "%s\n" "#define const /**/" >>confdefs.h
13469
13470 fi
13471
13472 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13473 if test "x$ac_cv_type_size_t" = xyes
13474 then :
13475
13476 else case e in #(
13477 e)
13478 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13479 ;;
13480 esac
13481 fi
13482
13483 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13484 if test "x$ac_cv_type_ssize_t" = xyes
13485 then :
13486
13487 else case e in #(
13488 e)
13489 printf "%s\n" "#define ssize_t int" >>confdefs.h
13490 ;;
13491 esac
13492 fi
13493
13494 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13495 case $ac_cv_c_uint16_t in #(
13496 no|yes) ;; #(
13497 *)
13498
13499
13500 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
13501 ;;
13502 esac
13503
13504 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13505 case $ac_cv_c_uint32_t in #(
13506 no|yes) ;; #(
13507 *)
13508
13509 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
13510
13511
13512 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
13513 ;;
13514 esac
13515
13516 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13517 case $ac_cv_c_uint8_t in #(
13518 no|yes) ;; #(
13519 *)
13520
13521 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
13522
13523
13524 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
13525 ;;
13526 esac
13527
13528
13529 # Checks for library functions.
13530 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13531 if test "x$ac_cv_func_strcasecmp" = xyes
13532 then :
13533 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13534
13535 fi
13536 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13537 if test "x$ac_cv_func_strdup" = xyes
13538 then :
13539 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13540
13541 fi
13542 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13543 if test "x$ac_cv_func_strerror" = xyes
13544 then :
13545 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
13546
13547 fi
13548 ac_fn_c_check_func "$LINENO" "stpncpy" "ac_cv_func_stpncpy"
13549 if test "x$ac_cv_func_stpncpy" = xyes
13550 then :
13551 printf "%s\n" "#define HAVE_STPNCPY 1" >>confdefs.h
13552
13553 fi
13554 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
13555 if test "x$ac_cv_func_malloc" = xyes
13556 then :
13557 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
13558
13559 fi
13560 ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
13561 if test "x$ac_cv_func_realloc" = xyes
13562 then :
13563 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
13564
13565 fi
13566 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
13567 if test "x$ac_cv_func_getifaddrs" = xyes
13568 then :
13569 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
13570
13571 fi
13572
13573
13574 # Check for operating system
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for platform-specific build settings" >&5
13576 printf %s "checking for platform-specific build settings... " >&6; }
13577 case ${host_os} in
13578 *mingw32*|*cygwin*)
13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${host_os}" >&5
13580 printf "%s\n" "${host_os}" >&6; }
13581 win32=true
13582
13583 printf "%s\n" "#define WINVER 0x0501" >>confdefs.h
13584
13585 ;;
13586 darwin*)
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${host_os}" >&5
13588 printf "%s\n" "${host_os}" >&6; }
13589 ;;
13590 *)
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${host_os}" >&5
13592 printf "%s\n" "${host_os}" >&6; }
13593 if test "x$have_inotify" = "xyes"; then
13594 ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
13595 if test "x$ac_cv_func_pselect" = xyes
13596 then :
13597 printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
13598
13599 fi
13600
13601 ac_fn_c_check_func "$LINENO" "pthread_cancel" "ac_cv_func_pthread_cancel"
13602 if test "x$ac_cv_func_pthread_cancel" = xyes
13603 then :
13604
13605 printf "%s\n" "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
13606
13607 else case e in #(
13608 e)
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cancel in -lpthread" >&5
13610 printf %s "checking for pthread_cancel in -lpthread... " >&6; }
13611 if test ${ac_cv_lib_pthread_pthread_cancel+y}
13612 then :
13613 printf %s "(cached) " >&6
13614 else case e in #(
13615 e) ac_check_lib_save_LIBS=$LIBS
13616 LIBS="-lpthread $LIBS"
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619
13620 /* Override any GCC internal prototype to avoid an error.
13621 Use char because int might match the return type of a GCC
13622 builtin and then its argument prototype would still apply.
13623 The 'extern "C"' is for builds by C++ compilers;
13624 although this is not generally supported in C code supporting it here
13625 has little cost and some practical benefit (sr 110532). */
13626 #ifdef __cplusplus
13627 extern "C"
13628 #endif
13629 char pthread_cancel (void);
13630 int
13631 main (void)
13632 {
13633 return pthread_cancel ();
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 if ac_fn_c_try_link "$LINENO"
13639 then :
13640 ac_cv_lib_pthread_pthread_cancel=yes
13641 else case e in #(
13642 e) ac_cv_lib_pthread_pthread_cancel=no ;;
13643 esac
13644 fi
13645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS ;;
13648 esac
13649 fi
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cancel" >&5
13651 printf "%s\n" "$ac_cv_lib_pthread_pthread_cancel" >&6; }
13652 if test "x$ac_cv_lib_pthread_pthread_cancel" = xyes
13653 then :
13654
13655 printf "%s\n" "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
13656
13657 fi
13658
13659 ;;
13660 esac
13661 fi
13662
13663 if test "$ac_cv_func_pselect" != "yes" || test "$ac_cv_func_pthread_cancel" != "yes" -a "$ac_cv_lib_pthread_pthread_cancel" != "yes"; then
13664 ac_ext=c
13665 ac_cpp='$CPP $CPPFLAGS'
13666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13670 printf %s "checking how to run the C preprocessor... " >&6; }
13671 # On Suns, sometimes $CPP names a directory.
13672 if test -n "$CPP" && test -d "$CPP"; then
13673 CPP=
13674 fi
13675 if test -z "$CPP"; then
13676 if test ${ac_cv_prog_CPP+y}
13677 then :
13678 printf %s "(cached) " >&6
13679 else case e in #(
13680 e) # Double quotes because $CC needs to be expanded
13681 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13682 do
13683 ac_preproc_ok=false
13684 for ac_c_preproc_warn_flag in '' yes
13685 do
13686 # Use a header file that comes with gcc, so configuring glibc
13687 # with a fresh cross-compiler works.
13688 # On the NeXT, cc -E runs the code through the compiler's parser,
13689 # not just through cpp. "Syntax error" is here to catch this case.
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 #include <limits.h>
13693 Syntax error
13694 _ACEOF
13695 if ac_fn_c_try_cpp "$LINENO"
13696 then :
13697
13698 else case e in #(
13699 e) # Broken: fails on valid input.
13700 continue ;;
13701 esac
13702 fi
13703 rm -f conftest.err conftest.i conftest.$ac_ext
13704
13705 # OK, works on sane cases. Now check whether nonexistent headers
13706 # can be detected and how.
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 #include <ac_nonexistent.h>
13710 _ACEOF
13711 if ac_fn_c_try_cpp "$LINENO"
13712 then :
13713 # Broken: success on invalid input.
13714 continue
13715 else case e in #(
13716 e) # Passes both tests.
13717 ac_preproc_ok=:
13718 break ;;
13719 esac
13720 fi
13721 rm -f conftest.err conftest.i conftest.$ac_ext
13722
13723 done
13724 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13725 rm -f conftest.i conftest.err conftest.$ac_ext
13726 if $ac_preproc_ok
13727 then :
13728 break
13729 fi
13730
13731 done
13732 ac_cv_prog_CPP=$CPP
13733 ;;
13734 esac
13735 fi
13736 CPP=$ac_cv_prog_CPP
13737 else
13738 ac_cv_prog_CPP=$CPP
13739 fi
13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13741 printf "%s\n" "$CPP" >&6; }
13742 ac_preproc_ok=false
13743 for ac_c_preproc_warn_flag in '' yes
13744 do
13745 # Use a header file that comes with gcc, so configuring glibc
13746 # with a fresh cross-compiler works.
13747 # On the NeXT, cc -E runs the code through the compiler's parser,
13748 # not just through cpp. "Syntax error" is here to catch this case.
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751 #include <limits.h>
13752 Syntax error
13753 _ACEOF
13754 if ac_fn_c_try_cpp "$LINENO"
13755 then :
13756
13757 else case e in #(
13758 e) # Broken: fails on valid input.
13759 continue ;;
13760 esac
13761 fi
13762 rm -f conftest.err conftest.i conftest.$ac_ext
13763
13764 # OK, works on sane cases. Now check whether nonexistent headers
13765 # can be detected and how.
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768 #include <ac_nonexistent.h>
13769 _ACEOF
13770 if ac_fn_c_try_cpp "$LINENO"
13771 then :
13772 # Broken: success on invalid input.
13773 continue
13774 else case e in #(
13775 e) # Passes both tests.
13776 ac_preproc_ok=:
13777 break ;;
13778 esac
13779 fi
13780 rm -f conftest.err conftest.i conftest.$ac_ext
13781
13782 done
13783 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13784 rm -f conftest.i conftest.err conftest.$ac_ext
13785 if $ac_preproc_ok
13786 then :
13787
13788 else case e in #(
13789 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13790 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13791 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13792 See 'config.log' for more details" "$LINENO" 5; } ;;
13793 esac
13794 fi
13795
13796 ac_ext=c
13797 ac_cpp='$CPP $CPPFLAGS'
13798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13801
13802
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
13804 printf %s "checking for egrep -e... " >&6; }
13805 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
13806 then :
13807 printf %s "(cached) " >&6
13808 else case e in #(
13809 e) if test -z "$EGREP_TRADITIONAL"; then
13810 ac_path_EGREP_TRADITIONAL_found=false
13811 # Loop through the user's path and test for each of PROGNAME-LIST
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13814 do
13815 IFS=$as_save_IFS
13816 case $as_dir in #(((
13817 '') as_dir=./ ;;
13818 */) ;;
13819 *) as_dir=$as_dir/ ;;
13820 esac
13821 for ac_prog in grep ggrep
13822 do
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
13825 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
13826 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
13827 # Check for GNU $ac_path_EGREP_TRADITIONAL
13828 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
13829 *GNU*)
13830 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
13831 #(
13832 *)
13833 ac_count=0
13834 printf %s 0123456789 >"conftest.in"
13835 while :
13836 do
13837 cat "conftest.in" "conftest.in" >"conftest.tmp"
13838 mv "conftest.tmp" "conftest.in"
13839 cp "conftest.in" "conftest.nl"
13840 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
13841 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13843 as_fn_arith $ac_count + 1 && ac_count=$as_val
13844 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
13845 # Best one so far, save it but keep looking for a better one
13846 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
13847 ac_path_EGREP_TRADITIONAL_max=$ac_count
13848 fi
13849 # 10*(2^10) chars as input seems more than enough
13850 test $ac_count -gt 10 && break
13851 done
13852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13853 esac
13854
13855 $ac_path_EGREP_TRADITIONAL_found && break 3
13856 done
13857 done
13858 done
13859 IFS=$as_save_IFS
13860 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
13861 :
13862 fi
13863 else
13864 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
13865 fi
13866
13867 if test "$ac_cv_path_EGREP_TRADITIONAL"
13868 then :
13869 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
13870 else case e in #(
13871 e) if test -z "$EGREP_TRADITIONAL"; then
13872 ac_path_EGREP_TRADITIONAL_found=false
13873 # Loop through the user's path and test for each of PROGNAME-LIST
13874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13876 do
13877 IFS=$as_save_IFS
13878 case $as_dir in #(((
13879 '') as_dir=./ ;;
13880 */) ;;
13881 *) as_dir=$as_dir/ ;;
13882 esac
13883 for ac_prog in egrep
13884 do
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
13887 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
13888 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
13889 # Check for GNU $ac_path_EGREP_TRADITIONAL
13890 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
13891 *GNU*)
13892 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
13893 #(
13894 *)
13895 ac_count=0
13896 printf %s 0123456789 >"conftest.in"
13897 while :
13898 do
13899 cat "conftest.in" "conftest.in" >"conftest.tmp"
13900 mv "conftest.tmp" "conftest.in"
13901 cp "conftest.in" "conftest.nl"
13902 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
13903 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13905 as_fn_arith $ac_count + 1 && ac_count=$as_val
13906 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
13907 # Best one so far, save it but keep looking for a better one
13908 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
13909 ac_path_EGREP_TRADITIONAL_max=$ac_count
13910 fi
13911 # 10*(2^10) chars as input seems more than enough
13912 test $ac_count -gt 10 && break
13913 done
13914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13915 esac
13916
13917 $ac_path_EGREP_TRADITIONAL_found && break 3
13918 done
13919 done
13920 done
13921 IFS=$as_save_IFS
13922 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
13923 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13924 fi
13925 else
13926 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
13927 fi
13928 ;;
13929 esac
13930 fi ;;
13931 esac
13932 fi
13933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
13934 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
13935 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
13936
13937
13938
13939
13940
13941 ac_ext=c
13942 ac_cpp='$CPP $CPPFLAGS'
13943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13946
13947 ax_pthread_ok=no
13948
13949 # We used to check for pthread.h first, but this fails if pthread.h
13950 # requires special compiler flags (e.g. on Tru64 or Sequent).
13951 # It gets checked for in the link test anyway.
13952
13953 # First of all, check if the user has set any of the PTHREAD_LIBS,
13954 # etcetera environment variables, and if threads linking works using
13955 # them:
13956 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13957 ax_pthread_save_CC="$CC"
13958 ax_pthread_save_CFLAGS="$CFLAGS"
13959 ax_pthread_save_LIBS="$LIBS"
13960 if test "x$PTHREAD_CC" != "x"
13961 then :
13962 CC="$PTHREAD_CC"
13963 fi
13964 if test "x$PTHREAD_CXX" != "x"
13965 then :
13966 CXX="$PTHREAD_CXX"
13967 fi
13968 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13969 LIBS="$PTHREAD_LIBS $LIBS"
13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13971 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h. */
13974
13975 /* Override any GCC internal prototype to avoid an error.
13976 Use char because int might match the return type of a GCC
13977 builtin and then its argument prototype would still apply.
13978 The 'extern "C"' is for builds by C++ compilers;
13979 although this is not generally supported in C code supporting it here
13980 has little cost and some practical benefit (sr 110532). */
13981 #ifdef __cplusplus
13982 extern "C"
13983 #endif
13984 char pthread_join (void);
13985 int
13986 main (void)
13987 {
13988 return pthread_join ();
13989 ;
13990 return 0;
13991 }
13992 _ACEOF
13993 if ac_fn_c_try_link "$LINENO"
13994 then :
13995 ax_pthread_ok=yes
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13998 conftest$ac_exeext conftest.$ac_ext
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14000 printf "%s\n" "$ax_pthread_ok" >&6; }
14001 if test "x$ax_pthread_ok" = "xno"; then
14002 PTHREAD_LIBS=""
14003 PTHREAD_CFLAGS=""
14004 fi
14005 CC="$ax_pthread_save_CC"
14006 CFLAGS="$ax_pthread_save_CFLAGS"
14007 LIBS="$ax_pthread_save_LIBS"
14008 fi
14009
14010 # We must check for the threads library under a number of different
14011 # names; the ordering is very important because some systems
14012 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14013 # libraries is broken (non-POSIX).
14014
14015 # Create a list of thread flags to try. Items with a "," contain both
14016 # C compiler flags (before ",") and linker flags (after ","). Other items
14017 # starting with a "-" are C compiler flags, and remaining items are
14018 # library names, except for "none" which indicates that we try without
14019 # any flags at all, and "pthread-config" which is a program returning
14020 # the flags for the Pth emulation library.
14021
14022 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14023
14024 # The ordering *is* (sometimes) important. Some notes on the
14025 # individual items follow:
14026
14027 # pthreads: AIX (must check this before -lpthread)
14028 # none: in case threads are in libc; should be tried before -Kthread and
14029 # other compiler flags to prevent continual compiler warnings
14030 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14031 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14032 # (Note: HP C rejects this with "bad form for `-t' option")
14033 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14034 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14035 # doesn't hurt to check since this sometimes defines pthreads and
14036 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14037 # is present but should not be used directly; and before -mthreads,
14038 # because the compiler interprets this as "-mt" + "-hreads")
14039 # -mthreads: Mingw32/gcc, Lynx/gcc
14040 # pthread: Linux, etcetera
14041 # --thread-safe: KAI C++
14042 # pthread-config: use pthread-config program (for GNU Pth library)
14043
14044 case $host_os in
14045
14046 freebsd*)
14047
14048 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14049 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14050
14051 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
14052 ;;
14053
14054 hpux*)
14055
14056 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14057 # multi-threading and also sets -lpthread."
14058
14059 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
14060 ;;
14061
14062 openedition*)
14063
14064 # IBM z/OS requires a feature-test macro to be defined in order to
14065 # enable POSIX threads at all, so give the user a hint if this is
14066 # not set. (We don't define these ourselves, as they can affect
14067 # other portions of the system API in unpredictable ways.)
14068
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071
14072 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14073 AX_PTHREAD_ZOS_MISSING
14074 # endif
14075
14076 _ACEOF
14077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14078 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
14079 then :
14080 { 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
14081 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14082 fi
14083 rm -rf conftest*
14084
14085 ;;
14086
14087 solaris*)
14088
14089 # On Solaris (at least, for some versions), libc contains stubbed
14090 # (non-functional) versions of the pthreads routines, so link-based
14091 # tests will erroneously succeed. (N.B.: The stubs are missing
14092 # pthread_cleanup_push, or rather a function called by this macro,
14093 # so we could check for that, but who knows whether they'll stub
14094 # that too in a future libc.) So we'll check first for the
14095 # standard Solaris way of linking pthreads (-mt -lpthread).
14096
14097 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
14098 ;;
14099 esac
14100
14101 # Are we compiling with Clang?
14102
14103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14104 printf %s "checking whether $CC is Clang... " >&6; }
14105 if test ${ax_cv_PTHREAD_CLANG+y}
14106 then :
14107 printf %s "(cached) " >&6
14108 else case e in #(
14109 e) ax_cv_PTHREAD_CLANG=no
14110 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14111 if test "x$GCC" = "xyes"; then
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14115 # if defined(__clang__) && defined(__llvm__)
14116 AX_PTHREAD_CC_IS_CLANG
14117 # endif
14118
14119 _ACEOF
14120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14121 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
14122 then :
14123 ax_cv_PTHREAD_CLANG=yes
14124 fi
14125 rm -rf conftest*
14126
14127 fi
14128 ;;
14129 esac
14130 fi
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14132 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
14133 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
14134
14135
14136 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14137
14138 # Note that for GCC and Clang -pthread generally implies -lpthread,
14139 # except when -nostdlib is passed.
14140 # This is problematic using libtool to build C++ shared libraries with pthread:
14141 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
14142 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
14143 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
14144 # To solve this, first try -pthread together with -lpthread for GCC
14145
14146 if test "x$GCC" = "xyes"
14147 then :
14148 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
14149 fi
14150
14151 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
14152
14153 if test "x$ax_pthread_clang" = "xyes"
14154 then :
14155 ax_pthread_flags="-pthread,-lpthread -pthread"
14156 fi
14157
14158
14159 # The presence of a feature test macro requesting re-entrant function
14160 # definitions is, on some systems, a strong hint that pthreads support is
14161 # correctly enabled
14162
14163 case $host_os in
14164 darwin* | hpux* | linux* | osf* | solaris*)
14165 ax_pthread_check_macro="_REENTRANT"
14166 ;;
14167
14168 aix*)
14169 ax_pthread_check_macro="_THREAD_SAFE"
14170 ;;
14171
14172 *)
14173 ax_pthread_check_macro="--"
14174 ;;
14175 esac
14176 if test "x$ax_pthread_check_macro" = "x--"
14177 then :
14178 ax_pthread_check_cond=0
14179 else case e in #(
14180 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
14181 esac
14182 fi
14183
14184
14185 if test "x$ax_pthread_ok" = "xno"; then
14186 for ax_pthread_try_flag in $ax_pthread_flags; do
14187
14188 case $ax_pthread_try_flag in
14189 none)
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14191 printf %s "checking whether pthreads work without any flags... " >&6; }
14192 ;;
14193
14194 *,*)
14195 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
14196 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
14198 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
14199 ;;
14200
14201 -*)
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14203 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14204 PTHREAD_CFLAGS="$ax_pthread_try_flag"
14205 ;;
14206
14207 pthread-config)
14208 # Extract the first word of "pthread-config", so it can be a program name with args.
14209 set dummy pthread-config; ac_word=$2
14210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14211 printf %s "checking for $ac_word... " >&6; }
14212 if test ${ac_cv_prog_ax_pthread_config+y}
14213 then :
14214 printf %s "(cached) " >&6
14215 else case e in #(
14216 e) if test -n "$ax_pthread_config"; then
14217 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14218 else
14219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220 for as_dir in $PATH
14221 do
14222 IFS=$as_save_IFS
14223 case $as_dir in #(((
14224 '') as_dir=./ ;;
14225 */) ;;
14226 *) as_dir=$as_dir/ ;;
14227 esac
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14230 ac_cv_prog_ax_pthread_config="yes"
14231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234 done
14235 done
14236 IFS=$as_save_IFS
14237
14238 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14239 fi ;;
14240 esac
14241 fi
14242 ax_pthread_config=$ac_cv_prog_ax_pthread_config
14243 if test -n "$ax_pthread_config"; then
14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14245 printf "%s\n" "$ax_pthread_config" >&6; }
14246 else
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 printf "%s\n" "no" >&6; }
14249 fi
14250
14251
14252 if test "x$ax_pthread_config" = "xno"
14253 then :
14254 continue
14255 fi
14256 PTHREAD_CFLAGS="`pthread-config --cflags`"
14257 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14258 ;;
14259
14260 *)
14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14262 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14263 PTHREAD_LIBS="-l$ax_pthread_try_flag"
14264 ;;
14265 esac
14266
14267 ax_pthread_save_CFLAGS="$CFLAGS"
14268 ax_pthread_save_LIBS="$LIBS"
14269 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14270 LIBS="$PTHREAD_LIBS $LIBS"
14271
14272 # Check for various functions. We must include pthread.h,
14273 # since some functions may be macros. (On the Sequent, we
14274 # need a special flag -Kthread to make this header compile.)
14275 # We check for pthread_join because it is in -lpthread on IRIX
14276 # while pthread_create is in libc. We check for pthread_attr_init
14277 # due to DEC craziness with -lpthreads. We check for
14278 # pthread_cleanup_push because it is one of the few pthread
14279 # functions on Solaris that doesn't have a non-functional libc stub.
14280 # We try pthread_create on general principles.
14281
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #include <pthread.h>
14285 # if $ax_pthread_check_cond
14286 # error "$ax_pthread_check_macro must be defined"
14287 # endif
14288 static void *some_global = NULL;
14289 static void routine(void *a)
14290 {
14291 /* To avoid any unused-parameter or
14292 unused-but-set-parameter warning. */
14293 some_global = a;
14294 }
14295 static void *start_routine(void *a) { return a; }
14296 int
14297 main (void)
14298 {
14299 pthread_t th; pthread_attr_t attr;
14300 pthread_create(&th, 0, start_routine, 0);
14301 pthread_join(th, 0);
14302 pthread_attr_init(&attr);
14303 pthread_cleanup_push(routine, 0);
14304 pthread_cleanup_pop(0) /* ; */
14305 ;
14306 return 0;
14307 }
14308 _ACEOF
14309 if ac_fn_c_try_link "$LINENO"
14310 then :
14311 ax_pthread_ok=yes
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14314 conftest$ac_exeext conftest.$ac_ext
14315
14316 CFLAGS="$ax_pthread_save_CFLAGS"
14317 LIBS="$ax_pthread_save_LIBS"
14318
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14320 printf "%s\n" "$ax_pthread_ok" >&6; }
14321 if test "x$ax_pthread_ok" = "xyes"
14322 then :
14323 break
14324 fi
14325
14326 PTHREAD_LIBS=""
14327 PTHREAD_CFLAGS=""
14328 done
14329 fi
14330
14331
14332 # Clang needs special handling, because older versions handle the -pthread
14333 # option in a rather... idiosyncratic way
14334
14335 if test "x$ax_pthread_clang" = "xyes"; then
14336
14337 # Clang takes -pthread; it has never supported any other flag
14338
14339 # (Note 1: This will need to be revisited if a system that Clang
14340 # supports has POSIX threads in a separate library. This tends not
14341 # to be the way of modern systems, but it's conceivable.)
14342
14343 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14344 # to get POSIX threads support; the API is always present and
14345 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14346 # -pthread does define _REENTRANT, and while the Darwin headers
14347 # ignore this macro, third-party headers might not.)
14348
14349 # However, older versions of Clang make a point of warning the user
14350 # that, in an invocation where only linking and no compilation is
14351 # taking place, the -pthread option has no effect ("argument unused
14352 # during compilation"). They expect -pthread to be passed in only
14353 # when source code is being compiled.
14354 #
14355 # Problem is, this is at odds with the way Automake and most other
14356 # C build frameworks function, which is that the same flags used in
14357 # compilation (CFLAGS) are also used in linking. Many systems
14358 # supported by AX_PTHREAD require exactly this for POSIX threads
14359 # support, and in fact it is often not straightforward to specify a
14360 # flag that is used only in the compilation phase and not in
14361 # linking. Such a scenario is extremely rare in practice.
14362 #
14363 # Even though use of the -pthread flag in linking would only print
14364 # a warning, this can be a nuisance for well-run software projects
14365 # that build with -Werror. So if the active version of Clang has
14366 # this misfeature, we search for an option to squash it.
14367
14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14369 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14370 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
14371 then :
14372 printf %s "(cached) " >&6
14373 else case e in #(
14374 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
14375 # Create an alternate version of $ac_link that compiles and
14376 # links in two steps (.c -> .o, .o -> exe) instead of one
14377 # (.c -> exe), because the warning occurs only in the second
14378 # step
14379 ax_pthread_save_ac_link="$ac_link"
14380 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14381 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
14382 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14383 ax_pthread_save_CFLAGS="$CFLAGS"
14384 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
14385 if test "x$ax_pthread_try" = "xunknown"
14386 then :
14387 break
14388 fi
14389 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14390 ac_link="$ax_pthread_save_ac_link"
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 int main(void){return 0;}
14394 _ACEOF
14395 if ac_fn_c_try_link "$LINENO"
14396 then :
14397 ac_link="$ax_pthread_2step_ac_link"
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14400 int main(void){return 0;}
14401 _ACEOF
14402 if ac_fn_c_try_link "$LINENO"
14403 then :
14404 break
14405 fi
14406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14407 conftest$ac_exeext conftest.$ac_ext
14408
14409 fi
14410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14411 conftest$ac_exeext conftest.$ac_ext
14412 done
14413 ac_link="$ax_pthread_save_ac_link"
14414 CFLAGS="$ax_pthread_save_CFLAGS"
14415 if test "x$ax_pthread_try" = "x"
14416 then :
14417 ax_pthread_try=no
14418 fi
14419 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
14420 ;;
14421 esac
14422 fi
14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14424 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14425
14426 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14427 no | unknown) ;;
14428 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14429 esac
14430
14431 fi # $ax_pthread_clang = yes
14432
14433
14434
14435 # Various other checks:
14436 if test "x$ax_pthread_ok" = "xyes"; then
14437 ax_pthread_save_CFLAGS="$CFLAGS"
14438 ax_pthread_save_LIBS="$LIBS"
14439 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14440 LIBS="$PTHREAD_LIBS $LIBS"
14441
14442 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14444 printf %s "checking for joinable pthread attribute... " >&6; }
14445 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
14446 then :
14447 printf %s "(cached) " >&6
14448 else case e in #(
14449 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
14450 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 #include <pthread.h>
14454 int
14455 main (void)
14456 {
14457 int attr = $ax_pthread_attr; return attr /* ; */
14458 ;
14459 return 0;
14460 }
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"
14463 then :
14464 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
14465 fi
14466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14467 conftest$ac_exeext conftest.$ac_ext
14468 done
14469 ;;
14470 esac
14471 fi
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14473 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14474 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14475 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14476 test "x$ax_pthread_joinable_attr_defined" != "xyes"
14477 then :
14478
14479 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
14480
14481 ax_pthread_joinable_attr_defined=yes
14482
14483 fi
14484
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14486 printf %s "checking whether more special flags are required for pthreads... " >&6; }
14487 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
14488 then :
14489 printf %s "(cached) " >&6
14490 else case e in #(
14491 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
14492 case $host_os in
14493 solaris*)
14494 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
14495 ;;
14496 esac
14497 ;;
14498 esac
14499 fi
14500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14501 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14502 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14503 test "x$ax_pthread_special_flags_added" != "xyes"
14504 then :
14505 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14506 ax_pthread_special_flags_added=yes
14507 fi
14508
14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14510 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14511 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
14512 then :
14513 printf %s "(cached) " >&6
14514 else case e in #(
14515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 #include <pthread.h>
14518 int
14519 main (void)
14520 {
14521 int i = PTHREAD_PRIO_INHERIT;
14522 return i;
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_link "$LINENO"
14528 then :
14529 ax_cv_PTHREAD_PRIO_INHERIT=yes
14530 else case e in #(
14531 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
14532 esac
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14535 conftest$ac_exeext conftest.$ac_ext
14536 ;;
14537 esac
14538 fi
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14540 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14541 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14542 test "x$ax_pthread_prio_inherit_defined" != "xyes"
14543 then :
14544
14545 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14546
14547 ax_pthread_prio_inherit_defined=yes
14548
14549 fi
14550
14551 CFLAGS="$ax_pthread_save_CFLAGS"
14552 LIBS="$ax_pthread_save_LIBS"
14553
14554 # More AIX lossage: compile with *_r variant
14555 if test "x$GCC" != "xyes"; then
14556 case $host_os in
14557 aix*)
14558 case "x/$CC" in #(
14559 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
14560 #handle absolute path differently from PATH based program lookup
14561 case "x$CC" in #(
14562 x/*) :
14563
14564 if as_fn_executable_p ${CC}_r
14565 then :
14566 PTHREAD_CC="${CC}_r"
14567 fi
14568 if test "x${CXX}" != "x"
14569 then :
14570 if as_fn_executable_p ${CXX}_r
14571 then :
14572 PTHREAD_CXX="${CXX}_r"
14573 fi
14574 fi
14575 ;; #(
14576 *) :
14577
14578 for ac_prog in ${CC}_r
14579 do
14580 # Extract the first word of "$ac_prog", so it can be a program name with args.
14581 set dummy $ac_prog; ac_word=$2
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14583 printf %s "checking for $ac_word... " >&6; }
14584 if test ${ac_cv_prog_PTHREAD_CC+y}
14585 then :
14586 printf %s "(cached) " >&6
14587 else case e in #(
14588 e) if test -n "$PTHREAD_CC"; then
14589 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14590 else
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14593 do
14594 IFS=$as_save_IFS
14595 case $as_dir in #(((
14596 '') as_dir=./ ;;
14597 */) ;;
14598 *) as_dir=$as_dir/ ;;
14599 esac
14600 for ac_exec_ext in '' $ac_executable_extensions; do
14601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14602 ac_cv_prog_PTHREAD_CC="$ac_prog"
14603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14604 break 2
14605 fi
14606 done
14607 done
14608 IFS=$as_save_IFS
14609
14610 fi ;;
14611 esac
14612 fi
14613 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14614 if test -n "$PTHREAD_CC"; then
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14616 printf "%s\n" "$PTHREAD_CC" >&6; }
14617 else
14618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 printf "%s\n" "no" >&6; }
14620 fi
14621
14622
14623 test -n "$PTHREAD_CC" && break
14624 done
14625 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14626
14627 if test "x${CXX}" != "x"
14628 then :
14629 for ac_prog in ${CXX}_r
14630 do
14631 # Extract the first word of "$ac_prog", so it can be a program name with args.
14632 set dummy $ac_prog; ac_word=$2
14633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14634 printf %s "checking for $ac_word... " >&6; }
14635 if test ${ac_cv_prog_PTHREAD_CXX+y}
14636 then :
14637 printf %s "(cached) " >&6
14638 else case e in #(
14639 e) if test -n "$PTHREAD_CXX"; then
14640 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
14641 else
14642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14643 for as_dir in $PATH
14644 do
14645 IFS=$as_save_IFS
14646 case $as_dir in #(((
14647 '') as_dir=./ ;;
14648 */) ;;
14649 *) as_dir=$as_dir/ ;;
14650 esac
14651 for ac_exec_ext in '' $ac_executable_extensions; do
14652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14653 ac_cv_prog_PTHREAD_CXX="$ac_prog"
14654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14655 break 2
14656 fi
14657 done
14658 done
14659 IFS=$as_save_IFS
14660
14661 fi ;;
14662 esac
14663 fi
14664 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
14665 if test -n "$PTHREAD_CXX"; then
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
14667 printf "%s\n" "$PTHREAD_CXX" >&6; }
14668 else
14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 printf "%s\n" "no" >&6; }
14671 fi
14672
14673
14674 test -n "$PTHREAD_CXX" && break
14675 done
14676 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
14677
14678 fi
14679
14680 ;;
14681 esac
14682 ;; #(
14683 *) :
14684 ;;
14685 esac
14686 ;;
14687 esac
14688 fi
14689 fi
14690
14691 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14692 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
14693
14694
14695
14696
14697
14698
14699 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14700 if test "x$ax_pthread_ok" = "xyes"; then
14701
14702 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
14703
14704 :
14705 else
14706 ax_pthread_ok=no
14707 as_fn_error $? "pthread is required to build $PACKAGE with inotify support" "$LINENO" 5
14708 fi
14709 ac_ext=c
14710 ac_cpp='$CPP $CPPFLAGS'
14711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14714
14715
14716 fi
14717 fi
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for program_invocation_short_name" >&5
14719 printf %s "checking for program_invocation_short_name... " >&6; }
14720 if test ${ac_cv_program_invocation_short_name+y}
14721 then :
14722 printf %s "(cached) " >&6
14723 else case e in #(
14724 e)
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727 extern char* program_invocation_short_name;
14728 int
14729 main (void)
14730 {
14731 return program_invocation_short_name0;
14732 ;
14733 return 0;
14734 }
14735 _ACEOF
14736 if ac_fn_c_try_compile "$LINENO"
14737 then :
14738 ac_cv_program_invocation_short_name=yes
14739 else case e in #(
14740 e) ac_cv_program_invocation_short_name=no
14741 ;;
14742 esac
14743 fi
14744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14745 ;;
14746 esac
14747 fi
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_program_invocation_short_name" >&5
14749 printf "%s\n" "$ac_cv_program_invocation_short_name" >&6; }
14750 if test "x$ac_cv_program_invocation_short_name" = "xyes"; then
14751
14752 printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
14753
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if program_invocation_short_name is declared in errno.h" >&5
14755 printf %s "checking if program_invocation_short_name is declared in errno.h... " >&6; }
14756 if test ${ac_cv_program_invocation_short_name_errno_h+y}
14757 then :
14758 printf %s "(cached) " >&6
14759 else case e in #(
14760 e)
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 #include <errno.h>
14764 int
14765 main (void)
14766 {
14767 return program_invocation_short_name0;
14768 ;
14769 return 0;
14770 }
14771 _ACEOF
14772 if ac_fn_c_try_compile "$LINENO"
14773 then :
14774 ac_cv_program_invocation_short_name_errno_h=yes
14775 else case e in #(
14776 e) ac_cv_program_invocation_short_name_errno_h=no
14777 ;;
14778 esac
14779 fi
14780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14781 ;;
14782 esac
14783 fi
14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_program_invocation_short_name_errno_h" >&5
14785 printf "%s\n" "$ac_cv_program_invocation_short_name_errno_h" >&6; }
14786 if test "x$ac_cv_program_invocation_short_name_errno_h" = "xyes"; then
14787
14788 printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME_ERRNO_H 1" >>confdefs.h
14789
14790 fi
14791 fi
14792 ;;
14793 esac
14794 if test x$win32 = xtrue; then
14795 WIN32_TRUE=
14796 WIN32_FALSE='#'
14797 else
14798 WIN32_TRUE='#'
14799 WIN32_FALSE=
14800 fi
14801
14802
14803
14804 list="-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden $PTHREAD_CFLAGS"
14805 flags_supported=""
14806 flags_unsupported=""
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
14808 printf %s "checking for supported compiler flags... " >&6; }
14809 for each in $list
14810 do
14811 save_CFLAGS="$CFLAGS"
14812 CFLAGS="$CFLAGS $each"
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815
14816 int
14817 main (void)
14818 {
14819
14820 ;
14821 return 0;
14822 }
14823 _ACEOF
14824 if ac_fn_c_try_compile "$LINENO"
14825 then :
14826 flag_ok=yes
14827 else case e in #(
14828 e) flag_ok=no ;;
14829 esac
14830 fi
14831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14832 CFLAGS="$save_CFLAGS"
14833
14834 if test "X$flag_ok" = Xyes ; then
14835 flags_supported="$flags_supported $each"
14836 else
14837 flags_unsupported="$flags_unsupported $each"
14838 fi
14839 done
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
14841 printf "%s\n" "$flags_supported" >&6; }
14842 if test "X$flags_unsupported" != X ; then
14843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
14844 printf "%s\n" "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
14845 fi
14846 GLOBAL_CFLAGS="$GLOBAL_CFLAGS $flags_supported"
14847
14848 GLOBAL_LDFLAGS="$PTHREAD_LIBS"
14849
14850 if test "x$enable_static" = "xyes" -a "x$enable_shared" = "xno"; then
14851 GLOBAL_CFLAGS+=" -DLIBUSBMUXD_STATIC"
14852 fi
14853
14854
14855
14856
14857 # Check whether --enable-silent-rules was given.
14858 if test ${enable_silent_rules+y}
14859 then :
14860 enableval=$enable_silent_rules;
14861 fi
14862
14863 case $enable_silent_rules in # (((
14864 yes) AM_DEFAULT_VERBOSITY=0;;
14865 no) AM_DEFAULT_VERBOSITY=1;;
14866 *) AM_DEFAULT_VERBOSITY=0;;
14867 esac
14868 am_make=${MAKE-make}
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14870 printf %s "checking whether $am_make supports nested variables... " >&6; }
14871 if test ${am_cv_make_support_nested_variables+y}
14872 then :
14873 printf %s "(cached) " >&6
14874 else case e in #(
14875 e) if printf "%s\n" 'TRUE=$(BAR$(V))
14876 BAR0=false
14877 BAR1=true
14878 V=1
14879 am__doit:
14880 @$(TRUE)
14881 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14882 am_cv_make_support_nested_variables=yes
14883 else
14884 am_cv_make_support_nested_variables=no
14885 fi ;;
14886 esac
14887 fi
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14889 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
14890 if test $am_cv_make_support_nested_variables = yes; then
14891 AM_V='$(V)'
14892 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14893 else
14894 AM_V=$AM_DEFAULT_VERBOSITY
14895 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14896 fi
14897 AM_BACKSLASH='\'
14898
14899
14900 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile tools/Makefile docs/Makefile src/libusbmuxd-2.0.pc"
14901
14902 cat >confcache <<\_ACEOF
14903 # This file is a shell script that caches the results of configure
14904 # tests run on this system so they can be shared between configure
14905 # scripts and configure runs, see configure's option --config-cache.
14906 # It is not useful on other systems. If it contains results you don't
14907 # want to keep, you may remove or edit it.
14908 #
14909 # config.status only pays attention to the cache file if you give it
14910 # the --recheck option to rerun configure.
14911 #
14912 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
14913 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
14914 # following values.
14915
14916 _ACEOF
14917
14918 # The following way of writing the cache mishandles newlines in values,
14919 # but we know of no workaround that is simple, portable, and efficient.
14920 # So, we kill variables containing newlines.
14921 # Ultrix sh set writes to stderr and can't be redirected directly,
14922 # and sets the high bit in the cache file unless we assign to the vars.
14923 (
14924 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14925 eval ac_val=\$$ac_var
14926 case $ac_val in #(
14927 *${as_nl}*)
14928 case $ac_var in #(
14929 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14930 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14931 esac
14932 case $ac_var in #(
14933 _ | IFS | as_nl) ;; #(
14934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14935 *) { eval $ac_var=; unset $ac_var;} ;;
14936 esac ;;
14937 esac
14938 done
14939
14940 (set) 2>&1 |
14941 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14942 *${as_nl}ac_space=\ *)
14943 # 'set' does not quote correctly, so add quotes: double-quote
14944 # substitution turns \\\\ into \\, and sed turns \\ into \.
14945 sed -n \
14946 "s/'/'\\\\''/g;
14947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14948 ;; #(
14949 *)
14950 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14952 ;;
14953 esac |
14954 sort
14955 ) |
14956 sed '
14957 /^ac_cv_env_/b end
14958 t clear
14959 :clear
14960 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14961 t end
14962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14963 :end' >>confcache
14964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14965 if test -w "$cache_file"; then
14966 if test "x$cache_file" != "x/dev/null"; then
14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14968 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14969 if test ! -f "$cache_file" || test -h "$cache_file"; then
14970 cat confcache >"$cache_file"
14971 else
14972 case $cache_file in #(
14973 */* | ?:*)
14974 mv -f confcache "$cache_file"$$ &&
14975 mv -f "$cache_file"$$ "$cache_file" ;; #(
14976 *)
14977 mv -f confcache "$cache_file" ;;
14978 esac
14979 fi
14980 fi
14981 else
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14983 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14984 fi
14985 fi
14986 rm -f confcache
14987
14988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14989 # Let make expand exec_prefix.
14990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14991
14992 DEFS=-DHAVE_CONFIG_H
14993
14994 ac_libobjs=
14995 ac_ltlibobjs=
14996 U=
14997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14998 # 1. Remove the extension, and $U if already installed.
14999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15000 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15002 # will be set to the directory where LIBOBJS objects are built.
15003 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15004 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15005 done
15006 LIBOBJS=$ac_libobjs
15007
15008 LTLIBOBJS=$ac_ltlibobjs
15009
15010
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15012 printf %s "checking that generated files are newer than configure... " >&6; }
15013 if test -n "$am_sleep_pid"; then
15014 # Hide warnings about reused PIDs.
15015 wait $am_sleep_pid 2>/dev/null
15016 fi
15017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15018 printf "%s\n" "done" >&6; }
15019 if test -n "$EXEEXT"; then
15020 am__EXEEXT_TRUE=
15021 am__EXEEXT_FALSE='#'
15022 else
15023 am__EXEEXT_TRUE='#'
15024 am__EXEEXT_FALSE=
15025 fi
15026
15027 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15028 as_fn_error $? "conditional \"AMDEP\" was never defined.
15029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15030 fi
15031 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15032 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15034 fi
15035 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
15036 as_fn_error $? "conditional \"WIN32\" was never defined.
15037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038 fi
15039
15040 : "${CONFIG_STATUS=./config.status}"
15041 ac_write_fail=0
15042 ac_clean_files_save=$ac_clean_files
15043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15045 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15046 as_write_fail=0
15047 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15048 #! $SHELL
15049 # Generated by $as_me.
15050 # Run this file to recreate the current configuration.
15051 # Compiler output produced by configure, useful for debugging
15052 # configure, is in config.log if it exists.
15053
15054 debug=false
15055 ac_cs_recheck=false
15056 ac_cs_silent=false
15057
15058 SHELL=\${CONFIG_SHELL-$SHELL}
15059 export SHELL
15060 _ASEOF
15061 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15062 ## -------------------- ##
15063 ## M4sh Initialization. ##
15064 ## -------------------- ##
15065
15066 # Be more Bourne compatible
15067 DUALCASE=1; export DUALCASE # for MKS sh
15068 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15069 then :
15070 emulate sh
15071 NULLCMD=:
15072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15073 # is contrary to our usage. Disable this feature.
15074 alias -g '${1+"$@"}'='"$@"'
15075 setopt NO_GLOB_SUBST
15076 else case e in #(
15077 e) case `(set -o) 2>/dev/null` in #(
15078 *posix*) :
15079 set -o posix ;; #(
15080 *) :
15081 ;;
15082 esac ;;
15083 esac
15084 fi
15085
15086
15087
15088 # Reset variables that may have inherited troublesome values from
15089 # the environment.
15090
15091 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15092 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15093 # side effect of setting IFS to empty, thus disabling word splitting.)
15094 # Quoting is to prevent editors from complaining about space-tab.
15095 as_nl='
15096 '
15097 export as_nl
15098 IFS=" "" $as_nl"
15099
15100 PS1='$ '
15101 PS2='> '
15102 PS4='+ '
15103
15104 # Ensure predictable behavior from utilities with locale-dependent output.
15105 LC_ALL=C
15106 export LC_ALL
15107 LANGUAGE=C
15108 export LANGUAGE
15109
15110 # We cannot yet rely on "unset" to work, but we need these variables
15111 # to be unset--not just set to an empty or harmless value--now, to
15112 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15113 # also avoids known problems related to "unset" and subshell syntax
15114 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15115 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15116 do eval test \${$as_var+y} \
15117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15118 done
15119
15120 # Ensure that fds 0, 1, and 2 are open.
15121 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15122 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15123 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15124
15125 # The user is always right.
15126 if ${PATH_SEPARATOR+false} :; then
15127 PATH_SEPARATOR=:
15128 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15129 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15130 PATH_SEPARATOR=';'
15131 }
15132 fi
15133
15134
15135 # Find who we are. Look in the path if we contain no directory separator.
15136 as_myself=
15137 case $0 in #((
15138 *[\\/]* ) as_myself=$0 ;;
15139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15140 for as_dir in $PATH
15141 do
15142 IFS=$as_save_IFS
15143 case $as_dir in #(((
15144 '') as_dir=./ ;;
15145 */) ;;
15146 *) as_dir=$as_dir/ ;;
15147 esac
15148 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15149 done
15150 IFS=$as_save_IFS
15151
15152 ;;
15153 esac
15154 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15155 # in which case we are not to be found in the path.
15156 if test "x$as_myself" = x; then
15157 as_myself=$0
15158 fi
15159 if test ! -f "$as_myself"; then
15160 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15161 exit 1
15162 fi
15163
15164
15165
15166 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15167 # ----------------------------------------
15168 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15169 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15170 # script with STATUS, using 1 if that was 0.
15171 as_fn_error ()
15172 {
15173 as_status=$1; test $as_status -eq 0 && as_status=1
15174 if test "$4"; then
15175 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15177 fi
15178 printf "%s\n" "$as_me: error: $2" >&2
15179 as_fn_exit $as_status
15180 } # as_fn_error
15181
15182
15183 # as_fn_set_status STATUS
15184 # -----------------------
15185 # Set $? to STATUS, without forking.
15186 as_fn_set_status ()
15187 {
15188 return $1
15189 } # as_fn_set_status
15190
15191 # as_fn_exit STATUS
15192 # -----------------
15193 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15194 as_fn_exit ()
15195 {
15196 set +e
15197 as_fn_set_status $1
15198 exit $1
15199 } # as_fn_exit
15200
15201 # as_fn_unset VAR
15202 # ---------------
15203 # Portably unset VAR.
15204 as_fn_unset ()
15205 {
15206 { eval $1=; unset $1;}
15207 }
15208 as_unset=as_fn_unset
15209
15210 # as_fn_append VAR VALUE
15211 # ----------------------
15212 # Append the text in VALUE to the end of the definition contained in VAR. Take
15213 # advantage of any shell optimizations that allow amortized linear growth over
15214 # repeated appends, instead of the typical quadratic growth present in naive
15215 # implementations.
15216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15217 then :
15218 eval 'as_fn_append ()
15219 {
15220 eval $1+=\$2
15221 }'
15222 else case e in #(
15223 e) as_fn_append ()
15224 {
15225 eval $1=\$$1\$2
15226 } ;;
15227 esac
15228 fi # as_fn_append
15229
15230 # as_fn_arith ARG...
15231 # ------------------
15232 # Perform arithmetic evaluation on the ARGs, and store the result in the
15233 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15234 # must be portable across $(()) and expr.
15235 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15236 then :
15237 eval 'as_fn_arith ()
15238 {
15239 as_val=$(( $* ))
15240 }'
15241 else case e in #(
15242 e) as_fn_arith ()
15243 {
15244 as_val=`expr "$@" || test $? -eq 1`
15245 } ;;
15246 esac
15247 fi # as_fn_arith
15248
15249
15250 if expr a : '\(a\)' >/dev/null 2>&1 &&
15251 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15252 as_expr=expr
15253 else
15254 as_expr=false
15255 fi
15256
15257 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15258 as_basename=basename
15259 else
15260 as_basename=false
15261 fi
15262
15263 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15264 as_dirname=dirname
15265 else
15266 as_dirname=false
15267 fi
15268
15269 as_me=`$as_basename -- "$0" ||
15270 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15271 X"$0" : 'X\(//\)$' \| \
15272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15273 printf "%s\n" X/"$0" |
15274 sed '/^.*\/\([^/][^/]*\)\/*$/{
15275 s//\1/
15276 q
15277 }
15278 /^X\/\(\/\/\)$/{
15279 s//\1/
15280 q
15281 }
15282 /^X\/\(\/\).*/{
15283 s//\1/
15284 q
15285 }
15286 s/.*/./; q'`
15287
15288 # Avoid depending upon Character Ranges.
15289 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15290 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15291 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15292 as_cr_digits='0123456789'
15293 as_cr_alnum=$as_cr_Letters$as_cr_digits
15294
15295
15296 # Determine whether it's possible to make 'echo' print without a newline.
15297 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15298 # for compatibility with existing Makefiles.
15299 ECHO_C= ECHO_N= ECHO_T=
15300 case `echo -n x` in #(((((
15301 -n*)
15302 case `echo 'xy\c'` in
15303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15304 xy) ECHO_C='\c';;
15305 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15306 ECHO_T=' ';;
15307 esac;;
15308 *)
15309 ECHO_N='-n';;
15310 esac
15311
15312 # For backward compatibility with old third-party macros, we provide
15313 # the shell variables $as_echo and $as_echo_n. New code should use
15314 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15315 as_echo='printf %s\n'
15316 as_echo_n='printf %s'
15317
15318 rm -f conf$$ conf$$.exe conf$$.file
15319 if test -d conf$$.dir; then
15320 rm -f conf$$.dir/conf$$.file
15321 else
15322 rm -f conf$$.dir
15323 mkdir conf$$.dir 2>/dev/null
15324 fi
15325 if (echo >conf$$.file) 2>/dev/null; then
15326 if ln -s conf$$.file conf$$ 2>/dev/null; then
15327 as_ln_s='ln -s'
15328 # ... but there are two gotchas:
15329 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15330 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15331 # In both cases, we have to default to 'cp -pR'.
15332 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15333 as_ln_s='cp -pR'
15334 elif ln conf$$.file conf$$ 2>/dev/null; then
15335 as_ln_s=ln
15336 else
15337 as_ln_s='cp -pR'
15338 fi
15339 else
15340 as_ln_s='cp -pR'
15341 fi
15342 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15343 rmdir conf$$.dir 2>/dev/null
15344
15345
15346 # as_fn_mkdir_p
15347 # -------------
15348 # Create "$as_dir" as a directory, including parents if necessary.
15349 as_fn_mkdir_p ()
15350 {
15351
15352 case $as_dir in #(
15353 -*) as_dir=./$as_dir;;
15354 esac
15355 test -d "$as_dir" || eval $as_mkdir_p || {
15356 as_dirs=
15357 while :; do
15358 case $as_dir in #(
15359 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15360 *) as_qdir=$as_dir;;
15361 esac
15362 as_dirs="'$as_qdir' $as_dirs"
15363 as_dir=`$as_dirname -- "$as_dir" ||
15364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15365 X"$as_dir" : 'X\(//\)[^/]' \| \
15366 X"$as_dir" : 'X\(//\)$' \| \
15367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15368 printf "%s\n" X"$as_dir" |
15369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15370 s//\1/
15371 q
15372 }
15373 /^X\(\/\/\)[^/].*/{
15374 s//\1/
15375 q
15376 }
15377 /^X\(\/\/\)$/{
15378 s//\1/
15379 q
15380 }
15381 /^X\(\/\).*/{
15382 s//\1/
15383 q
15384 }
15385 s/.*/./; q'`
15386 test -d "$as_dir" && break
15387 done
15388 test -z "$as_dirs" || eval "mkdir $as_dirs"
15389 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15390
15391
15392 } # as_fn_mkdir_p
15393 if mkdir -p . 2>/dev/null; then
15394 as_mkdir_p='mkdir -p "$as_dir"'
15395 else
15396 test -d ./-p && rmdir ./-p
15397 as_mkdir_p=false
15398 fi
15399
15400
15401 # as_fn_executable_p FILE
15402 # -----------------------
15403 # Test if FILE is an executable regular file.
15404 as_fn_executable_p ()
15405 {
15406 test -f "$1" && test -x "$1"
15407 } # as_fn_executable_p
15408 as_test_x='test -x'
15409 as_executable_p=as_fn_executable_p
15410
15411 # Sed expression to map a string onto a valid CPP name.
15412 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15413 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15414
15415 # Sed expression to map a string onto a valid variable name.
15416 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15417 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15418
15419
15420 exec 6>&1
15421 ## ----------------------------------- ##
15422 ## Main body of $CONFIG_STATUS script. ##
15423 ## ----------------------------------- ##
15424 _ASEOF
15425 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15426
15427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15428 # Save the log message, to keep $0 and so on meaningful, and to
15429 # report actual input values of CONFIG_FILES etc. instead of their
15430 # values after options handling.
15431 ac_log="
15432 This file was extended by libusbmuxd $as_me 2.1.1, which was
15433 generated by GNU Autoconf 2.72. Invocation command line was
15434
15435 CONFIG_FILES = $CONFIG_FILES
15436 CONFIG_HEADERS = $CONFIG_HEADERS
15437 CONFIG_LINKS = $CONFIG_LINKS
15438 CONFIG_COMMANDS = $CONFIG_COMMANDS
15439 $ $0 $@
15440
15441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15442 "
15443
15444 _ACEOF
15445
15446 case $ac_config_files in *"
15447 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15448 esac
15449
15450 case $ac_config_headers in *"
15451 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15452 esac
15453
15454
15455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15456 # Files that config.status was made for.
15457 config_files="$ac_config_files"
15458 config_headers="$ac_config_headers"
15459 config_commands="$ac_config_commands"
15460
15461 _ACEOF
15462
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464 ac_cs_usage="\
15465 '$as_me' instantiates files and other configuration actions
15466 from templates according to the current configuration. Unless the files
15467 and actions are specified as TAGs, all are instantiated by default.
15468
15469 Usage: $0 [OPTION]... [TAG]...
15470
15471 -h, --help print this help, then exit
15472 -V, --version print version number and configuration settings, then exit
15473 --config print configuration, then exit
15474 -q, --quiet, --silent
15475 do not print progress messages
15476 -d, --debug don't remove temporary files
15477 --recheck update $as_me by reconfiguring in the same conditions
15478 --file=FILE[:TEMPLATE]
15479 instantiate the configuration file FILE
15480 --header=FILE[:TEMPLATE]
15481 instantiate the configuration header FILE
15482
15483 Configuration files:
15484 $config_files
15485
15486 Configuration headers:
15487 $config_headers
15488
15489 Configuration commands:
15490 $config_commands
15491
15492 Report bugs to <https://github.com/libimobiledevice/libusbmuxd/issues>.
15493 libusbmuxd home page: <https://libimobiledevice.org>."
15494
15495 _ACEOF
15496 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15497 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15499 ac_cs_config='$ac_cs_config_escaped'
15500 ac_cs_version="\\
15501 libusbmuxd config.status 2.1.1
15502 configured by $0, generated by GNU Autoconf 2.72,
15503 with options \\"\$ac_cs_config\\"
15504
15505 Copyright (C) 2023 Free Software Foundation, Inc.
15506 This config.status script is free software; the Free Software Foundation
15507 gives unlimited permission to copy, distribute and modify it."
15508
15509 ac_pwd='$ac_pwd'
15510 srcdir='$srcdir'
15511 INSTALL='$INSTALL'
15512 MKDIR_P='$MKDIR_P'
15513 AWK='$AWK'
15514 test -n "\$AWK" || AWK=awk
15515 _ACEOF
15516
15517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15518 # The default lists apply if the user does not specify any file.
15519 ac_need_defaults=:
15520 while test $# != 0
15521 do
15522 case $1 in
15523 --*=?*)
15524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15526 ac_shift=:
15527 ;;
15528 --*=)
15529 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15530 ac_optarg=
15531 ac_shift=:
15532 ;;
15533 *)
15534 ac_option=$1
15535 ac_optarg=$2
15536 ac_shift=shift
15537 ;;
15538 esac
15539
15540 case $ac_option in
15541 # Handling of the options.
15542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15543 ac_cs_recheck=: ;;
15544 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15545 printf "%s\n" "$ac_cs_version"; exit ;;
15546 --config | --confi | --conf | --con | --co | --c )
15547 printf "%s\n" "$ac_cs_config"; exit ;;
15548 --debug | --debu | --deb | --de | --d | -d )
15549 debug=: ;;
15550 --file | --fil | --fi | --f )
15551 $ac_shift
15552 case $ac_optarg in
15553 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15554 '') as_fn_error $? "missing file argument" ;;
15555 esac
15556 as_fn_append CONFIG_FILES " '$ac_optarg'"
15557 ac_need_defaults=false;;
15558 --header | --heade | --head | --hea )
15559 $ac_shift
15560 case $ac_optarg in
15561 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15562 esac
15563 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15564 ac_need_defaults=false;;
15565 --he | --h)
15566 # Conflict between --help and --header
15567 as_fn_error $? "ambiguous option: '$1'
15568 Try '$0 --help' for more information.";;
15569 --help | --hel | -h )
15570 printf "%s\n" "$ac_cs_usage"; exit ;;
15571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15572 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15573 ac_cs_silent=: ;;
15574
15575 # This is an error.
15576 -*) as_fn_error $? "unrecognized option: '$1'
15577 Try '$0 --help' for more information." ;;
15578
15579 *) as_fn_append ac_config_targets " $1"
15580 ac_need_defaults=false ;;
15581
15582 esac
15583 shift
15584 done
15585
15586 ac_configure_extra_args=
15587
15588 if $ac_cs_silent; then
15589 exec 6>/dev/null
15590 ac_configure_extra_args="$ac_configure_extra_args --silent"
15591 fi
15592
15593 _ACEOF
15594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15595 if \$ac_cs_recheck; then
15596 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15597 shift
15598 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15599 CONFIG_SHELL='$SHELL'
15600 export CONFIG_SHELL
15601 exec "\$@"
15602 fi
15603
15604 _ACEOF
15605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606 exec 5>>config.log
15607 {
15608 echo
15609 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15610 ## Running $as_me. ##
15611 _ASBOX
15612 printf "%s\n" "$ac_log"
15613 } >&5
15614
15615 _ACEOF
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 #
15618 # INIT-COMMANDS
15619 #
15620 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15621
15622
15623 # The HP-UX ksh and POSIX shell print the target directory to stdout
15624 # if CDPATH is set.
15625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15626
15627 sed_quote_subst='$sed_quote_subst'
15628 double_quote_subst='$double_quote_subst'
15629 delay_variable_subst='$delay_variable_subst'
15630 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15631 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15632 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15633 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15634 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15635 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15636 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15637 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15638 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15639 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15640 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15641 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15642 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15643 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15644 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15645 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15646 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15647 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15648 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15649 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15650 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15651 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15652 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15653 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15654 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15655 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15656 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15657 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15658 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15659 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15660 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15661 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15662 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15663 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15664 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15665 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15666 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15667 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15668 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15669 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15670 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15671 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15672 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15673 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15674 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15675 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15676 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15677 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15678 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15679 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15680 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15681 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15682 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15683 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15684 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15685 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15686 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15687 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15688 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15689 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15690 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"`'
15691 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15692 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15693 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15694 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15695 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15696 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15697 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15698 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15699 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15700 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15701 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15702 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15703 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15704 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15705 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15706 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15707 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15708 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15709 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15710 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15711 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15712 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15713 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15714 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15715 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15716 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15717 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15718 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15719 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15720 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15721 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15722 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15723 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15724 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15725 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15726 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15727 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15728 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15729 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15730 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15731 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15732 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15733 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15734 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15735 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15736 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15737 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15738 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15739 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15740 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15741 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15742 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15743 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15744 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15745 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15746 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15747 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15748 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15749 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15750 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15751 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15752 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15753 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15754 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15755 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15756 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15757 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15758 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15759 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15760 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15761 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15762 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15763 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15764 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15765 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15766 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15767
15768 LTCC='$LTCC'
15769 LTCFLAGS='$LTCFLAGS'
15770 compiler='$compiler_DEFAULT'
15771
15772 # A function that is used when there is no print builtin or printf.
15773 func_fallback_echo ()
15774 {
15775 eval 'cat <<_LTECHO_EOF
15776 \$1
15777 _LTECHO_EOF'
15778 }
15779
15780 # Quote evaled strings.
15781 for var in SHELL \
15782 ECHO \
15783 PATH_SEPARATOR \
15784 SED \
15785 GREP \
15786 EGREP \
15787 FGREP \
15788 LD \
15789 NM \
15790 LN_S \
15791 lt_SP2NL \
15792 lt_NL2SP \
15793 reload_flag \
15794 FILECMD \
15795 OBJDUMP \
15796 deplibs_check_method \
15797 file_magic_cmd \
15798 file_magic_glob \
15799 want_nocaseglob \
15800 DLLTOOL \
15801 sharedlib_from_linklib_cmd \
15802 AR \
15803 archiver_list_spec \
15804 STRIP \
15805 RANLIB \
15806 CC \
15807 CFLAGS \
15808 compiler \
15809 lt_cv_sys_global_symbol_pipe \
15810 lt_cv_sys_global_symbol_to_cdecl \
15811 lt_cv_sys_global_symbol_to_import \
15812 lt_cv_sys_global_symbol_to_c_name_address \
15813 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15814 lt_cv_nm_interface \
15815 nm_file_list_spec \
15816 lt_cv_truncate_bin \
15817 lt_prog_compiler_no_builtin_flag \
15818 lt_prog_compiler_pic \
15819 lt_prog_compiler_wl \
15820 lt_prog_compiler_static \
15821 lt_cv_prog_compiler_c_o \
15822 need_locks \
15823 MANIFEST_TOOL \
15824 DSYMUTIL \
15825 NMEDIT \
15826 LIPO \
15827 OTOOL \
15828 OTOOL64 \
15829 shrext_cmds \
15830 export_dynamic_flag_spec \
15831 whole_archive_flag_spec \
15832 compiler_needs_object \
15833 with_gnu_ld \
15834 allow_undefined_flag \
15835 no_undefined_flag \
15836 hardcode_libdir_flag_spec \
15837 hardcode_libdir_separator \
15838 exclude_expsyms \
15839 include_expsyms \
15840 file_list_spec \
15841 variables_saved_for_relink \
15842 libname_spec \
15843 library_names_spec \
15844 soname_spec \
15845 install_override_mode \
15846 finish_eval \
15847 old_striplib \
15848 striplib; do
15849 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15850 *[\\\\\\\`\\"\\\$]*)
15851 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15852 ;;
15853 *)
15854 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15855 ;;
15856 esac
15857 done
15858
15859 # Double-quote double-evaled strings.
15860 for var in reload_cmds \
15861 old_postinstall_cmds \
15862 old_postuninstall_cmds \
15863 old_archive_cmds \
15864 extract_expsyms_cmds \
15865 old_archive_from_new_cmds \
15866 old_archive_from_expsyms_cmds \
15867 archive_cmds \
15868 archive_expsym_cmds \
15869 module_cmds \
15870 module_expsym_cmds \
15871 export_symbols_cmds \
15872 prelink_cmds \
15873 postlink_cmds \
15874 postinstall_cmds \
15875 postuninstall_cmds \
15876 finish_cmds \
15877 sys_lib_search_path_spec \
15878 configure_time_dlsearch_path \
15879 configure_time_lt_sys_library_path; do
15880 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15881 *[\\\\\\\`\\"\\\$]*)
15882 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15883 ;;
15884 *)
15885 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15886 ;;
15887 esac
15888 done
15889
15890 ac_aux_dir='$ac_aux_dir'
15891
15892 # See if we are running on zsh, and set the options that allow our
15893 # commands through without removal of \ escapes INIT.
15894 if test -n "\${ZSH_VERSION+set}"; then
15895 setopt NO_GLOB_SUBST
15896 fi
15897
15898
15899 PACKAGE='$PACKAGE'
15900 VERSION='$VERSION'
15901 RM='$RM'
15902 ofile='$ofile'
15903
15904
15905
15906
15907 _ACEOF
15908
15909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15910
15911 # Handling of arguments.
15912 for ac_config_target in $ac_config_targets
15913 do
15914 case $ac_config_target in
15915 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15916 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15917 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15918 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15919 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15920 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15921 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15922 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15923 "src/libusbmuxd-2.0.pc") CONFIG_FILES="$CONFIG_FILES src/libusbmuxd-2.0.pc" ;;
15924
15925 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15926 esac
15927 done
15928
15929
15930 # If the user did not use the arguments to specify the items to instantiate,
15931 # then the envvar interface is used. Set only those that are not.
15932 # We use the long form for the default assignment because of an extremely
15933 # bizarre bug on SunOS 4.1.3.
15934 if $ac_need_defaults; then
15935 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15936 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15937 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15938 fi
15939
15940 # Have a temporary directory for convenience. Make it in the build tree
15941 # simply because there is no reason against having it here, and in addition,
15942 # creating and moving files from /tmp can sometimes cause problems.
15943 # Hook for its removal unless debugging.
15944 # Note that there is a small window in which the directory will not be cleaned:
15945 # after its creation but before its name has been assigned to '$tmp'.
15946 $debug ||
15947 {
15948 tmp= ac_tmp=
15949 trap 'exit_status=$?
15950 : "${ac_tmp:=$tmp}"
15951 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15952 ' 0
15953 trap 'as_fn_exit 1' 1 2 13 15
15954 }
15955 # Create a (secure) tmp directory for tmp files.
15956
15957 {
15958 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15959 test -d "$tmp"
15960 } ||
15961 {
15962 tmp=./conf$$-$RANDOM
15963 (umask 077 && mkdir "$tmp")
15964 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15965 ac_tmp=$tmp
15966
15967 # Set up the scripts for CONFIG_FILES section.
15968 # No need to generate them if there are no CONFIG_FILES.
15969 # This happens for instance with './config.status config.h'.
15970 if test -n "$CONFIG_FILES"; then
15971
15972
15973 ac_cr=`echo X | tr X '\015'`
15974 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15975 # But we know of no other shell where ac_cr would be empty at this
15976 # point, so we can use a bashism as a fallback.
15977 if test "x$ac_cr" = x; then
15978 eval ac_cr=\$\'\\r\'
15979 fi
15980 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15981 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15982 ac_cs_awk_cr='\\r'
15983 else
15984 ac_cs_awk_cr=$ac_cr
15985 fi
15986
15987 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15988 _ACEOF
15989
15990
15991 {
15992 echo "cat >conf$$subs.awk <<_ACEOF" &&
15993 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15994 echo "_ACEOF"
15995 } >conf$$subs.sh ||
15996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15997 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15998 ac_delim='%!_!# '
15999 for ac_last_try in false false false false false :; do
16000 . ./conf$$subs.sh ||
16001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16002
16003 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16004 if test $ac_delim_n = $ac_delim_num; then
16005 break
16006 elif $ac_last_try; then
16007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16008 else
16009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16010 fi
16011 done
16012 rm -f conf$$subs.sh
16013
16014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16015 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16016 _ACEOF
16017 sed -n '
16018 h
16019 s/^/S["/; s/!.*/"]=/
16020 p
16021 g
16022 s/^[^!]*!//
16023 :repl
16024 t repl
16025 s/'"$ac_delim"'$//
16026 t delim
16027 :nl
16028 h
16029 s/\(.\{148\}\)..*/\1/
16030 t more1
16031 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16032 p
16033 n
16034 b repl
16035 :more1
16036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16037 p
16038 g
16039 s/.\{148\}//
16040 t nl
16041 :delim
16042 h
16043 s/\(.\{148\}\)..*/\1/
16044 t more2
16045 s/["\\]/\\&/g; s/^/"/; s/$/"/
16046 p
16047 b
16048 :more2
16049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16050 p
16051 g
16052 s/.\{148\}//
16053 t delim
16054 ' <conf$$subs.awk | sed '
16055 /^[^""]/{
16056 N
16057 s/\n//
16058 }
16059 ' >>$CONFIG_STATUS || ac_write_fail=1
16060 rm -f conf$$subs.awk
16061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16062 _ACAWK
16063 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16064 for (key in S) S_is_set[key] = 1
16065 FS = ""
16066
16067 }
16068 {
16069 line = $ 0
16070 nfields = split(line, field, "@")
16071 substed = 0
16072 len = length(field[1])
16073 for (i = 2; i < nfields; i++) {
16074 key = field[i]
16075 keylen = length(key)
16076 if (S_is_set[key]) {
16077 value = S[key]
16078 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16079 len += length(value) + length(field[++i])
16080 substed = 1
16081 } else
16082 len += 1 + keylen
16083 }
16084
16085 print line
16086 }
16087
16088 _ACAWK
16089 _ACEOF
16090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16091 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16092 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16093 else
16094 cat
16095 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16096 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16097 _ACEOF
16098
16099 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16100 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16101 # trailing colons and then remove the whole line if VPATH becomes empty
16102 # (actually we leave an empty line to preserve line numbers).
16103 if test "x$srcdir" = x.; then
16104 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16105 h
16106 s///
16107 s/^/:/
16108 s/[ ]*$/:/
16109 s/:\$(srcdir):/:/g
16110 s/:\${srcdir}:/:/g
16111 s/:@srcdir@:/:/g
16112 s/^:*//
16113 s/:*$//
16114 x
16115 s/\(=[ ]*\).*/\1/
16116 G
16117 s/\n//
16118 s/^[^=]*=[ ]*$//
16119 }'
16120 fi
16121
16122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16123 fi # test -n "$CONFIG_FILES"
16124
16125 # Set up the scripts for CONFIG_HEADERS section.
16126 # No need to generate them if there are no CONFIG_HEADERS.
16127 # This happens for instance with './config.status Makefile'.
16128 if test -n "$CONFIG_HEADERS"; then
16129 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16130 BEGIN {
16131 _ACEOF
16132
16133 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16134 # here-document in config.status, that substitutes the proper values into
16135 # config.h.in to produce config.h.
16136
16137 # Create a delimiter string that does not exist in confdefs.h, to ease
16138 # handling of long lines.
16139 ac_delim='%!_!# '
16140 for ac_last_try in false false :; do
16141 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16142 if test -z "$ac_tt"; then
16143 break
16144 elif $ac_last_try; then
16145 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16146 else
16147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16148 fi
16149 done
16150
16151 # For the awk script, D is an array of macro values keyed by name,
16152 # likewise P contains macro parameters if any. Preserve backslash
16153 # newline sequences.
16154
16155 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16156 sed -n '
16157 s/.\{148\}/&'"$ac_delim"'/g
16158 t rset
16159 :rset
16160 s/^[ ]*#[ ]*define[ ][ ]*/ /
16161 t def
16162 d
16163 :def
16164 s/\\$//
16165 t bsnl
16166 s/["\\]/\\&/g
16167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16168 D["\1"]=" \3"/p
16169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16170 d
16171 :bsnl
16172 s/["\\]/\\&/g
16173 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16174 D["\1"]=" \3\\\\\\n"\\/p
16175 t cont
16176 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16177 t cont
16178 d
16179 :cont
16180 n
16181 s/.\{148\}/&'"$ac_delim"'/g
16182 t clear
16183 :clear
16184 s/\\$//
16185 t bsnlc
16186 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16187 d
16188 :bsnlc
16189 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16190 b cont
16191 ' <confdefs.h | sed '
16192 s/'"$ac_delim"'/"\\\
16193 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16194
16195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196 for (key in D) D_is_set[key] = 1
16197 FS = ""
16198 }
16199 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16200 line = \$ 0
16201 split(line, arg, " ")
16202 if (arg[1] == "#") {
16203 defundef = arg[2]
16204 mac1 = arg[3]
16205 } else {
16206 defundef = substr(arg[1], 2)
16207 mac1 = arg[2]
16208 }
16209 split(mac1, mac2, "(") #)
16210 macro = mac2[1]
16211 prefix = substr(line, 1, index(line, defundef) - 1)
16212 if (D_is_set[macro]) {
16213 # Preserve the white space surrounding the "#".
16214 print prefix "define", macro P[macro] D[macro]
16215 next
16216 } else {
16217 # Replace #undef with comments. This is necessary, for example,
16218 # in the case of _POSIX_SOURCE, which is predefined and required
16219 # on some systems where configure will not decide to define it.
16220 if (defundef == "undef") {
16221 print "/*", prefix defundef, macro, "*/"
16222 next
16223 }
16224 }
16225 }
16226 { print }
16227 _ACAWK
16228 _ACEOF
16229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16230 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16231 fi # test -n "$CONFIG_HEADERS"
16232
16233
16234 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16235 shift
16236 for ac_tag
16237 do
16238 case $ac_tag in
16239 :[FHLC]) ac_mode=$ac_tag; continue;;
16240 esac
16241 case $ac_mode$ac_tag in
16242 :[FHL]*:*);;
16243 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16244 :[FH]-) ac_tag=-:-;;
16245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16246 esac
16247 ac_save_IFS=$IFS
16248 IFS=:
16249 set x $ac_tag
16250 IFS=$ac_save_IFS
16251 shift
16252 ac_file=$1
16253 shift
16254
16255 case $ac_mode in
16256 :L) ac_source=$1;;
16257 :[FH])
16258 ac_file_inputs=
16259 for ac_f
16260 do
16261 case $ac_f in
16262 -) ac_f="$ac_tmp/stdin";;
16263 *) # Look for the file first in the build tree, then in the source tree
16264 # (if the path is not absolute). The absolute path cannot be DOS-style,
16265 # because $ac_f cannot contain ':'.
16266 test -f "$ac_f" ||
16267 case $ac_f in
16268 [\\/$]*) false;;
16269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16270 esac ||
16271 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16272 esac
16273 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16274 as_fn_append ac_file_inputs " '$ac_f'"
16275 done
16276
16277 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16278 # use $as_me), people would be surprised to read:
16279 # /* config.h. Generated by config.status. */
16280 configure_input='Generated from '`
16281 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16282 `' by configure.'
16283 if test x"$ac_file" != x-; then
16284 configure_input="$ac_file. $configure_input"
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16286 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16287 fi
16288 # Neutralize special characters interpreted by sed in replacement strings.
16289 case $configure_input in #(
16290 *\&* | *\|* | *\\* )
16291 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16292 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16293 *) ac_sed_conf_input=$configure_input;;
16294 esac
16295
16296 case $ac_tag in
16297 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16299 esac
16300 ;;
16301 esac
16302
16303 ac_dir=`$as_dirname -- "$ac_file" ||
16304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16305 X"$ac_file" : 'X\(//\)[^/]' \| \
16306 X"$ac_file" : 'X\(//\)$' \| \
16307 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16308 printf "%s\n" X"$ac_file" |
16309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16310 s//\1/
16311 q
16312 }
16313 /^X\(\/\/\)[^/].*/{
16314 s//\1/
16315 q
16316 }
16317 /^X\(\/\/\)$/{
16318 s//\1/
16319 q
16320 }
16321 /^X\(\/\).*/{
16322 s//\1/
16323 q
16324 }
16325 s/.*/./; q'`
16326 as_dir="$ac_dir"; as_fn_mkdir_p
16327 ac_builddir=.
16328
16329 case "$ac_dir" in
16330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16331 *)
16332 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16333 # A ".." for each directory in $ac_dir_suffix.
16334 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16335 case $ac_top_builddir_sub in
16336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16338 esac ;;
16339 esac
16340 ac_abs_top_builddir=$ac_pwd
16341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16342 # for backward compatibility:
16343 ac_top_builddir=$ac_top_build_prefix
16344
16345 case $srcdir in
16346 .) # We are building in place.
16347 ac_srcdir=.
16348 ac_top_srcdir=$ac_top_builddir_sub
16349 ac_abs_top_srcdir=$ac_pwd ;;
16350 [\\/]* | ?:[\\/]* ) # Absolute name.
16351 ac_srcdir=$srcdir$ac_dir_suffix;
16352 ac_top_srcdir=$srcdir
16353 ac_abs_top_srcdir=$srcdir ;;
16354 *) # Relative name.
16355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16356 ac_top_srcdir=$ac_top_build_prefix$srcdir
16357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16358 esac
16359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16360
16361
16362 case $ac_mode in
16363 :F)
16364 #
16365 # CONFIG_FILE
16366 #
16367
16368 case $INSTALL in
16369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16370 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16371 esac
16372 ac_MKDIR_P=$MKDIR_P
16373 case $MKDIR_P in
16374 [\\/$]* | ?:[\\/]* ) ;;
16375 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16376 esac
16377 _ACEOF
16378
16379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380 # If the template does not know about datarootdir, expand it.
16381 # FIXME: This hack should be removed a few years after 2.60.
16382 ac_datarootdir_hack=; ac_datarootdir_seen=
16383 ac_sed_dataroot='
16384 /datarootdir/ {
16385 p
16386 q
16387 }
16388 /@datadir@/p
16389 /@docdir@/p
16390 /@infodir@/p
16391 /@localedir@/p
16392 /@mandir@/p'
16393 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16394 *datarootdir*) ac_datarootdir_seen=yes;;
16395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16397 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16398 _ACEOF
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400 ac_datarootdir_hack='
16401 s&@datadir@&$datadir&g
16402 s&@docdir@&$docdir&g
16403 s&@infodir@&$infodir&g
16404 s&@localedir@&$localedir&g
16405 s&@mandir@&$mandir&g
16406 s&\\\${datarootdir}&$datarootdir&g' ;;
16407 esac
16408 _ACEOF
16409
16410 # Neutralize VPATH when '$srcdir' = '.'.
16411 # Shell code in configure.ac might set extrasub.
16412 # FIXME: do we really want to maintain this feature?
16413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16414 ac_sed_extra="$ac_vpsub
16415 $extrasub
16416 _ACEOF
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16418 :t
16419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16420 s|@configure_input@|$ac_sed_conf_input|;t t
16421 s&@top_builddir@&$ac_top_builddir_sub&;t t
16422 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16423 s&@srcdir@&$ac_srcdir&;t t
16424 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16425 s&@top_srcdir@&$ac_top_srcdir&;t t
16426 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16427 s&@builddir@&$ac_builddir&;t t
16428 s&@abs_builddir@&$ac_abs_builddir&;t t
16429 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16430 s&@INSTALL@&$ac_INSTALL&;t t
16431 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16432 $ac_datarootdir_hack
16433 "
16434 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16435 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16436
16437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16438 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16440 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16442 which seems to be undefined. Please make sure it is defined" >&5
16443 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16444 which seems to be undefined. Please make sure it is defined" >&2;}
16445
16446 rm -f "$ac_tmp/stdin"
16447 case $ac_file in
16448 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16449 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16450 esac \
16451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16452 ;;
16453 :H)
16454 #
16455 # CONFIG_HEADER
16456 #
16457 if test x"$ac_file" != x-; then
16458 {
16459 printf "%s\n" "/* $configure_input */" >&1 \
16460 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16461 } >"$ac_tmp/config.h" \
16462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16463 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16465 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16466 else
16467 rm -f "$ac_file"
16468 mv "$ac_tmp/config.h" "$ac_file" \
16469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16470 fi
16471 else
16472 printf "%s\n" "/* $configure_input */" >&1 \
16473 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16474 || as_fn_error $? "could not create -" "$LINENO" 5
16475 fi
16476 # Compute "$ac_file"'s index in $config_headers.
16477 _am_arg="$ac_file"
16478 _am_stamp_count=1
16479 for _am_header in $config_headers :; do
16480 case $_am_header in
16481 $_am_arg | $_am_arg:* )
16482 break ;;
16483 * )
16484 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16485 esac
16486 done
16487 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16488 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16489 X"$_am_arg" : 'X\(//\)[^/]' \| \
16490 X"$_am_arg" : 'X\(//\)$' \| \
16491 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16492 printf "%s\n" X"$_am_arg" |
16493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16494 s//\1/
16495 q
16496 }
16497 /^X\(\/\/\)[^/].*/{
16498 s//\1/
16499 q
16500 }
16501 /^X\(\/\/\)$/{
16502 s//\1/
16503 q
16504 }
16505 /^X\(\/\).*/{
16506 s//\1/
16507 q
16508 }
16509 s/.*/./; q'`/stamp-h$_am_stamp_count
16510 ;;
16511
16512 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16513 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16514 ;;
16515 esac
16516
16517
16518 case $ac_file$ac_mode in
16519 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16520 # Older Autoconf quotes --file arguments for eval, but not when files
16521 # are listed without --file. Let's play safe and only enable the eval
16522 # if we detect the quoting.
16523 # TODO: see whether this extra hack can be removed once we start
16524 # requiring Autoconf 2.70 or later.
16525 case $CONFIG_FILES in #(
16526 *\'*) :
16527 eval set x "$CONFIG_FILES" ;; #(
16528 *) :
16529 set x $CONFIG_FILES ;; #(
16530 *) :
16531 ;;
16532 esac
16533 shift
16534 # Used to flag and report bootstrapping failures.
16535 am_rc=0
16536 for am_mf
16537 do
16538 # Strip MF so we end up with the name of the file.
16539 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16540 # Check whether this is an Automake generated Makefile which includes
16541 # dependency-tracking related rules and includes.
16542 # Grep'ing the whole file directly is not great: AIX grep has a line
16543 # limit of 2048, but all sed's we know have understand at least 4000.
16544 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16545 || continue
16546 am_dirpart=`$as_dirname -- "$am_mf" ||
16547 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16548 X"$am_mf" : 'X\(//\)[^/]' \| \
16549 X"$am_mf" : 'X\(//\)$' \| \
16550 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16551 printf "%s\n" X"$am_mf" |
16552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16553 s//\1/
16554 q
16555 }
16556 /^X\(\/\/\)[^/].*/{
16557 s//\1/
16558 q
16559 }
16560 /^X\(\/\/\)$/{
16561 s//\1/
16562 q
16563 }
16564 /^X\(\/\).*/{
16565 s//\1/
16566 q
16567 }
16568 s/.*/./; q'`
16569 am_filepart=`$as_basename -- "$am_mf" ||
16570 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16571 X"$am_mf" : 'X\(//\)$' \| \
16572 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16573 printf "%s\n" X/"$am_mf" |
16574 sed '/^.*\/\([^/][^/]*\)\/*$/{
16575 s//\1/
16576 q
16577 }
16578 /^X\/\(\/\/\)$/{
16579 s//\1/
16580 q
16581 }
16582 /^X\/\(\/\).*/{
16583 s//\1/
16584 q
16585 }
16586 s/.*/./; q'`
16587 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16588 && sed -e '/# am--include-marker/d' "$am_filepart" \
16589 | $MAKE -f - am--depfiles" >&5
16590 (cd "$am_dirpart" \
16591 && sed -e '/# am--include-marker/d' "$am_filepart" \
16592 | $MAKE -f - am--depfiles) >&5 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } || am_rc=$?
16596 done
16597 if test $am_rc -ne 0; then
16598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16599 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16600 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16601 for automatic dependency tracking. If GNU make was not used, consider
16602 re-running the configure script with MAKE=\"gmake\" (or whatever is
16603 necessary). You can also try re-running configure with the
16604 '--disable-dependency-tracking' option to at least be able to build
16605 the package (albeit without support for automatic dependency tracking).
16606 See 'config.log' for more details" "$LINENO" 5; }
16607 fi
16608 { am_dirpart=; unset am_dirpart;}
16609 { am_filepart=; unset am_filepart;}
16610 { am_mf=; unset am_mf;}
16611 { am_rc=; unset am_rc;}
16612 rm -f conftest-deps.mk
16613 }
16614 ;;
16615 "libtool":C)
16616
16617 # See if we are running on zsh, and set the options that allow our
16618 # commands through without removal of \ escapes.
16619 if test -n "${ZSH_VERSION+set}"; then
16620 setopt NO_GLOB_SUBST
16621 fi
16622
16623 cfgfile=${ofile}T
16624 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16625 $RM "$cfgfile"
16626
16627 cat <<_LT_EOF >> "$cfgfile"
16628 #! $SHELL
16629 # Generated automatically by $as_me ($PACKAGE) $VERSION
16630 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16631 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16632
16633 # Provide generalized library-building support services.
16634 # Written by Gordon Matzigkeit, 1996
16635
16636 # Copyright (C) 2014 Free Software Foundation, Inc.
16637 # This is free software; see the source for copying conditions. There is NO
16638 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16639
16640 # GNU Libtool is free software; you can redistribute it and/or modify
16641 # it under the terms of the GNU General Public License as published by
16642 # the Free Software Foundation; either version 2 of of the License, or
16643 # (at your option) any later version.
16644 #
16645 # As a special exception to the GNU General Public License, if you
16646 # distribute this file as part of a program or library that is built
16647 # using GNU Libtool, you may include this file under the same
16648 # distribution terms that you use for the rest of that program.
16649 #
16650 # GNU Libtool is distributed in the hope that it will be useful, but
16651 # WITHOUT ANY WARRANTY; without even the implied warranty of
16652 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16653 # GNU General Public License for more details.
16654 #
16655 # You should have received a copy of the GNU General Public License
16656 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16657
16658
16659 # The names of the tagged configurations supported by this script.
16660 available_tags=''
16661
16662 # Configured defaults for sys_lib_dlsearch_path munging.
16663 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16664
16665 # ### BEGIN LIBTOOL CONFIG
16666
16667 # Which release of libtool.m4 was used?
16668 macro_version=$macro_version
16669 macro_revision=$macro_revision
16670
16671 # Whether or not to build shared libraries.
16672 build_libtool_libs=$enable_shared
16673
16674 # Whether or not to build static libraries.
16675 build_old_libs=$enable_static
16676
16677 # What type of objects to build.
16678 pic_mode=$pic_mode
16679
16680 # Whether or not to optimize for fast installation.
16681 fast_install=$enable_fast_install
16682
16683 # Shared archive member basename,for filename based shared library versioning on AIX.
16684 shared_archive_member_spec=$shared_archive_member_spec
16685
16686 # Shell to use when invoking shell scripts.
16687 SHELL=$lt_SHELL
16688
16689 # An echo program that protects backslashes.
16690 ECHO=$lt_ECHO
16691
16692 # The PATH separator for the build system.
16693 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16694
16695 # The host system.
16696 host_alias=$host_alias
16697 host=$host
16698 host_os=$host_os
16699
16700 # The build system.
16701 build_alias=$build_alias
16702 build=$build
16703 build_os=$build_os
16704
16705 # A sed program that does not truncate output.
16706 SED=$lt_SED
16707
16708 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16709 Xsed="\$SED -e 1s/^X//"
16710
16711 # A grep program that handles long lines.
16712 GREP=$lt_GREP
16713
16714 # An ERE matcher.
16715 EGREP=$lt_EGREP
16716
16717 # A literal string matcher.
16718 FGREP=$lt_FGREP
16719
16720 # A BSD- or MS-compatible name lister.
16721 NM=$lt_NM
16722
16723 # Whether we need soft or hard links.
16724 LN_S=$lt_LN_S
16725
16726 # What is the maximum length of a command?
16727 max_cmd_len=$max_cmd_len
16728
16729 # Object file suffix (normally "o").
16730 objext=$ac_objext
16731
16732 # Executable file suffix (normally "").
16733 exeext=$exeext
16734
16735 # whether the shell understands "unset".
16736 lt_unset=$lt_unset
16737
16738 # turn spaces into newlines.
16739 SP2NL=$lt_lt_SP2NL
16740
16741 # turn newlines into spaces.
16742 NL2SP=$lt_lt_NL2SP
16743
16744 # convert \$build file names to \$host format.
16745 to_host_file_cmd=$lt_cv_to_host_file_cmd
16746
16747 # convert \$build files to toolchain format.
16748 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16749
16750 # A file(cmd) program that detects file types.
16751 FILECMD=$lt_FILECMD
16752
16753 # An object symbol dumper.
16754 OBJDUMP=$lt_OBJDUMP
16755
16756 # Method to check whether dependent libraries are shared objects.
16757 deplibs_check_method=$lt_deplibs_check_method
16758
16759 # Command to use when deplibs_check_method = "file_magic".
16760 file_magic_cmd=$lt_file_magic_cmd
16761
16762 # How to find potential files when deplibs_check_method = "file_magic".
16763 file_magic_glob=$lt_file_magic_glob
16764
16765 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16766 want_nocaseglob=$lt_want_nocaseglob
16767
16768 # DLL creation program.
16769 DLLTOOL=$lt_DLLTOOL
16770
16771 # Command to associate shared and link libraries.
16772 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16773
16774 # The archiver.
16775 AR=$lt_AR
16776
16777 # Flags to create an archive (by configure).
16778 lt_ar_flags=$lt_ar_flags
16779
16780 # Flags to create an archive.
16781 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16782
16783 # How to feed a file listing to the archiver.
16784 archiver_list_spec=$lt_archiver_list_spec
16785
16786 # A symbol stripping program.
16787 STRIP=$lt_STRIP
16788
16789 # Commands used to install an old-style archive.
16790 RANLIB=$lt_RANLIB
16791 old_postinstall_cmds=$lt_old_postinstall_cmds
16792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16793
16794 # Whether to use a lock for old archive extraction.
16795 lock_old_archive_extraction=$lock_old_archive_extraction
16796
16797 # A C compiler.
16798 LTCC=$lt_CC
16799
16800 # LTCC compiler flags.
16801 LTCFLAGS=$lt_CFLAGS
16802
16803 # Take the output of nm and produce a listing of raw symbols and C names.
16804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16805
16806 # Transform the output of nm in a proper C declaration.
16807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16808
16809 # Transform the output of nm into a list of symbols to manually relocate.
16810 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16811
16812 # Transform the output of nm in a C name address pair.
16813 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16814
16815 # Transform the output of nm in a C name address pair when lib prefix is needed.
16816 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16817
16818 # The name lister interface.
16819 nm_interface=$lt_lt_cv_nm_interface
16820
16821 # Specify filename containing input files for \$NM.
16822 nm_file_list_spec=$lt_nm_file_list_spec
16823
16824 # The root where to search for dependent libraries,and where our libraries should be installed.
16825 lt_sysroot=$lt_sysroot
16826
16827 # Command to truncate a binary pipe.
16828 lt_truncate_bin=$lt_lt_cv_truncate_bin
16829
16830 # The name of the directory that contains temporary libtool files.
16831 objdir=$objdir
16832
16833 # Used to examine libraries when file_magic_cmd begins with "file".
16834 MAGIC_CMD=$MAGIC_CMD
16835
16836 # Must we lock files when doing compilation?
16837 need_locks=$lt_need_locks
16838
16839 # Manifest tool.
16840 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16841
16842 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16843 DSYMUTIL=$lt_DSYMUTIL
16844
16845 # Tool to change global to local symbols on Mac OS X.
16846 NMEDIT=$lt_NMEDIT
16847
16848 # Tool to manipulate fat objects and archives on Mac OS X.
16849 LIPO=$lt_LIPO
16850
16851 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16852 OTOOL=$lt_OTOOL
16853
16854 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16855 OTOOL64=$lt_OTOOL64
16856
16857 # Old archive suffix (normally "a").
16858 libext=$libext
16859
16860 # Shared library suffix (normally ".so").
16861 shrext_cmds=$lt_shrext_cmds
16862
16863 # The commands to extract the exported symbol list from a shared archive.
16864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16865
16866 # Variables whose values should be saved in libtool wrapper scripts and
16867 # restored at link time.
16868 variables_saved_for_relink=$lt_variables_saved_for_relink
16869
16870 # Do we need the "lib" prefix for modules?
16871 need_lib_prefix=$need_lib_prefix
16872
16873 # Do we need a version for libraries?
16874 need_version=$need_version
16875
16876 # Library versioning type.
16877 version_type=$version_type
16878
16879 # Shared library runtime path variable.
16880 runpath_var=$runpath_var
16881
16882 # Shared library path variable.
16883 shlibpath_var=$shlibpath_var
16884
16885 # Is shlibpath searched before the hard-coded library search path?
16886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16887
16888 # Format of library name prefix.
16889 libname_spec=$lt_libname_spec
16890
16891 # List of archive names. First name is the real one, the rest are links.
16892 # The last name is the one that the linker finds with -lNAME
16893 library_names_spec=$lt_library_names_spec
16894
16895 # The coded name of the library, if different from the real name.
16896 soname_spec=$lt_soname_spec
16897
16898 # Permission mode override for installation of shared libraries.
16899 install_override_mode=$lt_install_override_mode
16900
16901 # Command to use after installation of a shared archive.
16902 postinstall_cmds=$lt_postinstall_cmds
16903
16904 # Command to use after uninstallation of a shared archive.
16905 postuninstall_cmds=$lt_postuninstall_cmds
16906
16907 # Commands used to finish a libtool library installation in a directory.
16908 finish_cmds=$lt_finish_cmds
16909
16910 # As "finish_cmds", except a single script fragment to be evaled but
16911 # not shown.
16912 finish_eval=$lt_finish_eval
16913
16914 # Whether we should hardcode library paths into libraries.
16915 hardcode_into_libs=$hardcode_into_libs
16916
16917 # Compile-time system search path for libraries.
16918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16919
16920 # Detected run-time system search path for libraries.
16921 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16922
16923 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16924 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16925
16926 # Whether dlopen is supported.
16927 dlopen_support=$enable_dlopen
16928
16929 # Whether dlopen of programs is supported.
16930 dlopen_self=$enable_dlopen_self
16931
16932 # Whether dlopen of statically linked programs is supported.
16933 dlopen_self_static=$enable_dlopen_self_static
16934
16935 # Commands to strip libraries.
16936 old_striplib=$lt_old_striplib
16937 striplib=$lt_striplib
16938
16939
16940 # The linker used to build libraries.
16941 LD=$lt_LD
16942
16943 # How to create reloadable object files.
16944 reload_flag=$lt_reload_flag
16945 reload_cmds=$lt_reload_cmds
16946
16947 # Commands used to build an old-style archive.
16948 old_archive_cmds=$lt_old_archive_cmds
16949
16950 # A language specific compiler.
16951 CC=$lt_compiler
16952
16953 # Is the compiler the GNU compiler?
16954 with_gcc=$GCC
16955
16956 # Compiler flag to turn off builtin functions.
16957 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16958
16959 # Additional compiler flags for building library objects.
16960 pic_flag=$lt_lt_prog_compiler_pic
16961
16962 # How to pass a linker flag through the compiler.
16963 wl=$lt_lt_prog_compiler_wl
16964
16965 # Compiler flag to prevent dynamic linking.
16966 link_static_flag=$lt_lt_prog_compiler_static
16967
16968 # Does compiler simultaneously support -c and -o options?
16969 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16970
16971 # Whether or not to add -lc for building shared libraries.
16972 build_libtool_need_lc=$archive_cmds_need_lc
16973
16974 # Whether or not to disallow shared libs when runtime libs are static.
16975 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16976
16977 # Compiler flag to allow reflexive dlopens.
16978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16979
16980 # Compiler flag to generate shared objects directly from archives.
16981 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16982
16983 # Whether the compiler copes with passing no objects directly.
16984 compiler_needs_object=$lt_compiler_needs_object
16985
16986 # Create an old-style archive from a shared archive.
16987 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16988
16989 # Create a temporary old-style archive to link instead of a shared archive.
16990 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16991
16992 # Commands used to build a shared archive.
16993 archive_cmds=$lt_archive_cmds
16994 archive_expsym_cmds=$lt_archive_expsym_cmds
16995
16996 # Commands used to build a loadable module if different from building
16997 # a shared archive.
16998 module_cmds=$lt_module_cmds
16999 module_expsym_cmds=$lt_module_expsym_cmds
17000
17001 # Whether we are building with GNU ld or not.
17002 with_gnu_ld=$lt_with_gnu_ld
17003
17004 # Flag that allows shared libraries with undefined symbols to be built.
17005 allow_undefined_flag=$lt_allow_undefined_flag
17006
17007 # Flag that enforces no undefined symbols.
17008 no_undefined_flag=$lt_no_undefined_flag
17009
17010 # Flag to hardcode \$libdir into a binary during linking.
17011 # This must work even if \$libdir does not exist
17012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17013
17014 # Whether we need a single "-rpath" flag with a separated argument.
17015 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17016
17017 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17018 # DIR into the resulting binary.
17019 hardcode_direct=$hardcode_direct
17020
17021 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17022 # DIR into the resulting binary and the resulting library dependency is
17023 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17024 # library is relocated.
17025 hardcode_direct_absolute=$hardcode_direct_absolute
17026
17027 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17028 # into the resulting binary.
17029 hardcode_minus_L=$hardcode_minus_L
17030
17031 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17032 # into the resulting binary.
17033 hardcode_shlibpath_var=$hardcode_shlibpath_var
17034
17035 # Set to "yes" if building a shared library automatically hardcodes DIR
17036 # into the library and all subsequent libraries and executables linked
17037 # against it.
17038 hardcode_automatic=$hardcode_automatic
17039
17040 # Set to yes if linker adds runtime paths of dependent libraries
17041 # to runtime path list.
17042 inherit_rpath=$inherit_rpath
17043
17044 # Whether libtool must link a program against all its dependency libraries.
17045 link_all_deplibs=$link_all_deplibs
17046
17047 # Set to "yes" if exported symbols are required.
17048 always_export_symbols=$always_export_symbols
17049
17050 # The commands to list exported symbols.
17051 export_symbols_cmds=$lt_export_symbols_cmds
17052
17053 # Symbols that should not be listed in the preloaded symbols.
17054 exclude_expsyms=$lt_exclude_expsyms
17055
17056 # Symbols that must always be exported.
17057 include_expsyms=$lt_include_expsyms
17058
17059 # Commands necessary for linking programs (against libraries) with templates.
17060 prelink_cmds=$lt_prelink_cmds
17061
17062 # Commands necessary for finishing linking programs.
17063 postlink_cmds=$lt_postlink_cmds
17064
17065 # Specify filename containing input files.
17066 file_list_spec=$lt_file_list_spec
17067
17068 # How to hardcode a shared library path into an executable.
17069 hardcode_action=$hardcode_action
17070
17071 # ### END LIBTOOL CONFIG
17072
17073 _LT_EOF
17074
17075 cat <<'_LT_EOF' >> "$cfgfile"
17076
17077 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17078
17079 # func_munge_path_list VARIABLE PATH
17080 # -----------------------------------
17081 # VARIABLE is name of variable containing _space_ separated list of
17082 # directories to be munged by the contents of PATH, which is string
17083 # having a format:
17084 # "DIR[:DIR]:"
17085 # string "DIR[ DIR]" will be prepended to VARIABLE
17086 # ":DIR[:DIR]"
17087 # string "DIR[ DIR]" will be appended to VARIABLE
17088 # "DIRP[:DIRP]::[DIRA:]DIRA"
17089 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17090 # "DIRA[ DIRA]" will be appended to VARIABLE
17091 # "DIR[:DIR]"
17092 # VARIABLE will be replaced by "DIR[ DIR]"
17093 func_munge_path_list ()
17094 {
17095 case x$2 in
17096 x)
17097 ;;
17098 *:)
17099 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17100 ;;
17101 x:*)
17102 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17103 ;;
17104 *::*)
17105 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17106 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17107 ;;
17108 *)
17109 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17110 ;;
17111 esac
17112 }
17113
17114
17115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17116 func_cc_basename ()
17117 {
17118 for cc_temp in $*""; do
17119 case $cc_temp in
17120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17122 \-*) ;;
17123 *) break;;
17124 esac
17125 done
17126 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17127 }
17128
17129
17130 # ### END FUNCTIONS SHARED WITH CONFIGURE
17131
17132 _LT_EOF
17133
17134 case $host_os in
17135 aix3*)
17136 cat <<\_LT_EOF >> "$cfgfile"
17137 # AIX sometimes has problems with the GCC collect2 program. For some
17138 # reason, if we set the COLLECT_NAMES environment variable, the problems
17139 # vanish in a puff of smoke.
17140 if test set != "${COLLECT_NAMES+set}"; then
17141 COLLECT_NAMES=
17142 export COLLECT_NAMES
17143 fi
17144 _LT_EOF
17145 ;;
17146 esac
17147
17148
17149
17150 ltmain=$ac_aux_dir/ltmain.sh
17151
17152
17153 # We use sed instead of cat because bash on DJGPP gets confused if
17154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17155 # text mode, it properly converts lines to CR/LF. This bash problem
17156 # is reportedly fixed, but why not run on old versions too?
17157 $SED '$q' "$ltmain" >> "$cfgfile" \
17158 || (rm -f "$cfgfile"; exit 1)
17159
17160 mv -f "$cfgfile" "$ofile" ||
17161 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17162 chmod +x "$ofile"
17163
17164 ;;
17165
17166 esac
17167 done # for ac_tag
17168
17169
17170 as_fn_exit 0
17171 _ACEOF
17172 ac_clean_files=$ac_clean_files_save
17173
17174 test $ac_write_fail = 0 ||
17175 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17176
17177
17178 # configure is writing to config.log, and then calls config.status.
17179 # config.status does its own redirection, appending to config.log.
17180 # Unfortunately, on DOS this fails, as config.log is still kept open
17181 # by configure, so config.status won't be able to write to it; its
17182 # output is simply discarded. So we exec the FD to /dev/null,
17183 # effectively closing config.log, so it can be properly (re)opened and
17184 # appended to by config.status. When coming back to configure, we
17185 # need to make the FD available again.
17186 if test "$no_create" != yes; then
17187 ac_cs_success=:
17188 ac_config_status_args=
17189 test "$silent" = yes &&
17190 ac_config_status_args="$ac_config_status_args --quiet"
17191 exec 5>/dev/null
17192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17193 exec 5>>config.log
17194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17195 # would make configure fail if this is the last instruction.
17196 $ac_cs_success || as_fn_exit 1
17197 fi
17198 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17200 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17201 fi
17202
17203
17204 echo "
17205 Configuration for $PACKAGE $VERSION:
17206 -------------------------------------------
17207
17208 Install prefix: .........: $prefix
17209 inotify support (Linux) .: $have_inotify
17210
17211 Now type 'make' to build $PACKAGE $VERSION,
17212 and then 'make install' for installation.
17213 "
17214