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 libevdev 1.13.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/libevdev/libevdev/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://gitlab.freedesktop.org/libevdev/libevdev/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='libevdev'
617 PACKAGE_TARNAME='libevdev'
618 PACKAGE_VERSION='1.13.6'
619 PACKAGE_STRING='libevdev 1.13.6'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/libevdev/libevdev/issues/'
621 PACKAGE_URL='http://freedesktop.org/wiki/Software/libevdev/'
622
623 ac_unique_file="libevdev/libevdev.c"
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 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE
661 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE
662 HAVE_NM_FALSE
663 HAVE_NM_TRUE
664 pkgpyexecdir
665 pyexecdir
666 pkgpythondir
667 pythondir
668 PYTHON_EXEC_PREFIX
669 PYTHON_PREFIX
670 PYTHON_PLATFORM
671 PYTHON_VERSION
672 PYTHON
673 GCOV_LDFLAGS
674 GCOV_CFLAGS
675 GCOV_ENABLED_FALSE
676 GCOV_ENABLED_TRUE
677 HAVE_DOXYGEN_FALSE
678 HAVE_DOXYGEN_TRUE
679 DOXYGEN
680 GCC_CFLAGS
681 ENABLE_STATIC_LINK_TEST_FALSE
682 ENABLE_STATIC_LINK_TEST_TRUE
683 ENABLE_RUNTIME_TESTS_FALSE
684 ENABLE_RUNTIME_TESTS_TRUE
685 CHECK_LIBS
686 CHECK_CFLAGS
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 OS
691 GNU_LD_FLAGS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 DLLTOOL
703 OBJDUMP
704 FILECMD
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 LIBTOOL
723 LIBEVDEV_LT_VERSION
724 am__xargs_n
725 am__rm_f_notfound
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 CSCOPE
731 ETAGS
732 CTAGS
733 am__fastdepCC_FALSE
734 am__fastdepCC_TRUE
735 CCDEPMODE
736 am__nodep
737 AMDEPBACKSLASH
738 AMDEP_FALSE
739 AMDEP_TRUE
740 am__include
741 DEPDIR
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 OBJEXT
766 EXEEXT
767 ac_ct_CC
768 CPPFLAGS
769 LDFLAGS
770 CFLAGS
771 CC
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 runstatedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL
811 am__quote'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_dependency_tracking
816 enable_silent_rules
817 enable_shared
818 enable_static
819 enable_pic
820 with_pic
821 enable_fast_install
822 enable_aix_soname
823 with_aix_soname
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 enable_gcov
828 enable_coverity
829 with_python_sys_prefix
830 with_python_prefix
831 with_python_exec_prefix
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 LT_SYS_LIBRARY_PATH
842 PKG_CONFIG
843 PKG_CONFIG_PATH
844 PKG_CONFIG_LIBDIR
845 CHECK_CFLAGS
846 CHECK_LIBS
847 PYTHON'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 runstatedir='${localstatedir}/run'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
898
899 ac_prev=
900 ac_dashdash=
901 for ac_option
902 do
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
908 fi
909
910 case $ac_option in
911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *=) ac_optarg= ;;
913 *) ac_optarg=yes ;;
914 esac
915
916 case $ac_dashdash$ac_option in
917 --)
918 ac_dashdash=yes ;;
919
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 ac_prev=bindir ;;
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 bindir=$ac_optarg ;;
924
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
929
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
936
937 --config-cache | -C)
938 cache_file=config.cache ;;
939
940 -datadir | --datadir | --datadi | --datad)
941 ac_prev=datadir ;;
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
944
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
951
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: '$ac_useropt'"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=no ;;
967
968 -docdir | --docdir | --docdi | --doc | --do)
969 ac_prev=docdir ;;
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 docdir=$ac_optarg ;;
972
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 ac_prev=dvidir ;;
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 dvidir=$ac_optarg ;;
977
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: '$ac_useropt'"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
986 *"
987 "enable_$ac_useropt"
988 "*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=\$ac_optarg ;;
993
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1002
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1005 with_gas=yes ;;
1006
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1013
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1018
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 ac_prev=htmldir ;;
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 | --ht=*)
1023 htmldir=$ac_optarg ;;
1024
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1031
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 ac_prev=infodir ;;
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1036
1037 -libdir | --libdir | --libdi | --libd)
1038 ac_prev=libdir ;;
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1041
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1048
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1053
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1060
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 ac_prev=mandir ;;
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1065
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1068 with_fp=no ;;
1069
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1072 no_create=yes ;;
1073
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 no_recursion=yes ;;
1077
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1086
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 ac_prev=prefix ;;
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1091
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1098
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1105
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1122
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 ac_prev=pdfdir ;;
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1127
1128 -psdir | --psdir | --psdi | --psd | --ps)
1129 ac_prev=psdir ;;
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 psdir=$ac_optarg ;;
1132
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1135 silent=yes ;;
1136
1137 -runstatedir | --runstatedir | --runstatedi | --runstated \
1138 | --runstate | --runstat | --runsta | --runst | --runs \
1139 | --run | --ru | --r)
1140 ac_prev=runstatedir ;;
1141 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1142 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1143 | --run=* | --ru=* | --r=*)
1144 runstatedir=$ac_optarg ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: '$ac_useropt'"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: '$ac_useropt'"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) as_fn_error $? "unrecognized option: '$ac_option'
1242 Try '$0 --help' for more information"
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 ;;
1262
1263 esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1269 fi
1270
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277 fi
1278
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir runstatedir
1284 do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 done
1299
1300 # There might be people who depend on the old broken behavior: '$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 printf "%s\n" X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 'configure' configures libevdev 1.13.6 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print 'checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for '--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or '..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, 'make install' will install all the files in
1423 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than '$ac_default_prefix' using '--prefix',
1425 for instance '--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libevdev]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1451
1452 cat <<\_ACEOF
1453
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of libevdev 1.13.6:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-dependency-tracking
1476 do not reject slow dependency extractors
1477 --disable-dependency-tracking
1478 speeds up one-time build
1479 --enable-silent-rules less verbose build output (undo: "make V=1")
1480 --disable-silent-rules verbose build output (undo: "make V=0")
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --enable-aix-soname=aix|svr4|both
1488 shared library versioning (aka "SONAME") variant to
1489 provide on AIX, [default=aix].
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-gcov Whether to enable coverage testing
1492 (default:disabled)
1493 --enable-coverity Whether to build with coverity support (default:
1494 disabled)
1495
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1501 compiler's sysroot if not specified).
1502 --with-python-sys-prefix
1503 use Python's sys.prefix and sys.exec_prefix values
1504 --with-python_prefix override the default PYTHON_PREFIX
1505 --with-python_exec_prefix
1506 override the default PYTHON_EXEC_PREFIX
1507
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 LT_SYS_LIBRARY_PATH
1517 User-defined run-time library search path.
1518 PKG_CONFIG path to pkg-config utility
1519 PKG_CONFIG_PATH
1520 directories to add to pkg-config's search path
1521 PKG_CONFIG_LIBDIR
1522 path overriding pkg-config's built-in search path
1523 CHECK_CFLAGS
1524 C compiler flags for CHECK, overriding pkg-config
1525 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1526 PYTHON the Python interpreter
1527
1528 Use these variables to override the choices made by 'configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 Report bugs to <https://gitlab.freedesktop.org/libevdev/libevdev/issues/>.
1532 libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>.
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for configure.gnu first; this name is used for a wrapper for
1579 # Metaconfig's "Configure" on case-insensitive file systems.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 libevdev configure 1.13.6
1597 generated by GNU Autoconf 2.72
1598
1599 Copyright (C) 2023 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603 exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest.beam
1617 if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 printf "%s\n" "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext
1636 then :
1637 ac_retval=0
1638 else case e in #(
1639 e) printf "%s\n" "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1 ;;
1643 esac
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists and can be compiled using the include files in
1653 # INCLUDES, setting the cache variable VAR accordingly.
1654 ac_fn_c_check_header_compile ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 printf %s "checking for $2... " >&6; }
1659 if eval test \${$3+y}
1660 then :
1661 printf %s "(cached) " >&6
1662 else case e in #(
1663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1665 $4
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"
1669 then :
1670 eval "$3=yes"
1671 else case e in #(
1672 e) eval "$3=no" ;;
1673 esac
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1676 esac
1677 fi
1678 eval ac_res=\$$3
1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 printf "%s\n" "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683 } # ac_fn_c_check_header_compile
1684
1685 # ac_fn_c_try_link LINENO
1686 # -----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_link ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 printf "%s\n" "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1712 test -x conftest$ac_exeext
1713 }
1714 then :
1715 ac_retval=0
1716 else case e in #(
1717 e) printf "%s\n" "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1 ;;
1721 esac
1722 fi
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_link
1732
1733 # ac_fn_c_check_func LINENO FUNC VAR
1734 # ----------------------------------
1735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736 ac_fn_c_check_func ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 printf %s "checking for $2... " >&6; }
1741 if eval test \${$3+y}
1742 then :
1743 printf %s "(cached) " >&6
1744 else case e in #(
1745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749 #define $2 innocuous_$2
1750
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (void); below. */
1753
1754 #include <limits.h>
1755 #undef $2
1756
1757 /* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760 #ifdef __cplusplus
1761 extern "C"
1762 #endif
1763 char $2 (void);
1764 /* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767 #if defined __stub_$2 || defined __stub___$2
1768 choke me
1769 #endif
1770
1771 int
1772 main (void)
1773 {
1774 return $2 ();
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_link "$LINENO"
1780 then :
1781 eval "$3=yes"
1782 else case e in #(
1783 e) eval "$3=no" ;;
1784 esac
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1787 conftest$ac_exeext conftest.$ac_ext ;;
1788 esac
1789 fi
1790 eval ac_res=\$$3
1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 printf "%s\n" "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796 ac_configure_args_raw=
1797 for ac_arg
1798 do
1799 case $ac_arg in
1800 *\'*)
1801 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1802 esac
1803 as_fn_append ac_configure_args_raw " '$ac_arg'"
1804 done
1805
1806 case $ac_configure_args_raw in
1807 *$as_nl*)
1808 ac_safe_unquote= ;;
1809 *)
1810 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1811 ac_unsafe_a="$ac_unsafe_z#~"
1812 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1813 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1814 esac
1815
1816 cat >config.log <<_ACEOF
1817 This file contains any messages produced by compilers while
1818 running configure, to aid debugging if configure makes a mistake.
1819
1820 It was created by libevdev $as_me 1.13.6, which was
1821 generated by GNU Autoconf 2.72. Invocation command line was
1822
1823 $ $0$ac_configure_args_raw
1824
1825 _ACEOF
1826 exec 5>>config.log
1827 {
1828 cat <<_ASUNAME
1829 ## --------- ##
1830 ## Platform. ##
1831 ## --------- ##
1832
1833 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1834 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1835 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1836 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1837 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838
1839 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1840 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1841
1842 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1843 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1844 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1845 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1846 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1847 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1848 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1849
1850 _ASUNAME
1851
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855 IFS=$as_save_IFS
1856 case $as_dir in #(((
1857 '') as_dir=./ ;;
1858 */) ;;
1859 *) as_dir=$as_dir/ ;;
1860 esac
1861 printf "%s\n" "PATH: $as_dir"
1862 done
1863 IFS=$as_save_IFS
1864
1865 } >&5
1866
1867 cat >&5 <<_ACEOF
1868
1869
1870 ## ----------- ##
1871 ## Core tests. ##
1872 ## ----------- ##
1873
1874 _ACEOF
1875
1876
1877 # Keep a trace of the command line.
1878 # Strip out --no-create and --no-recursion so they do not pile up.
1879 # Strip out --silent because we don't want to record it for future runs.
1880 # Also quote any args containing shell meta-characters.
1881 # Make two passes to allow for proper duplicate-argument suppression.
1882 ac_configure_args=
1883 ac_configure_args0=
1884 ac_configure_args1=
1885 ac_must_keep_next=false
1886 for ac_pass in 1 2
1887 do
1888 for ac_arg
1889 do
1890 case $ac_arg in
1891 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1893 | -silent | --silent | --silen | --sile | --sil)
1894 continue ;;
1895 *\'*)
1896 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1897 esac
1898 case $ac_pass in
1899 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1900 2)
1901 as_fn_append ac_configure_args1 " '$ac_arg'"
1902 if test $ac_must_keep_next = true; then
1903 ac_must_keep_next=false # Got value, back to normal.
1904 else
1905 case $ac_arg in
1906 *=* | --config-cache | -C | -disable-* | --disable-* \
1907 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1908 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1909 | -with-* | --with-* | -without-* | --without-* | --x)
1910 case "$ac_configure_args0 " in
1911 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1912 esac
1913 ;;
1914 -* ) ac_must_keep_next=true ;;
1915 esac
1916 fi
1917 as_fn_append ac_configure_args " '$ac_arg'"
1918 ;;
1919 esac
1920 done
1921 done
1922 { ac_configure_args0=; unset ac_configure_args0;}
1923 { ac_configure_args1=; unset ac_configure_args1;}
1924
1925 # When interrupted or exit'd, cleanup temporary files, and complete
1926 # config.log. We remove comments because anyway the quotes in there
1927 # would cause problems or look ugly.
1928 # WARNING: Use '\'' to represent an apostrophe within the trap.
1929 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1930 trap 'exit_status=$?
1931 # Sanitize IFS.
1932 IFS=" "" $as_nl"
1933 # Save into config.log some information that might help in debugging.
1934 {
1935 echo
1936
1937 printf "%s\n" "## ---------------- ##
1938 ## Cache variables. ##
1939 ## ---------------- ##"
1940 echo
1941 # The following way of writing the cache mishandles newlines in values,
1942 (
1943 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1944 eval ac_val=\$$ac_var
1945 case $ac_val in #(
1946 *${as_nl}*)
1947 case $ac_var in #(
1948 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1949 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1950 esac
1951 case $ac_var in #(
1952 _ | IFS | as_nl) ;; #(
1953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1954 *) { eval $ac_var=; unset $ac_var;} ;;
1955 esac ;;
1956 esac
1957 done
1958 (set) 2>&1 |
1959 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1960 *${as_nl}ac_space=\ *)
1961 sed -n \
1962 "s/'\''/'\''\\\\'\'''\''/g;
1963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1964 ;; #(
1965 *)
1966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1967 ;;
1968 esac |
1969 sort
1970 )
1971 echo
1972
1973 printf "%s\n" "## ----------------- ##
1974 ## Output variables. ##
1975 ## ----------------- ##"
1976 echo
1977 for ac_var in $ac_subst_vars
1978 do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in
1981 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 esac
1983 printf "%s\n" "$ac_var='\''$ac_val'\''"
1984 done | sort
1985 echo
1986
1987 if test -n "$ac_subst_files"; then
1988 printf "%s\n" "## ------------------- ##
1989 ## File substitutions. ##
1990 ## ------------------- ##"
1991 echo
1992 for ac_var in $ac_subst_files
1993 do
1994 eval ac_val=\$$ac_var
1995 case $ac_val in
1996 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 esac
1998 printf "%s\n" "$ac_var='\''$ac_val'\''"
1999 done | sort
2000 echo
2001 fi
2002
2003 if test -s confdefs.h; then
2004 printf "%s\n" "## ----------- ##
2005 ## confdefs.h. ##
2006 ## ----------- ##"
2007 echo
2008 cat confdefs.h
2009 echo
2010 fi
2011 test "$ac_signal" != 0 &&
2012 printf "%s\n" "$as_me: caught signal $ac_signal"
2013 printf "%s\n" "$as_me: exit $exit_status"
2014 } >&5
2015 rm -f core *.core core.conftest.* &&
2016 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2017 exit $exit_status
2018 ' 0
2019 for ac_signal in 1 2 13 15; do
2020 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2021 done
2022 ac_signal=0
2023
2024 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2025 rm -f -r conftest* confdefs.h
2026
2027 printf "%s\n" "/* confdefs.h */" > confdefs.h
2028
2029 # Predefined preprocessor variables.
2030
2031 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2032
2033 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2034
2035 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2036
2037 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2038
2039 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2040
2041 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2042
2043
2044 # Let the site file select an alternate cache file if it wants to.
2045 # Prefer an explicitly selected file to automatically selected ones.
2046 if test -n "$CONFIG_SITE"; then
2047 ac_site_files="$CONFIG_SITE"
2048 elif test "x$prefix" != xNONE; then
2049 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2050 else
2051 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2052 fi
2053
2054 for ac_site_file in $ac_site_files
2055 do
2056 case $ac_site_file in #(
2057 */*) :
2058 ;; #(
2059 *) :
2060 ac_site_file=./$ac_site_file ;;
2061 esac
2062 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2064 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2065 sed 's/^/| /' "$ac_site_file" >&5
2066 . "$ac_site_file" \
2067 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2068 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2069 as_fn_error $? "failed to load site script $ac_site_file
2070 See 'config.log' for more details" "$LINENO" 5; }
2071 fi
2072 done
2073
2074 if test -r "$cache_file"; then
2075 # Some versions of bash will fail to source /dev/null (special files
2076 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2080 case $cache_file in
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
2083 esac
2084 fi
2085 else
2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2088 >$cache_file
2089 fi
2090
2091 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2092 # Test code for whether the C compiler supports C89 (global declarations)
2093 ac_c_conftest_c89_globals='
2094 /* Does the compiler advertise C89 conformance?
2095 Do not test the value of __STDC__, because some compilers set it to 0
2096 while being otherwise adequately conformant. */
2097 #if !defined __STDC__
2098 # error "Compiler does not advertise C89 conformance"
2099 #endif
2100
2101 #include <stddef.h>
2102 #include <stdarg.h>
2103 struct stat;
2104 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2105 struct buf { int x; };
2106 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2107 static char *e (char **p, int i)
2108 {
2109 return p[i];
2110 }
2111 static char *f (char * (*g) (char **, int), char **p, ...)
2112 {
2113 char *s;
2114 va_list v;
2115 va_start (v,p);
2116 s = g (p, va_arg (v,int));
2117 va_end (v);
2118 return s;
2119 }
2120
2121 /* C89 style stringification. */
2122 #define noexpand_stringify(a) #a
2123 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2124
2125 /* C89 style token pasting. Exercises some of the corner cases that
2126 e.g. old MSVC gets wrong, but not very hard. */
2127 #define noexpand_concat(a,b) a##b
2128 #define expand_concat(a,b) noexpand_concat(a,b)
2129 extern int vA;
2130 extern int vbee;
2131 #define aye A
2132 #define bee B
2133 int *pvA = &expand_concat(v,aye);
2134 int *pvbee = &noexpand_concat(v,bee);
2135
2136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2137 function prototypes and stuff, but not \xHH hex character constants.
2138 These do not provoke an error unfortunately, instead are silently treated
2139 as an "x". The following induces an error, until -std is added to get
2140 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2141 array size at least. It is necessary to write \x00 == 0 to get something
2142 that is true only with -std. */
2143 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2144
2145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2146 inside strings and character constants. */
2147 #define FOO(x) '\''x'\''
2148 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2149
2150 int test (int i, double x);
2151 struct s1 {int (*f) (int a);};
2152 struct s2 {int (*f) (double a);};
2153 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2154 int, int);'
2155
2156 # Test code for whether the C compiler supports C89 (body of main).
2157 ac_c_conftest_c89_main='
2158 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2159 '
2160
2161 # Test code for whether the C compiler supports C99 (global declarations)
2162 ac_c_conftest_c99_globals='
2163 /* Does the compiler advertise C99 conformance? */
2164 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2165 # error "Compiler does not advertise C99 conformance"
2166 #endif
2167
2168 // See if C++-style comments work.
2169
2170 #include <stdbool.h>
2171 extern int puts (const char *);
2172 extern int printf (const char *, ...);
2173 extern int dprintf (int, const char *, ...);
2174 extern void *malloc (size_t);
2175 extern void free (void *);
2176
2177 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2178 // dprintf is used instead of fprintf to avoid needing to declare
2179 // FILE and stderr.
2180 #define debug(...) dprintf (2, __VA_ARGS__)
2181 #define showlist(...) puts (#__VA_ARGS__)
2182 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2183 static void
2184 test_varargs_macros (void)
2185 {
2186 int x = 1234;
2187 int y = 5678;
2188 debug ("Flag");
2189 debug ("X = %d\n", x);
2190 showlist (The first, second, and third items.);
2191 report (x>y, "x is %d but y is %d", x, y);
2192 }
2193
2194 // Check long long types.
2195 #define BIG64 18446744073709551615ull
2196 #define BIG32 4294967295ul
2197 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2198 #if !BIG_OK
2199 #error "your preprocessor is broken"
2200 #endif
2201 #if BIG_OK
2202 #else
2203 #error "your preprocessor is broken"
2204 #endif
2205 static long long int bignum = -9223372036854775807LL;
2206 static unsigned long long int ubignum = BIG64;
2207
2208 struct incomplete_array
2209 {
2210 int datasize;
2211 double data[];
2212 };
2213
2214 struct named_init {
2215 int number;
2216 const wchar_t *name;
2217 double average;
2218 };
2219
2220 typedef const char *ccp;
2221
2222 static inline int
2223 test_restrict (ccp restrict text)
2224 {
2225 // Iterate through items via the restricted pointer.
2226 // Also check for declarations in for loops.
2227 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2228 continue;
2229 return 0;
2230 }
2231
2232 // Check varargs and va_copy.
2233 static bool
2234 test_varargs (const char *format, ...)
2235 {
2236 va_list args;
2237 va_start (args, format);
2238 va_list args_copy;
2239 va_copy (args_copy, args);
2240
2241 const char *str = "";
2242 int number = 0;
2243 float fnumber = 0;
2244
2245 while (*format)
2246 {
2247 switch (*format++)
2248 {
2249 case '\''s'\'': // string
2250 str = va_arg (args_copy, const char *);
2251 break;
2252 case '\''d'\'': // int
2253 number = va_arg (args_copy, int);
2254 break;
2255 case '\''f'\'': // float
2256 fnumber = va_arg (args_copy, double);
2257 break;
2258 default:
2259 break;
2260 }
2261 }
2262 va_end (args_copy);
2263 va_end (args);
2264
2265 return *str && number && fnumber;
2266 }
2267 '
2268
2269 # Test code for whether the C compiler supports C99 (body of main).
2270 ac_c_conftest_c99_main='
2271 // Check bool.
2272 _Bool success = false;
2273 success |= (argc != 0);
2274
2275 // Check restrict.
2276 if (test_restrict ("String literal") == 0)
2277 success = true;
2278 char *restrict newvar = "Another string";
2279
2280 // Check varargs.
2281 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2282 test_varargs_macros ();
2283
2284 // Check flexible array members.
2285 struct incomplete_array *ia =
2286 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2287 ia->datasize = 10;
2288 for (int i = 0; i < ia->datasize; ++i)
2289 ia->data[i] = i * 1.234;
2290 // Work around memory leak warnings.
2291 free (ia);
2292
2293 // Check named initializers.
2294 struct named_init ni = {
2295 .number = 34,
2296 .name = L"Test wide string",
2297 .average = 543.34343,
2298 };
2299
2300 ni.number = 58;
2301
2302 int dynamic_array[ni.number];
2303 dynamic_array[0] = argv[0][0];
2304 dynamic_array[ni.number - 1] = 543;
2305
2306 // work around unused variable warnings
2307 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2308 || dynamic_array[ni.number - 1] != 543);
2309 '
2310
2311 # Test code for whether the C compiler supports C11 (global declarations)
2312 ac_c_conftest_c11_globals='
2313 /* Does the compiler advertise C11 conformance? */
2314 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2315 # error "Compiler does not advertise C11 conformance"
2316 #endif
2317
2318 // Check _Alignas.
2319 char _Alignas (double) aligned_as_double;
2320 char _Alignas (0) no_special_alignment;
2321 extern char aligned_as_int;
2322 char _Alignas (0) _Alignas (int) aligned_as_int;
2323
2324 // Check _Alignof.
2325 enum
2326 {
2327 int_alignment = _Alignof (int),
2328 int_array_alignment = _Alignof (int[100]),
2329 char_alignment = _Alignof (char)
2330 };
2331 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2332
2333 // Check _Noreturn.
2334 int _Noreturn does_not_return (void) { for (;;) continue; }
2335
2336 // Check _Static_assert.
2337 struct test_static_assert
2338 {
2339 int x;
2340 _Static_assert (sizeof (int) <= sizeof (long int),
2341 "_Static_assert does not work in struct");
2342 long int y;
2343 };
2344
2345 // Check UTF-8 literals.
2346 #define u8 syntax error!
2347 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2348
2349 // Check duplicate typedefs.
2350 typedef long *long_ptr;
2351 typedef long int *long_ptr;
2352 typedef long_ptr long_ptr;
2353
2354 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2355 struct anonymous
2356 {
2357 union {
2358 struct { int i; int j; };
2359 struct { int k; long int l; } w;
2360 };
2361 int m;
2362 } v1;
2363 '
2364
2365 # Test code for whether the C compiler supports C11 (body of main).
2366 ac_c_conftest_c11_main='
2367 _Static_assert ((offsetof (struct anonymous, i)
2368 == offsetof (struct anonymous, w.k)),
2369 "Anonymous union alignment botch");
2370 v1.i = 2;
2371 v1.w.k = 5;
2372 ok |= v1.i != 5;
2373 '
2374
2375 # Test code for whether the C compiler supports C11 (complete).
2376 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2377 ${ac_c_conftest_c99_globals}
2378 ${ac_c_conftest_c11_globals}
2379
2380 int
2381 main (int argc, char **argv)
2382 {
2383 int ok = 0;
2384 ${ac_c_conftest_c89_main}
2385 ${ac_c_conftest_c99_main}
2386 ${ac_c_conftest_c11_main}
2387 return ok;
2388 }
2389 "
2390
2391 # Test code for whether the C compiler supports C99 (complete).
2392 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2393 ${ac_c_conftest_c99_globals}
2394
2395 int
2396 main (int argc, char **argv)
2397 {
2398 int ok = 0;
2399 ${ac_c_conftest_c89_main}
2400 ${ac_c_conftest_c99_main}
2401 return ok;
2402 }
2403 "
2404
2405 # Test code for whether the C compiler supports C89 (complete).
2406 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2407
2408 int
2409 main (int argc, char **argv)
2410 {
2411 int ok = 0;
2412 ${ac_c_conftest_c89_main}
2413 return ok;
2414 }
2415 "
2416
2417 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2418 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2419 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2420 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2421 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2422 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2423 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2424 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2425 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2426 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2427
2428 # Auxiliary files required by this configure script.
2429 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2430
2431 # Locations in which to look for auxiliary files.
2432 ac_aux_dir_candidates="${srcdir}/build-aux"
2433
2434 # Search for a directory containing all of the required auxiliary files,
2435 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2436 # If we don't find one directory that contains all the files we need,
2437 # we report the set of missing files from the *first* directory in
2438 # $ac_aux_dir_candidates and give up.
2439 ac_missing_aux_files=""
2440 ac_first_candidate=:
2441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 as_found=false
2444 for as_dir in $ac_aux_dir_candidates
2445 do
2446 IFS=$as_save_IFS
2447 case $as_dir in #(((
2448 '') as_dir=./ ;;
2449 */) ;;
2450 *) as_dir=$as_dir/ ;;
2451 esac
2452 as_found=:
2453
2454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2455 ac_aux_dir_found=yes
2456 ac_install_sh=
2457 for ac_aux in $ac_aux_files
2458 do
2459 # As a special case, if "install-sh" is required, that requirement
2460 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2461 # and $ac_install_sh is set appropriately for whichever one is found.
2462 if test x"$ac_aux" = x"install-sh"
2463 then
2464 if test -f "${as_dir}install-sh"; then
2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2466 ac_install_sh="${as_dir}install-sh -c"
2467 elif test -f "${as_dir}install.sh"; then
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2469 ac_install_sh="${as_dir}install.sh -c"
2470 elif test -f "${as_dir}shtool"; then
2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2472 ac_install_sh="${as_dir}shtool install -c"
2473 else
2474 ac_aux_dir_found=no
2475 if $ac_first_candidate; then
2476 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2477 else
2478 break
2479 fi
2480 fi
2481 else
2482 if test -f "${as_dir}${ac_aux}"; then
2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2484 else
2485 ac_aux_dir_found=no
2486 if $ac_first_candidate; then
2487 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2488 else
2489 break
2490 fi
2491 fi
2492 fi
2493 done
2494 if test "$ac_aux_dir_found" = yes; then
2495 ac_aux_dir="$as_dir"
2496 break
2497 fi
2498 ac_first_candidate=false
2499
2500 as_found=false
2501 done
2502 IFS=$as_save_IFS
2503 if $as_found
2504 then :
2505
2506 else case e in #(
2507 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2508 esac
2509 fi
2510
2511
2512 # These three variables are undocumented and unsupported,
2513 # and are intended to be withdrawn in a future Autoconf release.
2514 # They can cause serious problems if a builder's source tree is in a directory
2515 # whose full name contains unusual characters.
2516 if test -f "${ac_aux_dir}config.guess"; then
2517 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2518 fi
2519 if test -f "${ac_aux_dir}config.sub"; then
2520 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2521 fi
2522 if test -f "$ac_aux_dir/configure"; then
2523 ac_configure="$SHELL ${ac_aux_dir}configure"
2524 fi
2525
2526 # Check that the precious variables saved in the cache have kept the same
2527 # value.
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2535 set,)
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2537 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,set)
2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2541 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,);;
2544 *)
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2551 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2555 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2557 fi
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2559 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2561 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac
2574 fi
2575 done
2576 if $ac_cache_corrupted; then
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2578 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2582 and start over" "$LINENO" 5
2583 fi
2584 ## -------------------- ##
2585 ## Main body of script. ##
2586 ## -------------------- ##
2587
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
2594
2595
2596
2597 ac_config_headers="$ac_config_headers config.h"
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612 # Expand $ac_aux_dir to an absolute path.
2613 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2614
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2622 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 printf %s "checking for $ac_word... " >&6; }
2625 if test ${ac_cv_prog_CC+y}
2626 then :
2627 printf %s "(cached) " >&6
2628 else case e in #(
2629 e) if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 case $as_dir in #(((
2637 '') as_dir=./ ;;
2638 */) ;;
2639 *) as_dir=$as_dir/ ;;
2640 esac
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi ;;
2652 esac
2653 fi
2654 CC=$ac_cv_prog_CC
2655 if test -n "$CC"; then
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2657 printf "%s\n" "$CC" >&6; }
2658 else
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 printf "%s\n" "no" >&6; }
2661 fi
2662
2663
2664 fi
2665 if test -z "$ac_cv_prog_CC"; then
2666 ac_ct_CC=$CC
2667 # Extract the first word of "gcc", so it can be a program name with args.
2668 set dummy gcc; ac_word=$2
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 printf %s "checking for $ac_word... " >&6; }
2671 if test ${ac_cv_prog_ac_ct_CC+y}
2672 then :
2673 printf %s "(cached) " >&6
2674 else case e in #(
2675 e) if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681 IFS=$as_save_IFS
2682 case $as_dir in #(((
2683 '') as_dir=./ ;;
2684 */) ;;
2685 *) as_dir=$as_dir/ ;;
2686 esac
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_ac_ct_CC="gcc"
2690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi ;;
2698 esac
2699 fi
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2703 printf "%s\n" "$ac_ct_CC" >&6; }
2704 else
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 printf "%s\n" "no" >&6; }
2707 fi
2708
2709 if test "x$ac_ct_CC" = x; then
2710 CC=""
2711 else
2712 case $cross_compiling:$ac_tool_warned in
2713 yes:)
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716 ac_tool_warned=yes ;;
2717 esac
2718 CC=$ac_ct_CC
2719 fi
2720 else
2721 CC="$ac_cv_prog_CC"
2722 fi
2723
2724 if test -z "$CC"; then
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}cc; ac_word=$2
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 printf %s "checking for $ac_word... " >&6; }
2730 if test ${ac_cv_prog_CC+y}
2731 then :
2732 printf %s "(cached) " >&6
2733 else case e in #(
2734 e) if test -n "$CC"; then
2735 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 case $as_dir in #(((
2742 '') as_dir=./ ;;
2743 */) ;;
2744 *) as_dir=$as_dir/ ;;
2745 esac
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_CC="${ac_tool_prefix}cc"
2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi ;;
2757 esac
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 printf "%s\n" "$CC" >&6; }
2763 else
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 printf "%s\n" "no" >&6; }
2766 fi
2767
2768
2769 fi
2770 fi
2771 if test -z "$CC"; then
2772 # Extract the first word of "cc", so it can be a program name with args.
2773 set dummy cc; ac_word=$2
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 printf %s "checking for $ac_word... " >&6; }
2776 if test ${ac_cv_prog_CC+y}
2777 then :
2778 printf %s "(cached) " >&6
2779 else case e in #(
2780 e) if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 ac_prog_rejected=no
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 case $as_dir in #(((
2789 '') as_dir=./ ;;
2790 */) ;;
2791 *) as_dir=$as_dir/ ;;
2792 esac
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2795 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796 ac_prog_rejected=yes
2797 continue
2798 fi
2799 ac_cv_prog_CC="cc"
2800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 if test $ac_prog_rejected = yes; then
2808 # We found a bogon in the path, so make sure we never use it.
2809 set dummy $ac_cv_prog_CC
2810 shift
2811 if test $# != 0; then
2812 # We chose a different compiler from the bogus one.
2813 # However, it has the same basename, so the bogon will be chosen
2814 # first if we set CC to just the basename; use the full file name.
2815 shift
2816 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2817 fi
2818 fi
2819 fi ;;
2820 esac
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 printf "%s\n" "$CC" >&6; }
2826 else
2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 printf "%s\n" "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog in cl.exe
2836 do
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 printf %s "checking for $ac_word... " >&6; }
2841 if test ${ac_cv_prog_CC+y}
2842 then :
2843 printf %s "(cached) " >&6
2844 else case e in #(
2845 e) if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851 IFS=$as_save_IFS
2852 case $as_dir in #(((
2853 '') as_dir=./ ;;
2854 */) ;;
2855 *) as_dir=$as_dir/ ;;
2856 esac
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi ;;
2868 esac
2869 fi
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 printf "%s\n" "$CC" >&6; }
2874 else
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 printf "%s\n" "no" >&6; }
2877 fi
2878
2879
2880 test -n "$CC" && break
2881 done
2882 fi
2883 if test -z "$CC"; then
2884 ac_ct_CC=$CC
2885 for ac_prog in cl.exe
2886 do
2887 # Extract the first word of "$ac_prog", so it can be a program name with args.
2888 set dummy $ac_prog; ac_word=$2
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 printf %s "checking for $ac_word... " >&6; }
2891 if test ${ac_cv_prog_ac_ct_CC+y}
2892 then :
2893 printf %s "(cached) " >&6
2894 else case e in #(
2895 e) if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 case $as_dir in #(((
2903 '') as_dir=./ ;;
2904 */) ;;
2905 *) as_dir=$as_dir/ ;;
2906 esac
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_ac_ct_CC="$ac_prog"
2910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi ;;
2918 esac
2919 fi
2920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921 if test -n "$ac_ct_CC"; then
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2923 printf "%s\n" "$ac_ct_CC" >&6; }
2924 else
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 printf "%s\n" "no" >&6; }
2927 fi
2928
2929
2930 test -n "$ac_ct_CC" && break
2931 done
2932
2933 if test "x$ac_ct_CC" = x; then
2934 CC=""
2935 else
2936 case $cross_compiling:$ac_tool_warned in
2937 yes:)
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2941 esac
2942 CC=$ac_ct_CC
2943 fi
2944 fi
2945
2946 fi
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}clang; ac_word=$2
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 printf %s "checking for $ac_word... " >&6; }
2953 if test ${ac_cv_prog_CC+y}
2954 then :
2955 printf %s "(cached) " >&6
2956 else case e in #(
2957 e) if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 case $as_dir in #(((
2965 '') as_dir=./ ;;
2966 */) ;;
2967 *) as_dir=$as_dir/ ;;
2968 esac
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_CC="${ac_tool_prefix}clang"
2972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi ;;
2980 esac
2981 fi
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 printf "%s\n" "$CC" >&6; }
2986 else
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 printf "%s\n" "no" >&6; }
2989 fi
2990
2991
2992 fi
2993 if test -z "$ac_cv_prog_CC"; then
2994 ac_ct_CC=$CC
2995 # Extract the first word of "clang", so it can be a program name with args.
2996 set dummy clang; ac_word=$2
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 printf %s "checking for $ac_word... " >&6; }
2999 if test ${ac_cv_prog_ac_ct_CC+y}
3000 then :
3001 printf %s "(cached) " >&6
3002 else case e in #(
3003 e) if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009 IFS=$as_save_IFS
3010 case $as_dir in #(((
3011 '') as_dir=./ ;;
3012 */) ;;
3013 *) as_dir=$as_dir/ ;;
3014 esac
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_CC="clang"
3018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi ;;
3026 esac
3027 fi
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031 printf "%s\n" "$ac_ct_CC" >&6; }
3032 else
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 printf "%s\n" "no" >&6; }
3035 fi
3036
3037 if test "x$ac_ct_CC" = x; then
3038 CC=""
3039 else
3040 case $cross_compiling:$ac_tool_warned in
3041 yes:)
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046 CC=$ac_ct_CC
3047 fi
3048 else
3049 CC="$ac_cv_prog_CC"
3050 fi
3051
3052 fi
3053
3054
3055 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3056 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3057 as_fn_error $? "no acceptable C compiler found in \$PATH
3058 See 'config.log' for more details" "$LINENO" 5; }
3059
3060 # Provide some information about the compiler.
3061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3062 set X $ac_compile
3063 ac_compiler=$2
3064 for ac_option in --version -v -V -qversion -version; do
3065 { { ac_try="$ac_compiler $ac_option >&5"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 printf "%s\n" "$ac_try_echo"; } >&5
3072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3073 ac_status=$?
3074 if test -s conftest.err; then
3075 sed '10a\
3076 ... rest of stderr output deleted ...
3077 10q' conftest.err >conftest.er1
3078 cat conftest.er1 >&5
3079 fi
3080 rm -f conftest.er1 conftest.err
3081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }
3083 done
3084
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3087
3088 int
3089 main (void)
3090 {
3091
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 ac_clean_files_save=$ac_clean_files
3097 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3098 # Try to create an executable without -o first, disregard a.out.
3099 # It will help us diagnose broken compilers, and finding out an intuition
3100 # of exeext.
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3102 printf %s "checking whether the C compiler works... " >&6; }
3103 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3104
3105 # The possible output files:
3106 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3107
3108 ac_rmfiles=
3109 for ac_file in $ac_files
3110 do
3111 case $ac_file in
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3114 esac
3115 done
3116 rm -f $ac_rmfiles
3117
3118 if { { ac_try="$ac_link_default"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124 printf "%s\n" "$ac_try_echo"; } >&5
3125 (eval "$ac_link_default") 2>&5
3126 ac_status=$?
3127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }
3129 then :
3130 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3131 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3133 # so that the user can short-circuit this test for compilers unknown to
3134 # Autoconf.
3135 for ac_file in $ac_files ''
3136 do
3137 test -f "$ac_file" || continue
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140 ;;
3141 [ab].out )
3142 # We found the default executable, but exeext='' is most
3143 # certainly right.
3144 break;;
3145 *.* )
3146 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3147 then :; else
3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 fi
3150 # We set ac_cv_exeext here because the later test for it is not
3151 # safe: cross compilers may not add the suffix if given an '-o'
3152 # argument, so we may need to know it at that point already.
3153 # Even if this section looks crufty: it has the advantage of
3154 # actually working.
3155 break;;
3156 * )
3157 break;;
3158 esac
3159 done
3160 test "$ac_cv_exeext" = no && ac_cv_exeext=
3161
3162 else case e in #(
3163 e) ac_file='' ;;
3164 esac
3165 fi
3166 if test -z "$ac_file"
3167 then :
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 printf "%s\n" "no" >&6; }
3170 printf "%s\n" "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3174 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3175 as_fn_error 77 "C compiler cannot create executables
3176 See 'config.log' for more details" "$LINENO" 5; }
3177 else case e in #(
3178 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 printf "%s\n" "yes" >&6; } ;;
3180 esac
3181 fi
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3183 printf %s "checking for C compiler default output file name... " >&6; }
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3185 printf "%s\n" "$ac_file" >&6; }
3186 ac_exeext=$ac_cv_exeext
3187
3188 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3189 ac_clean_files=$ac_clean_files_save
3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3191 printf %s "checking for suffix of executables... " >&6; }
3192 if { { ac_try="$ac_link"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 printf "%s\n" "$ac_try_echo"; } >&5
3199 (eval "$ac_link") 2>&5
3200 ac_status=$?
3201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }
3203 then :
3204 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3205 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3206 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3207 # 'rm'.
3208 for ac_file in conftest.exe conftest conftest.*; do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3212 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 break;;
3214 * ) break;;
3215 esac
3216 done
3217 else case e in #(
3218 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3219 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3220 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3221 See 'config.log' for more details" "$LINENO" 5; } ;;
3222 esac
3223 fi
3224 rm -f conftest conftest$ac_cv_exeext
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226 printf "%s\n" "$ac_cv_exeext" >&6; }
3227
3228 rm -f conftest.$ac_ext
3229 EXEEXT=$ac_cv_exeext
3230 ac_exeext=$EXEEXT
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233 #include <stdio.h>
3234 int
3235 main (void)
3236 {
3237 FILE *f = fopen ("conftest.out", "w");
3238 if (!f)
3239 return 1;
3240 return ferror (f) || fclose (f) != 0;
3241
3242 ;
3243 return 0;
3244 }
3245 _ACEOF
3246 ac_clean_files="$ac_clean_files conftest.out"
3247 # Check that the compiler produces executables we can run. If not, either
3248 # the compiler is broken, or we cross compile.
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3250 printf %s "checking whether we are cross compiling... " >&6; }
3251 if test "$cross_compiling" != yes; then
3252 { { ac_try="$ac_link"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 printf "%s\n" "$ac_try_echo"; } >&5
3259 (eval "$ac_link") 2>&5
3260 ac_status=$?
3261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }
3263 if { ac_try='./conftest$ac_cv_exeext'
3264 { { case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 printf "%s\n" "$ac_try_echo"; } >&5
3270 (eval "$ac_try") 2>&5
3271 ac_status=$?
3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; }; then
3274 cross_compiling=no
3275 else
3276 if test "$cross_compiling" = maybe; then
3277 cross_compiling=yes
3278 else
3279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3280 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3281 as_fn_error 77 "cannot run C compiled programs.
3282 If you meant to cross compile, use '--host'.
3283 See 'config.log' for more details" "$LINENO" 5; }
3284 fi
3285 fi
3286 fi
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3288 printf "%s\n" "$cross_compiling" >&6; }
3289
3290 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3291 conftest.o conftest.obj conftest.out
3292 ac_clean_files=$ac_clean_files_save
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3294 printf %s "checking for suffix of object files... " >&6; }
3295 if test ${ac_cv_objext+y}
3296 then :
3297 printf %s "(cached) " >&6
3298 else case e in #(
3299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3301
3302 int
3303 main (void)
3304 {
3305
3306 ;
3307 return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.o conftest.obj
3311 if { { ac_try="$ac_compile"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 printf "%s\n" "$ac_try_echo"; } >&5
3318 (eval "$ac_compile") 2>&5
3319 ac_status=$?
3320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3322 then :
3323 for ac_file in conftest.o conftest.obj conftest.*; do
3324 test -f "$ac_file" || continue;
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3328 break;;
3329 esac
3330 done
3331 else case e in #(
3332 e) printf "%s\n" "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3336 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3337 as_fn_error $? "cannot compute suffix of object files: cannot compile
3338 See 'config.log' for more details" "$LINENO" 5; } ;;
3339 esac
3340 fi
3341 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3342 esac
3343 fi
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3345 printf "%s\n" "$ac_cv_objext" >&6; }
3346 OBJEXT=$ac_cv_objext
3347 ac_objext=$OBJEXT
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3349 printf %s "checking whether the compiler supports GNU C... " >&6; }
3350 if test ${ac_cv_c_compiler_gnu+y}
3351 then :
3352 printf %s "(cached) " >&6
3353 else case e in #(
3354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 int
3358 main (void)
3359 {
3360 #ifndef __GNUC__
3361 choke me
3362 #endif
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"
3369 then :
3370 ac_compiler_gnu=yes
3371 else case e in #(
3372 e) ac_compiler_gnu=no ;;
3373 esac
3374 fi
3375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3377 ;;
3378 esac
3379 fi
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3381 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383
3384 if test $ac_compiler_gnu = yes; then
3385 GCC=yes
3386 else
3387 GCC=
3388 fi
3389 ac_test_CFLAGS=${CFLAGS+y}
3390 ac_save_CFLAGS=$CFLAGS
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3392 printf %s "checking whether $CC accepts -g... " >&6; }
3393 if test ${ac_cv_prog_cc_g+y}
3394 then :
3395 printf %s "(cached) " >&6
3396 else case e in #(
3397 e) ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3399 ac_cv_prog_cc_g=no
3400 CFLAGS="-g"
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3403
3404 int
3405 main (void)
3406 {
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"
3413 then :
3414 ac_cv_prog_cc_g=yes
3415 else case e in #(
3416 e) CFLAGS=""
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419
3420 int
3421 main (void)
3422 {
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"
3429 then :
3430
3431 else case e in #(
3432 e) ac_c_werror_flag=$ac_save_c_werror_flag
3433 CFLAGS="-g"
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436
3437 int
3438 main (void)
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"
3446 then :
3447 ac_cv_prog_cc_g=yes
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3450 esac
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3453 esac
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3456 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3457 esac
3458 fi
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3460 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3461 if test $ac_test_CFLAGS; then
3462 CFLAGS=$ac_save_CFLAGS
3463 elif test $ac_cv_prog_cc_g = yes; then
3464 if test "$GCC" = yes; then
3465 CFLAGS="-g -O2"
3466 else
3467 CFLAGS="-g"
3468 fi
3469 else
3470 if test "$GCC" = yes; then
3471 CFLAGS="-O2"
3472 else
3473 CFLAGS=
3474 fi
3475 fi
3476 ac_prog_cc_stdc=no
3477 if test x$ac_prog_cc_stdc = xno
3478 then :
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3480 printf %s "checking for $CC option to enable C11 features... " >&6; }
3481 if test ${ac_cv_prog_cc_c11+y}
3482 then :
3483 printf %s "(cached) " >&6
3484 else case e in #(
3485 e) ac_cv_prog_cc_c11=no
3486 ac_save_CC=$CC
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489 $ac_c_conftest_c11_program
3490 _ACEOF
3491 for ac_arg in '' -std=gnu11
3492 do
3493 CC="$ac_save_CC $ac_arg"
3494 if ac_fn_c_try_compile "$LINENO"
3495 then :
3496 ac_cv_prog_cc_c11=$ac_arg
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.beam
3499 test "x$ac_cv_prog_cc_c11" != "xno" && break
3500 done
3501 rm -f conftest.$ac_ext
3502 CC=$ac_save_CC ;;
3503 esac
3504 fi
3505
3506 if test "x$ac_cv_prog_cc_c11" = xno
3507 then :
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3509 printf "%s\n" "unsupported" >&6; }
3510 else case e in #(
3511 e) if test "x$ac_cv_prog_cc_c11" = x
3512 then :
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3514 printf "%s\n" "none needed" >&6; }
3515 else case e in #(
3516 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3517 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3518 CC="$CC $ac_cv_prog_cc_c11" ;;
3519 esac
3520 fi
3521 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3522 ac_prog_cc_stdc=c11 ;;
3523 esac
3524 fi
3525 fi
3526 if test x$ac_prog_cc_stdc = xno
3527 then :
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3529 printf %s "checking for $CC option to enable C99 features... " >&6; }
3530 if test ${ac_cv_prog_cc_c99+y}
3531 then :
3532 printf %s "(cached) " >&6
3533 else case e in #(
3534 e) ac_cv_prog_cc_c99=no
3535 ac_save_CC=$CC
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538 $ac_c_conftest_c99_program
3539 _ACEOF
3540 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3541 do
3542 CC="$ac_save_CC $ac_arg"
3543 if ac_fn_c_try_compile "$LINENO"
3544 then :
3545 ac_cv_prog_cc_c99=$ac_arg
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.beam
3548 test "x$ac_cv_prog_cc_c99" != "xno" && break
3549 done
3550 rm -f conftest.$ac_ext
3551 CC=$ac_save_CC ;;
3552 esac
3553 fi
3554
3555 if test "x$ac_cv_prog_cc_c99" = xno
3556 then :
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3558 printf "%s\n" "unsupported" >&6; }
3559 else case e in #(
3560 e) if test "x$ac_cv_prog_cc_c99" = x
3561 then :
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3563 printf "%s\n" "none needed" >&6; }
3564 else case e in #(
3565 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3566 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3567 CC="$CC $ac_cv_prog_cc_c99" ;;
3568 esac
3569 fi
3570 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3571 ac_prog_cc_stdc=c99 ;;
3572 esac
3573 fi
3574 fi
3575 if test x$ac_prog_cc_stdc = xno
3576 then :
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3578 printf %s "checking for $CC option to enable C89 features... " >&6; }
3579 if test ${ac_cv_prog_cc_c89+y}
3580 then :
3581 printf %s "(cached) " >&6
3582 else case e in #(
3583 e) ac_cv_prog_cc_c89=no
3584 ac_save_CC=$CC
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 $ac_c_conftest_c89_program
3588 _ACEOF
3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3590 do
3591 CC="$ac_save_CC $ac_arg"
3592 if ac_fn_c_try_compile "$LINENO"
3593 then :
3594 ac_cv_prog_cc_c89=$ac_arg
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.beam
3597 test "x$ac_cv_prog_cc_c89" != "xno" && break
3598 done
3599 rm -f conftest.$ac_ext
3600 CC=$ac_save_CC ;;
3601 esac
3602 fi
3603
3604 if test "x$ac_cv_prog_cc_c89" = xno
3605 then :
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 printf "%s\n" "unsupported" >&6; }
3608 else case e in #(
3609 e) if test "x$ac_cv_prog_cc_c89" = x
3610 then :
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612 printf "%s\n" "none needed" >&6; }
3613 else case e in #(
3614 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3615 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3616 CC="$CC $ac_cv_prog_cc_c89" ;;
3617 esac
3618 fi
3619 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3620 ac_prog_cc_stdc=c89 ;;
3621 esac
3622 fi
3623 fi
3624
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3638 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3639 if test ${am_cv_prog_cc_c_o+y}
3640 then :
3641 printf %s "(cached) " >&6
3642 else case e in #(
3643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645
3646 int
3647 main (void)
3648 {
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 # Make sure it works both with $CC and with simple cc.
3655 # Following AC_PROG_CC_C_O, we do the test twice because some
3656 # compilers refuse to overwrite an existing .o file with -o,
3657 # though they will create one.
3658 am_cv_prog_cc_c_o=yes
3659 for am_i in 1 2; do
3660 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3661 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } \
3665 && test -f conftest2.$ac_objext; then
3666 : OK
3667 else
3668 am_cv_prog_cc_c_o=no
3669 break
3670 fi
3671 done
3672 # aligned with autoconf, so not including core; see bug#72225.
3673 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3674 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3675 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3676 unset am_i ;;
3677 esac
3678 fi
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3680 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3681 if test "$am_cv_prog_cc_c_o" != yes; then
3682 # Losing compiler, so override with the script.
3683 # FIXME: It is wrong to rewrite CC.
3684 # But if we don't then we get into trouble of one sort or another.
3685 # A longer-term fix would be to have automake use am__CC in this case,
3686 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3687 CC="$am_aux_dir/compile $CC"
3688 fi
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694
3695
3696
3697 ac_header= ac_cache=
3698 for ac_item in $ac_header_c_list
3699 do
3700 if test $ac_cache; then
3701 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3702 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3703 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3704 fi
3705 ac_header= ac_cache=
3706 elif test $ac_header; then
3707 ac_cache=$ac_item
3708 else
3709 ac_header=$ac_item
3710 fi
3711 done
3712
3713
3714
3715
3716
3717
3718
3719
3720 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3721 then :
3722
3723 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3724
3725 fi
3726
3727
3728
3729
3730
3731
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3733 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3734 if test ${ac_cv_safe_to_define___extensions__+y}
3735 then :
3736 printf %s "(cached) " >&6
3737 else case e in #(
3738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 # define __EXTENSIONS__ 1
3742 $ac_includes_default
3743 int
3744 main (void)
3745 {
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"
3752 then :
3753 ac_cv_safe_to_define___extensions__=yes
3754 else case e in #(
3755 e) ac_cv_safe_to_define___extensions__=no ;;
3756 esac
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3759 esac
3760 fi
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3762 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3763
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3765 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3766 if test ${ac_cv_should_define__xopen_source+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else case e in #(
3770 e) ac_cv_should_define__xopen_source=no
3771 if test $ac_cv_header_wchar_h = yes
3772 then :
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775
3776 #include <wchar.h>
3777 mbstate_t x;
3778 int
3779 main (void)
3780 {
3781
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"
3787 then :
3788
3789 else case e in #(
3790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 #define _XOPEN_SOURCE 500
3794 #include <wchar.h>
3795 mbstate_t x;
3796 int
3797 main (void)
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"
3805 then :
3806 ac_cv_should_define__xopen_source=yes
3807 fi
3808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3809 esac
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3812 fi ;;
3813 esac
3814 fi
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3816 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3817
3818 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3819
3820 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3821
3822 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3823
3824 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3825
3826 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3827
3828 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3829
3830 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3831
3832 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3833
3834 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3835
3836 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3837
3838 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3839
3840 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3841
3842 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3843
3844 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3845
3846 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3847
3848 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3849
3850 if test $ac_cv_header_minix_config_h = yes
3851 then :
3852 MINIX=yes
3853 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3854
3855 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3856
3857 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3858
3859 else case e in #(
3860 e) MINIX= ;;
3861 esac
3862 fi
3863 if test $ac_cv_safe_to_define___extensions__ = yes
3864 then :
3865 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3866
3867 fi
3868 if test $ac_cv_should_define__xopen_source = yes
3869 then :
3870 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3871
3872 fi
3873
3874
3875 am__api_version='1.18'
3876
3877
3878 # Find a good install program. We prefer a C program (faster),
3879 # so one script is as good as another. But avoid the broken or
3880 # incompatible versions:
3881 # SysV /etc/install, /usr/sbin/install
3882 # SunOS /usr/etc/install
3883 # IRIX /sbin/install
3884 # AIX /bin/install
3885 # AmigaOS /C/install, which installs bootblocks on floppy discs
3886 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3887 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3888 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3889 # OS/2's system install, which has a completely different semantic
3890 # ./install, which can be erroneously created by make from ./install.sh.
3891 # Reject install programs that cannot install multiple files.
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3893 printf %s "checking for a BSD-compatible install... " >&6; }
3894 if test -z "$INSTALL"; then
3895 if test ${ac_cv_path_install+y}
3896 then :
3897 printf %s "(cached) " >&6
3898 else case e in #(
3899 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902 IFS=$as_save_IFS
3903 case $as_dir in #(((
3904 '') as_dir=./ ;;
3905 */) ;;
3906 *) as_dir=$as_dir/ ;;
3907 esac
3908 # Account for fact that we put trailing slashes in our PATH walk.
3909 case $as_dir in #((
3910 ./ | /[cC]/* | \
3911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3912 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3913 /usr/ucb/* ) ;;
3914 *)
3915 # OSF1 and SCO ODT 3.0 have their own names for install.
3916 # Don't use installbsd from OSF since it installs stuff as root
3917 # by default.
3918 for ac_prog in ginstall scoinst install; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3921 if test $ac_prog = install &&
3922 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3923 # AIX install. It has an incompatible calling convention.
3924 :
3925 elif test $ac_prog = install &&
3926 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927 # program-specific install script used by HP pwplus--don't use.
3928 :
3929 else
3930 rm -rf conftest.one conftest.two conftest.dir
3931 echo one > conftest.one
3932 echo two > conftest.two
3933 mkdir conftest.dir
3934 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3935 test -s conftest.one && test -s conftest.two &&
3936 test -s conftest.dir/conftest.one &&
3937 test -s conftest.dir/conftest.two
3938 then
3939 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3940 break 3
3941 fi
3942 fi
3943 fi
3944 done
3945 done
3946 ;;
3947 esac
3948
3949 done
3950 IFS=$as_save_IFS
3951
3952 rm -rf conftest.one conftest.two conftest.dir
3953 ;;
3954 esac
3955 fi
3956 if test ${ac_cv_path_install+y}; then
3957 INSTALL=$ac_cv_path_install
3958 else
3959 # As a last resort, use the slow shell script. Don't cache a
3960 # value for INSTALL within a source directory, because that will
3961 # break other packages using the cache if that directory is
3962 # removed, or if the value is a relative name.
3963 INSTALL=$ac_install_sh
3964 fi
3965 fi
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3967 printf "%s\n" "$INSTALL" >&6; }
3968
3969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3970 # It thinks the first close brace ends the variable substitution.
3971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3972
3973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3974
3975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3976
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3978 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3979 if test ${am_cv_sleep_fractional_seconds+y}
3980 then :
3981 printf %s "(cached) " >&6
3982 else case e in #(
3983 e) if sleep 0.001 2>/dev/null
3984 then :
3985 am_cv_sleep_fractional_seconds=yes
3986 else case e in #(
3987 e) am_cv_sleep_fractional_seconds=no ;;
3988 esac
3989 fi
3990 ;;
3991 esac
3992 fi
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3994 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3995
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3997 printf %s "checking filesystem timestamp resolution... " >&6; }
3998 if test ${am_cv_filesystem_timestamp_resolution+y}
3999 then :
4000 printf %s "(cached) " >&6
4001 else case e in #(
4002 e) # Default to the worst case.
4003 am_cv_filesystem_timestamp_resolution=2
4004
4005 # Only try to go finer than 1 sec if sleep can do it.
4006 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4007 # - 1 sec is not much of a win compared to 2 sec, and
4008 # - it takes 2 seconds to perform the test whether 1 sec works.
4009 #
4010 # Instead, just use the default 2s on platforms that have 1s resolution,
4011 # accept the extra 1s delay when using $sleep in the Automake tests, in
4012 # exchange for not incurring the 2s delay for running the test for all
4013 # packages.
4014 #
4015 am_try_resolutions=
4016 if test "$am_cv_sleep_fractional_seconds" = yes; then
4017 # Even a millisecond often causes a bunch of false positives,
4018 # so just try a hundredth of a second. The time saved between .001 and
4019 # .01 is not terribly consequential.
4020 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4021 fi
4022
4023 # In order to catch current-generation FAT out, we must *modify* files
4024 # that already exist; the *creation* timestamp is finer. Use names
4025 # that make ls -t sort them differently when they have equal
4026 # timestamps than when they have distinct timestamps, keeping
4027 # in mind that ls -t prints the *newest* file first.
4028 rm -f conftest.ts?
4029 : > conftest.ts1
4030 : > conftest.ts2
4031 : > conftest.ts3
4032
4033 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4034 # clobber the current shell's arguments. (Outer-level square brackets
4035 # are removed by m4; they're present so that m4 does not expand
4036 # <dollar><star>; be careful, easy to get confused.)
4037 if (
4038 set X `ls -t conftest.ts[12]` &&
4039 {
4040 test "$*" != "X conftest.ts1 conftest.ts2" ||
4041 test "$*" != "X conftest.ts2 conftest.ts1";
4042 }
4043 ); then :; else
4044 # If neither matched, then we have a broken ls. This can happen
4045 # if, for instance, CONFIG_SHELL is bash and it inherits a
4046 # broken ls alias from the environment. This has actually
4047 # happened. Such a system could not be considered "sane".
4048 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4051 as_fn_error $? "ls -t produces unexpected output.
4052 Make sure there is not a broken ls alias in your environment.
4053 See 'config.log' for more details" "$LINENO" 5; }
4054 fi
4055
4056 for am_try_res in $am_try_resolutions; do
4057 # Any one fine-grained sleep might happen to cross the boundary
4058 # between two values of a coarser actual resolution, but if we do
4059 # two fine-grained sleeps in a row, at least one of them will fall
4060 # entirely within a coarse interval.
4061 echo alpha > conftest.ts1
4062 sleep $am_try_res
4063 echo beta > conftest.ts2
4064 sleep $am_try_res
4065 echo gamma > conftest.ts3
4066
4067 # We assume that 'ls -t' will make use of high-resolution
4068 # timestamps if the operating system supports them at all.
4069 if (set X `ls -t conftest.ts?` &&
4070 test "$2" = conftest.ts3 &&
4071 test "$3" = conftest.ts2 &&
4072 test "$4" = conftest.ts1); then
4073 #
4074 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4075 # because we don't need to test make.
4076 make_ok=true
4077 if test $am_try_res != 1; then
4078 # But if we've succeeded so far with a subsecond resolution, we
4079 # have one more thing to check: make. It can happen that
4080 # everything else supports the subsecond mtimes, but make doesn't;
4081 # notably on macOS, which ships make 3.81 from 2006 (the last one
4082 # released under GPLv2). https://bugs.gnu.org/68808
4083 #
4084 # We test $MAKE if it is defined in the environment, else "make".
4085 # It might get overridden later, but our hope is that in practice
4086 # it does not matter: it is the system "make" which is (by far)
4087 # the most likely to be broken, whereas if the user overrides it,
4088 # probably they did so with a better, or at least not worse, make.
4089 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4090 #
4091 # Create a Makefile (real tab character here):
4092 rm -f conftest.mk
4093 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4094 echo ' touch conftest.ts2' >>conftest.mk
4095 #
4096 # Now, running
4097 # touch conftest.ts1; touch conftest.ts2; make
4098 # should touch ts1 because ts2 is newer. This could happen by luck,
4099 # but most often, it will fail if make's support is insufficient. So
4100 # test for several consecutive successes.
4101 #
4102 # (We reuse conftest.ts[12] because we still want to modify existing
4103 # files, not create new ones, per above.)
4104 n=0
4105 make=${MAKE-make}
4106 until test $n -eq 3; do
4107 echo one > conftest.ts1
4108 sleep $am_try_res
4109 echo two > conftest.ts2 # ts2 should now be newer than ts1
4110 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4111 make_ok=false
4112 break # out of $n loop
4113 fi
4114 n=`expr $n + 1`
4115 done
4116 fi
4117 #
4118 if $make_ok; then
4119 # Everything we know to check worked out, so call this resolution good.
4120 am_cv_filesystem_timestamp_resolution=$am_try_res
4121 break # out of $am_try_res loop
4122 fi
4123 # Otherwise, we'll go on to check the next resolution.
4124 fi
4125 done
4126 rm -f conftest.ts?
4127 # (end _am_filesystem_timestamp_resolution)
4128 ;;
4129 esac
4130 fi
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4132 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4133
4134 # This check should not be cached, as it may vary across builds of
4135 # different projects.
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4137 printf %s "checking whether build environment is sane... " >&6; }
4138 # Reject unsafe characters in $srcdir or the absolute working directory
4139 # name. Accept space and tab only in the latter.
4140 am_lf='
4141 '
4142 case `pwd` in
4143 *[\\\"\#\$\&\'\`$am_lf]*)
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 printf "%s\n" "no" >&6; }
4146 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4147 esac
4148 case $srcdir in
4149 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 printf "%s\n" "no" >&6; }
4152 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4153 esac
4154
4155 # Do 'set' in a subshell so we don't clobber the current shell's
4156 # arguments. Must try -L first in case configure is actually a
4157 # symlink; some systems play weird games with the mod time of symlinks
4158 # (eg FreeBSD returns the mod time of the symlink's containing
4159 # directory).
4160 am_build_env_is_sane=no
4161 am_has_slept=no
4162 rm -f conftest.file
4163 for am_try in 1 2; do
4164 echo "timestamp, slept: $am_has_slept" > conftest.file
4165 if (
4166 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4167 if test "$*" = "X"; then
4168 # -L didn't work.
4169 set X `ls -t "$srcdir/configure" conftest.file`
4170 fi
4171 test "$2" = conftest.file
4172 ); then
4173 am_build_env_is_sane=yes
4174 break
4175 fi
4176 # Just in case.
4177 sleep "$am_cv_filesystem_timestamp_resolution"
4178 am_has_slept=yes
4179 done
4180
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4182 printf "%s\n" "$am_build_env_is_sane" >&6; }
4183 if test "$am_build_env_is_sane" = no; then
4184 as_fn_error $? "newly created file is older than distributed files!
4185 Check your system clock" "$LINENO" 5
4186 fi
4187
4188 # If we didn't sleep, we still need to ensure time stamps of config.status and
4189 # generated files are strictly newer.
4190 am_sleep_pid=
4191 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4192 then :
4193
4194 else case e in #(
4195 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4196 am_sleep_pid=$!
4197 ;;
4198 esac
4199 fi
4200
4201 rm -f conftest.file
4202
4203 test "$program_prefix" != NONE &&
4204 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4205 # Use a double $ so make ignores it.
4206 test "$program_suffix" != NONE &&
4207 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4208 # Double any \ or $.
4209 # By default was 's,x,x', remove it if useless.
4210 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4211 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4212
4213
4214 if test x"${MISSING+set}" != xset; then
4215 MISSING="\${SHELL} '$am_aux_dir/missing'"
4216 fi
4217 # Use eval to expand $SHELL
4218 if eval "$MISSING --is-lightweight"; then
4219 am_missing_run="$MISSING "
4220 else
4221 am_missing_run=
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4223 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4224 fi
4225
4226 if test x"${install_sh+set}" != xset; then
4227 case $am_aux_dir in
4228 *\ * | *\ *)
4229 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4230 *)
4231 install_sh="\${SHELL} $am_aux_dir/install-sh"
4232 esac
4233 fi
4234
4235 # Installed binaries are usually stripped using 'strip' when the user
4236 # run "make install-strip". However 'strip' might not be the right
4237 # tool to use in cross-compilation environments, therefore Automake
4238 # will honor the 'STRIP' environment variable to overrule this program.
4239 if test "$cross_compiling" != no; then
4240 if test -n "$ac_tool_prefix"; then
4241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}strip; ac_word=$2
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 printf %s "checking for $ac_word... " >&6; }
4245 if test ${ac_cv_prog_STRIP+y}
4246 then :
4247 printf %s "(cached) " >&6
4248 else case e in #(
4249 e) if test -n "$STRIP"; then
4250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 case $as_dir in #(((
4257 '') as_dir=./ ;;
4258 */) ;;
4259 *) as_dir=$as_dir/ ;;
4260 esac
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4265 break 2
4266 fi
4267 done
4268 done
4269 IFS=$as_save_IFS
4270
4271 fi ;;
4272 esac
4273 fi
4274 STRIP=$ac_cv_prog_STRIP
4275 if test -n "$STRIP"; then
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4277 printf "%s\n" "$STRIP" >&6; }
4278 else
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 printf "%s\n" "no" >&6; }
4281 fi
4282
4283
4284 fi
4285 if test -z "$ac_cv_prog_STRIP"; then
4286 ac_ct_STRIP=$STRIP
4287 # Extract the first word of "strip", so it can be a program name with args.
4288 set dummy strip; ac_word=$2
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290 printf %s "checking for $ac_word... " >&6; }
4291 if test ${ac_cv_prog_ac_ct_STRIP+y}
4292 then :
4293 printf %s "(cached) " >&6
4294 else case e in #(
4295 e) if test -n "$ac_ct_STRIP"; then
4296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301 IFS=$as_save_IFS
4302 case $as_dir in #(((
4303 '') as_dir=./ ;;
4304 */) ;;
4305 *) as_dir=$as_dir/ ;;
4306 esac
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_ac_ct_STRIP="strip"
4310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4311 break 2
4312 fi
4313 done
4314 done
4315 IFS=$as_save_IFS
4316
4317 fi ;;
4318 esac
4319 fi
4320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4321 if test -n "$ac_ct_STRIP"; then
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4323 printf "%s\n" "$ac_ct_STRIP" >&6; }
4324 else
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 printf "%s\n" "no" >&6; }
4327 fi
4328
4329 if test "x$ac_ct_STRIP" = x; then
4330 STRIP=":"
4331 else
4332 case $cross_compiling:$ac_tool_warned in
4333 yes:)
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned=yes ;;
4337 esac
4338 STRIP=$ac_ct_STRIP
4339 fi
4340 else
4341 STRIP="$ac_cv_prog_STRIP"
4342 fi
4343
4344 fi
4345 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4346
4347
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4349 printf %s "checking for a race-free mkdir -p... " >&6; }
4350 if test -z "$MKDIR_P"; then
4351 if test ${ac_cv_path_mkdir+y}
4352 then :
4353 printf %s "(cached) " >&6
4354 else case e in #(
4355 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4357 do
4358 IFS=$as_save_IFS
4359 case $as_dir in #(((
4360 '') as_dir=./ ;;
4361 */) ;;
4362 *) as_dir=$as_dir/ ;;
4363 esac
4364 for ac_prog in mkdir gmkdir; do
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4367 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4368 'mkdir ('*'coreutils) '* | \
4369 *'BusyBox '* | \
4370 'mkdir (fileutils) '4.1*)
4371 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4372 break 3;;
4373 esac
4374 done
4375 done
4376 done
4377 IFS=$as_save_IFS
4378 ;;
4379 esac
4380 fi
4381
4382 test -d ./--version && rmdir ./--version
4383 if test ${ac_cv_path_mkdir+y}; then
4384 MKDIR_P="$ac_cv_path_mkdir -p"
4385 else
4386 # As a last resort, use plain mkdir -p,
4387 # in the hope it doesn't have the bugs of ancient mkdir.
4388 MKDIR_P='mkdir -p'
4389 fi
4390 fi
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4392 printf "%s\n" "$MKDIR_P" >&6; }
4393
4394 for ac_prog in gawk mawk nawk awk
4395 do
4396 # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 printf %s "checking for $ac_word... " >&6; }
4400 if test ${ac_cv_prog_AWK+y}
4401 then :
4402 printf %s "(cached) " >&6
4403 else case e in #(
4404 e) if test -n "$AWK"; then
4405 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 case $as_dir in #(((
4412 '') as_dir=./ ;;
4413 */) ;;
4414 *) as_dir=$as_dir/ ;;
4415 esac
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_AWK="$ac_prog"
4419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi ;;
4427 esac
4428 fi
4429 AWK=$ac_cv_prog_AWK
4430 if test -n "$AWK"; then
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4432 printf "%s\n" "$AWK" >&6; }
4433 else
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 printf "%s\n" "no" >&6; }
4436 fi
4437
4438
4439 test -n "$AWK" && break
4440 done
4441
4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4443 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4444 set x ${MAKE-make}
4445 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4446 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4447 then :
4448 printf %s "(cached) " >&6
4449 else case e in #(
4450 e) cat >conftest.make <<\_ACEOF
4451 SHELL = /bin/sh
4452 all:
4453 @echo '@@@%%%=$(MAKE)=@@@%%%'
4454 _ACEOF
4455 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4456 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4457 *@@@%%%=?*=@@@%%%*)
4458 eval ac_cv_prog_make_${ac_make}_set=yes;;
4459 *)
4460 eval ac_cv_prog_make_${ac_make}_set=no;;
4461 esac
4462 rm -f conftest.make ;;
4463 esac
4464 fi
4465 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4467 printf "%s\n" "yes" >&6; }
4468 SET_MAKE=
4469 else
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 printf "%s\n" "no" >&6; }
4472 SET_MAKE="MAKE=${MAKE-make}"
4473 fi
4474
4475 rm -rf .tst 2>/dev/null
4476 mkdir .tst 2>/dev/null
4477 if test -d .tst; then
4478 am__leading_dot=.
4479 else
4480 am__leading_dot=_
4481 fi
4482 rmdir .tst 2>/dev/null
4483
4484 DEPDIR="${am__leading_dot}deps"
4485
4486 ac_config_commands="$ac_config_commands depfiles"
4487
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4489 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4490 cat > confinc.mk << 'END'
4491 am__doit:
4492 @echo this is the am__doit target >confinc.out
4493 .PHONY: am__doit
4494 END
4495 am__include="#"
4496 am__quote=
4497 # BSD make does it like this.
4498 echo '.include "confinc.mk" # ignored' > confmf.BSD
4499 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4500 echo 'include confinc.mk # ignored' > confmf.GNU
4501 _am_result=no
4502 for s in GNU BSD; do
4503 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4504 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }
4508 case $?:`cat confinc.out 2>/dev/null` in #(
4509 '0:this is the am__doit target') :
4510 case $s in #(
4511 BSD) :
4512 am__include='.include' am__quote='"' ;; #(
4513 *) :
4514 am__include='include' am__quote='' ;;
4515 esac ;; #(
4516 *) :
4517 ;;
4518 esac
4519 if test "$am__include" != "#"; then
4520 _am_result="yes ($s style)"
4521 break
4522 fi
4523 done
4524 rm -f confinc.* confmf.*
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4526 printf "%s\n" "${_am_result}" >&6; }
4527
4528 # Check whether --enable-dependency-tracking was given.
4529 if test ${enable_dependency_tracking+y}
4530 then :
4531 enableval=$enable_dependency_tracking;
4532 fi
4533
4534 if test "x$enable_dependency_tracking" != xno; then
4535 am_depcomp="$ac_aux_dir/depcomp"
4536 AMDEPBACKSLASH='\'
4537 am__nodep='_no'
4538 fi
4539 if test "x$enable_dependency_tracking" != xno; then
4540 AMDEP_TRUE=
4541 AMDEP_FALSE='#'
4542 else
4543 AMDEP_TRUE='#'
4544 AMDEP_FALSE=
4545 fi
4546
4547
4548 AM_DEFAULT_VERBOSITY=1
4549 # Check whether --enable-silent-rules was given.
4550 if test ${enable_silent_rules+y}
4551 then :
4552 enableval=$enable_silent_rules;
4553 fi
4554
4555 am_make=${MAKE-make}
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4557 printf %s "checking whether $am_make supports nested variables... " >&6; }
4558 if test ${am_cv_make_support_nested_variables+y}
4559 then :
4560 printf %s "(cached) " >&6
4561 else case e in #(
4562 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4563 BAR0=false
4564 BAR1=true
4565 V=1
4566 am__doit:
4567 @$(TRUE)
4568 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4569 am_cv_make_support_nested_variables=yes
4570 else
4571 am_cv_make_support_nested_variables=no
4572 fi ;;
4573 esac
4574 fi
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4576 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4577 AM_BACKSLASH='\'
4578
4579 am__rm_f_notfound=
4580 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4581 then :
4582
4583 else case e in #(
4584 e) am__rm_f_notfound='""' ;;
4585 esac
4586 fi
4587
4588
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4590 printf %s "checking xargs -n works... " >&6; }
4591 if test ${am_cv_xargs_n_works+y}
4592 then :
4593 printf %s "(cached) " >&6
4594 else case e in #(
4595 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4596 3"
4597 then :
4598 am_cv_xargs_n_works=yes
4599 else case e in #(
4600 e) am_cv_xargs_n_works=no ;;
4601 esac
4602 fi ;;
4603 esac
4604 fi
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4606 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4607 if test "$am_cv_xargs_n_works" = yes
4608 then :
4609 am__xargs_n='xargs -n'
4610 else case e in #(
4611 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4612 ;;
4613 esac
4614 fi
4615
4616 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4617 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4618 # is not polluted with repeated "-I."
4619 am__isrc=' -I$(srcdir)'
4620 # test to see if srcdir already configured
4621 if test -f $srcdir/config.status; then
4622 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4623 fi
4624 fi
4625
4626 # test whether we have cygpath
4627 if test -z "$CYGPATH_W"; then
4628 if (cygpath --version) >/dev/null 2>/dev/null; then
4629 CYGPATH_W='cygpath -w'
4630 else
4631 CYGPATH_W=echo
4632 fi
4633 fi
4634
4635
4636 # Define the identity of the package.
4637 PACKAGE='libevdev'
4638 VERSION='1.13.6'
4639
4640
4641 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4642
4643
4644 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4645
4646 # Some tools Automake needs.
4647
4648 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4649
4650
4651 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4652
4653
4654 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4655
4656
4657 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4658
4659
4660 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4661
4662 # For better backward compatibility. To be removed once Automake 1.9.x
4663 # dies out for good. For more background, see:
4664 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4665 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4666 mkdir_p='$(MKDIR_P)'
4667
4668 # We need awk for the "check" target (and possibly the TAP driver). The
4669 # system "awk" is bad on some platforms.
4670 # Always define AMTAR for backward compatibility. Yes, it's still used
4671 # in the wild :-( We should find a proper way to deprecate it ...
4672 AMTAR='$${TAR-tar}'
4673
4674
4675 # We'll loop over all known methods to create a tar archive until one works.
4676 _am_tools='gnutar plaintar pax cpio none'
4677
4678 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4679 # There is notably a 21 bits limit for the UID and the GID. In fact,
4680 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4681 # and bug#13588).
4682 am_max_uid=2097151 # 2^21 - 1
4683 am_max_gid=$am_max_uid
4684 # The $UID and $GID variables are not portable, so we need to resort
4685 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4686 # below are definitely unexpected, so allow the users to see them
4687 # (that is, avoid stderr redirection).
4688 am_uid=`id -u || echo unknown`
4689 am_gid=`id -g || echo unknown`
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4691 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4692 if test x$am_uid = xunknown; then
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4694 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4695 elif test $am_uid -le $am_max_uid; then
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4697 printf "%s\n" "yes" >&6; }
4698 else
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 printf "%s\n" "no" >&6; }
4701 _am_tools=none
4702 fi
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4704 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4705 if test x$gm_gid = xunknown; then
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4707 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4708 elif test $am_gid -le $am_max_gid; then
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4710 printf "%s\n" "yes" >&6; }
4711 else
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 printf "%s\n" "no" >&6; }
4714 _am_tools=none
4715 fi
4716
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4718 printf %s "checking how to create a ustar tar archive... " >&6; }
4719
4720 # Go ahead even if we have the value already cached. We do so because we
4721 # need to set the values for the 'am__tar' and 'am__untar' variables.
4722 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4723
4724 for _am_tool in $_am_tools; do
4725 case $_am_tool in
4726 gnutar)
4727 for _am_tar in tar gnutar gtar; do
4728 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4729 ($_am_tar --version) >&5 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && break
4733 done
4734 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4735 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4736 am__untar="$_am_tar -xf -"
4737 ;;
4738 plaintar)
4739 # Must skip GNU tar: if it does not support --format= it doesn't create
4740 # ustar tarball either.
4741 (tar --version) >/dev/null 2>&1 && continue
4742 am__tar='tar chf - "$$tardir"'
4743 am__tar_='tar chf - "$tardir"'
4744 am__untar='tar xf -'
4745 ;;
4746 pax)
4747 am__tar='pax -L -x ustar -w "$$tardir"'
4748 am__tar_='pax -L -x ustar -w "$tardir"'
4749 am__untar='pax -r'
4750 ;;
4751 cpio)
4752 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4753 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4754 am__untar='cpio -i -H ustar -d'
4755 ;;
4756 none)
4757 am__tar=false
4758 am__tar_=false
4759 am__untar=false
4760 ;;
4761 esac
4762
4763 # If the value was cached, stop now. We just wanted to have am__tar
4764 # and am__untar set.
4765 test -n "${am_cv_prog_tar_ustar}" && break
4766
4767 # tar/untar a dummy directory, and stop if the command works.
4768 rm -rf conftest.dir
4769 mkdir conftest.dir
4770 echo GrepMe > conftest.dir/file
4771 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4772 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }
4776 rm -rf conftest.dir
4777 if test -s conftest.tar; then
4778 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4779 ($am__untar <conftest.tar) >&5 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }
4783 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4784 (cat conftest.dir/file) >&5 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }
4788 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4789 fi
4790 done
4791 rm -rf conftest.dir
4792
4793 if test ${am_cv_prog_tar_ustar+y}
4794 then :
4795 printf %s "(cached) " >&6
4796 else case e in #(
4797 e) am_cv_prog_tar_ustar=$_am_tool ;;
4798 esac
4799 fi
4800
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4802 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4803
4804
4805
4806
4807
4808 depcc="$CC" am_compiler_list=
4809
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4811 printf %s "checking dependency style of $depcc... " >&6; }
4812 if test ${am_cv_CC_dependencies_compiler_type+y}
4813 then :
4814 printf %s "(cached) " >&6
4815 else case e in #(
4816 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4817 # We make a subdir and do the tests there. Otherwise we can end up
4818 # making bogus files that we don't know about and never remove. For
4819 # instance it was reported that on HP-UX the gcc test will end up
4820 # making a dummy file named 'D' -- because '-MD' means "put the output
4821 # in D".
4822 rm -rf conftest.dir
4823 mkdir conftest.dir
4824 # Copy depcomp to subdir because otherwise we won't find it if we're
4825 # using a relative directory.
4826 cp "$am_depcomp" conftest.dir
4827 cd conftest.dir
4828 # We will build objects and dependencies in a subdirectory because
4829 # it helps to detect inapplicable dependency modes. For instance
4830 # both Tru64's cc and ICC support -MD to output dependencies as a
4831 # side effect of compilation, but ICC will put the dependencies in
4832 # the current directory while Tru64 will put them in the object
4833 # directory.
4834 mkdir sub
4835
4836 am_cv_CC_dependencies_compiler_type=none
4837 if test "$am_compiler_list" = ""; then
4838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4839 fi
4840 am__universal=false
4841 case " $depcc " in #(
4842 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4843 esac
4844
4845 for depmode in $am_compiler_list; do
4846 # Setup a source with many dependencies, because some compilers
4847 # like to wrap large dependency lists on column 80 (with \), and
4848 # we should not choose a depcomp mode which is confused by this.
4849 #
4850 # We need to recreate these files for each test, as the compiler may
4851 # overwrite some of them when testing with obscure command lines.
4852 # This happens at least with the AIX C compiler.
4853 : > sub/conftest.c
4854 for i in 1 2 3 4 5 6; do
4855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4856 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4857 # Solaris 10 /bin/sh.
4858 echo '/* dummy */' > sub/conftst$i.h
4859 done
4860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4861
4862 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4863 # mode. It turns out that the SunPro C++ compiler does not properly
4864 # handle '-M -o', and we need to detect this. Also, some Intel
4865 # versions had trouble with output in subdirs.
4866 am__obj=sub/conftest.${OBJEXT-o}
4867 am__minus_obj="-o $am__obj"
4868 case $depmode in
4869 gcc)
4870 # This depmode causes a compiler race in universal mode.
4871 test "$am__universal" = false || continue
4872 ;;
4873 nosideeffect)
4874 # After this tag, mechanisms are not by side-effect, so they'll
4875 # only be used when explicitly requested.
4876 if test "x$enable_dependency_tracking" = xyes; then
4877 continue
4878 else
4879 break
4880 fi
4881 ;;
4882 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4883 # This compiler won't grok '-c -o', but also, the minuso test has
4884 # not run yet. These depmodes are late enough in the game, and
4885 # so weak that their functioning should not be impacted.
4886 am__obj=conftest.${OBJEXT-o}
4887 am__minus_obj=
4888 ;;
4889 none) break ;;
4890 esac
4891 if depmode=$depmode \
4892 source=sub/conftest.c object=$am__obj \
4893 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4894 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4895 >/dev/null 2>conftest.err &&
4896 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4897 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4898 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4899 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4900 # icc doesn't choke on unknown options, it will just issue warnings
4901 # or remarks (even with -Werror). So we grep stderr for any message
4902 # that says an option was ignored or not supported.
4903 # When given -MP, icc 7.0 and 7.1 complain thus:
4904 # icc: Command line warning: ignoring option '-M'; no argument required
4905 # The diagnosis changed in icc 8.0:
4906 # icc: Command line remark: option '-MP' not supported
4907 if (grep 'ignoring option' conftest.err ||
4908 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4909 am_cv_CC_dependencies_compiler_type=$depmode
4910 break
4911 fi
4912 fi
4913 done
4914
4915 cd ..
4916 rm -rf conftest.dir
4917 else
4918 am_cv_CC_dependencies_compiler_type=none
4919 fi
4920 ;;
4921 esac
4922 fi
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4924 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4925 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4926
4927 if
4928 test "x$enable_dependency_tracking" != xno \
4929 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4930 am__fastdepCC_TRUE=
4931 am__fastdepCC_FALSE='#'
4932 else
4933 am__fastdepCC_TRUE='#'
4934 am__fastdepCC_FALSE=
4935 fi
4936
4937
4938 # Variables for tags utilities; see am/tags.am
4939 if test -z "$CTAGS"; then
4940 CTAGS=ctags
4941 fi
4942
4943 if test -z "$ETAGS"; then
4944 ETAGS=etags
4945 fi
4946
4947 if test -z "$CSCOPE"; then
4948 CSCOPE=cscope
4949 fi
4950
4951
4952
4953
4954
4955
4956
4957
4958 # DO NOT MODIFY THIS
4959 # Use symbol versioning instead.
4960 LIBEVDEV_LT_VERSION=5:0:3
4961
4962
4963
4964
4965 AM_DEFAULT_VERBOSITY=0
4966
4967
4968
4969 # Check for programs
4970
4971
4972 # Initialize libtool
4973
4974 case `pwd` in
4975 *\ * | *\ *)
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4977 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4978 esac
4979
4980
4981
4982 macro_version='2.5.4'
4983 macro_revision='2.5.4'
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 ltmain=$ac_aux_dir/ltmain.sh
4999
5000
5001
5002 # Make sure we can run config.sub.
5003 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5004 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5005
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5007 printf %s "checking build system type... " >&6; }
5008 if test ${ac_cv_build+y}
5009 then :
5010 printf %s "(cached) " >&6
5011 else case e in #(
5012 e) ac_build_alias=$build_alias
5013 test "x$ac_build_alias" = x &&
5014 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5015 test "x$ac_build_alias" = x &&
5016 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5017 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5018 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5019 ;;
5020 esac
5021 fi
5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5023 printf "%s\n" "$ac_cv_build" >&6; }
5024 case $ac_cv_build in
5025 *-*-*) ;;
5026 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5027 esac
5028 build=$ac_cv_build
5029 ac_save_IFS=$IFS; IFS='-'
5030 set x $ac_cv_build
5031 shift
5032 build_cpu=$1
5033 build_vendor=$2
5034 shift; shift
5035 # Remember, the first character of IFS is used to create $*,
5036 # except with old shells:
5037 build_os=$*
5038 IFS=$ac_save_IFS
5039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5040
5041
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5043 printf %s "checking host system type... " >&6; }
5044 if test ${ac_cv_host+y}
5045 then :
5046 printf %s "(cached) " >&6
5047 else case e in #(
5048 e) if test "x$host_alias" = x; then
5049 ac_cv_host=$ac_cv_build
5050 else
5051 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5052 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5053 fi
5054 ;;
5055 esac
5056 fi
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5058 printf "%s\n" "$ac_cv_host" >&6; }
5059 case $ac_cv_host in
5060 *-*-*) ;;
5061 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5062 esac
5063 host=$ac_cv_host
5064 ac_save_IFS=$IFS; IFS='-'
5065 set x $ac_cv_host
5066 shift
5067 host_cpu=$1
5068 host_vendor=$2
5069 shift; shift
5070 # Remember, the first character of IFS is used to create $*,
5071 # except with old shells:
5072 host_os=$*
5073 IFS=$ac_save_IFS
5074 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5075
5076
5077 # Backslashify metacharacters that are still active within
5078 # double-quoted strings.
5079 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5080
5081 # Same as above, but do not quote variable references.
5082 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5083
5084 # Sed substitution to delay expansion of an escaped shell variable in a
5085 # double_quote_subst'ed string.
5086 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5087
5088 # Sed substitution to delay expansion of an escaped single quote.
5089 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5090
5091 # Sed substitution to avoid accidental globbing in evaled expressions
5092 no_glob_subst='s/\*/\\\*/g'
5093
5094 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5095 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5096 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5097
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5099 printf %s "checking how to print strings... " >&6; }
5100 # Test print first, because it will be a builtin if present.
5101 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5102 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5103 ECHO='print -r --'
5104 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5105 ECHO='printf %s\n'
5106 else
5107 # Use this function as a fallback that always works.
5108 func_fallback_echo ()
5109 {
5110 eval 'cat <<_LTECHO_EOF
5111 $1
5112 _LTECHO_EOF'
5113 }
5114 ECHO='func_fallback_echo'
5115 fi
5116
5117 # func_echo_all arg...
5118 # Invoke $ECHO with all args, space-separated.
5119 func_echo_all ()
5120 {
5121 $ECHO ""
5122 }
5123
5124 case $ECHO in
5125 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5126 printf "%s\n" "printf" >&6; } ;;
5127 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5128 printf "%s\n" "print -r" >&6; } ;;
5129 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5130 printf "%s\n" "cat" >&6; } ;;
5131 esac
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5147 printf %s "checking for a sed that does not truncate output... " >&6; }
5148 if test ${ac_cv_path_SED+y}
5149 then :
5150 printf %s "(cached) " >&6
5151 else case e in #(
5152 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5153 for ac_i in 1 2 3 4 5 6 7; do
5154 ac_script="$ac_script$as_nl$ac_script"
5155 done
5156 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5157 { ac_script=; unset ac_script;}
5158 if test -z "$SED"; then
5159 ac_path_SED_found=false
5160 # Loop through the user's path and test for each of PROGNAME-LIST
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 case $as_dir in #(((
5166 '') as_dir=./ ;;
5167 */) ;;
5168 *) as_dir=$as_dir/ ;;
5169 esac
5170 for ac_prog in sed gsed
5171 do
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5174 as_fn_executable_p "$ac_path_SED" || continue
5175 # Check for GNU ac_path_SED and select it if it is found.
5176 # Check for GNU $ac_path_SED
5177 case `"$ac_path_SED" --version 2>&1` in #(
5178 *GNU*)
5179 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5180 #(
5181 *)
5182 ac_count=0
5183 printf %s 0123456789 >"conftest.in"
5184 while :
5185 do
5186 cat "conftest.in" "conftest.in" >"conftest.tmp"
5187 mv "conftest.tmp" "conftest.in"
5188 cp "conftest.in" "conftest.nl"
5189 printf "%s\n" '' >> "conftest.nl"
5190 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5192 as_fn_arith $ac_count + 1 && ac_count=$as_val
5193 if test $ac_count -gt ${ac_path_SED_max-0}; then
5194 # Best one so far, save it but keep looking for a better one
5195 ac_cv_path_SED="$ac_path_SED"
5196 ac_path_SED_max=$ac_count
5197 fi
5198 # 10*(2^10) chars as input seems more than enough
5199 test $ac_count -gt 10 && break
5200 done
5201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202 esac
5203
5204 $ac_path_SED_found && break 3
5205 done
5206 done
5207 done
5208 IFS=$as_save_IFS
5209 if test -z "$ac_cv_path_SED"; then
5210 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5211 fi
5212 else
5213 ac_cv_path_SED=$SED
5214 fi
5215 ;;
5216 esac
5217 fi
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5219 printf "%s\n" "$ac_cv_path_SED" >&6; }
5220 SED="$ac_cv_path_SED"
5221 rm -f conftest.sed
5222
5223 test -z "$SED" && SED=sed
5224 Xsed="$SED -e 1s/^X//"
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5237 printf %s "checking for grep that handles long lines and -e... " >&6; }
5238 if test ${ac_cv_path_GREP+y}
5239 then :
5240 printf %s "(cached) " >&6
5241 else case e in #(
5242 e) if test -z "$GREP"; then
5243 ac_path_GREP_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5247 do
5248 IFS=$as_save_IFS
5249 case $as_dir in #(((
5250 '') as_dir=./ ;;
5251 */) ;;
5252 *) as_dir=$as_dir/ ;;
5253 esac
5254 for ac_prog in grep ggrep
5255 do
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5258 as_fn_executable_p "$ac_path_GREP" || continue
5259 # Check for GNU ac_path_GREP and select it if it is found.
5260 # Check for GNU $ac_path_GREP
5261 case `"$ac_path_GREP" --version 2>&1` in #(
5262 *GNU*)
5263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5264 #(
5265 *)
5266 ac_count=0
5267 printf %s 0123456789 >"conftest.in"
5268 while :
5269 do
5270 cat "conftest.in" "conftest.in" >"conftest.tmp"
5271 mv "conftest.tmp" "conftest.in"
5272 cp "conftest.in" "conftest.nl"
5273 printf "%s\n" 'GREP' >> "conftest.nl"
5274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5276 as_fn_arith $ac_count + 1 && ac_count=$as_val
5277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5278 # Best one so far, save it but keep looking for a better one
5279 ac_cv_path_GREP="$ac_path_GREP"
5280 ac_path_GREP_max=$ac_count
5281 fi
5282 # 10*(2^10) chars as input seems more than enough
5283 test $ac_count -gt 10 && break
5284 done
5285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5286 esac
5287
5288 $ac_path_GREP_found && break 3
5289 done
5290 done
5291 done
5292 IFS=$as_save_IFS
5293 if test -z "$ac_cv_path_GREP"; then
5294 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5295 fi
5296 else
5297 ac_cv_path_GREP=$GREP
5298 fi
5299 ;;
5300 esac
5301 fi
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5303 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5304 GREP="$ac_cv_path_GREP"
5305
5306
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5308 printf %s "checking for egrep... " >&6; }
5309 if test ${ac_cv_path_EGREP+y}
5310 then :
5311 printf %s "(cached) " >&6
5312 else case e in #(
5313 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5314 then ac_cv_path_EGREP="$GREP -E"
5315 else
5316 if test -z "$EGREP"; then
5317 ac_path_EGREP_found=false
5318 # Loop through the user's path and test for each of PROGNAME-LIST
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5321 do
5322 IFS=$as_save_IFS
5323 case $as_dir in #(((
5324 '') as_dir=./ ;;
5325 */) ;;
5326 *) as_dir=$as_dir/ ;;
5327 esac
5328 for ac_prog in egrep
5329 do
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5332 as_fn_executable_p "$ac_path_EGREP" || continue
5333 # Check for GNU ac_path_EGREP and select it if it is found.
5334 # Check for GNU $ac_path_EGREP
5335 case `"$ac_path_EGREP" --version 2>&1` in #(
5336 *GNU*)
5337 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5338 #(
5339 *)
5340 ac_count=0
5341 printf %s 0123456789 >"conftest.in"
5342 while :
5343 do
5344 cat "conftest.in" "conftest.in" >"conftest.tmp"
5345 mv "conftest.tmp" "conftest.in"
5346 cp "conftest.in" "conftest.nl"
5347 printf "%s\n" 'EGREP' >> "conftest.nl"
5348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350 as_fn_arith $ac_count + 1 && ac_count=$as_val
5351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5352 # Best one so far, save it but keep looking for a better one
5353 ac_cv_path_EGREP="$ac_path_EGREP"
5354 ac_path_EGREP_max=$ac_count
5355 fi
5356 # 10*(2^10) chars as input seems more than enough
5357 test $ac_count -gt 10 && break
5358 done
5359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360 esac
5361
5362 $ac_path_EGREP_found && break 3
5363 done
5364 done
5365 done
5366 IFS=$as_save_IFS
5367 if test -z "$ac_cv_path_EGREP"; then
5368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5369 fi
5370 else
5371 ac_cv_path_EGREP=$EGREP
5372 fi
5373
5374 fi ;;
5375 esac
5376 fi
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5378 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5379 EGREP="$ac_cv_path_EGREP"
5380
5381 EGREP_TRADITIONAL=$EGREP
5382 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5383
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5385 printf %s "checking for fgrep... " >&6; }
5386 if test ${ac_cv_path_FGREP+y}
5387 then :
5388 printf %s "(cached) " >&6
5389 else case e in #(
5390 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5391 then ac_cv_path_FGREP="$GREP -F"
5392 else
5393 if test -z "$FGREP"; then
5394 ac_path_FGREP_found=false
5395 # Loop through the user's path and test for each of PROGNAME-LIST
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5398 do
5399 IFS=$as_save_IFS
5400 case $as_dir in #(((
5401 '') as_dir=./ ;;
5402 */) ;;
5403 *) as_dir=$as_dir/ ;;
5404 esac
5405 for ac_prog in fgrep
5406 do
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5409 as_fn_executable_p "$ac_path_FGREP" || continue
5410 # Check for GNU ac_path_FGREP and select it if it is found.
5411 # Check for GNU $ac_path_FGREP
5412 case `"$ac_path_FGREP" --version 2>&1` in #(
5413 *GNU*)
5414 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5415 #(
5416 *)
5417 ac_count=0
5418 printf %s 0123456789 >"conftest.in"
5419 while :
5420 do
5421 cat "conftest.in" "conftest.in" >"conftest.tmp"
5422 mv "conftest.tmp" "conftest.in"
5423 cp "conftest.in" "conftest.nl"
5424 printf "%s\n" 'FGREP' >> "conftest.nl"
5425 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5427 as_fn_arith $ac_count + 1 && ac_count=$as_val
5428 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5429 # Best one so far, save it but keep looking for a better one
5430 ac_cv_path_FGREP="$ac_path_FGREP"
5431 ac_path_FGREP_max=$ac_count
5432 fi
5433 # 10*(2^10) chars as input seems more than enough
5434 test $ac_count -gt 10 && break
5435 done
5436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5437 esac
5438
5439 $ac_path_FGREP_found && break 3
5440 done
5441 done
5442 done
5443 IFS=$as_save_IFS
5444 if test -z "$ac_cv_path_FGREP"; then
5445 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5446 fi
5447 else
5448 ac_cv_path_FGREP=$FGREP
5449 fi
5450
5451 fi ;;
5452 esac
5453 fi
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5455 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5456 FGREP="$ac_cv_path_FGREP"
5457
5458
5459 test -z "$GREP" && GREP=grep
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 # Check whether --with-gnu-ld was given.
5480 if test ${with_gnu_ld+y}
5481 then :
5482 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5483 else case e in #(
5484 e) with_gnu_ld=no ;;
5485 esac
5486 fi
5487
5488 ac_prog=ld
5489 if test yes = "$GCC"; then
5490 # Check if gcc -print-prog-name=ld gives a path.
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5492 printf %s "checking for ld used by $CC... " >&6; }
5493 case $host in
5494 *-*-mingw* | *-*-windows*)
5495 # gcc leaves a trailing carriage return, which upsets mingw
5496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5497 *)
5498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5499 esac
5500 case $ac_prog in
5501 # Accept absolute paths.
5502 [\\/]* | ?:[\\/]*)
5503 re_direlt='/[^/][^/]*/\.\./'
5504 # Canonicalize the pathname of ld
5505 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5506 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5507 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5508 done
5509 test -z "$LD" && LD=$ac_prog
5510 ;;
5511 "")
5512 # If it fails, then pretend we aren't using GCC.
5513 ac_prog=ld
5514 ;;
5515 *)
5516 # If it is relative, then search for the first ld in PATH.
5517 with_gnu_ld=unknown
5518 ;;
5519 esac
5520 elif test yes = "$with_gnu_ld"; then
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5522 printf %s "checking for GNU ld... " >&6; }
5523 else
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5525 printf %s "checking for non-GNU ld... " >&6; }
5526 fi
5527 if test ${lt_cv_path_LD+y}
5528 then :
5529 printf %s "(cached) " >&6
5530 else case e in #(
5531 e) if test -z "$LD"; then
5532 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5533 for ac_dir in $PATH; do
5534 IFS=$lt_save_ifs
5535 test -z "$ac_dir" && ac_dir=.
5536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5537 lt_cv_path_LD=$ac_dir/$ac_prog
5538 # Check to see if the program is GNU ld. I'd rather use --version,
5539 # but apparently some variants of GNU ld only accept -v.
5540 # Break only if it was the GNU/non-GNU ld that we prefer.
5541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5542 *GNU* | *'with BFD'*)
5543 test no != "$with_gnu_ld" && break
5544 ;;
5545 *)
5546 test yes != "$with_gnu_ld" && break
5547 ;;
5548 esac
5549 fi
5550 done
5551 IFS=$lt_save_ifs
5552 else
5553 lt_cv_path_LD=$LD # Let the user override the test with a path.
5554 fi ;;
5555 esac
5556 fi
5557
5558 LD=$lt_cv_path_LD
5559 if test -n "$LD"; then
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5561 printf "%s\n" "$LD" >&6; }
5562 else
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 printf "%s\n" "no" >&6; }
5565 fi
5566 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5568 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5569 if test ${lt_cv_prog_gnu_ld+y}
5570 then :
5571 printf %s "(cached) " >&6
5572 else case e in #(
5573 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5574 case `$LD -v 2>&1 </dev/null` in
5575 *GNU* | *'with BFD'*)
5576 lt_cv_prog_gnu_ld=yes
5577 ;;
5578 *)
5579 lt_cv_prog_gnu_ld=no
5580 ;;
5581 esac ;;
5582 esac
5583 fi
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5585 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5586 with_gnu_ld=$lt_cv_prog_gnu_ld
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5597 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5598 if test ${lt_cv_path_NM+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else case e in #(
5602 e) if test -n "$NM"; then
5603 # Let the user override the test.
5604 lt_cv_path_NM=$NM
5605 else
5606 lt_nm_to_check=${ac_tool_prefix}nm
5607 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5608 lt_nm_to_check="$lt_nm_to_check nm"
5609 fi
5610 for lt_tmp_nm in $lt_nm_to_check; do
5611 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5612 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5613 IFS=$lt_save_ifs
5614 test -z "$ac_dir" && ac_dir=.
5615 tmp_nm=$ac_dir/$lt_tmp_nm
5616 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5617 # Check to see if the nm accepts a BSD-compat flag.
5618 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5619 # nm: unknown option "B" ignored
5620 # Tru64's nm complains that /dev/null is an invalid object file
5621 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5622 case $build_os in
5623 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5624 *) lt_bad_file=/dev/null ;;
5625 esac
5626 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5627 *$lt_bad_file* | *'Invalid file or object type'*)
5628 lt_cv_path_NM="$tmp_nm -B"
5629 break 2
5630 ;;
5631 *)
5632 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5633 */dev/null*)
5634 lt_cv_path_NM="$tmp_nm -p"
5635 break 2
5636 ;;
5637 *)
5638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5639 continue # so that we can try to find one that supports BSD flags
5640 ;;
5641 esac
5642 ;;
5643 esac
5644 fi
5645 done
5646 IFS=$lt_save_ifs
5647 done
5648 : ${lt_cv_path_NM=no}
5649 fi ;;
5650 esac
5651 fi
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5653 printf "%s\n" "$lt_cv_path_NM" >&6; }
5654 if test no != "$lt_cv_path_NM"; then
5655 NM=$lt_cv_path_NM
5656 else
5657 # Didn't find any BSD compatible name lister, look for dumpbin.
5658 if test -n "$DUMPBIN"; then :
5659 # Let the user override the test.
5660 else
5661 if test -n "$ac_tool_prefix"; then
5662 for ac_prog in dumpbin "link -dump"
5663 do
5664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 printf %s "checking for $ac_word... " >&6; }
5668 if test ${ac_cv_prog_DUMPBIN+y}
5669 then :
5670 printf %s "(cached) " >&6
5671 else case e in #(
5672 e) if test -n "$DUMPBIN"; then
5673 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678 IFS=$as_save_IFS
5679 case $as_dir in #(((
5680 '') as_dir=./ ;;
5681 */) ;;
5682 *) as_dir=$as_dir/ ;;
5683 esac
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694 fi ;;
5695 esac
5696 fi
5697 DUMPBIN=$ac_cv_prog_DUMPBIN
5698 if test -n "$DUMPBIN"; then
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5700 printf "%s\n" "$DUMPBIN" >&6; }
5701 else
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 printf "%s\n" "no" >&6; }
5704 fi
5705
5706
5707 test -n "$DUMPBIN" && break
5708 done
5709 fi
5710 if test -z "$DUMPBIN"; then
5711 ac_ct_DUMPBIN=$DUMPBIN
5712 for ac_prog in dumpbin "link -dump"
5713 do
5714 # Extract the first word of "$ac_prog", so it can be a program name with args.
5715 set dummy $ac_prog; ac_word=$2
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 printf %s "checking for $ac_word... " >&6; }
5718 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5719 then :
5720 printf %s "(cached) " >&6
5721 else case e in #(
5722 e) if test -n "$ac_ct_DUMPBIN"; then
5723 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 case $as_dir in #(((
5730 '') as_dir=./ ;;
5731 */) ;;
5732 *) as_dir=$as_dir/ ;;
5733 esac
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740 done
5741 done
5742 IFS=$as_save_IFS
5743
5744 fi ;;
5745 esac
5746 fi
5747 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5748 if test -n "$ac_ct_DUMPBIN"; then
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5750 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5751 else
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 printf "%s\n" "no" >&6; }
5754 fi
5755
5756
5757 test -n "$ac_ct_DUMPBIN" && break
5758 done
5759
5760 if test "x$ac_ct_DUMPBIN" = x; then
5761 DUMPBIN=":"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764 yes:)
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767 ac_tool_warned=yes ;;
5768 esac
5769 DUMPBIN=$ac_ct_DUMPBIN
5770 fi
5771 fi
5772
5773 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5774 *COFF*)
5775 DUMPBIN="$DUMPBIN -symbols -headers"
5776 ;;
5777 *)
5778 DUMPBIN=:
5779 ;;
5780 esac
5781 fi
5782
5783 if test : != "$DUMPBIN"; then
5784 NM=$DUMPBIN
5785 fi
5786 fi
5787 test -z "$NM" && NM=nm
5788
5789
5790
5791
5792
5793
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5795 printf %s "checking the name lister ($NM) interface... " >&6; }
5796 if test ${lt_cv_nm_interface+y}
5797 then :
5798 printf %s "(cached) " >&6
5799 else case e in #(
5800 e) lt_cv_nm_interface="BSD nm"
5801 echo "int some_variable = 0;" > conftest.$ac_ext
5802 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5803 (eval "$ac_compile" 2>conftest.err)
5804 cat conftest.err >&5
5805 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5806 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5807 cat conftest.err >&5
5808 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5809 cat conftest.out >&5
5810 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5811 lt_cv_nm_interface="MS dumpbin"
5812 fi
5813 rm -f conftest* ;;
5814 esac
5815 fi
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5817 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5818
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5820 printf %s "checking whether ln -s works... " >&6; }
5821 LN_S=$as_ln_s
5822 if test "$LN_S" = "ln -s"; then
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824 printf "%s\n" "yes" >&6; }
5825 else
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5827 printf "%s\n" "no, using $LN_S" >&6; }
5828 fi
5829
5830 # find the maximum length of command line arguments
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5832 printf %s "checking the maximum length of command line arguments... " >&6; }
5833 if test ${lt_cv_sys_max_cmd_len+y}
5834 then :
5835 printf %s "(cached) " >&6
5836 else case e in #(
5837 e) i=0
5838 teststring=ABCD
5839
5840 case $build_os in
5841 msdosdjgpp*)
5842 # On DJGPP, this test can blow up pretty badly due to problems in libc
5843 # (any single argument exceeding 2000 bytes causes a buffer overrun
5844 # during glob expansion). Even if it were fixed, the result of this
5845 # check would be larger than it should be.
5846 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5847 ;;
5848
5849 gnu* | ironclad*)
5850 # Under GNU Hurd and Ironclad, this test is not required because there
5851 # is no limit to the length of command line arguments.
5852 # Libtool will interpret -1 as no limit whatsoever
5853 lt_cv_sys_max_cmd_len=-1;
5854 ;;
5855
5856 cygwin* | mingw* | windows* | cegcc*)
5857 # On Win9x/ME, this test blows up -- it succeeds, but takes
5858 # about 5 minutes as the teststring grows exponentially.
5859 # Worse, since 9x/ME are not pre-emptively multitasking,
5860 # you end up with a "frozen" computer, even though with patience
5861 # the test eventually succeeds (with a max line length of 256k).
5862 # Instead, let's just punt: use the minimum linelength reported by
5863 # all of the supported platforms: 8192 (on NT/2K/XP).
5864 lt_cv_sys_max_cmd_len=8192;
5865 ;;
5866
5867 mint*)
5868 # On MiNT this can take a long time and run out of memory.
5869 lt_cv_sys_max_cmd_len=8192;
5870 ;;
5871
5872 amigaos*)
5873 # On AmigaOS with pdksh, this test takes hours, literally.
5874 # So we just punt and use a minimum line length of 8192.
5875 lt_cv_sys_max_cmd_len=8192;
5876 ;;
5877
5878 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5879 # This has been around since 386BSD, at least. Likely further.
5880 if test -x /sbin/sysctl; then
5881 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5882 elif test -x /usr/sbin/sysctl; then
5883 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5884 else
5885 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5886 fi
5887 # And add a safety zone
5888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5890 ;;
5891
5892 interix*)
5893 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5894 lt_cv_sys_max_cmd_len=196608
5895 ;;
5896
5897 os2*)
5898 # The test takes a long time on OS/2.
5899 lt_cv_sys_max_cmd_len=8192
5900 ;;
5901
5902 osf*)
5903 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5904 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5905 # nice to cause kernel panics so lets avoid the loop below.
5906 # First set a reasonable default.
5907 lt_cv_sys_max_cmd_len=16384
5908 #
5909 if test -x /sbin/sysconfig; then
5910 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5911 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5912 esac
5913 fi
5914 ;;
5915 sco3.2v5*)
5916 lt_cv_sys_max_cmd_len=102400
5917 ;;
5918 sysv5* | sco5v6* | sysv4.2uw2*)
5919 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5920 if test -n "$kargmax"; then
5921 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5922 else
5923 lt_cv_sys_max_cmd_len=32768
5924 fi
5925 ;;
5926 *)
5927 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5928 if test -n "$lt_cv_sys_max_cmd_len" && \
5929 test undefined != "$lt_cv_sys_max_cmd_len"; then
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5932 else
5933 # Make teststring a little bigger before we do anything with it.
5934 # a 1K string should be a reasonable start.
5935 for i in 1 2 3 4 5 6 7 8; do
5936 teststring=$teststring$teststring
5937 done
5938 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5939 # If test is not a shell built-in, we'll probably end up computing a
5940 # maximum length that is only half of the actual maximum length, but
5941 # we can't tell.
5942 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5943 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5944 test 17 != "$i" # 1/2 MB should be enough
5945 do
5946 i=`expr $i + 1`
5947 teststring=$teststring$teststring
5948 done
5949 # Only check the string length outside the loop.
5950 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5951 teststring=
5952 # Add a significant safety factor because C++ compilers can tack on
5953 # massive amounts of additional arguments before passing them to the
5954 # linker. It appears as though 1/2 is a usable value.
5955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5956 fi
5957 ;;
5958 esac
5959 ;;
5960 esac
5961 fi
5962
5963 if test -n "$lt_cv_sys_max_cmd_len"; then
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5965 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5966 else
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5968 printf "%s\n" "none" >&6; }
5969 fi
5970 max_cmd_len=$lt_cv_sys_max_cmd_len
5971
5972
5973
5974
5975
5976
5977 : ${CP="cp -f"}
5978 : ${MV="mv -f"}
5979 : ${RM="rm -f"}
5980
5981 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5982 lt_unset=unset
5983 else
5984 lt_unset=false
5985 fi
5986
5987
5988
5989
5990
5991 # test EBCDIC or ASCII
5992 case `echo X|tr X '\101'` in
5993 A) # ASCII based system
5994 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5995 lt_SP2NL='tr \040 \012'
5996 lt_NL2SP='tr \015\012 \040\040'
5997 ;;
5998 *) # EBCDIC based system
5999 lt_SP2NL='tr \100 \n'
6000 lt_NL2SP='tr \r\n \100\100'
6001 ;;
6002 esac
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6013 printf %s "checking how to convert $build file names to $host format... " >&6; }
6014 if test ${lt_cv_to_host_file_cmd+y}
6015 then :
6016 printf %s "(cached) " >&6
6017 else case e in #(
6018 e) case $host in
6019 *-*-mingw* )
6020 case $build in
6021 *-*-mingw* | *-*-windows* ) # actually msys
6022 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6023 ;;
6024 *-*-cygwin* )
6025 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6026 ;;
6027 * ) # otherwise, assume *nix
6028 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6029 ;;
6030 esac
6031 ;;
6032 *-*-cygwin* )
6033 case $build in
6034 *-*-mingw* | *-*-windows* ) # actually msys
6035 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6036 ;;
6037 *-*-cygwin* )
6038 lt_cv_to_host_file_cmd=func_convert_file_noop
6039 ;;
6040 * ) # otherwise, assume *nix
6041 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6042 ;;
6043 esac
6044 ;;
6045 * ) # unhandled hosts (and "normal" native builds)
6046 lt_cv_to_host_file_cmd=func_convert_file_noop
6047 ;;
6048 esac
6049 ;;
6050 esac
6051 fi
6052
6053 to_host_file_cmd=$lt_cv_to_host_file_cmd
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6055 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6056
6057
6058
6059
6060
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6062 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6063 if test ${lt_cv_to_tool_file_cmd+y}
6064 then :
6065 printf %s "(cached) " >&6
6066 else case e in #(
6067 e) #assume ordinary cross tools, or native build.
6068 lt_cv_to_tool_file_cmd=func_convert_file_noop
6069 case $host in
6070 *-*-mingw* | *-*-windows* )
6071 case $build in
6072 *-*-mingw* | *-*-windows* ) # actually msys
6073 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6074 ;;
6075 esac
6076 ;;
6077 esac
6078 ;;
6079 esac
6080 fi
6081
6082 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6084 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6085
6086
6087
6088
6089
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6091 printf %s "checking for $LD option to reload object files... " >&6; }
6092 if test ${lt_cv_ld_reload_flag+y}
6093 then :
6094 printf %s "(cached) " >&6
6095 else case e in #(
6096 e) lt_cv_ld_reload_flag='-r' ;;
6097 esac
6098 fi
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6100 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6101 reload_flag=$lt_cv_ld_reload_flag
6102 case $reload_flag in
6103 "" | " "*) ;;
6104 *) reload_flag=" $reload_flag" ;;
6105 esac
6106 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6107 case $host_os in
6108 cygwin* | mingw* | windows* | pw32* | cegcc*)
6109 if test yes != "$GCC"; then
6110 reload_cmds=false
6111 fi
6112 ;;
6113 darwin*)
6114 if test yes = "$GCC"; then
6115 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6116 else
6117 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6118 fi
6119 ;;
6120 esac
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 # Extract the first word of "file", so it can be a program name with args.
6131 set dummy file; ac_word=$2
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 printf %s "checking for $ac_word... " >&6; }
6134 if test ${ac_cv_prog_FILECMD+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else case e in #(
6138 e) if test -n "$FILECMD"; then
6139 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144 IFS=$as_save_IFS
6145 case $as_dir in #(((
6146 '') as_dir=./ ;;
6147 */) ;;
6148 *) as_dir=$as_dir/ ;;
6149 esac
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_FILECMD="file"
6153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6161 fi ;;
6162 esac
6163 fi
6164 FILECMD=$ac_cv_prog_FILECMD
6165 if test -n "$FILECMD"; then
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6167 printf "%s\n" "$FILECMD" >&6; }
6168 else
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 printf "%s\n" "no" >&6; }
6171 fi
6172
6173
6174
6175
6176
6177
6178
6179
6180 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 printf %s "checking for $ac_word... " >&6; }
6185 if test ${ac_cv_prog_OBJDUMP+y}
6186 then :
6187 printf %s "(cached) " >&6
6188 else case e in #(
6189 e) if test -n "$OBJDUMP"; then
6190 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 case $as_dir in #(((
6197 '') as_dir=./ ;;
6198 */) ;;
6199 *) as_dir=$as_dir/ ;;
6200 esac
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6205 break 2
6206 fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6210
6211 fi ;;
6212 esac
6213 fi
6214 OBJDUMP=$ac_cv_prog_OBJDUMP
6215 if test -n "$OBJDUMP"; then
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6217 printf "%s\n" "$OBJDUMP" >&6; }
6218 else
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 printf "%s\n" "no" >&6; }
6221 fi
6222
6223
6224 fi
6225 if test -z "$ac_cv_prog_OBJDUMP"; then
6226 ac_ct_OBJDUMP=$OBJDUMP
6227 # Extract the first word of "objdump", so it can be a program name with args.
6228 set dummy objdump; ac_word=$2
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 printf %s "checking for $ac_word... " >&6; }
6231 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6232 then :
6233 printf %s "(cached) " >&6
6234 else case e in #(
6235 e) if test -n "$ac_ct_OBJDUMP"; then
6236 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241 IFS=$as_save_IFS
6242 case $as_dir in #(((
6243 '') as_dir=./ ;;
6244 */) ;;
6245 *) as_dir=$as_dir/ ;;
6246 esac
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi ;;
6258 esac
6259 fi
6260 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6261 if test -n "$ac_ct_OBJDUMP"; then
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6263 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6264 else
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 printf "%s\n" "no" >&6; }
6267 fi
6268
6269 if test "x$ac_ct_OBJDUMP" = x; then
6270 OBJDUMP="false"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 OBJDUMP=$ac_ct_OBJDUMP
6279 fi
6280 else
6281 OBJDUMP="$ac_cv_prog_OBJDUMP"
6282 fi
6283
6284 test -z "$OBJDUMP" && OBJDUMP=objdump
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6295 printf %s "checking how to recognize dependent libraries... " >&6; }
6296 if test ${lt_cv_deplibs_check_method+y}
6297 then :
6298 printf %s "(cached) " >&6
6299 else case e in #(
6300 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6301 lt_cv_file_magic_test_file=
6302 lt_cv_deplibs_check_method='unknown'
6303 # Need to set the preceding variable on all platforms that support
6304 # interlibrary dependencies.
6305 # 'none' -- dependencies not supported.
6306 # 'unknown' -- same as none, but documents that we really don't know.
6307 # 'pass_all' -- all dependencies passed with no checks.
6308 # 'file_magic [[regex]]' -- check by looking for files in library path
6309 # that responds to the $file_magic_cmd with a given extended regex.
6310 # If you have 'file' or equivalent on your system and you're not sure
6311 # whether 'pass_all' will *always* work, you probably want this one.
6312
6313 case $host_os in
6314 aix[4-9]*)
6315 lt_cv_deplibs_check_method=pass_all
6316 ;;
6317
6318 beos*)
6319 lt_cv_deplibs_check_method=pass_all
6320 ;;
6321
6322 bsdi[45]*)
6323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6324 lt_cv_file_magic_cmd='$FILECMD -L'
6325 lt_cv_file_magic_test_file=/shlib/libc.so
6326 ;;
6327
6328 cygwin*)
6329 # func_win32_libid is a shell function defined in ltmain.sh
6330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6331 lt_cv_file_magic_cmd='func_win32_libid'
6332 ;;
6333
6334 mingw* | windows* | pw32*)
6335 # Base MSYS/MinGW do not provide the 'file' command needed by
6336 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6337 # unless we find 'file', for example because we are cross-compiling.
6338 if ( file / ) >/dev/null 2>&1; then
6339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6340 lt_cv_file_magic_cmd='func_win32_libid'
6341 else
6342 # Keep this pattern in sync with the one in func_win32_libid.
6343 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6344 lt_cv_file_magic_cmd='$OBJDUMP -f'
6345 fi
6346 ;;
6347
6348 cegcc*)
6349 # use the weaker test based on 'objdump'. See mingw*.
6350 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6351 lt_cv_file_magic_cmd='$OBJDUMP -f'
6352 ;;
6353
6354 darwin* | rhapsody*)
6355 lt_cv_deplibs_check_method=pass_all
6356 ;;
6357
6358 freebsd* | dragonfly* | midnightbsd*)
6359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6360 case $host_cpu in
6361 i*86 )
6362 # Not sure whether the presence of OpenBSD here was a mistake.
6363 # Let's accept both of them until this is cleared up.
6364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6365 lt_cv_file_magic_cmd=$FILECMD
6366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6367 ;;
6368 esac
6369 else
6370 lt_cv_deplibs_check_method=pass_all
6371 fi
6372 ;;
6373
6374 haiku*)
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
6377
6378 hpux10.20* | hpux11*)
6379 lt_cv_file_magic_cmd=$FILECMD
6380 case $host_cpu in
6381 ia64*)
6382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6384 ;;
6385 hppa*64*)
6386 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]'
6387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6388 ;;
6389 *)
6390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6392 ;;
6393 esac
6394 ;;
6395
6396 interix[3-9]*)
6397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6399 ;;
6400
6401 irix5* | irix6* | nonstopux*)
6402 case $LD in
6403 *-32|*"-32 ") libmagic=32-bit;;
6404 *-n32|*"-n32 ") libmagic=N32;;
6405 *-64|*"-64 ") libmagic=64-bit;;
6406 *) libmagic=never-match;;
6407 esac
6408 lt_cv_deplibs_check_method=pass_all
6409 ;;
6410
6411 # This must be glibc/ELF.
6412 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416 *-mlibc)
6417 lt_cv_deplibs_check_method=pass_all
6418 ;;
6419
6420 netbsd* | netbsdelf*-gnu)
6421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6423 else
6424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6425 fi
6426 ;;
6427
6428 newos6*)
6429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6430 lt_cv_file_magic_cmd=$FILECMD
6431 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6432 ;;
6433
6434 *nto* | *qnx*)
6435 lt_cv_deplibs_check_method=pass_all
6436 ;;
6437
6438 openbsd*)
6439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6441 else
6442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6443 fi
6444 ;;
6445
6446 osf3* | osf4* | osf5*)
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
6449
6450 rdos*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
6453
6454 serenity*)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
6457
6458 solaris*)
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
6461
6462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466 sysv4 | sysv4.3*)
6467 case $host_vendor in
6468 motorola)
6469 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]'
6470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6471 ;;
6472 ncr)
6473 lt_cv_deplibs_check_method=pass_all
6474 ;;
6475 sequent)
6476 lt_cv_file_magic_cmd='/bin/file'
6477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6478 ;;
6479 sni)
6480 lt_cv_file_magic_cmd='/bin/file'
6481 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6482 lt_cv_file_magic_test_file=/lib/libc.so
6483 ;;
6484 siemens)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487 pc)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490 esac
6491 ;;
6492
6493 tpf*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496 os2*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499 esac
6500 ;;
6501 esac
6502 fi
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6504 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6505
6506 file_magic_glob=
6507 want_nocaseglob=no
6508 if test "$build" = "$host"; then
6509 case $host_os in
6510 mingw* | windows* | pw32*)
6511 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6512 want_nocaseglob=yes
6513 else
6514 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6515 fi
6516 ;;
6517 esac
6518 fi
6519
6520 file_magic_cmd=$lt_cv_file_magic_cmd
6521 deplibs_check_method=$lt_cv_deplibs_check_method
6522 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 printf %s "checking for $ac_word... " >&6; }
6550 if test ${ac_cv_prog_DLLTOOL+y}
6551 then :
6552 printf %s "(cached) " >&6
6553 else case e in #(
6554 e) if test -n "$DLLTOOL"; then
6555 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560 IFS=$as_save_IFS
6561 case $as_dir in #(((
6562 '') as_dir=./ ;;
6563 */) ;;
6564 *) as_dir=$as_dir/ ;;
6565 esac
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6575
6576 fi ;;
6577 esac
6578 fi
6579 DLLTOOL=$ac_cv_prog_DLLTOOL
6580 if test -n "$DLLTOOL"; then
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6582 printf "%s\n" "$DLLTOOL" >&6; }
6583 else
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 printf "%s\n" "no" >&6; }
6586 fi
6587
6588
6589 fi
6590 if test -z "$ac_cv_prog_DLLTOOL"; then
6591 ac_ct_DLLTOOL=$DLLTOOL
6592 # Extract the first word of "dlltool", so it can be a program name with args.
6593 set dummy dlltool; ac_word=$2
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 printf %s "checking for $ac_word... " >&6; }
6596 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6597 then :
6598 printf %s "(cached) " >&6
6599 else case e in #(
6600 e) if test -n "$ac_ct_DLLTOOL"; then
6601 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606 IFS=$as_save_IFS
6607 case $as_dir in #(((
6608 '') as_dir=./ ;;
6609 */) ;;
6610 *) as_dir=$as_dir/ ;;
6611 esac
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622 fi ;;
6623 esac
6624 fi
6625 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6626 if test -n "$ac_ct_DLLTOOL"; then
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6628 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6629 else
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 printf "%s\n" "no" >&6; }
6632 fi
6633
6634 if test "x$ac_ct_DLLTOOL" = x; then
6635 DLLTOOL="false"
6636 else
6637 case $cross_compiling:$ac_tool_warned in
6638 yes:)
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6640 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6641 ac_tool_warned=yes ;;
6642 esac
6643 DLLTOOL=$ac_ct_DLLTOOL
6644 fi
6645 else
6646 DLLTOOL="$ac_cv_prog_DLLTOOL"
6647 fi
6648
6649 test -z "$DLLTOOL" && DLLTOOL=dlltool
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6661 printf %s "checking how to associate runtime and link libraries... " >&6; }
6662 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else case e in #(
6666 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6667
6668 case $host_os in
6669 cygwin* | mingw* | windows* | pw32* | cegcc*)
6670 # two different shell functions defined in ltmain.sh;
6671 # decide which one to use based on capabilities of $DLLTOOL
6672 case `$DLLTOOL --help 2>&1` in
6673 *--identify-strict*)
6674 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6675 ;;
6676 *)
6677 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6678 ;;
6679 esac
6680 ;;
6681 *)
6682 # fallback: assume linklib IS sharedlib
6683 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6684 ;;
6685 esac
6686 ;;
6687 esac
6688 fi
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6690 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6691 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6692 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6693
6694
6695
6696
6697
6698
6699
6700 if test -n "$ac_tool_prefix"; then
6701 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6702 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 printf %s "checking for $ac_word... " >&6; }
6705 if test ${ac_cv_prog_RANLIB+y}
6706 then :
6707 printf %s "(cached) " >&6
6708 else case e in #(
6709 e) if test -n "$RANLIB"; then
6710 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 case $as_dir in #(((
6717 '') as_dir=./ ;;
6718 */) ;;
6719 *) as_dir=$as_dir/ ;;
6720 esac
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731 fi ;;
6732 esac
6733 fi
6734 RANLIB=$ac_cv_prog_RANLIB
6735 if test -n "$RANLIB"; then
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6737 printf "%s\n" "$RANLIB" >&6; }
6738 else
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 printf "%s\n" "no" >&6; }
6741 fi
6742
6743
6744 fi
6745 if test -z "$ac_cv_prog_RANLIB"; then
6746 ac_ct_RANLIB=$RANLIB
6747 # Extract the first word of "ranlib", so it can be a program name with args.
6748 set dummy ranlib; ac_word=$2
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 printf %s "checking for $ac_word... " >&6; }
6751 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6752 then :
6753 printf %s "(cached) " >&6
6754 else case e in #(
6755 e) if test -n "$ac_ct_RANLIB"; then
6756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 case $as_dir in #(((
6763 '') as_dir=./ ;;
6764 */) ;;
6765 *) as_dir=$as_dir/ ;;
6766 esac
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_ac_ct_RANLIB="ranlib"
6770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi ;;
6778 esac
6779 fi
6780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6781 if test -n "$ac_ct_RANLIB"; then
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6783 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6784 else
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 printf "%s\n" "no" >&6; }
6787 fi
6788
6789 if test "x$ac_ct_RANLIB" = x; then
6790 RANLIB=":"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798 RANLIB=$ac_ct_RANLIB
6799 fi
6800 else
6801 RANLIB="$ac_cv_prog_RANLIB"
6802 fi
6803
6804 if test -n "$ac_tool_prefix"; then
6805 for ac_prog in ar
6806 do
6807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 printf %s "checking for $ac_word... " >&6; }
6811 if test ${ac_cv_prog_AR+y}
6812 then :
6813 printf %s "(cached) " >&6
6814 else case e in #(
6815 e) if test -n "$AR"; then
6816 ac_cv_prog_AR="$AR" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821 IFS=$as_save_IFS
6822 case $as_dir in #(((
6823 '') as_dir=./ ;;
6824 */) ;;
6825 *) as_dir=$as_dir/ ;;
6826 esac
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi ;;
6838 esac
6839 fi
6840 AR=$ac_cv_prog_AR
6841 if test -n "$AR"; then
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6843 printf "%s\n" "$AR" >&6; }
6844 else
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 printf "%s\n" "no" >&6; }
6847 fi
6848
6849
6850 test -n "$AR" && break
6851 done
6852 fi
6853 if test -z "$AR"; then
6854 ac_ct_AR=$AR
6855 for ac_prog in ar
6856 do
6857 # Extract the first word of "$ac_prog", so it can be a program name with args.
6858 set dummy $ac_prog; ac_word=$2
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 printf %s "checking for $ac_word... " >&6; }
6861 if test ${ac_cv_prog_ac_ct_AR+y}
6862 then :
6863 printf %s "(cached) " >&6
6864 else case e in #(
6865 e) if test -n "$ac_ct_AR"; then
6866 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 case $as_dir in #(((
6873 '') as_dir=./ ;;
6874 */) ;;
6875 *) as_dir=$as_dir/ ;;
6876 esac
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_ac_ct_AR="$ac_prog"
6880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi ;;
6888 esac
6889 fi
6890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6891 if test -n "$ac_ct_AR"; then
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6893 printf "%s\n" "$ac_ct_AR" >&6; }
6894 else
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 printf "%s\n" "no" >&6; }
6897 fi
6898
6899
6900 test -n "$ac_ct_AR" && break
6901 done
6902
6903 if test "x$ac_ct_AR" = x; then
6904 AR="false"
6905 else
6906 case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912 AR=$ac_ct_AR
6913 fi
6914 fi
6915
6916 : ${AR=ar}
6917
6918
6919
6920
6921
6922
6923 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6924 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6925 # higher priority because that's what people were doing historically (setting
6926 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6927 # variable obsoleted/removed.
6928
6929 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6930 lt_ar_flags=$AR_FLAGS
6931
6932
6933
6934
6935
6936
6937 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6938 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6939
6940
6941
6942
6943
6944
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6946 printf %s "checking for archiver @FILE support... " >&6; }
6947 if test ${lt_cv_ar_at_file+y}
6948 then :
6949 printf %s "(cached) " >&6
6950 else case e in #(
6951 e) lt_cv_ar_at_file=no
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954
6955 int
6956 main (void)
6957 {
6958
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 if ac_fn_c_try_compile "$LINENO"
6964 then :
6965 echo conftest.$ac_objext > conftest.lst
6966 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6968 (eval $lt_ar_try) 2>&5
6969 ac_status=$?
6970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971 test $ac_status = 0; }
6972 if test 0 -eq "$ac_status"; then
6973 # Ensure the archiver fails upon bogus file names.
6974 rm -f conftest.$ac_objext libconftest.a
6975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6976 (eval $lt_ar_try) 2>&5
6977 ac_status=$?
6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; }
6980 if test 0 -ne "$ac_status"; then
6981 lt_cv_ar_at_file=@
6982 fi
6983 fi
6984 rm -f conftest.* libconftest.a
6985
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6988 ;;
6989 esac
6990 fi
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6992 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6993
6994 if test no = "$lt_cv_ar_at_file"; then
6995 archiver_list_spec=
6996 else
6997 archiver_list_spec=$lt_cv_ar_at_file
6998 fi
6999
7000
7001
7002
7003
7004
7005
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}strip; ac_word=$2
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 printf %s "checking for $ac_word... " >&6; }
7011 if test ${ac_cv_prog_STRIP+y}
7012 then :
7013 printf %s "(cached) " >&6
7014 else case e in #(
7015 e) if test -n "$STRIP"; then
7016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021 IFS=$as_save_IFS
7022 case $as_dir in #(((
7023 '') as_dir=./ ;;
7024 */) ;;
7025 *) as_dir=$as_dir/ ;;
7026 esac
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037 fi ;;
7038 esac
7039 fi
7040 STRIP=$ac_cv_prog_STRIP
7041 if test -n "$STRIP"; then
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7043 printf "%s\n" "$STRIP" >&6; }
7044 else
7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 printf "%s\n" "no" >&6; }
7047 fi
7048
7049
7050 fi
7051 if test -z "$ac_cv_prog_STRIP"; then
7052 ac_ct_STRIP=$STRIP
7053 # Extract the first word of "strip", so it can be a program name with args.
7054 set dummy strip; ac_word=$2
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 printf %s "checking for $ac_word... " >&6; }
7057 if test ${ac_cv_prog_ac_ct_STRIP+y}
7058 then :
7059 printf %s "(cached) " >&6
7060 else case e in #(
7061 e) if test -n "$ac_ct_STRIP"; then
7062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 case $as_dir in #(((
7069 '') as_dir=./ ;;
7070 */) ;;
7071 *) as_dir=$as_dir/ ;;
7072 esac
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_ac_ct_STRIP="strip"
7076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi ;;
7084 esac
7085 fi
7086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7087 if test -n "$ac_ct_STRIP"; then
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7089 printf "%s\n" "$ac_ct_STRIP" >&6; }
7090 else
7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 printf "%s\n" "no" >&6; }
7093 fi
7094
7095 if test "x$ac_ct_STRIP" = x; then
7096 STRIP=":"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099 yes:)
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102 ac_tool_warned=yes ;;
7103 esac
7104 STRIP=$ac_ct_STRIP
7105 fi
7106 else
7107 STRIP="$ac_cv_prog_STRIP"
7108 fi
7109
7110 test -z "$STRIP" && STRIP=:
7111
7112
7113
7114
7115
7116
7117
7118 test -z "$RANLIB" && RANLIB=:
7119
7120
7121
7122
7123
7124
7125 # Determine commands to create old-style static archives.
7126 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7127 old_postinstall_cmds='chmod 644 $oldlib'
7128 old_postuninstall_cmds=
7129
7130 if test -n "$RANLIB"; then
7131 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7133 fi
7134
7135 case $host_os in
7136 darwin*)
7137 lock_old_archive_extraction=yes ;;
7138 *)
7139 lock_old_archive_extraction=no ;;
7140 esac
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 # If no C compiler was specified, use CC.
7181 LTCC=${LTCC-"$CC"}
7182
7183 # If no C compiler flags were specified, use CFLAGS.
7184 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7185
7186 # Allow CC to be a program name with arguments.
7187 compiler=$CC
7188
7189
7190 # Check for command to grab the raw symbol name followed by C symbol from nm.
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7192 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7193 if test ${lt_cv_sys_global_symbol_pipe+y}
7194 then :
7195 printf %s "(cached) " >&6
7196 else case e in #(
7197 e)
7198 # These are sane defaults that work on at least a few old systems.
7199 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7200
7201 # Character class describing NM global symbol codes.
7202 symcode='[BCDEGRST]'
7203
7204 # Regexp to match symbols that can be accessed directly from C.
7205 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7206
7207 # Define system-specific variables.
7208 case $host_os in
7209 aix*)
7210 symcode='[BCDT]'
7211 ;;
7212 cygwin* | mingw* | windows* | pw32* | cegcc*)
7213 symcode='[ABCDGISTW]'
7214 ;;
7215 hpux*)
7216 if test ia64 = "$host_cpu"; then
7217 symcode='[ABCDEGRST]'
7218 fi
7219 ;;
7220 irix* | nonstopux*)
7221 symcode='[BCDEGRST]'
7222 ;;
7223 osf*)
7224 symcode='[BCDEGQRST]'
7225 ;;
7226 solaris*)
7227 symcode='[BCDRT]'
7228 ;;
7229 sco3.2v5*)
7230 symcode='[DT]'
7231 ;;
7232 sysv4.2uw2*)
7233 symcode='[DT]'
7234 ;;
7235 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7236 symcode='[ABDT]'
7237 ;;
7238 sysv4)
7239 symcode='[DFNSTU]'
7240 ;;
7241 esac
7242
7243 # If we're using GNU nm, then use its standard symbol codes.
7244 case `$NM -V 2>&1` in
7245 *GNU* | *'with BFD'*)
7246 symcode='[ABCDGIRSTW]' ;;
7247 esac
7248
7249 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7250 # Gets list of data symbols to import.
7251 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7252 # Adjust the below global symbol transforms to fixup imported variables.
7253 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7254 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7255 lt_c_name_lib_hook="\
7256 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7257 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7258 else
7259 # Disable hooks by default.
7260 lt_cv_sys_global_symbol_to_import=
7261 lt_cdecl_hook=
7262 lt_c_name_hook=
7263 lt_c_name_lib_hook=
7264 fi
7265
7266 # Transform an extracted symbol line into a proper C declaration.
7267 # Some systems (esp. on ia64) link data and code symbols differently,
7268 # so use this general approach.
7269 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7270 $lt_cdecl_hook\
7271 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7272 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7273
7274 # Transform an extracted symbol line into symbol name and symbol address
7275 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7276 $lt_c_name_hook\
7277 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7278 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7279
7280 # Transform an extracted symbol line into symbol name with lib prefix and
7281 # symbol address.
7282 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7283 $lt_c_name_lib_hook\
7284 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7285 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7286 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7287
7288 # Handle CRLF in mingw tool chain
7289 opt_cr=
7290 case $build_os in
7291 mingw* | windows*)
7292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7293 ;;
7294 esac
7295
7296 # Try without a prefix underscore, then with it.
7297 for ac_symprfx in "" "_"; do
7298
7299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7300 symxfrm="\\1 $ac_symprfx\\2 \\2"
7301
7302 # Write the raw and C identifiers.
7303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7304 # Fake it for dumpbin and say T for any non-static function,
7305 # D for any global variable and I for any imported variable.
7306 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7307 # which start with @ or ?.
7308 lt_cv_sys_global_symbol_pipe="$AWK '"\
7309 " {last_section=section; section=\$ 3};"\
7310 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7311 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7312 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7313 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7314 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7315 " \$ 0!~/External *\|/{next};"\
7316 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7317 " {if(hide[section]) next};"\
7318 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7319 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7320 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7321 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7322 " ' prfx=^$ac_symprfx"
7323 else
7324 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7325 fi
7326 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7327
7328 # Check to see that the pipe works correctly.
7329 pipe_works=no
7330
7331 rm -f conftest*
7332 cat > conftest.$ac_ext <<_LT_EOF
7333 #ifdef __cplusplus
7334 extern "C" {
7335 #endif
7336 char nm_test_var;
7337 void nm_test_func(void);
7338 void nm_test_func(void){}
7339 #ifdef __cplusplus
7340 }
7341 #endif
7342 int main(void){nm_test_var='a';nm_test_func();return(0);}
7343 _LT_EOF
7344
7345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7346 (eval $ac_compile) 2>&5
7347 ac_status=$?
7348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349 test $ac_status = 0; }; then
7350 # Now try to grab the symbols.
7351 nlist=conftest.nm
7352 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7353 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7354 # Try sorting and uniquifying the output.
7355 if sort "$nlist" | uniq > "$nlist"T; then
7356 mv -f "$nlist"T "$nlist"
7357 else
7358 rm -f "$nlist"T
7359 fi
7360
7361 # Make sure that we snagged all the symbols we need.
7362 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7363 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7364 cat <<_LT_EOF > conftest.$ac_ext
7365 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7366 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7367 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7368 relocations are performed -- see ld's documentation on pseudo-relocs. */
7369 # define LT_DLSYM_CONST
7370 #elif defined __osf__
7371 /* This system does not cope well with relocations in const data. */
7372 # define LT_DLSYM_CONST
7373 #else
7374 # define LT_DLSYM_CONST const
7375 #endif
7376
7377 #ifdef __cplusplus
7378 extern "C" {
7379 #endif
7380
7381 _LT_EOF
7382 # Now generate the symbol file.
7383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7384
7385 cat <<_LT_EOF >> conftest.$ac_ext
7386
7387 /* The mapping between symbol names and symbols. */
7388 LT_DLSYM_CONST struct {
7389 const char *name;
7390 void *address;
7391 }
7392 lt__PROGRAM__LTX_preloaded_symbols[] =
7393 {
7394 { "@PROGRAM@", (void *) 0 },
7395 _LT_EOF
7396 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7397 cat <<\_LT_EOF >> conftest.$ac_ext
7398 {0, (void *) 0}
7399 };
7400
7401 /* This works around a problem in FreeBSD linker */
7402 #ifdef FREEBSD_WORKAROUND
7403 static const void *lt_preloaded_setup() {
7404 return lt__PROGRAM__LTX_preloaded_symbols;
7405 }
7406 #endif
7407
7408 #ifdef __cplusplus
7409 }
7410 #endif
7411 _LT_EOF
7412 # Now try linking the two files.
7413 mv conftest.$ac_objext conftstm.$ac_objext
7414 lt_globsym_save_LIBS=$LIBS
7415 lt_globsym_save_CFLAGS=$CFLAGS
7416 LIBS=conftstm.$ac_objext
7417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7419 (eval $ac_link) 2>&5
7420 ac_status=$?
7421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7423 pipe_works=yes
7424 fi
7425 LIBS=$lt_globsym_save_LIBS
7426 CFLAGS=$lt_globsym_save_CFLAGS
7427 else
7428 echo "cannot find nm_test_func in $nlist" >&5
7429 fi
7430 else
7431 echo "cannot find nm_test_var in $nlist" >&5
7432 fi
7433 else
7434 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7435 fi
7436 else
7437 echo "$progname: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7439 fi
7440 rm -rf conftest* conftst*
7441
7442 # Do not use the global_symbol_pipe unless it works.
7443 if test yes = "$pipe_works"; then
7444 break
7445 else
7446 lt_cv_sys_global_symbol_pipe=
7447 fi
7448 done
7449 ;;
7450 esac
7451 fi
7452
7453 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7454 lt_cv_sys_global_symbol_to_cdecl=
7455 fi
7456 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7458 printf "%s\n" "failed" >&6; }
7459 else
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7461 printf "%s\n" "ok" >&6; }
7462 fi
7463
7464 # Response file support.
7465 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7466 nm_file_list_spec='@'
7467 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7468 nm_file_list_spec='@'
7469 fi
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7508 printf %s "checking for sysroot... " >&6; }
7509
7510 # Check whether --with-sysroot was given.
7511 if test ${with_sysroot+y}
7512 then :
7513 withval=$with_sysroot;
7514 else case e in #(
7515 e) with_sysroot=no ;;
7516 esac
7517 fi
7518
7519
7520 lt_sysroot=
7521 case $with_sysroot in #(
7522 yes)
7523 if test yes = "$GCC"; then
7524 # Trim trailing / since we'll always append absolute paths and we want
7525 # to avoid //, if only for less confusing output for the user.
7526 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7527 fi
7528 ;; #(
7529 /*)
7530 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7531 ;; #(
7532 no|'')
7533 ;; #(
7534 *)
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7536 printf "%s\n" "$with_sysroot" >&6; }
7537 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7538 ;;
7539 esac
7540
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7542 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7543
7544
7545
7546
7547
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7549 printf %s "checking for a working dd... " >&6; }
7550 if test ${ac_cv_path_lt_DD+y}
7551 then :
7552 printf %s "(cached) " >&6
7553 else case e in #(
7554 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7555 cat conftest.i conftest.i >conftest2.i
7556 : ${lt_DD:=$DD}
7557 if test -z "$lt_DD"; then
7558 ac_path_lt_DD_found=false
7559 # Loop through the user's path and test for each of PROGNAME-LIST
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563 IFS=$as_save_IFS
7564 case $as_dir in #(((
7565 '') as_dir=./ ;;
7566 */) ;;
7567 *) as_dir=$as_dir/ ;;
7568 esac
7569 for ac_prog in dd
7570 do
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7573 as_fn_executable_p "$ac_path_lt_DD" || continue
7574 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7575 cmp -s conftest.i conftest.out \
7576 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7577 fi
7578 $ac_path_lt_DD_found && break 3
7579 done
7580 done
7581 done
7582 IFS=$as_save_IFS
7583 if test -z "$ac_cv_path_lt_DD"; then
7584 :
7585 fi
7586 else
7587 ac_cv_path_lt_DD=$lt_DD
7588 fi
7589
7590 rm -f conftest.i conftest2.i conftest.out ;;
7591 esac
7592 fi
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7594 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7595
7596
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7598 printf %s "checking how to truncate binary pipes... " >&6; }
7599 if test ${lt_cv_truncate_bin+y}
7600 then :
7601 printf %s "(cached) " >&6
7602 else case e in #(
7603 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7604 cat conftest.i conftest.i >conftest2.i
7605 lt_cv_truncate_bin=
7606 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7607 cmp -s conftest.i conftest.out \
7608 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7609 fi
7610 rm -f conftest.i conftest2.i conftest.out
7611 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7612 esac
7613 fi
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7615 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7616
7617
7618
7619
7620
7621
7622
7623 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7624 func_cc_basename ()
7625 {
7626 for cc_temp in $*""; do
7627 case $cc_temp in
7628 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7629 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7630 \-*) ;;
7631 *) break;;
7632 esac
7633 done
7634 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7635 }
7636
7637 # Check whether --enable-libtool-lock was given.
7638 if test ${enable_libtool_lock+y}
7639 then :
7640 enableval=$enable_libtool_lock;
7641 fi
7642
7643 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7644
7645 # Some flags need to be propagated to the compiler or linker for good
7646 # libtool support.
7647 case $host in
7648 ia64-*-hpux*)
7649 # Find out what ABI is being produced by ac_compile, and set mode
7650 # options accordingly.
7651 echo 'int i;' > conftest.$ac_ext
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7653 (eval $ac_compile) 2>&5
7654 ac_status=$?
7655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; }; then
7657 case `$FILECMD conftest.$ac_objext` in
7658 *ELF-32*)
7659 HPUX_IA64_MODE=32
7660 ;;
7661 *ELF-64*)
7662 HPUX_IA64_MODE=64
7663 ;;
7664 esac
7665 fi
7666 rm -rf conftest*
7667 ;;
7668 *-*-irix6*)
7669 # Find out what ABI is being produced by ac_compile, and set linker
7670 # options accordingly.
7671 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7673 (eval $ac_compile) 2>&5
7674 ac_status=$?
7675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7676 test $ac_status = 0; }; then
7677 if test yes = "$lt_cv_prog_gnu_ld"; then
7678 case `$FILECMD conftest.$ac_objext` in
7679 *32-bit*)
7680 LD="${LD-ld} -melf32bsmip"
7681 ;;
7682 *N32*)
7683 LD="${LD-ld} -melf32bmipn32"
7684 ;;
7685 *64-bit*)
7686 LD="${LD-ld} -melf64bmip"
7687 ;;
7688 esac
7689 else
7690 case `$FILECMD conftest.$ac_objext` in
7691 *32-bit*)
7692 LD="${LD-ld} -32"
7693 ;;
7694 *N32*)
7695 LD="${LD-ld} -n32"
7696 ;;
7697 *64-bit*)
7698 LD="${LD-ld} -64"
7699 ;;
7700 esac
7701 fi
7702 fi
7703 rm -rf conftest*
7704 ;;
7705
7706 mips64*-*linux*)
7707 # Find out what ABI is being produced by ac_compile, and set linker
7708 # options accordingly.
7709 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7711 (eval $ac_compile) 2>&5
7712 ac_status=$?
7713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714 test $ac_status = 0; }; then
7715 emul=elf
7716 case `$FILECMD conftest.$ac_objext` in
7717 *32-bit*)
7718 emul="${emul}32"
7719 ;;
7720 *64-bit*)
7721 emul="${emul}64"
7722 ;;
7723 esac
7724 case `$FILECMD conftest.$ac_objext` in
7725 *MSB*)
7726 emul="${emul}btsmip"
7727 ;;
7728 *LSB*)
7729 emul="${emul}ltsmip"
7730 ;;
7731 esac
7732 case `$FILECMD conftest.$ac_objext` in
7733 *N32*)
7734 emul="${emul}n32"
7735 ;;
7736 esac
7737 LD="${LD-ld} -m $emul"
7738 fi
7739 rm -rf conftest*
7740 ;;
7741
7742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7743 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7744 # Find out what ABI is being produced by ac_compile, and set linker
7745 # options accordingly. Note that the listed cases only cover the
7746 # situations where additional linker options are needed (such as when
7747 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7748 # vice versa); the common cases where no linker options are needed do
7749 # not appear in the list.
7750 echo 'int i;' > conftest.$ac_ext
7751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7752 (eval $ac_compile) 2>&5
7753 ac_status=$?
7754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755 test $ac_status = 0; }; then
7756 case `$FILECMD conftest.o` in
7757 *32-bit*)
7758 case $host in
7759 x86_64-*kfreebsd*-gnu)
7760 LD="${LD-ld} -m elf_i386_fbsd"
7761 ;;
7762 x86_64-*linux*|x86_64-gnu*)
7763 case `$FILECMD conftest.o` in
7764 *x86-64*)
7765 LD="${LD-ld} -m elf32_x86_64"
7766 ;;
7767 *)
7768 LD="${LD-ld} -m elf_i386"
7769 ;;
7770 esac
7771 ;;
7772 powerpc64le-*linux*)
7773 LD="${LD-ld} -m elf32lppclinux"
7774 ;;
7775 powerpc64-*linux*)
7776 LD="${LD-ld} -m elf32ppclinux"
7777 ;;
7778 s390x-*linux*)
7779 LD="${LD-ld} -m elf_s390"
7780 ;;
7781 sparc64-*linux*)
7782 LD="${LD-ld} -m elf32_sparc"
7783 ;;
7784 esac
7785 ;;
7786 *64-bit*)
7787 case $host in
7788 x86_64-*kfreebsd*-gnu)
7789 LD="${LD-ld} -m elf_x86_64_fbsd"
7790 ;;
7791 x86_64-*linux*|x86_64-gnu*)
7792 LD="${LD-ld} -m elf_x86_64"
7793 ;;
7794 powerpcle-*linux*)
7795 LD="${LD-ld} -m elf64lppc"
7796 ;;
7797 powerpc-*linux*)
7798 LD="${LD-ld} -m elf64ppc"
7799 ;;
7800 s390*-*linux*|s390*-*tpf*)
7801 LD="${LD-ld} -m elf64_s390"
7802 ;;
7803 sparc*-*linux*)
7804 LD="${LD-ld} -m elf64_sparc"
7805 ;;
7806 esac
7807 ;;
7808 esac
7809 fi
7810 rm -rf conftest*
7811 ;;
7812
7813 *-*-sco3.2v5*)
7814 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7815 SAVE_CFLAGS=$CFLAGS
7816 CFLAGS="$CFLAGS -belf"
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7818 printf %s "checking whether the C compiler needs -belf... " >&6; }
7819 if test ${lt_cv_cc_needs_belf+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else case e in #(
7823 e) ac_ext=c
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831
7832 int
7833 main (void)
7834 {
7835
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_link "$LINENO"
7841 then :
7842 lt_cv_cc_needs_belf=yes
7843 else case e in #(
7844 e) lt_cv_cc_needs_belf=no ;;
7845 esac
7846 fi
7847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7848 conftest$ac_exeext conftest.$ac_ext
7849 ac_ext=c
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854 ;;
7855 esac
7856 fi
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7858 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7859 if test yes != "$lt_cv_cc_needs_belf"; then
7860 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7861 CFLAGS=$SAVE_CFLAGS
7862 fi
7863 ;;
7864 *-*solaris*)
7865 # Find out what ABI is being produced by ac_compile, and set linker
7866 # options accordingly.
7867 echo 'int i;' > conftest.$ac_ext
7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7869 (eval $ac_compile) 2>&5
7870 ac_status=$?
7871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; }; then
7873 case `$FILECMD conftest.o` in
7874 *64-bit*)
7875 case $lt_cv_prog_gnu_ld in
7876 yes*)
7877 case $host in
7878 i?86-*-solaris*|x86_64-*-solaris*)
7879 LD="${LD-ld} -m elf_x86_64"
7880 ;;
7881 sparc*-*-solaris*)
7882 LD="${LD-ld} -m elf64_sparc"
7883 ;;
7884 esac
7885 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7886 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7887 LD=${LD-ld}_sol2
7888 fi
7889 ;;
7890 *)
7891 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7892 LD="${LD-ld} -64"
7893 fi
7894 ;;
7895 esac
7896 ;;
7897 esac
7898 fi
7899 rm -rf conftest*
7900 ;;
7901 esac
7902
7903 need_locks=$enable_libtool_lock
7904
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}mt; ac_word=$2
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 printf %s "checking for $ac_word... " >&6; }
7910 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7911 then :
7912 printf %s "(cached) " >&6
7913 else case e in #(
7914 e) if test -n "$MANIFEST_TOOL"; then
7915 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920 IFS=$as_save_IFS
7921 case $as_dir in #(((
7922 '') as_dir=./ ;;
7923 */) ;;
7924 *) as_dir=$as_dir/ ;;
7925 esac
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi ;;
7937 esac
7938 fi
7939 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7940 if test -n "$MANIFEST_TOOL"; then
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7942 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7943 else
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 printf "%s\n" "no" >&6; }
7946 fi
7947
7948
7949 fi
7950 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7951 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7952 # Extract the first word of "mt", so it can be a program name with args.
7953 set dummy mt; ac_word=$2
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 printf %s "checking for $ac_word... " >&6; }
7956 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7957 then :
7958 printf %s "(cached) " >&6
7959 else case e in #(
7960 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7961 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 case $as_dir in #(((
7968 '') as_dir=./ ;;
7969 */) ;;
7970 *) as_dir=$as_dir/ ;;
7971 esac
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978 done
7979 done
7980 IFS=$as_save_IFS
7981
7982 fi ;;
7983 esac
7984 fi
7985 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7986 if test -n "$ac_ct_MANIFEST_TOOL"; then
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7988 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7989 else
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 printf "%s\n" "no" >&6; }
7992 fi
7993
7994 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7995 MANIFEST_TOOL=":"
7996 else
7997 case $cross_compiling:$ac_tool_warned in
7998 yes:)
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned=yes ;;
8002 esac
8003 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8004 fi
8005 else
8006 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8007 fi
8008
8009 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8011 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8012 if test ${lt_cv_path_manifest_tool+y}
8013 then :
8014 printf %s "(cached) " >&6
8015 else case e in #(
8016 e) lt_cv_path_manifest_tool=no
8017 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8018 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8019 cat conftest.err >&5
8020 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8021 lt_cv_path_manifest_tool=yes
8022 fi
8023 rm -f conftest* ;;
8024 esac
8025 fi
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8027 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8028 if test yes != "$lt_cv_path_manifest_tool"; then
8029 MANIFEST_TOOL=:
8030 fi
8031
8032
8033
8034
8035
8036
8037 case $host_os in
8038 rhapsody* | darwin*)
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 printf %s "checking for $ac_word... " >&6; }
8044 if test ${ac_cv_prog_DSYMUTIL+y}
8045 then :
8046 printf %s "(cached) " >&6
8047 else case e in #(
8048 e) if test -n "$DSYMUTIL"; then
8049 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054 IFS=$as_save_IFS
8055 case $as_dir in #(((
8056 '') as_dir=./ ;;
8057 */) ;;
8058 *) as_dir=$as_dir/ ;;
8059 esac
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8064 break 2
8065 fi
8066 done
8067 done
8068 IFS=$as_save_IFS
8069
8070 fi ;;
8071 esac
8072 fi
8073 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8074 if test -n "$DSYMUTIL"; then
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8076 printf "%s\n" "$DSYMUTIL" >&6; }
8077 else
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 printf "%s\n" "no" >&6; }
8080 fi
8081
8082
8083 fi
8084 if test -z "$ac_cv_prog_DSYMUTIL"; then
8085 ac_ct_DSYMUTIL=$DSYMUTIL
8086 # Extract the first word of "dsymutil", so it can be a program name with args.
8087 set dummy dsymutil; ac_word=$2
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 printf %s "checking for $ac_word... " >&6; }
8090 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8091 then :
8092 printf %s "(cached) " >&6
8093 else case e in #(
8094 e) if test -n "$ac_ct_DSYMUTIL"; then
8095 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100 IFS=$as_save_IFS
8101 case $as_dir in #(((
8102 '') as_dir=./ ;;
8103 */) ;;
8104 *) as_dir=$as_dir/ ;;
8105 esac
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8108 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112 done
8113 done
8114 IFS=$as_save_IFS
8115
8116 fi ;;
8117 esac
8118 fi
8119 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8120 if test -n "$ac_ct_DSYMUTIL"; then
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8122 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8123 else
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 printf "%s\n" "no" >&6; }
8126 fi
8127
8128 if test "x$ac_ct_DSYMUTIL" = x; then
8129 DSYMUTIL=":"
8130 else
8131 case $cross_compiling:$ac_tool_warned in
8132 yes:)
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135 ac_tool_warned=yes ;;
8136 esac
8137 DSYMUTIL=$ac_ct_DSYMUTIL
8138 fi
8139 else
8140 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8141 fi
8142
8143 if test -n "$ac_tool_prefix"; then
8144 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8145 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 printf %s "checking for $ac_word... " >&6; }
8148 if test ${ac_cv_prog_NMEDIT+y}
8149 then :
8150 printf %s "(cached) " >&6
8151 else case e in #(
8152 e) if test -n "$NMEDIT"; then
8153 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158 IFS=$as_save_IFS
8159 case $as_dir in #(((
8160 '') as_dir=./ ;;
8161 */) ;;
8162 *) as_dir=$as_dir/ ;;
8163 esac
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8168 break 2
8169 fi
8170 done
8171 done
8172 IFS=$as_save_IFS
8173
8174 fi ;;
8175 esac
8176 fi
8177 NMEDIT=$ac_cv_prog_NMEDIT
8178 if test -n "$NMEDIT"; then
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8180 printf "%s\n" "$NMEDIT" >&6; }
8181 else
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 printf "%s\n" "no" >&6; }
8184 fi
8185
8186
8187 fi
8188 if test -z "$ac_cv_prog_NMEDIT"; then
8189 ac_ct_NMEDIT=$NMEDIT
8190 # Extract the first word of "nmedit", so it can be a program name with args.
8191 set dummy nmedit; ac_word=$2
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 printf %s "checking for $ac_word... " >&6; }
8194 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else case e in #(
8198 e) if test -n "$ac_ct_NMEDIT"; then
8199 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204 IFS=$as_save_IFS
8205 case $as_dir in #(((
8206 '') as_dir=./ ;;
8207 */) ;;
8208 *) as_dir=$as_dir/ ;;
8209 esac
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 fi ;;
8221 esac
8222 fi
8223 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8224 if test -n "$ac_ct_NMEDIT"; then
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8226 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8227 else
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 printf "%s\n" "no" >&6; }
8230 fi
8231
8232 if test "x$ac_ct_NMEDIT" = x; then
8233 NMEDIT=":"
8234 else
8235 case $cross_compiling:$ac_tool_warned in
8236 yes:)
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8239 ac_tool_warned=yes ;;
8240 esac
8241 NMEDIT=$ac_ct_NMEDIT
8242 fi
8243 else
8244 NMEDIT="$ac_cv_prog_NMEDIT"
8245 fi
8246
8247 if test -n "$ac_tool_prefix"; then
8248 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8249 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251 printf %s "checking for $ac_word... " >&6; }
8252 if test ${ac_cv_prog_LIPO+y}
8253 then :
8254 printf %s "(cached) " >&6
8255 else case e in #(
8256 e) if test -n "$LIPO"; then
8257 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8258 else
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8261 do
8262 IFS=$as_save_IFS
8263 case $as_dir in #(((
8264 '') as_dir=./ ;;
8265 */) ;;
8266 *) as_dir=$as_dir/ ;;
8267 esac
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274 done
8275 done
8276 IFS=$as_save_IFS
8277
8278 fi ;;
8279 esac
8280 fi
8281 LIPO=$ac_cv_prog_LIPO
8282 if test -n "$LIPO"; then
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8284 printf "%s\n" "$LIPO" >&6; }
8285 else
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 printf "%s\n" "no" >&6; }
8288 fi
8289
8290
8291 fi
8292 if test -z "$ac_cv_prog_LIPO"; then
8293 ac_ct_LIPO=$LIPO
8294 # Extract the first word of "lipo", so it can be a program name with args.
8295 set dummy lipo; ac_word=$2
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 printf %s "checking for $ac_word... " >&6; }
8298 if test ${ac_cv_prog_ac_ct_LIPO+y}
8299 then :
8300 printf %s "(cached) " >&6
8301 else case e in #(
8302 e) if test -n "$ac_ct_LIPO"; then
8303 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308 IFS=$as_save_IFS
8309 case $as_dir in #(((
8310 '') as_dir=./ ;;
8311 */) ;;
8312 *) as_dir=$as_dir/ ;;
8313 esac
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8316 ac_cv_prog_ac_ct_LIPO="lipo"
8317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8318 break 2
8319 fi
8320 done
8321 done
8322 IFS=$as_save_IFS
8323
8324 fi ;;
8325 esac
8326 fi
8327 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8328 if test -n "$ac_ct_LIPO"; then
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8330 printf "%s\n" "$ac_ct_LIPO" >&6; }
8331 else
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 printf "%s\n" "no" >&6; }
8334 fi
8335
8336 if test "x$ac_ct_LIPO" = x; then
8337 LIPO=":"
8338 else
8339 case $cross_compiling:$ac_tool_warned in
8340 yes:)
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343 ac_tool_warned=yes ;;
8344 esac
8345 LIPO=$ac_ct_LIPO
8346 fi
8347 else
8348 LIPO="$ac_cv_prog_LIPO"
8349 fi
8350
8351 if test -n "$ac_tool_prefix"; then
8352 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8353 set dummy ${ac_tool_prefix}otool; ac_word=$2
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 printf %s "checking for $ac_word... " >&6; }
8356 if test ${ac_cv_prog_OTOOL+y}
8357 then :
8358 printf %s "(cached) " >&6
8359 else case e in #(
8360 e) if test -n "$OTOOL"; then
8361 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366 IFS=$as_save_IFS
8367 case $as_dir in #(((
8368 '') as_dir=./ ;;
8369 */) ;;
8370 *) as_dir=$as_dir/ ;;
8371 esac
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8374 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382 fi ;;
8383 esac
8384 fi
8385 OTOOL=$ac_cv_prog_OTOOL
8386 if test -n "$OTOOL"; then
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8388 printf "%s\n" "$OTOOL" >&6; }
8389 else
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 printf "%s\n" "no" >&6; }
8392 fi
8393
8394
8395 fi
8396 if test -z "$ac_cv_prog_OTOOL"; then
8397 ac_ct_OTOOL=$OTOOL
8398 # Extract the first word of "otool", so it can be a program name with args.
8399 set dummy otool; ac_word=$2
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 printf %s "checking for $ac_word... " >&6; }
8402 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8403 then :
8404 printf %s "(cached) " >&6
8405 else case e in #(
8406 e) if test -n "$ac_ct_OTOOL"; then
8407 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8408 else
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8411 do
8412 IFS=$as_save_IFS
8413 case $as_dir in #(((
8414 '') as_dir=./ ;;
8415 */) ;;
8416 *) as_dir=$as_dir/ ;;
8417 esac
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8420 ac_cv_prog_ac_ct_OTOOL="otool"
8421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424 done
8425 done
8426 IFS=$as_save_IFS
8427
8428 fi ;;
8429 esac
8430 fi
8431 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8432 if test -n "$ac_ct_OTOOL"; then
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8434 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8435 else
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 printf "%s\n" "no" >&6; }
8438 fi
8439
8440 if test "x$ac_ct_OTOOL" = x; then
8441 OTOOL=":"
8442 else
8443 case $cross_compiling:$ac_tool_warned in
8444 yes:)
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8446 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8447 ac_tool_warned=yes ;;
8448 esac
8449 OTOOL=$ac_ct_OTOOL
8450 fi
8451 else
8452 OTOOL="$ac_cv_prog_OTOOL"
8453 fi
8454
8455 if test -n "$ac_tool_prefix"; then
8456 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8457 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459 printf %s "checking for $ac_word... " >&6; }
8460 if test ${ac_cv_prog_OTOOL64+y}
8461 then :
8462 printf %s "(cached) " >&6
8463 else case e in #(
8464 e) if test -n "$OTOOL64"; then
8465 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8466 else
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 for as_dir in $PATH
8469 do
8470 IFS=$as_save_IFS
8471 case $as_dir in #(((
8472 '') as_dir=./ ;;
8473 */) ;;
8474 *) as_dir=$as_dir/ ;;
8475 esac
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8478 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8480 break 2
8481 fi
8482 done
8483 done
8484 IFS=$as_save_IFS
8485
8486 fi ;;
8487 esac
8488 fi
8489 OTOOL64=$ac_cv_prog_OTOOL64
8490 if test -n "$OTOOL64"; then
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8492 printf "%s\n" "$OTOOL64" >&6; }
8493 else
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 printf "%s\n" "no" >&6; }
8496 fi
8497
8498
8499 fi
8500 if test -z "$ac_cv_prog_OTOOL64"; then
8501 ac_ct_OTOOL64=$OTOOL64
8502 # Extract the first word of "otool64", so it can be a program name with args.
8503 set dummy otool64; ac_word=$2
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 printf %s "checking for $ac_word... " >&6; }
8506 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8507 then :
8508 printf %s "(cached) " >&6
8509 else case e in #(
8510 e) if test -n "$ac_ct_OTOOL64"; then
8511 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516 IFS=$as_save_IFS
8517 case $as_dir in #(((
8518 '') as_dir=./ ;;
8519 */) ;;
8520 *) as_dir=$as_dir/ ;;
8521 esac
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_ac_ct_OTOOL64="otool64"
8525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528 done
8529 done
8530 IFS=$as_save_IFS
8531
8532 fi ;;
8533 esac
8534 fi
8535 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8536 if test -n "$ac_ct_OTOOL64"; then
8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8538 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8539 else
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 printf "%s\n" "no" >&6; }
8542 fi
8543
8544 if test "x$ac_ct_OTOOL64" = x; then
8545 OTOOL64=":"
8546 else
8547 case $cross_compiling:$ac_tool_warned in
8548 yes:)
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8550 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8551 ac_tool_warned=yes ;;
8552 esac
8553 OTOOL64=$ac_ct_OTOOL64
8554 fi
8555 else
8556 OTOOL64="$ac_cv_prog_OTOOL64"
8557 fi
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8586 printf %s "checking for -single_module linker flag... " >&6; }
8587 if test ${lt_cv_apple_cc_single_mod+y}
8588 then :
8589 printf %s "(cached) " >&6
8590 else case e in #(
8591 e) lt_cv_apple_cc_single_mod=no
8592 if test -z "$LT_MULTI_MODULE"; then
8593 # By default we will add the -single_module flag. You can override
8594 # by either setting the environment variable LT_MULTI_MODULE
8595 # non-empty at configure time, or by adding -multi_module to the
8596 # link flags.
8597 rm -rf libconftest.dylib*
8598 echo "int foo(void){return 1;}" > conftest.c
8599 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8600 -dynamiclib -Wl,-single_module conftest.c" >&5
8601 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8602 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8603 _lt_result=$?
8604 # If there is a non-empty error log, and "single_module"
8605 # appears in it, assume the flag caused a linker warning
8606 if test -s conftest.err && $GREP single_module conftest.err; then
8607 cat conftest.err >&5
8608 # Otherwise, if the output was created with a 0 exit code from
8609 # the compiler, it worked.
8610 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8611 lt_cv_apple_cc_single_mod=yes
8612 else
8613 cat conftest.err >&5
8614 fi
8615 rm -rf libconftest.dylib*
8616 rm -f conftest.*
8617 fi ;;
8618 esac
8619 fi
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8621 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8622
8623 # Feature test to disable chained fixups since it is not
8624 # compatible with '-undefined dynamic_lookup'
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8626 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8627 if test ${lt_cv_support_no_fixup_chains+y}
8628 then :
8629 printf %s "(cached) " >&6
8630 else case e in #(
8631 e) save_LDFLAGS=$LDFLAGS
8632 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635
8636 int
8637 main (void)
8638 {
8639
8640 ;
8641 return 0;
8642 }
8643 _ACEOF
8644 if ac_fn_c_try_link "$LINENO"
8645 then :
8646 lt_cv_support_no_fixup_chains=yes
8647 else case e in #(
8648 e) lt_cv_support_no_fixup_chains=no
8649 ;;
8650 esac
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8653 conftest$ac_exeext conftest.$ac_ext
8654 LDFLAGS=$save_LDFLAGS
8655
8656 ;;
8657 esac
8658 fi
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8660 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8661
8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8663 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8664 if test ${lt_cv_ld_exported_symbols_list+y}
8665 then :
8666 printf %s "(cached) " >&6
8667 else case e in #(
8668 e) lt_cv_ld_exported_symbols_list=no
8669 save_LDFLAGS=$LDFLAGS
8670 echo "_main" > conftest.sym
8671 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8674
8675 int
8676 main (void)
8677 {
8678
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_link "$LINENO"
8684 then :
8685 lt_cv_ld_exported_symbols_list=yes
8686 else case e in #(
8687 e) lt_cv_ld_exported_symbols_list=no ;;
8688 esac
8689 fi
8690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8691 conftest$ac_exeext conftest.$ac_ext
8692 LDFLAGS=$save_LDFLAGS
8693 ;;
8694 esac
8695 fi
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8697 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8698
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8700 printf %s "checking for -force_load linker flag... " >&6; }
8701 if test ${lt_cv_ld_force_load+y}
8702 then :
8703 printf %s "(cached) " >&6
8704 else case e in #(
8705 e) lt_cv_ld_force_load=no
8706 cat > conftest.c << _LT_EOF
8707 int forced_loaded() { return 2;}
8708 _LT_EOF
8709 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8710 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8711 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8712 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8713 echo "$RANLIB libconftest.a" >&5
8714 $RANLIB libconftest.a 2>&5
8715 cat > conftest.c << _LT_EOF
8716 int main(void) { return 0;}
8717 _LT_EOF
8718 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8719 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8720 _lt_result=$?
8721 if test -s conftest.err && $GREP force_load conftest.err; then
8722 cat conftest.err >&5
8723 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8724 lt_cv_ld_force_load=yes
8725 else
8726 cat conftest.err >&5
8727 fi
8728 rm -f conftest.err libconftest.a conftest conftest.c
8729 rm -rf conftest.dSYM
8730 ;;
8731 esac
8732 fi
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8734 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8735 case $host_os in
8736 rhapsody* | darwin1.[012])
8737 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8738 darwin1.*)
8739 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8740 darwin*)
8741 case $MACOSX_DEPLOYMENT_TARGET,$host in
8742 10.[012],*|,*powerpc*-darwin[5-8]*)
8743 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8744 *)
8745 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8746 if test yes = "$lt_cv_support_no_fixup_chains"; then
8747 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8748 fi
8749 ;;
8750 esac
8751 ;;
8752 esac
8753 if test yes = "$lt_cv_apple_cc_single_mod"; then
8754 _lt_dar_single_mod='$single_module'
8755 fi
8756 _lt_dar_needs_single_mod=no
8757 case $host_os in
8758 rhapsody* | darwin1.*)
8759 _lt_dar_needs_single_mod=yes ;;
8760 darwin*)
8761 # When targeting Mac OS X 10.4 (darwin 8) or later,
8762 # -single_module is the default and -multi_module is unsupported.
8763 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8764 # target any OS version that needs -single_module.
8765 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8766 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8767 _lt_dar_needs_single_mod=yes ;;
8768 esac
8769 ;;
8770 esac
8771 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8772 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8773 else
8774 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8775 fi
8776 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8777 _lt_dsymutil='~$DSYMUTIL $lib || :'
8778 else
8779 _lt_dsymutil=
8780 fi
8781 ;;
8782 esac
8783
8784 # func_munge_path_list VARIABLE PATH
8785 # -----------------------------------
8786 # VARIABLE is name of variable containing _space_ separated list of
8787 # directories to be munged by the contents of PATH, which is string
8788 # having a format:
8789 # "DIR[:DIR]:"
8790 # string "DIR[ DIR]" will be prepended to VARIABLE
8791 # ":DIR[:DIR]"
8792 # string "DIR[ DIR]" will be appended to VARIABLE
8793 # "DIRP[:DIRP]::[DIRA:]DIRA"
8794 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8795 # "DIRA[ DIRA]" will be appended to VARIABLE
8796 # "DIR[:DIR]"
8797 # VARIABLE will be replaced by "DIR[ DIR]"
8798 func_munge_path_list ()
8799 {
8800 case x$2 in
8801 x)
8802 ;;
8803 *:)
8804 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8805 ;;
8806 x:*)
8807 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8808 ;;
8809 *::*)
8810 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8811 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8812 ;;
8813 *)
8814 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8815 ;;
8816 esac
8817 }
8818
8819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8820 "
8821 if test "x$ac_cv_header_dlfcn_h" = xyes
8822 then :
8823 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8824
8825 fi
8826
8827
8828
8829
8830
8831 # Set options
8832
8833
8834
8835 enable_dlopen=no
8836
8837
8838 enable_win32_dll=no
8839
8840
8841 # Check whether --enable-shared was given.
8842 if test ${enable_shared+y}
8843 then :
8844 enableval=$enable_shared; p=${PACKAGE-default}
8845 case $enableval in
8846 yes) enable_shared=yes ;;
8847 no) enable_shared=no ;;
8848 *)
8849 enable_shared=no
8850 # Look at the argument we got. We use all the common list separators.
8851 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8852 for pkg in $enableval; do
8853 IFS=$lt_save_ifs
8854 if test "X$pkg" = "X$p"; then
8855 enable_shared=yes
8856 fi
8857 done
8858 IFS=$lt_save_ifs
8859 ;;
8860 esac
8861 else case e in #(
8862 e) enable_shared=yes ;;
8863 esac
8864 fi
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874 # Check whether --enable-static was given.
8875 if test ${enable_static+y}
8876 then :
8877 enableval=$enable_static; p=${PACKAGE-default}
8878 case $enableval in
8879 yes) enable_static=yes ;;
8880 no) enable_static=no ;;
8881 *)
8882 enable_static=no
8883 # Look at the argument we got. We use all the common list separators.
8884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8885 for pkg in $enableval; do
8886 IFS=$lt_save_ifs
8887 if test "X$pkg" = "X$p"; then
8888 enable_static=yes
8889 fi
8890 done
8891 IFS=$lt_save_ifs
8892 ;;
8893 esac
8894 else case e in #(
8895 e) enable_static=yes ;;
8896 esac
8897 fi
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907 # Check whether --enable-pic was given.
8908 if test ${enable_pic+y}
8909 then :
8910 enableval=$enable_pic; lt_p=${PACKAGE-default}
8911 case $enableval in
8912 yes|no) pic_mode=$enableval ;;
8913 *)
8914 pic_mode=default
8915 # Look at the argument we got. We use all the common list separators.
8916 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8917 for lt_pkg in $enableval; do
8918 IFS=$lt_save_ifs
8919 if test "X$lt_pkg" = "X$lt_p"; then
8920 pic_mode=yes
8921 fi
8922 done
8923 IFS=$lt_save_ifs
8924 ;;
8925 esac
8926 else case e in #(
8927 e) # Check whether --with-pic was given.
8928 if test ${with_pic+y}
8929 then :
8930 withval=$with_pic; lt_p=${PACKAGE-default}
8931 case $withval in
8932 yes|no) pic_mode=$withval ;;
8933 *)
8934 pic_mode=default
8935 # Look at the argument we got. We use all the common list separators.
8936 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8937 for lt_pkg in $withval; do
8938 IFS=$lt_save_ifs
8939 if test "X$lt_pkg" = "X$lt_p"; then
8940 pic_mode=yes
8941 fi
8942 done
8943 IFS=$lt_save_ifs
8944 ;;
8945 esac
8946 else case e in #(
8947 e) pic_mode=default ;;
8948 esac
8949 fi
8950
8951 ;;
8952 esac
8953 fi
8954
8955
8956
8957
8958
8959
8960
8961
8962 # Check whether --enable-fast-install was given.
8963 if test ${enable_fast_install+y}
8964 then :
8965 enableval=$enable_fast_install; p=${PACKAGE-default}
8966 case $enableval in
8967 yes) enable_fast_install=yes ;;
8968 no) enable_fast_install=no ;;
8969 *)
8970 enable_fast_install=no
8971 # Look at the argument we got. We use all the common list separators.
8972 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8973 for pkg in $enableval; do
8974 IFS=$lt_save_ifs
8975 if test "X$pkg" = "X$p"; then
8976 enable_fast_install=yes
8977 fi
8978 done
8979 IFS=$lt_save_ifs
8980 ;;
8981 esac
8982 else case e in #(
8983 e) enable_fast_install=yes ;;
8984 esac
8985 fi
8986
8987
8988
8989
8990
8991
8992
8993
8994 shared_archive_member_spec=
8995 case $host,$enable_shared in
8996 power*-*-aix[5-9]*,yes)
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8998 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8999 # Check whether --enable-aix-soname was given.
9000 if test ${enable_aix_soname+y}
9001 then :
9002 enableval=$enable_aix_soname; case $enableval in
9003 aix|svr4|both)
9004 ;;
9005 *)
9006 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9007 ;;
9008 esac
9009 lt_cv_with_aix_soname=$enable_aix_soname
9010 else case e in #(
9011 e) # Check whether --with-aix-soname was given.
9012 if test ${with_aix_soname+y}
9013 then :
9014 withval=$with_aix_soname; case $withval in
9015 aix|svr4|both)
9016 ;;
9017 *)
9018 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9019 ;;
9020 esac
9021 lt_cv_with_aix_soname=$with_aix_soname
9022 else case e in #(
9023 e) if test ${lt_cv_with_aix_soname+y}
9024 then :
9025 printf %s "(cached) " >&6
9026 else case e in #(
9027 e) lt_cv_with_aix_soname=aix ;;
9028 esac
9029 fi
9030 ;;
9031 esac
9032 fi
9033
9034 enable_aix_soname=$lt_cv_with_aix_soname ;;
9035 esac
9036 fi
9037
9038 with_aix_soname=$enable_aix_soname
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9040 printf "%s\n" "$with_aix_soname" >&6; }
9041 if test aix != "$with_aix_soname"; then
9042 # For the AIX way of multilib, we name the shared archive member
9043 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9044 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9045 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9046 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9047 if test 64 = "${OBJECT_MODE-32}"; then
9048 shared_archive_member_spec=shr_64
9049 else
9050 shared_archive_member_spec=shr
9051 fi
9052 fi
9053 ;;
9054 *)
9055 with_aix_soname=aix
9056 ;;
9057 esac
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068 # This can be used to rebuild libtool when needed
9069 LIBTOOL_DEPS=$ltmain
9070
9071 # Always use our own libtool.
9072 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103 test -z "$LN_S" && LN_S="ln -s"
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118 if test -n "${ZSH_VERSION+set}"; then
9119 setopt NO_GLOB_SUBST
9120 fi
9121
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9123 printf %s "checking for objdir... " >&6; }
9124 if test ${lt_cv_objdir+y}
9125 then :
9126 printf %s "(cached) " >&6
9127 else case e in #(
9128 e) rm -f .libs 2>/dev/null
9129 mkdir .libs 2>/dev/null
9130 if test -d .libs; then
9131 lt_cv_objdir=.libs
9132 else
9133 # MS-DOS does not allow filenames that begin with a dot.
9134 lt_cv_objdir=_libs
9135 fi
9136 rmdir .libs 2>/dev/null ;;
9137 esac
9138 fi
9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9140 printf "%s\n" "$lt_cv_objdir" >&6; }
9141 objdir=$lt_cv_objdir
9142
9143
9144
9145
9146
9147 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9148
9149
9150
9151
9152 case $host_os in
9153 aix3*)
9154 # AIX sometimes has problems with the GCC collect2 program. For some
9155 # reason, if we set the COLLECT_NAMES environment variable, the problems
9156 # vanish in a puff of smoke.
9157 if test set != "${COLLECT_NAMES+set}"; then
9158 COLLECT_NAMES=
9159 export COLLECT_NAMES
9160 fi
9161 ;;
9162 esac
9163
9164 # Global variables:
9165 ofile=libtool
9166 can_build_shared=yes
9167
9168 # All known linkers require a '.a' archive for static linking (except MSVC and
9169 # ICC, which need '.lib').
9170 libext=a
9171
9172 with_gnu_ld=$lt_cv_prog_gnu_ld
9173
9174 old_CC=$CC
9175 old_CFLAGS=$CFLAGS
9176
9177 # Set sane defaults for various variables
9178 test -z "$CC" && CC=cc
9179 test -z "$LTCC" && LTCC=$CC
9180 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9181 test -z "$LD" && LD=ld
9182 test -z "$ac_objext" && ac_objext=o
9183
9184 func_cc_basename $compiler
9185 cc_basename=$func_cc_basename_result
9186
9187
9188 # Only perform the check for file, if the check method requires it
9189 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9190 case $deplibs_check_method in
9191 file_magic*)
9192 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9194 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9195 if test ${lt_cv_path_MAGIC_CMD+y}
9196 then :
9197 printf %s "(cached) " >&6
9198 else case e in #(
9199 e) case $MAGIC_CMD in
9200 [\\/*] | ?:[\\/]*)
9201 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9202 ;;
9203 *)
9204 lt_save_MAGIC_CMD=$MAGIC_CMD
9205 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9206 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9207 for ac_dir in $ac_dummy; do
9208 IFS=$lt_save_ifs
9209 test -z "$ac_dir" && ac_dir=.
9210 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9211 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9212 if test -n "$file_magic_test_file"; then
9213 case $deplibs_check_method in
9214 "file_magic "*)
9215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9216 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9218 $EGREP "$file_magic_regex" > /dev/null; then
9219 :
9220 else
9221 cat <<_LT_EOF 1>&2
9222
9223 *** Warning: the command libtool uses to detect shared libraries,
9224 *** $file_magic_cmd, produces output that libtool cannot recognize.
9225 *** The result is that libtool may fail to recognize shared libraries
9226 *** as such. This will affect the creation of libtool libraries that
9227 *** depend on shared libraries, but programs linked with such libtool
9228 *** libraries will work regardless of this problem. Nevertheless, you
9229 *** may want to report the problem to your system manager and/or to
9230 *** [email protected]
9231
9232 _LT_EOF
9233 fi ;;
9234 esac
9235 fi
9236 break
9237 fi
9238 done
9239 IFS=$lt_save_ifs
9240 MAGIC_CMD=$lt_save_MAGIC_CMD
9241 ;;
9242 esac ;;
9243 esac
9244 fi
9245
9246 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9247 if test -n "$MAGIC_CMD"; then
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9249 printf "%s\n" "$MAGIC_CMD" >&6; }
9250 else
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 printf "%s\n" "no" >&6; }
9253 fi
9254
9255
9256
9257
9258
9259 if test -z "$lt_cv_path_MAGIC_CMD"; then
9260 if test -n "$ac_tool_prefix"; then
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9262 printf %s "checking for file... " >&6; }
9263 if test ${lt_cv_path_MAGIC_CMD+y}
9264 then :
9265 printf %s "(cached) " >&6
9266 else case e in #(
9267 e) case $MAGIC_CMD in
9268 [\\/*] | ?:[\\/]*)
9269 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9270 ;;
9271 *)
9272 lt_save_MAGIC_CMD=$MAGIC_CMD
9273 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9275 for ac_dir in $ac_dummy; do
9276 IFS=$lt_save_ifs
9277 test -z "$ac_dir" && ac_dir=.
9278 if test -f "$ac_dir/file"; then
9279 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9280 if test -n "$file_magic_test_file"; then
9281 case $deplibs_check_method in
9282 "file_magic "*)
9283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9284 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9286 $EGREP "$file_magic_regex" > /dev/null; then
9287 :
9288 else
9289 cat <<_LT_EOF 1>&2
9290
9291 *** Warning: the command libtool uses to detect shared libraries,
9292 *** $file_magic_cmd, produces output that libtool cannot recognize.
9293 *** The result is that libtool may fail to recognize shared libraries
9294 *** as such. This will affect the creation of libtool libraries that
9295 *** depend on shared libraries, but programs linked with such libtool
9296 *** libraries will work regardless of this problem. Nevertheless, you
9297 *** may want to report the problem to your system manager and/or to
9298 *** [email protected]
9299
9300 _LT_EOF
9301 fi ;;
9302 esac
9303 fi
9304 break
9305 fi
9306 done
9307 IFS=$lt_save_ifs
9308 MAGIC_CMD=$lt_save_MAGIC_CMD
9309 ;;
9310 esac ;;
9311 esac
9312 fi
9313
9314 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9315 if test -n "$MAGIC_CMD"; then
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9317 printf "%s\n" "$MAGIC_CMD" >&6; }
9318 else
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 printf "%s\n" "no" >&6; }
9321 fi
9322
9323
9324 else
9325 MAGIC_CMD=:
9326 fi
9327 fi
9328
9329 fi
9330 ;;
9331 esac
9332
9333 # Use C for the default configuration in the libtool script
9334
9335 lt_save_CC=$CC
9336 ac_ext=c
9337 ac_cpp='$CPP $CPPFLAGS'
9338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9341
9342
9343 # Source file extension for C test sources.
9344 ac_ext=c
9345
9346 # Object file extension for compiled C test sources.
9347 objext=o
9348 objext=$objext
9349
9350 # Code to be used in simple compile tests
9351 lt_simple_compile_test_code="int some_variable = 0;"
9352
9353 # Code to be used in simple link tests
9354 lt_simple_link_test_code='int main(void){return(0);}'
9355
9356
9357
9358
9359
9360
9361
9362 # If no C compiler was specified, use CC.
9363 LTCC=${LTCC-"$CC"}
9364
9365 # If no C compiler flags were specified, use CFLAGS.
9366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9367
9368 # Allow CC to be a program name with arguments.
9369 compiler=$CC
9370
9371 # Save the default compiler, since it gets overwritten when the other
9372 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9373 compiler_DEFAULT=$CC
9374
9375 # save warnings/boilerplate of simple test code
9376 ac_outfile=conftest.$ac_objext
9377 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9378 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9379 _lt_compiler_boilerplate=`cat conftest.err`
9380 $RM conftest*
9381
9382 ac_outfile=conftest.$ac_objext
9383 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9384 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9385 _lt_linker_boilerplate=`cat conftest.err`
9386 $RM -r conftest*
9387
9388
9389 ## CAVEAT EMPTOR:
9390 ## There is no encapsulation within the following macros, do not change
9391 ## the running order or otherwise move them around unless you know exactly
9392 ## what you are doing...
9393 if test -n "$compiler"; then
9394
9395 lt_prog_compiler_no_builtin_flag=
9396
9397 if test yes = "$GCC"; then
9398 case $cc_basename in
9399 nvcc*)
9400 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9401 *)
9402 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9403 esac
9404
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9406 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9407 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9408 then :
9409 printf %s "(cached) " >&6
9410 else case e in #(
9411 e) lt_cv_prog_compiler_rtti_exceptions=no
9412 ac_outfile=conftest.$ac_objext
9413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9414 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9415 # Insert the option either (1) after the last *FLAGS variable, or
9416 # (2) before a word containing "conftest.", or (3) at the end.
9417 # Note that $ac_compile itself does not contain backslashes and begins
9418 # with a dollar sign (not a hyphen), so the echo should work correctly.
9419 # The option is referenced via a variable to avoid confusing sed.
9420 lt_compile=`echo "$ac_compile" | $SED \
9421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9423 -e 's:$: $lt_compiler_flag:'`
9424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9425 (eval "$lt_compile" 2>conftest.err)
9426 ac_status=$?
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 if (exit $ac_status) && test -s "$ac_outfile"; then
9430 # The compiler can only warn and ignore the option if not recognized
9431 # So say no if there are warnings other than the usual output.
9432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler_rtti_exceptions=yes
9436 fi
9437 fi
9438 $RM conftest*
9439 ;;
9440 esac
9441 fi
9442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9443 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9444
9445 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9446 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9447 else
9448 :
9449 fi
9450
9451 fi
9452
9453
9454
9455
9456
9457
9458 lt_prog_compiler_wl=
9459 lt_prog_compiler_pic=
9460 lt_prog_compiler_static=
9461
9462
9463 if test yes = "$GCC"; then
9464 lt_prog_compiler_wl='-Wl,'
9465 lt_prog_compiler_static='-static'
9466
9467 case $host_os in
9468 aix*)
9469 # All AIX code is PIC.
9470 if test ia64 = "$host_cpu"; then
9471 # AIX 5 now supports IA64 processor
9472 lt_prog_compiler_static='-Bstatic'
9473 fi
9474 lt_prog_compiler_pic='-fPIC'
9475 ;;
9476
9477 amigaos*)
9478 case $host_cpu in
9479 powerpc)
9480 # see comment about AmigaOS4 .so support
9481 lt_prog_compiler_pic='-fPIC'
9482 ;;
9483 m68k)
9484 # FIXME: we need at least 68020 code to build shared libraries, but
9485 # adding the '-m68020' flag to GCC prevents building anything better,
9486 # like '-m68040'.
9487 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9488 ;;
9489 esac
9490 ;;
9491
9492 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9493 # PIC is the default for these OSes.
9494 ;;
9495
9496 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9497 # This hack is so that the source file can tell whether it is being
9498 # built for inclusion in a dll (and should export symbols for example).
9499 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9500 # (--disable-auto-import) libraries
9501 lt_prog_compiler_pic='-DDLL_EXPORT'
9502 case $host_os in
9503 os2*)
9504 lt_prog_compiler_static='$wl-static'
9505 ;;
9506 esac
9507 ;;
9508
9509 darwin* | rhapsody*)
9510 # PIC is the default on this platform
9511 # Common symbols not allowed in MH_DYLIB files
9512 lt_prog_compiler_pic='-fno-common'
9513 ;;
9514
9515 haiku*)
9516 # PIC is the default for Haiku.
9517 # The "-static" flag exists, but is broken.
9518 lt_prog_compiler_static=
9519 ;;
9520
9521 hpux*)
9522 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9523 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9524 # sets the default TLS model and affects inlining.
9525 case $host_cpu in
9526 hppa*64*)
9527 # +Z the default
9528 ;;
9529 *)
9530 lt_prog_compiler_pic='-fPIC'
9531 ;;
9532 esac
9533 ;;
9534
9535 interix[3-9]*)
9536 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9537 # Instead, we relocate shared libraries at runtime.
9538 ;;
9539
9540 msdosdjgpp*)
9541 # Just because we use GCC doesn't mean we suddenly get shared libraries
9542 # on systems that don't support them.
9543 lt_prog_compiler_can_build_shared=no
9544 enable_shared=no
9545 ;;
9546
9547 *nto* | *qnx*)
9548 # QNX uses GNU C++, but need to define -shared option too, otherwise
9549 # it will coredump.
9550 lt_prog_compiler_pic='-fPIC -shared'
9551 ;;
9552
9553 sysv4*MP*)
9554 if test -d /usr/nec; then
9555 lt_prog_compiler_pic=-Kconform_pic
9556 fi
9557 ;;
9558
9559 *)
9560 lt_prog_compiler_pic='-fPIC'
9561 ;;
9562 esac
9563
9564 case $cc_basename in
9565 nvcc*) # Cuda Compiler Driver 2.2
9566 lt_prog_compiler_wl='-Xlinker '
9567 if test -n "$lt_prog_compiler_pic"; then
9568 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9569 fi
9570 ;;
9571 esac
9572 else
9573 # PORTME Check for flag to pass linker flags through the system compiler.
9574 case $host_os in
9575 aix*)
9576 lt_prog_compiler_wl='-Wl,'
9577 if test ia64 = "$host_cpu"; then
9578 # AIX 5 now supports IA64 processor
9579 lt_prog_compiler_static='-Bstatic'
9580 else
9581 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9582 fi
9583 ;;
9584
9585 darwin* | rhapsody*)
9586 # PIC is the default on this platform
9587 # Common symbols not allowed in MH_DYLIB files
9588 lt_prog_compiler_pic='-fno-common'
9589 case $cc_basename in
9590 nagfor*)
9591 # NAG Fortran compiler
9592 lt_prog_compiler_wl='-Wl,-Wl,,'
9593 lt_prog_compiler_pic='-PIC'
9594 lt_prog_compiler_static='-Bstatic'
9595 ;;
9596 esac
9597 ;;
9598
9599 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9600 # This hack is so that the source file can tell whether it is being
9601 # built for inclusion in a dll (and should export symbols for example).
9602 lt_prog_compiler_pic='-DDLL_EXPORT'
9603 case $host_os in
9604 os2*)
9605 lt_prog_compiler_static='$wl-static'
9606 ;;
9607 esac
9608 ;;
9609
9610 hpux9* | hpux10* | hpux11*)
9611 lt_prog_compiler_wl='-Wl,'
9612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9613 # not for PA HP-UX.
9614 case $host_cpu in
9615 hppa*64*|ia64*)
9616 # +Z the default
9617 ;;
9618 *)
9619 lt_prog_compiler_pic='+Z'
9620 ;;
9621 esac
9622 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9623 lt_prog_compiler_static='$wl-a ${wl}archive'
9624 ;;
9625
9626 irix5* | irix6* | nonstopux*)
9627 lt_prog_compiler_wl='-Wl,'
9628 # PIC (with -KPIC) is the default.
9629 lt_prog_compiler_static='-non_shared'
9630 ;;
9631
9632 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9633 case $cc_basename in
9634 # old Intel for x86_64, which still supported -KPIC.
9635 ecc*)
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-KPIC'
9638 lt_prog_compiler_static='-static'
9639 ;;
9640 *flang* | ftn | f18* | f95*)
9641 # Flang compiler.
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_pic='-fPIC'
9644 lt_prog_compiler_static='-static'
9645 ;;
9646 # icc used to be incompatible with GCC.
9647 # ICC 10 doesn't accept -KPIC any more.
9648 icc* | ifort*)
9649 lt_prog_compiler_wl='-Wl,'
9650 lt_prog_compiler_pic='-fPIC'
9651 lt_prog_compiler_static='-static'
9652 ;;
9653 # Lahey Fortran 8.1.
9654 lf95*)
9655 lt_prog_compiler_wl='-Wl,'
9656 lt_prog_compiler_pic='--shared'
9657 lt_prog_compiler_static='--static'
9658 ;;
9659 nagfor*)
9660 # NAG Fortran compiler
9661 lt_prog_compiler_wl='-Wl,-Wl,,'
9662 lt_prog_compiler_pic='-PIC'
9663 lt_prog_compiler_static='-Bstatic'
9664 ;;
9665 tcc*)
9666 # Fabrice Bellard et al's Tiny C Compiler
9667 lt_prog_compiler_wl='-Wl,'
9668 lt_prog_compiler_pic='-fPIC'
9669 lt_prog_compiler_static='-static'
9670 ;;
9671 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9672 # Portland Group compilers (*not* the Pentium gcc compiler,
9673 # which looks to be a dead project)
9674 lt_prog_compiler_wl='-Wl,'
9675 lt_prog_compiler_pic='-fpic'
9676 lt_prog_compiler_static='-Bstatic'
9677 ;;
9678 ccc*)
9679 lt_prog_compiler_wl='-Wl,'
9680 # All Alpha code is PIC.
9681 lt_prog_compiler_static='-non_shared'
9682 ;;
9683 xl* | bgxl* | bgf* | mpixl*)
9684 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9685 lt_prog_compiler_wl='-Wl,'
9686 lt_prog_compiler_pic='-qpic'
9687 lt_prog_compiler_static='-qstaticlink'
9688 ;;
9689 *)
9690 case `$CC -V 2>&1 | $SED 5q` in
9691 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9692 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9693 lt_prog_compiler_pic='-KPIC'
9694 lt_prog_compiler_static='-Bstatic'
9695 lt_prog_compiler_wl=''
9696 ;;
9697 *Sun\ F* | *Sun*Fortran*)
9698 lt_prog_compiler_pic='-KPIC'
9699 lt_prog_compiler_static='-Bstatic'
9700 lt_prog_compiler_wl='-Qoption ld '
9701 ;;
9702 *Sun\ C*)
9703 # Sun C 5.9
9704 lt_prog_compiler_pic='-KPIC'
9705 lt_prog_compiler_static='-Bstatic'
9706 lt_prog_compiler_wl='-Wl,'
9707 ;;
9708 *Intel*\ [CF]*Compiler*)
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_pic='-fPIC'
9711 lt_prog_compiler_static='-static'
9712 ;;
9713 *Portland\ Group*)
9714 lt_prog_compiler_wl='-Wl,'
9715 lt_prog_compiler_pic='-fpic'
9716 lt_prog_compiler_static='-Bstatic'
9717 ;;
9718 esac
9719 ;;
9720 esac
9721 ;;
9722
9723 newsos6)
9724 lt_prog_compiler_pic='-KPIC'
9725 lt_prog_compiler_static='-Bstatic'
9726 ;;
9727
9728 *-mlibc)
9729 lt_prog_compiler_wl='-Wl,'
9730 lt_prog_compiler_pic='-fPIC'
9731 lt_prog_compiler_static='-static'
9732 ;;
9733
9734 *nto* | *qnx*)
9735 # QNX uses GNU C++, but need to define -shared option too, otherwise
9736 # it will coredump.
9737 lt_prog_compiler_pic='-fPIC -shared'
9738 ;;
9739
9740 osf3* | osf4* | osf5*)
9741 lt_prog_compiler_wl='-Wl,'
9742 # All OSF/1 code is PIC.
9743 lt_prog_compiler_static='-non_shared'
9744 ;;
9745
9746 rdos*)
9747 lt_prog_compiler_static='-non_shared'
9748 ;;
9749
9750 serenity*)
9751 ;;
9752
9753 solaris*)
9754 lt_prog_compiler_pic='-KPIC'
9755 lt_prog_compiler_static='-Bstatic'
9756 case $cc_basename in
9757 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9758 lt_prog_compiler_wl='-Qoption ld ';;
9759 *)
9760 lt_prog_compiler_wl='-Wl,';;
9761 esac
9762 ;;
9763
9764 sunos4*)
9765 lt_prog_compiler_wl='-Qoption ld '
9766 lt_prog_compiler_pic='-PIC'
9767 lt_prog_compiler_static='-Bstatic'
9768 ;;
9769
9770 sysv4 | sysv4.2uw2* | sysv4.3*)
9771 lt_prog_compiler_wl='-Wl,'
9772 lt_prog_compiler_pic='-KPIC'
9773 lt_prog_compiler_static='-Bstatic'
9774 ;;
9775
9776 sysv4*MP*)
9777 if test -d /usr/nec; then
9778 lt_prog_compiler_pic='-Kconform_pic'
9779 lt_prog_compiler_static='-Bstatic'
9780 fi
9781 ;;
9782
9783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9784 lt_prog_compiler_wl='-Wl,'
9785 lt_prog_compiler_pic='-KPIC'
9786 lt_prog_compiler_static='-Bstatic'
9787 ;;
9788
9789 unicos*)
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_can_build_shared=no
9792 ;;
9793
9794 uts4*)
9795 lt_prog_compiler_pic='-pic'
9796 lt_prog_compiler_static='-Bstatic'
9797 ;;
9798
9799 *)
9800 lt_prog_compiler_can_build_shared=no
9801 ;;
9802 esac
9803 fi
9804
9805 case $host_os in
9806 # For platforms that do not support PIC, -DPIC is meaningless:
9807 *djgpp*)
9808 lt_prog_compiler_pic=
9809 ;;
9810 *)
9811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9812 ;;
9813 esac
9814
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9816 printf %s "checking for $compiler option to produce PIC... " >&6; }
9817 if test ${lt_cv_prog_compiler_pic+y}
9818 then :
9819 printf %s "(cached) " >&6
9820 else case e in #(
9821 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9822 esac
9823 fi
9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9825 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9826 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9827
9828 #
9829 # Check to make sure the PIC flag actually works.
9830 #
9831 if test -n "$lt_prog_compiler_pic"; then
9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9833 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9834 if test ${lt_cv_prog_compiler_pic_works+y}
9835 then :
9836 printf %s "(cached) " >&6
9837 else case e in #(
9838 e) lt_cv_prog_compiler_pic_works=no
9839 ac_outfile=conftest.$ac_objext
9840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9841 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9842 # Insert the option either (1) after the last *FLAGS variable, or
9843 # (2) before a word containing "conftest.", or (3) at the end.
9844 # Note that $ac_compile itself does not contain backslashes and begins
9845 # with a dollar sign (not a hyphen), so the echo should work correctly.
9846 # The option is referenced via a variable to avoid confusing sed.
9847 lt_compile=`echo "$ac_compile" | $SED \
9848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9850 -e 's:$: $lt_compiler_flag:'`
9851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9852 (eval "$lt_compile" 2>conftest.err)
9853 ac_status=$?
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 if (exit $ac_status) && test -s "$ac_outfile"; then
9857 # The compiler can only warn and ignore the option if not recognized
9858 # So say no if there are warnings other than the usual output.
9859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9862 lt_cv_prog_compiler_pic_works=yes
9863 fi
9864 fi
9865 $RM conftest*
9866 ;;
9867 esac
9868 fi
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9870 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9871
9872 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9873 case $lt_prog_compiler_pic in
9874 "" | " "*) ;;
9875 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9876 esac
9877 else
9878 lt_prog_compiler_pic=
9879 lt_prog_compiler_can_build_shared=no
9880 fi
9881
9882 fi
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894 #
9895 # Check to make sure the static flag actually works.
9896 #
9897 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9899 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9900 if test ${lt_cv_prog_compiler_static_works+y}
9901 then :
9902 printf %s "(cached) " >&6
9903 else case e in #(
9904 e) lt_cv_prog_compiler_static_works=no
9905 save_LDFLAGS=$LDFLAGS
9906 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9909 # The linker can only warn and ignore the option if not recognized
9910 # So say no if there are warnings
9911 if test -s conftest.err; then
9912 # Append any errors to the config.log.
9913 cat conftest.err 1>&5
9914 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9916 if diff conftest.exp conftest.er2 >/dev/null; then
9917 lt_cv_prog_compiler_static_works=yes
9918 fi
9919 else
9920 lt_cv_prog_compiler_static_works=yes
9921 fi
9922 fi
9923 $RM -r conftest*
9924 LDFLAGS=$save_LDFLAGS
9925 ;;
9926 esac
9927 fi
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9929 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9930
9931 if test yes = "$lt_cv_prog_compiler_static_works"; then
9932 :
9933 else
9934 lt_prog_compiler_static=
9935 fi
9936
9937
9938
9939
9940
9941
9942
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9944 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9945 if test ${lt_cv_prog_compiler_c_o+y}
9946 then :
9947 printf %s "(cached) " >&6
9948 else case e in #(
9949 e) lt_cv_prog_compiler_c_o=no
9950 $RM -r conftest 2>/dev/null
9951 mkdir conftest
9952 cd conftest
9953 mkdir out
9954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9955
9956 lt_compiler_flag="-o out/conftest2.$ac_objext"
9957 # Insert the option either (1) after the last *FLAGS variable, or
9958 # (2) before a word containing "conftest.", or (3) at the end.
9959 # Note that $ac_compile itself does not contain backslashes and begins
9960 # with a dollar sign (not a hyphen), so the echo should work correctly.
9961 lt_compile=`echo "$ac_compile" | $SED \
9962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9964 -e 's:$: $lt_compiler_flag:'`
9965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9966 (eval "$lt_compile" 2>out/conftest.err)
9967 ac_status=$?
9968 cat out/conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9971 then
9972 # The compiler can only warn and ignore the option if not recognized
9973 # So say no if there are warnings
9974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9977 lt_cv_prog_compiler_c_o=yes
9978 fi
9979 fi
9980 chmod u+w . 2>&5
9981 $RM conftest*
9982 # SGI C++ compiler will create directory out/ii_files/ for
9983 # template instantiation
9984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9985 $RM out/* && rmdir out
9986 cd ..
9987 $RM -r conftest
9988 $RM conftest*
9989 ;;
9990 esac
9991 fi
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9993 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9994
9995
9996
9997
9998
9999
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10001 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10002 if test ${lt_cv_prog_compiler_c_o+y}
10003 then :
10004 printf %s "(cached) " >&6
10005 else case e in #(
10006 e) lt_cv_prog_compiler_c_o=no
10007 $RM -r conftest 2>/dev/null
10008 mkdir conftest
10009 cd conftest
10010 mkdir out
10011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10012
10013 lt_compiler_flag="-o out/conftest2.$ac_objext"
10014 # Insert the option either (1) after the last *FLAGS variable, or
10015 # (2) before a word containing "conftest.", or (3) at the end.
10016 # Note that $ac_compile itself does not contain backslashes and begins
10017 # with a dollar sign (not a hyphen), so the echo should work correctly.
10018 lt_compile=`echo "$ac_compile" | $SED \
10019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10021 -e 's:$: $lt_compiler_flag:'`
10022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10023 (eval "$lt_compile" 2>out/conftest.err)
10024 ac_status=$?
10025 cat out/conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10028 then
10029 # The compiler can only warn and ignore the option if not recognized
10030 # So say no if there are warnings
10031 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10032 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10033 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10034 lt_cv_prog_compiler_c_o=yes
10035 fi
10036 fi
10037 chmod u+w . 2>&5
10038 $RM conftest*
10039 # SGI C++ compiler will create directory out/ii_files/ for
10040 # template instantiation
10041 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10042 $RM out/* && rmdir out
10043 cd ..
10044 $RM -r conftest
10045 $RM conftest*
10046 ;;
10047 esac
10048 fi
10049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10050 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10051
10052
10053
10054
10055 hard_links=nottested
10056 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10057 # do not overwrite the value of need_locks provided by the user
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10059 printf %s "checking if we can lock with hard links... " >&6; }
10060 hard_links=yes
10061 $RM conftest*
10062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10063 touch conftest.a
10064 ln conftest.a conftest.b 2>&5 || hard_links=no
10065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10067 printf "%s\n" "$hard_links" >&6; }
10068 if test no = "$hard_links"; then
10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10070 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10071 need_locks=warn
10072 fi
10073 else
10074 need_locks=no
10075 fi
10076
10077
10078
10079
10080
10081
10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10083 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10084
10085 runpath_var=
10086 allow_undefined_flag=
10087 always_export_symbols=no
10088 archive_cmds=
10089 archive_expsym_cmds=
10090 compiler_needs_object=no
10091 enable_shared_with_static_runtimes=no
10092 export_dynamic_flag_spec=
10093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10094 hardcode_automatic=no
10095 hardcode_direct=no
10096 hardcode_direct_absolute=no
10097 hardcode_libdir_flag_spec=
10098 hardcode_libdir_separator=
10099 hardcode_minus_L=no
10100 hardcode_shlibpath_var=unsupported
10101 inherit_rpath=no
10102 link_all_deplibs=unknown
10103 module_cmds=
10104 module_expsym_cmds=
10105 old_archive_from_new_cmds=
10106 old_archive_from_expsyms_cmds=
10107 thread_safe_flag_spec=
10108 whole_archive_flag_spec=
10109 # include_expsyms should be a list of space-separated symbols to be *always*
10110 # included in the symbol list
10111 include_expsyms=
10112 # exclude_expsyms can be an extended regexp of symbols to exclude
10113 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10114 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10115 # as well as any symbol that contains 'd'.
10116 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10117 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10118 # platforms (ab)use it in PIC code, but their linkers get confused if
10119 # the symbol is explicitly referenced. Since portable code cannot
10120 # rely on this symbol name, it's probably fine to never include it in
10121 # preloaded symbol tables.
10122 # Exclude shared library initialization/finalization symbols.
10123 extract_expsyms_cmds=
10124
10125 case $host_os in
10126 cygwin* | mingw* | windows* | pw32* | cegcc*)
10127 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10128 # When not using gcc, we currently assume that we are using
10129 # Microsoft Visual C++ or Intel C++ Compiler.
10130 if test yes != "$GCC"; then
10131 with_gnu_ld=no
10132 fi
10133 ;;
10134 interix*)
10135 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10136 with_gnu_ld=yes
10137 ;;
10138 esac
10139
10140 ld_shlibs=yes
10141
10142 # On some targets, GNU ld is compatible enough with the native linker
10143 # that we're better off using the native interface for both.
10144 lt_use_gnu_ld_interface=no
10145 if test yes = "$with_gnu_ld"; then
10146 case $host_os in
10147 aix*)
10148 # The AIX port of GNU ld has always aspired to compatibility
10149 # with the native linker. However, as the warning in the GNU ld
10150 # block says, versions before 2.19.5* couldn't really create working
10151 # shared libraries, regardless of the interface used.
10152 case `$LD -v 2>&1` in
10153 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10154 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10155 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10156 *)
10157 lt_use_gnu_ld_interface=yes
10158 ;;
10159 esac
10160 ;;
10161 *)
10162 lt_use_gnu_ld_interface=yes
10163 ;;
10164 esac
10165 fi
10166
10167 if test yes = "$lt_use_gnu_ld_interface"; then
10168 # If archive_cmds runs LD, not CC, wlarc should be empty
10169 wlarc='$wl'
10170
10171 # Set some defaults for GNU ld with shared library support. These
10172 # are reset later if shared libraries are not supported. Putting them
10173 # here allows them to be overridden if necessary.
10174 runpath_var=LD_RUN_PATH
10175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10176 export_dynamic_flag_spec='$wl--export-dynamic'
10177 # ancient GNU ld didn't support --whole-archive et. al.
10178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10179 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10180 else
10181 whole_archive_flag_spec=
10182 fi
10183 supports_anon_versioning=no
10184 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10185 *GNU\ gold*) supports_anon_versioning=yes ;;
10186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10189 *\ 2.11.*) ;; # other 2.11 versions
10190 *) supports_anon_versioning=yes ;;
10191 esac
10192
10193 # See if GNU ld supports shared libraries.
10194 case $host_os in
10195 aix[3-9]*)
10196 # On AIX/PPC, the GNU linker is very broken
10197 if test ia64 != "$host_cpu"; then
10198 ld_shlibs=no
10199 cat <<_LT_EOF 1>&2
10200
10201 *** Warning: the GNU linker, at least up to release 2.19, is reported
10202 *** to be unable to reliably create shared libraries on AIX.
10203 *** Therefore, libtool is disabling shared libraries support. If you
10204 *** really care for shared libraries, you may want to install binutils
10205 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10206 *** You will then need to restart the configuration process.
10207
10208 _LT_EOF
10209 fi
10210 ;;
10211
10212 amigaos*)
10213 case $host_cpu in
10214 powerpc)
10215 # see comment about AmigaOS4 .so support
10216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10217 archive_expsym_cmds=''
10218 ;;
10219 m68k)
10220 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)'
10221 hardcode_libdir_flag_spec='-L$libdir'
10222 hardcode_minus_L=yes
10223 ;;
10224 esac
10225 ;;
10226
10227 beos*)
10228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10229 allow_undefined_flag=unsupported
10230 # Joseph Beckenbach <[email protected]> says some releases of gcc
10231 # support --undefined. This deserves some investigation. FIXME
10232 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10233 else
10234 ld_shlibs=no
10235 fi
10236 ;;
10237
10238 cygwin* | mingw* | windows* | pw32* | cegcc*)
10239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10240 # as there is no search path for DLLs.
10241 hardcode_libdir_flag_spec='-L$libdir'
10242 export_dynamic_flag_spec='$wl--export-all-symbols'
10243 allow_undefined_flag=unsupported
10244 always_export_symbols=no
10245 enable_shared_with_static_runtimes=yes
10246 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'
10247 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10248 file_list_spec='@'
10249
10250 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10252 # If the export-symbols file already is a .def file, use it as
10253 # is; otherwise, prepend EXPORTS...
10254 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10255 cp $export_symbols $output_objdir/$soname.def;
10256 else
10257 echo EXPORTS > $output_objdir/$soname.def;
10258 cat $export_symbols >> $output_objdir/$soname.def;
10259 fi~
10260 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10261 else
10262 ld_shlibs=no
10263 fi
10264 ;;
10265
10266 haiku*)
10267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10268 link_all_deplibs=no
10269 ;;
10270
10271 os2*)
10272 hardcode_libdir_flag_spec='-L$libdir'
10273 hardcode_minus_L=yes
10274 allow_undefined_flag=unsupported
10275 shrext_cmds=.dll
10276 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10277 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10278 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10279 $ECHO EXPORTS >> $output_objdir/$libname.def~
10280 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10281 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10282 emximp -o $lib $output_objdir/$libname.def'
10283 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10284 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10285 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10286 $ECHO EXPORTS >> $output_objdir/$libname.def~
10287 prefix_cmds="$SED"~
10288 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10289 prefix_cmds="$prefix_cmds -e 1d";
10290 fi~
10291 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10292 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10293 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10294 emximp -o $lib $output_objdir/$libname.def'
10295 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10296 enable_shared_with_static_runtimes=yes
10297 file_list_spec='@'
10298 ;;
10299
10300 interix[3-9]*)
10301 hardcode_direct=no
10302 hardcode_shlibpath_var=no
10303 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10304 export_dynamic_flag_spec='$wl-E'
10305 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10306 # Instead, shared libraries are loaded at an image base (0x10000000 by
10307 # default) and relocated if they conflict, which is a slow very memory
10308 # consuming and fragmenting process. To avoid this, we pick a random,
10309 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10310 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10312 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'
10313 ;;
10314
10315 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10316 tmp_diet=no
10317 if test linux-dietlibc = "$host_os"; then
10318 case $cc_basename in
10319 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10320 esac
10321 fi
10322 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10323 && test no = "$tmp_diet"
10324 then
10325 tmp_addflag=' $pic_flag'
10326 tmp_sharedflag='-shared'
10327 case $cc_basename,$host_cpu in
10328 pgcc*) # Portland Group C compiler
10329 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'
10330 tmp_addflag=' $pic_flag'
10331 ;;
10332 pgf77* | pgf90* | pgf95* | pgfortran*)
10333 # Portland Group f77 and f90 compilers
10334 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'
10335 tmp_addflag=' $pic_flag -Mnomain' ;;
10336 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10337 tmp_addflag=' -i_dynamic' ;;
10338 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10339 tmp_addflag=' -i_dynamic -nofor_main' ;;
10340 ifc* | ifort*) # Intel Fortran compiler
10341 tmp_addflag=' -nofor_main' ;;
10342 lf95*) # Lahey Fortran 8.1
10343 whole_archive_flag_spec=
10344 tmp_sharedflag='--shared' ;;
10345 nagfor*) # NAGFOR 5.3
10346 tmp_sharedflag='-Wl,-shared' ;;
10347 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10348 tmp_sharedflag='-qmkshrobj'
10349 tmp_addflag= ;;
10350 nvcc*) # Cuda Compiler Driver 2.2
10351 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'
10352 compiler_needs_object=yes
10353 ;;
10354 esac
10355 case `$CC -V 2>&1 | $SED 5q` in
10356 *Sun\ C*) # Sun C 5.9
10357 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'
10358 compiler_needs_object=yes
10359 tmp_sharedflag='-G' ;;
10360 *Sun\ F*) # Sun Fortran 8.3
10361 tmp_sharedflag='-G' ;;
10362 esac
10363 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10364
10365 if test yes = "$supports_anon_versioning"; then
10366 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10367 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10368 echo "local: *; };" >> $output_objdir/$libname.ver~
10369 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10370 fi
10371
10372 case $cc_basename in
10373 tcc*)
10374 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10375 export_dynamic_flag_spec='-rdynamic'
10376 ;;
10377 xlf* | bgf* | bgxlf* | mpixlf*)
10378 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10379 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10380 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10381 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10382 if test yes = "$supports_anon_versioning"; then
10383 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10384 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10385 echo "local: *; };" >> $output_objdir/$libname.ver~
10386 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10387 fi
10388 ;;
10389 esac
10390 else
10391 ld_shlibs=no
10392 fi
10393 ;;
10394
10395 *-mlibc)
10396 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10397 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10398 ;;
10399
10400 netbsd* | netbsdelf*-gnu)
10401 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10402 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10403 wlarc=
10404 else
10405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10406 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10407 fi
10408 ;;
10409
10410 solaris*)
10411 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10412 ld_shlibs=no
10413 cat <<_LT_EOF 1>&2
10414
10415 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10416 *** create shared libraries on Solaris systems. Therefore, libtool
10417 *** is disabling shared libraries support. We urge you to upgrade GNU
10418 *** binutils to release 2.9.1 or newer. Another option is to modify
10419 *** your PATH or compiler configuration so that the native linker is
10420 *** used, and then restart.
10421
10422 _LT_EOF
10423 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10424 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10425 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10426 else
10427 ld_shlibs=no
10428 fi
10429 ;;
10430
10431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10432 case `$LD -v 2>&1` in
10433 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10434 ld_shlibs=no
10435 cat <<_LT_EOF 1>&2
10436
10437 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10438 *** reliably create shared libraries on SCO systems. Therefore, libtool
10439 *** is disabling shared libraries support. We urge you to upgrade GNU
10440 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10441 *** your PATH or compiler configuration so that the native linker is
10442 *** used, and then restart.
10443
10444 _LT_EOF
10445 ;;
10446 *)
10447 # For security reasons, it is highly recommended that you always
10448 # use absolute paths for naming shared libraries, and exclude the
10449 # DT_RUNPATH tag from executables and libraries. But doing so
10450 # requires that you compile everything twice, which is a pain.
10451 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10455 else
10456 ld_shlibs=no
10457 fi
10458 ;;
10459 esac
10460 ;;
10461
10462 sunos4*)
10463 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10464 wlarc=
10465 hardcode_direct=yes
10466 hardcode_shlibpath_var=no
10467 ;;
10468
10469 *)
10470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10471 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10472 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10473 else
10474 ld_shlibs=no
10475 fi
10476 ;;
10477 esac
10478
10479 if test no = "$ld_shlibs"; then
10480 runpath_var=
10481 hardcode_libdir_flag_spec=
10482 export_dynamic_flag_spec=
10483 whole_archive_flag_spec=
10484 fi
10485 else
10486 # PORTME fill in a description of your system's linker (not GNU ld)
10487 case $host_os in
10488 aix3*)
10489 allow_undefined_flag=unsupported
10490 always_export_symbols=yes
10491 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'
10492 # Note: this linker hardcodes the directories in LIBPATH if there
10493 # are no directories specified by -L.
10494 hardcode_minus_L=yes
10495 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10496 # Neither direct hardcoding nor static linking is supported with a
10497 # broken collect2.
10498 hardcode_direct=unsupported
10499 fi
10500 ;;
10501
10502 aix[4-9]*)
10503 if test ia64 = "$host_cpu"; then
10504 # On IA64, the linker does run time linking by default, so we don't
10505 # have to do anything special.
10506 aix_use_runtimelinking=no
10507 exp_sym_flag='-Bexport'
10508 no_entry_flag=
10509 else
10510 # If we're using GNU nm, then we don't want the "-C" option.
10511 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10512 # Without the "-l" option, or with the "-B" option, AIX nm treats
10513 # weak defined symbols like other global defined symbols, whereas
10514 # GNU nm marks them as "W".
10515 # While the 'weak' keyword is ignored in the Export File, we need
10516 # it in the Import File for the 'aix-soname' feature, so we have
10517 # to replace the "-B" option with "-P" for AIX nm.
10518 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10519 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'
10520 else
10521 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'
10522 fi
10523 aix_use_runtimelinking=no
10524
10525 # Test if we are trying to use run time linking or normal
10526 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10527 # have runtime linking enabled, and use it for executables.
10528 # For shared libraries, we enable/disable runtime linking
10529 # depending on the kind of the shared library created -
10530 # when "with_aix_soname,aix_use_runtimelinking" is:
10531 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10532 # "aix,yes" lib.so shared, rtl:yes, for executables
10533 # lib.a static archive
10534 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10535 # lib.a(lib.so.V) shared, rtl:no, for executables
10536 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10537 # lib.a(lib.so.V) shared, rtl:no
10538 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10539 # lib.a static archive
10540 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10541 for ld_flag in $LDFLAGS; do
10542 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10543 aix_use_runtimelinking=yes
10544 break
10545 fi
10546 done
10547 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10548 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10549 # so we don't have lib.a shared libs to link our executables.
10550 # We have to force runtime linking in this case.
10551 aix_use_runtimelinking=yes
10552 LDFLAGS="$LDFLAGS -Wl,-brtl"
10553 fi
10554 ;;
10555 esac
10556
10557 exp_sym_flag='-bexport'
10558 no_entry_flag='-bnoentry'
10559 fi
10560
10561 # When large executables or shared objects are built, AIX ld can
10562 # have problems creating the table of contents. If linking a library
10563 # or program results in "error TOC overflow" add -mminimal-toc to
10564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10566
10567 archive_cmds=''
10568 hardcode_direct=yes
10569 hardcode_direct_absolute=yes
10570 hardcode_libdir_separator=':'
10571 link_all_deplibs=yes
10572 file_list_spec='$wl-f,'
10573 case $with_aix_soname,$aix_use_runtimelinking in
10574 aix,*) ;; # traditional, no import file
10575 svr4,* | *,yes) # use import file
10576 # The Import File defines what to hardcode.
10577 hardcode_direct=no
10578 hardcode_direct_absolute=no
10579 ;;
10580 esac
10581
10582 if test yes = "$GCC"; then
10583 case $host_os in aix4.[012]|aix4.[012].*)
10584 # We only want to do this on AIX 4.2 and lower, the check
10585 # below for broken collect2 doesn't work under 4.3+
10586 collect2name=`$CC -print-prog-name=collect2`
10587 if test -f "$collect2name" &&
10588 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10589 then
10590 # We have reworked collect2
10591 :
10592 else
10593 # We have old collect2
10594 hardcode_direct=unsupported
10595 # It fails to find uninstalled libraries when the uninstalled
10596 # path is not listed in the libpath. Setting hardcode_minus_L
10597 # to unsupported forces relinking
10598 hardcode_minus_L=yes
10599 hardcode_libdir_flag_spec='-L$libdir'
10600 hardcode_libdir_separator=
10601 fi
10602 ;;
10603 esac
10604 shared_flag='-shared'
10605 if test yes = "$aix_use_runtimelinking"; then
10606 shared_flag="$shared_flag "'$wl-G'
10607 fi
10608 # Need to ensure runtime linking is disabled for the traditional
10609 # shared library, or the linker may eventually find shared libraries
10610 # /with/ Import File - we do not want to mix them.
10611 shared_flag_aix='-shared'
10612 shared_flag_svr4='-shared $wl-G'
10613 else
10614 # not using gcc
10615 if test ia64 = "$host_cpu"; then
10616 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10617 # chokes on -Wl,-G. The following line is correct:
10618 shared_flag='-G'
10619 else
10620 if test yes = "$aix_use_runtimelinking"; then
10621 shared_flag='$wl-G'
10622 else
10623 shared_flag='$wl-bM:SRE'
10624 fi
10625 shared_flag_aix='$wl-bM:SRE'
10626 shared_flag_svr4='$wl-G'
10627 fi
10628 fi
10629
10630 export_dynamic_flag_spec='$wl-bexpall'
10631 # It seems that -bexpall does not export symbols beginning with
10632 # underscore (_), so it is better to generate a list of symbols to export.
10633 always_export_symbols=yes
10634 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10635 # Warning - without using the other runtime loading flags (-brtl),
10636 # -berok will link without error, but may produce a broken library.
10637 allow_undefined_flag='-berok'
10638 # Determine the default libpath from the value encoded in an
10639 # empty executable.
10640 if test set = "${lt_cv_aix_libpath+set}"; then
10641 aix_libpath=$lt_cv_aix_libpath
10642 else
10643 if test ${lt_cv_aix_libpath_+y}
10644 then :
10645 printf %s "(cached) " >&6
10646 else case e in #(
10647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649
10650 int
10651 main (void)
10652 {
10653
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"
10659 then :
10660
10661 lt_aix_libpath_sed='
10662 /Import File Strings/,/^$/ {
10663 /^0/ {
10664 s/^0 *\([^ ]*\) *$/\1/
10665 p
10666 }
10667 }'
10668 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10669 # Check for a 64-bit object if we didn't find anything.
10670 if test -z "$lt_cv_aix_libpath_"; then
10671 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10672 fi
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10675 conftest$ac_exeext conftest.$ac_ext
10676 if test -z "$lt_cv_aix_libpath_"; then
10677 lt_cv_aix_libpath_=/usr/lib:/lib
10678 fi
10679 ;;
10680 esac
10681 fi
10682
10683 aix_libpath=$lt_cv_aix_libpath_
10684 fi
10685
10686 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10687 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
10688 else
10689 if test ia64 = "$host_cpu"; then
10690 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10691 allow_undefined_flag="-z nodefs"
10692 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"
10693 else
10694 # Determine the default libpath from the value encoded in an
10695 # empty executable.
10696 if test set = "${lt_cv_aix_libpath+set}"; then
10697 aix_libpath=$lt_cv_aix_libpath
10698 else
10699 if test ${lt_cv_aix_libpath_+y}
10700 then :
10701 printf %s "(cached) " >&6
10702 else case e in #(
10703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705
10706 int
10707 main (void)
10708 {
10709
10710 ;
10711 return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"
10715 then :
10716
10717 lt_aix_libpath_sed='
10718 /Import File Strings/,/^$/ {
10719 /^0/ {
10720 s/^0 *\([^ ]*\) *$/\1/
10721 p
10722 }
10723 }'
10724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10725 # Check for a 64-bit object if we didn't find anything.
10726 if test -z "$lt_cv_aix_libpath_"; then
10727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10728 fi
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10731 conftest$ac_exeext conftest.$ac_ext
10732 if test -z "$lt_cv_aix_libpath_"; then
10733 lt_cv_aix_libpath_=/usr/lib:/lib
10734 fi
10735 ;;
10736 esac
10737 fi
10738
10739 aix_libpath=$lt_cv_aix_libpath_
10740 fi
10741
10742 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10743 # Warning - without using the other run time loading flags,
10744 # -berok will link without error, but may produce a broken library.
10745 no_undefined_flag=' $wl-bernotok'
10746 allow_undefined_flag=' $wl-berok'
10747 if test yes = "$with_gnu_ld"; then
10748 # We only use this code for GNU lds that support --whole-archive.
10749 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10750 else
10751 # Exported symbols can be pulled into shared objects from archives
10752 whole_archive_flag_spec='$convenience'
10753 fi
10754 archive_cmds_need_lc=yes
10755 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10756 # -brtl affects multiple linker settings, -berok does not and is overridden later
10757 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10758 if test svr4 != "$with_aix_soname"; then
10759 # This is similar to how AIX traditionally builds its shared libraries.
10760 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'
10761 fi
10762 if test aix != "$with_aix_soname"; then
10763 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'
10764 else
10765 # used by -dlpreopen to get the symbols
10766 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10767 fi
10768 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10769 fi
10770 fi
10771 ;;
10772
10773 amigaos*)
10774 case $host_cpu in
10775 powerpc)
10776 # see comment about AmigaOS4 .so support
10777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10778 archive_expsym_cmds=''
10779 ;;
10780 m68k)
10781 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)'
10782 hardcode_libdir_flag_spec='-L$libdir'
10783 hardcode_minus_L=yes
10784 ;;
10785 esac
10786 ;;
10787
10788 bsdi[45]*)
10789 export_dynamic_flag_spec=-rdynamic
10790 ;;
10791
10792 cygwin* | mingw* | windows* | pw32* | cegcc*)
10793 # When not using gcc, we currently assume that we are using
10794 # Microsoft Visual C++ or Intel C++ Compiler.
10795 # hardcode_libdir_flag_spec is actually meaningless, as there is
10796 # no search path for DLLs.
10797 case $cc_basename in
10798 cl* | icl*)
10799 # Native MSVC or ICC
10800 hardcode_libdir_flag_spec=' '
10801 allow_undefined_flag=unsupported
10802 always_export_symbols=yes
10803 file_list_spec='@'
10804 # Tell ltmain to make .lib files, not .a files.
10805 libext=lib
10806 # Tell ltmain to make .dll files, not .so files.
10807 shrext_cmds=.dll
10808 # FIXME: Setting linknames here is a bad hack.
10809 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10810 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10811 cp "$export_symbols" "$output_objdir/$soname.def";
10812 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10813 else
10814 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10815 fi~
10816 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10817 linknames='
10818 # The linker will not automatically build a static lib if we build a DLL.
10819 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10820 enable_shared_with_static_runtimes=yes
10821 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10822 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10823 # Don't use ranlib
10824 old_postinstall_cmds='chmod 644 $oldlib'
10825 postlink_cmds='lt_outputfile="@OUTPUT@"~
10826 lt_tool_outputfile="@TOOL_OUTPUT@"~
10827 case $lt_outputfile in
10828 *.exe|*.EXE) ;;
10829 *)
10830 lt_outputfile=$lt_outputfile.exe
10831 lt_tool_outputfile=$lt_tool_outputfile.exe
10832 ;;
10833 esac~
10834 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10835 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10836 $RM "$lt_outputfile.manifest";
10837 fi'
10838 ;;
10839 *)
10840 # Assume MSVC and ICC wrapper
10841 hardcode_libdir_flag_spec=' '
10842 allow_undefined_flag=unsupported
10843 # Tell ltmain to make .lib files, not .a files.
10844 libext=lib
10845 # Tell ltmain to make .dll files, not .so files.
10846 shrext_cmds=.dll
10847 # FIXME: Setting linknames here is a bad hack.
10848 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10849 # The linker will automatically build a .lib file if we build a DLL.
10850 old_archive_from_new_cmds='true'
10851 # FIXME: Should let the user specify the lib program.
10852 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10853 enable_shared_with_static_runtimes=yes
10854 ;;
10855 esac
10856 ;;
10857
10858 darwin* | rhapsody*)
10859
10860
10861 archive_cmds_need_lc=no
10862 hardcode_direct=no
10863 hardcode_automatic=yes
10864 hardcode_shlibpath_var=unsupported
10865 if test yes = "$lt_cv_ld_force_load"; then
10866 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\"`'
10867
10868 else
10869 whole_archive_flag_spec=''
10870 fi
10871 link_all_deplibs=yes
10872 allow_undefined_flag=$_lt_dar_allow_undefined
10873 case $cc_basename in
10874 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10875 *) _lt_dar_can_shared=$GCC ;;
10876 esac
10877 if test yes = "$_lt_dar_can_shared"; then
10878 output_verbose_link_cmd=func_echo_all
10879 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10880 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10881 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"
10882 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"
10883
10884 else
10885 ld_shlibs=no
10886 fi
10887
10888 ;;
10889
10890 dgux*)
10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892 hardcode_libdir_flag_spec='-L$libdir'
10893 hardcode_shlibpath_var=no
10894 ;;
10895
10896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10897 # support. Future versions do this automatically, but an explicit c++rt0.o
10898 # does not break anything, and helps significantly (at the cost of a little
10899 # extra space).
10900 freebsd2.2*)
10901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10902 hardcode_libdir_flag_spec='-R$libdir'
10903 hardcode_direct=yes
10904 hardcode_shlibpath_var=no
10905 ;;
10906
10907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10908 freebsd2.*)
10909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10910 hardcode_direct=yes
10911 hardcode_minus_L=yes
10912 hardcode_shlibpath_var=no
10913 ;;
10914
10915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10916 freebsd* | dragonfly* | midnightbsd*)
10917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10918 hardcode_libdir_flag_spec='-R$libdir'
10919 hardcode_direct=yes
10920 hardcode_shlibpath_var=no
10921 ;;
10922
10923 hpux9*)
10924 if test yes = "$GCC"; then
10925 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'
10926 else
10927 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'
10928 fi
10929 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10930 hardcode_libdir_separator=:
10931 hardcode_direct=yes
10932
10933 # hardcode_minus_L: Not really in the search PATH,
10934 # but as the default location of the library.
10935 hardcode_minus_L=yes
10936 export_dynamic_flag_spec='$wl-E'
10937 ;;
10938
10939 hpux10*)
10940 if test yes,no = "$GCC,$with_gnu_ld"; then
10941 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10942 else
10943 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10944 fi
10945 if test no = "$with_gnu_ld"; then
10946 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10947 hardcode_libdir_separator=:
10948 hardcode_direct=yes
10949 hardcode_direct_absolute=yes
10950 export_dynamic_flag_spec='$wl-E'
10951 # hardcode_minus_L: Not really in the search PATH,
10952 # but as the default location of the library.
10953 hardcode_minus_L=yes
10954 fi
10955 ;;
10956
10957 hpux11*)
10958 if test yes,no = "$GCC,$with_gnu_ld"; then
10959 case $host_cpu in
10960 hppa*64*)
10961 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10962 ;;
10963 ia64*)
10964 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10965 ;;
10966 *)
10967 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10968 ;;
10969 esac
10970 else
10971 case $host_cpu in
10972 hppa*64*)
10973 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10974 ;;
10975 ia64*)
10976 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10977 ;;
10978 *)
10979
10980 # Older versions of the 11.00 compiler do not understand -b yet
10981 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10983 printf %s "checking if $CC understands -b... " >&6; }
10984 if test ${lt_cv_prog_compiler__b+y}
10985 then :
10986 printf %s "(cached) " >&6
10987 else case e in #(
10988 e) lt_cv_prog_compiler__b=no
10989 save_LDFLAGS=$LDFLAGS
10990 LDFLAGS="$LDFLAGS -b"
10991 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10993 # The linker can only warn and ignore the option if not recognized
10994 # So say no if there are warnings
10995 if test -s conftest.err; then
10996 # Append any errors to the config.log.
10997 cat conftest.err 1>&5
10998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11000 if diff conftest.exp conftest.er2 >/dev/null; then
11001 lt_cv_prog_compiler__b=yes
11002 fi
11003 else
11004 lt_cv_prog_compiler__b=yes
11005 fi
11006 fi
11007 $RM -r conftest*
11008 LDFLAGS=$save_LDFLAGS
11009 ;;
11010 esac
11011 fi
11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11013 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11014
11015 if test yes = "$lt_cv_prog_compiler__b"; then
11016 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11017 else
11018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11019 fi
11020
11021 ;;
11022 esac
11023 fi
11024 if test no = "$with_gnu_ld"; then
11025 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11026 hardcode_libdir_separator=:
11027
11028 case $host_cpu in
11029 hppa*64*|ia64*)
11030 hardcode_direct=no
11031 hardcode_shlibpath_var=no
11032 ;;
11033 *)
11034 hardcode_direct=yes
11035 hardcode_direct_absolute=yes
11036 export_dynamic_flag_spec='$wl-E'
11037
11038 # hardcode_minus_L: Not really in the search PATH,
11039 # but as the default location of the library.
11040 hardcode_minus_L=yes
11041 ;;
11042 esac
11043 fi
11044 ;;
11045
11046 irix5* | irix6* | nonstopux*)
11047 if test yes = "$GCC"; then
11048 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'
11049 # Try to use the -exported_symbol ld option, if it does not
11050 # work, assume that -exports_file does not work either and
11051 # implicitly export all symbols.
11052 # This should be the same for all languages, so no per-tag cache variable.
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11054 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11055 if test ${lt_cv_irix_exported_symbol+y}
11056 then :
11057 printf %s "(cached) " >&6
11058 else case e in #(
11059 e) save_LDFLAGS=$LDFLAGS
11060 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063 int foo (void) { return 0; }
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"
11066 then :
11067 lt_cv_irix_exported_symbol=yes
11068 else case e in #(
11069 e) lt_cv_irix_exported_symbol=no ;;
11070 esac
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11073 conftest$ac_exeext conftest.$ac_ext
11074 LDFLAGS=$save_LDFLAGS ;;
11075 esac
11076 fi
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11078 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11079 if test yes = "$lt_cv_irix_exported_symbol"; then
11080 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'
11081 fi
11082 else
11083 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'
11084 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'
11085 fi
11086 archive_cmds_need_lc='no'
11087 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11088 hardcode_libdir_separator=:
11089 inherit_rpath=yes
11090 link_all_deplibs=yes
11091 ;;
11092
11093 linux*)
11094 case $cc_basename in
11095 tcc*)
11096 # Fabrice Bellard et al's Tiny C Compiler
11097 ld_shlibs=yes
11098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11099 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11100 ;;
11101 esac
11102 ;;
11103
11104 *-mlibc)
11105 ;;
11106
11107 netbsd* | netbsdelf*-gnu)
11108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11110 else
11111 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11112 fi
11113 hardcode_libdir_flag_spec='-R$libdir'
11114 hardcode_direct=yes
11115 hardcode_shlibpath_var=no
11116 ;;
11117
11118 newsos6)
11119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11120 hardcode_direct=yes
11121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11122 hardcode_libdir_separator=:
11123 hardcode_shlibpath_var=no
11124 ;;
11125
11126 *nto* | *qnx*)
11127 ;;
11128
11129 openbsd*)
11130 if test -f /usr/libexec/ld.so; then
11131 hardcode_direct=yes
11132 hardcode_shlibpath_var=no
11133 hardcode_direct_absolute=yes
11134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11135 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11136 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11137 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11138 export_dynamic_flag_spec='$wl-E'
11139 else
11140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11141 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11142 fi
11143 else
11144 ld_shlibs=no
11145 fi
11146 ;;
11147
11148 os2*)
11149 hardcode_libdir_flag_spec='-L$libdir'
11150 hardcode_minus_L=yes
11151 allow_undefined_flag=unsupported
11152 shrext_cmds=.dll
11153 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11156 $ECHO EXPORTS >> $output_objdir/$libname.def~
11157 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11159 emximp -o $lib $output_objdir/$libname.def'
11160 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11161 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11162 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11163 $ECHO EXPORTS >> $output_objdir/$libname.def~
11164 prefix_cmds="$SED"~
11165 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11166 prefix_cmds="$prefix_cmds -e 1d";
11167 fi~
11168 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11169 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11170 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11171 emximp -o $lib $output_objdir/$libname.def'
11172 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11173 enable_shared_with_static_runtimes=yes
11174 file_list_spec='@'
11175 ;;
11176
11177 osf3*)
11178 if test yes = "$GCC"; then
11179 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11180 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'
11181 else
11182 allow_undefined_flag=' -expect_unresolved \*'
11183 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'
11184 fi
11185 archive_cmds_need_lc='no'
11186 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11187 hardcode_libdir_separator=:
11188 ;;
11189
11190 osf4* | osf5*) # as osf3* with the addition of -msym flag
11191 if test yes = "$GCC"; then
11192 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11193 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'
11194 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11195 else
11196 allow_undefined_flag=' -expect_unresolved \*'
11197 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'
11198 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~
11199 $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'
11200
11201 # Both c and cxx compiler support -rpath directly
11202 hardcode_libdir_flag_spec='-rpath $libdir'
11203 fi
11204 archive_cmds_need_lc='no'
11205 hardcode_libdir_separator=:
11206 ;;
11207
11208 serenity*)
11209 ;;
11210
11211 solaris*)
11212 no_undefined_flag=' -z defs'
11213 if test yes = "$GCC"; then
11214 wlarc='$wl'
11215 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11217 $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'
11218 else
11219 case `$CC -V 2>&1` in
11220 *"Compilers 5.0"*)
11221 wlarc=''
11222 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11224 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11225 ;;
11226 *)
11227 wlarc='$wl'
11228 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11230 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11231 ;;
11232 esac
11233 fi
11234 hardcode_libdir_flag_spec='-R$libdir'
11235 hardcode_shlibpath_var=no
11236 case $host_os in
11237 solaris2.[0-5] | solaris2.[0-5].*) ;;
11238 *)
11239 # The compiler driver will combine and reorder linker options,
11240 # but understands '-z linker_flag'. GCC discards it without '$wl',
11241 # but is careful enough not to reorder.
11242 # Supported since Solaris 2.6 (maybe 2.5.1?)
11243 if test yes = "$GCC"; then
11244 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11245 else
11246 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11247 fi
11248 ;;
11249 esac
11250 link_all_deplibs=yes
11251 ;;
11252
11253 sunos4*)
11254 if test sequent = "$host_vendor"; then
11255 # Use $CC to link under sequent, because it throws in some extra .o
11256 # files that make .init and .fini sections work.
11257 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11258 else
11259 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11260 fi
11261 hardcode_libdir_flag_spec='-L$libdir'
11262 hardcode_direct=yes
11263 hardcode_minus_L=yes
11264 hardcode_shlibpath_var=no
11265 ;;
11266
11267 sysv4)
11268 case $host_vendor in
11269 sni)
11270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271 hardcode_direct=yes # is this really true???
11272 ;;
11273 siemens)
11274 ## LD is ld it makes a PLAMLIB
11275 ## CC just makes a GrossModule.
11276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11277 reload_cmds='$CC -r -o $output$reload_objs'
11278 hardcode_direct=no
11279 ;;
11280 motorola)
11281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11283 ;;
11284 esac
11285 runpath_var='LD_RUN_PATH'
11286 hardcode_shlibpath_var=no
11287 ;;
11288
11289 sysv4.3*)
11290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11291 hardcode_shlibpath_var=no
11292 export_dynamic_flag_spec='-Bexport'
11293 ;;
11294
11295 sysv4*MP*)
11296 if test -d /usr/nec; then
11297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11298 hardcode_shlibpath_var=no
11299 runpath_var=LD_RUN_PATH
11300 hardcode_runpath_var=yes
11301 ld_shlibs=yes
11302 fi
11303 ;;
11304
11305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11306 no_undefined_flag='$wl-z,text'
11307 archive_cmds_need_lc=no
11308 hardcode_shlibpath_var=no
11309 runpath_var='LD_RUN_PATH'
11310
11311 if test yes = "$GCC"; then
11312 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314 else
11315 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11316 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 fi
11318 ;;
11319
11320 sysv5* | sco3.2v5* | sco5v6*)
11321 # Note: We CANNOT use -z defs as we might desire, because we do not
11322 # link with -lc, and that would cause any symbols used from libc to
11323 # always be unresolved, which means just about no library would
11324 # ever link correctly. If we're not using GNU ld we use -z text
11325 # though, which does catch some bad symbols but isn't as heavy-handed
11326 # as -z defs.
11327 no_undefined_flag='$wl-z,text'
11328 allow_undefined_flag='$wl-z,nodefs'
11329 archive_cmds_need_lc=no
11330 hardcode_shlibpath_var=no
11331 hardcode_libdir_flag_spec='$wl-R,$libdir'
11332 hardcode_libdir_separator=':'
11333 link_all_deplibs=yes
11334 export_dynamic_flag_spec='$wl-Bexport'
11335 runpath_var='LD_RUN_PATH'
11336
11337 if test yes = "$GCC"; then
11338 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11340 else
11341 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11342 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11343 fi
11344 ;;
11345
11346 uts4*)
11347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11348 hardcode_libdir_flag_spec='-L$libdir'
11349 hardcode_shlibpath_var=no
11350 ;;
11351
11352 *)
11353 ld_shlibs=no
11354 ;;
11355 esac
11356
11357 if test sni = "$host_vendor"; then
11358 case $host in
11359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11360 export_dynamic_flag_spec='$wl-Blargedynsym'
11361 ;;
11362 esac
11363 fi
11364 fi
11365
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11367 printf "%s\n" "$ld_shlibs" >&6; }
11368 test no = "$ld_shlibs" && can_build_shared=no
11369
11370 with_gnu_ld=$with_gnu_ld
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386 #
11387 # Do we need to explicitly link libc?
11388 #
11389 case "x$archive_cmds_need_lc" in
11390 x|xyes)
11391 # Assume -lc should be added
11392 archive_cmds_need_lc=yes
11393
11394 if test yes,yes = "$GCC,$enable_shared"; then
11395 case $archive_cmds in
11396 *'~'*)
11397 # FIXME: we may have to deal with multi-command sequences.
11398 ;;
11399 '$CC '*)
11400 # Test whether the compiler implicitly links with -lc since on some
11401 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11402 # to ld, don't add -lc before -lgcc.
11403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11404 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11405 if test ${lt_cv_archive_cmds_need_lc+y}
11406 then :
11407 printf %s "(cached) " >&6
11408 else case e in #(
11409 e) $RM conftest*
11410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11411
11412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11413 (eval $ac_compile) 2>&5
11414 ac_status=$?
11415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11416 test $ac_status = 0; } 2>conftest.err; then
11417 soname=conftest
11418 lib=conftest
11419 libobjs=conftest.$ac_objext
11420 deplibs=
11421 wl=$lt_prog_compiler_wl
11422 pic_flag=$lt_prog_compiler_pic
11423 compiler_flags=-v
11424 linker_flags=-v
11425 verstring=
11426 output_objdir=.
11427 libname=conftest
11428 lt_save_allow_undefined_flag=$allow_undefined_flag
11429 allow_undefined_flag=
11430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11431 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11432 ac_status=$?
11433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11434 test $ac_status = 0; }
11435 then
11436 lt_cv_archive_cmds_need_lc=no
11437 else
11438 lt_cv_archive_cmds_need_lc=yes
11439 fi
11440 allow_undefined_flag=$lt_save_allow_undefined_flag
11441 else
11442 cat conftest.err 1>&5
11443 fi
11444 $RM conftest*
11445 ;;
11446 esac
11447 fi
11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11449 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11450 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11451 ;;
11452 esac
11453 fi
11454 ;;
11455 esac
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11609 printf %s "checking dynamic linker characteristics... " >&6; }
11610
11611 if test yes = "$GCC"; then
11612 case $host_os in
11613 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11614 *) lt_awk_arg='/^libraries:/' ;;
11615 esac
11616 case $host_os in
11617 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11618 *) lt_sed_strip_eq='s|=/|/|g' ;;
11619 esac
11620 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11621 case $lt_search_path_spec in
11622 *\;*)
11623 # if the path contains ";" then we assume it to be the separator
11624 # otherwise default to the standard path separator (i.e. ":") - it is
11625 # assumed that no part of a normal pathname contains ";" but that should
11626 # okay in the real world where ";" in dirpaths is itself problematic.
11627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11628 ;;
11629 *)
11630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11631 ;;
11632 esac
11633 # Ok, now we have the path, separated by spaces, we can step through it
11634 # and add multilib dir if necessary...
11635 lt_tmp_lt_search_path_spec=
11636 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11637 # ...but if some path component already ends with the multilib dir we assume
11638 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11639 case "$lt_multi_os_dir; $lt_search_path_spec " in
11640 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11641 lt_multi_os_dir=
11642 ;;
11643 esac
11644 for lt_sys_path in $lt_search_path_spec; do
11645 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11646 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11647 elif test -n "$lt_multi_os_dir"; then
11648 test -d "$lt_sys_path" && \
11649 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11650 fi
11651 done
11652 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11653 BEGIN {RS = " "; FS = "/|\n";} {
11654 lt_foo = "";
11655 lt_count = 0;
11656 for (lt_i = NF; lt_i > 0; lt_i--) {
11657 if ($lt_i != "" && $lt_i != ".") {
11658 if ($lt_i == "..") {
11659 lt_count++;
11660 } else {
11661 if (lt_count == 0) {
11662 lt_foo = "/" $lt_i lt_foo;
11663 } else {
11664 lt_count--;
11665 }
11666 }
11667 }
11668 }
11669 if (lt_foo != "") { lt_freq[lt_foo]++; }
11670 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11671 }'`
11672 # AWK program above erroneously prepends '/' to C:/dos/paths
11673 # for these hosts.
11674 case $host_os in
11675 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11676 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11677 esac
11678 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11679 else
11680 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11681 fi
11682 library_names_spec=
11683 libname_spec='lib$name'
11684 soname_spec=
11685 shrext_cmds=.so
11686 postinstall_cmds=
11687 postuninstall_cmds=
11688 finish_cmds=
11689 finish_eval=
11690 shlibpath_var=
11691 shlibpath_overrides_runpath=unknown
11692 version_type=none
11693 dynamic_linker="$host_os ld.so"
11694 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11695 need_lib_prefix=unknown
11696 hardcode_into_libs=no
11697
11698 # when you set need_version to no, make sure it does not cause -set_version
11699 # flags to be left without arguments
11700 need_version=unknown
11701
11702
11703
11704 case $host_os in
11705 aix3*)
11706 version_type=linux # correct to gnu/linux during the next big refactor
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11708 shlibpath_var=LIBPATH
11709
11710 # AIX 3 has no versioning support, so we append a major version to the name.
11711 soname_spec='$libname$release$shared_ext$major'
11712 ;;
11713
11714 aix[4-9]*)
11715 version_type=linux # correct to gnu/linux during the next big refactor
11716 need_lib_prefix=no
11717 need_version=no
11718 hardcode_into_libs=yes
11719 if test ia64 = "$host_cpu"; then
11720 # AIX 5 supports IA64
11721 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 else
11724 # With GCC up to 2.95.x, collect2 would create an import file
11725 # for dependence libraries. The import file would start with
11726 # the line '#! .'. This would cause the generated library to
11727 # depend on '.', always an invalid library. This was fixed in
11728 # development snapshots of GCC prior to 3.0.
11729 case $host_os in
11730 aix4 | aix4.[01] | aix4.[01].*)
11731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11732 echo ' yes '
11733 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11734 :
11735 else
11736 can_build_shared=no
11737 fi
11738 ;;
11739 esac
11740 # Using Import Files as archive members, it is possible to support
11741 # filename-based versioning of shared library archives on AIX. While
11742 # this would work for both with and without runtime linking, it will
11743 # prevent static linking of such archives. So we do filename-based
11744 # shared library versioning with .so extension only, which is used
11745 # when both runtime linking and shared linking is enabled.
11746 # Unfortunately, runtime linking may impact performance, so we do
11747 # not want this to be the default eventually. Also, we use the
11748 # versioned .so libs for executables only if there is the -brtl
11749 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11750 # To allow for filename-based versioning support, we need to create
11751 # libNAME.so.V as an archive file, containing:
11752 # *) an Import File, referring to the versioned filename of the
11753 # archive as well as the shared archive member, telling the
11754 # bitwidth (32 or 64) of that shared object, and providing the
11755 # list of exported symbols of that shared object, eventually
11756 # decorated with the 'weak' keyword
11757 # *) the shared object with the F_LOADONLY flag set, to really avoid
11758 # it being seen by the linker.
11759 # At run time we better use the real file rather than another symlink,
11760 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11761
11762 case $with_aix_soname,$aix_use_runtimelinking in
11763 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11764 # soname into executable. Probably we can add versioning support to
11765 # collect2, so additional links can be useful in future.
11766 aix,yes) # traditional libtool
11767 dynamic_linker='AIX unversionable lib.so'
11768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11769 # instead of lib<name>.a to let people know that these are not
11770 # typical AIX shared libraries.
11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11772 ;;
11773 aix,no) # traditional AIX only
11774 dynamic_linker='AIX lib.a(lib.so.V)'
11775 # We preserve .a as extension for shared libraries through AIX4.2
11776 # and later when we are not doing run time linking.
11777 library_names_spec='$libname$release.a $libname.a'
11778 soname_spec='$libname$release$shared_ext$major'
11779 ;;
11780 svr4,*) # full svr4 only
11781 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11782 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11783 # We do not specify a path in Import Files, so LIBPATH fires.
11784 shlibpath_overrides_runpath=yes
11785 ;;
11786 *,yes) # both, prefer svr4
11787 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11788 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11789 # unpreferred sharedlib libNAME.a needs extra handling
11790 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"'
11791 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"'
11792 # We do not specify a path in Import Files, so LIBPATH fires.
11793 shlibpath_overrides_runpath=yes
11794 ;;
11795 *,no) # both, prefer aix
11796 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11797 library_names_spec='$libname$release.a $libname.a'
11798 soname_spec='$libname$release$shared_ext$major'
11799 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11800 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)'
11801 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"'
11802 ;;
11803 esac
11804 shlibpath_var=LIBPATH
11805 fi
11806 ;;
11807
11808 amigaos*)
11809 case $host_cpu in
11810 powerpc)
11811 # Since July 2007 AmigaOS4 officially supports .so libraries.
11812 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814 ;;
11815 m68k)
11816 library_names_spec='$libname.ixlibrary $libname.a'
11817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11818 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'
11819 ;;
11820 esac
11821 ;;
11822
11823 beos*)
11824 library_names_spec='$libname$shared_ext'
11825 dynamic_linker="$host_os ld.so"
11826 shlibpath_var=LIBRARY_PATH
11827 ;;
11828
11829 bsdi[45]*)
11830 version_type=linux # correct to gnu/linux during the next big refactor
11831 need_version=no
11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11833 soname_spec='$libname$release$shared_ext$major'
11834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11838 # the default ld.so.conf also contains /usr/contrib/lib and
11839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11840 # libtool to hard-code these into programs
11841 ;;
11842
11843 cygwin* | mingw* | windows* | pw32* | cegcc*)
11844 version_type=windows
11845 shrext_cmds=.dll
11846 need_version=no
11847 need_lib_prefix=no
11848
11849 case $GCC,$cc_basename in
11850 yes,*)
11851 # gcc
11852 library_names_spec='$libname.dll.a'
11853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11854 # If user builds GCC with multilib enabled,
11855 # it should just install on $(libdir)
11856 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11857 if test xyes = x"$multilib"; then
11858 postinstall_cmds='base_file=`basename \$file`~
11859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11860 dldir=$destdir/`dirname \$dlpath`~
11861 $install_prog $dir/$dlname $destdir/$dlname~
11862 chmod a+x $destdir/$dlname~
11863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11864 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11865 fi'
11866 else
11867 postinstall_cmds='base_file=`basename \$file`~
11868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11869 dldir=$destdir/`dirname \$dlpath`~
11870 test -d \$dldir || mkdir -p \$dldir~
11871 $install_prog $dir/$dlname \$dldir/$dlname~
11872 chmod a+x \$dldir/$dlname~
11873 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11874 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11875 fi'
11876 fi
11877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11878 dlpath=$dir/\$dldll~
11879 $RM \$dlpath'
11880 shlibpath_overrides_runpath=yes
11881
11882 case $host_os in
11883 cygwin*)
11884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11885 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11886
11887 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11888 ;;
11889 mingw* | windows* | cegcc*)
11890 # MinGW DLLs use traditional 'lib' prefix
11891 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11892 ;;
11893 pw32*)
11894 # pw32 DLLs use 'pw' prefix rather than 'lib'
11895 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11896 ;;
11897 esac
11898 dynamic_linker='Win32 ld.exe'
11899 ;;
11900
11901 *,cl* | *,icl*)
11902 # Native MSVC or ICC
11903 libname_spec='$name'
11904 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11905 library_names_spec='$libname.dll.lib'
11906
11907 case $build_os in
11908 mingw* | windows*)
11909 sys_lib_search_path_spec=
11910 lt_save_ifs=$IFS
11911 IFS=';'
11912 for lt_path in $LIB
11913 do
11914 IFS=$lt_save_ifs
11915 # Let DOS variable expansion print the short 8.3 style file name.
11916 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11917 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11918 done
11919 IFS=$lt_save_ifs
11920 # Convert to MSYS style.
11921 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11922 ;;
11923 cygwin*)
11924 # Convert to unix form, then to dos form, then back to unix form
11925 # but this time dos style (no spaces!) so that the unix form looks
11926 # like /cygdrive/c/PROGRA~1:/cygdr...
11927 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11928 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11929 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11930 ;;
11931 *)
11932 sys_lib_search_path_spec=$LIB
11933 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11934 # It is most probably a Windows format PATH.
11935 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11936 else
11937 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11938 fi
11939 # FIXME: find the short name or the path components, as spaces are
11940 # common. (e.g. "Program Files" -> "PROGRA~1")
11941 ;;
11942 esac
11943
11944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11945 postinstall_cmds='base_file=`basename \$file`~
11946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11947 dldir=$destdir/`dirname \$dlpath`~
11948 test -d \$dldir || mkdir -p \$dldir~
11949 $install_prog $dir/$dlname \$dldir/$dlname'
11950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11951 dlpath=$dir/\$dldll~
11952 $RM \$dlpath'
11953 shlibpath_overrides_runpath=yes
11954 dynamic_linker='Win32 link.exe'
11955 ;;
11956
11957 *)
11958 # Assume MSVC and ICC wrapper
11959 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11960 dynamic_linker='Win32 ld.exe'
11961 ;;
11962 esac
11963 # FIXME: first we should search . and the directory the executable is in
11964 shlibpath_var=PATH
11965 ;;
11966
11967 darwin* | rhapsody*)
11968 dynamic_linker="$host_os dyld"
11969 version_type=darwin
11970 need_lib_prefix=no
11971 need_version=no
11972 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11973 soname_spec='$libname$release$major$shared_ext'
11974 shlibpath_overrides_runpath=yes
11975 shlibpath_var=DYLD_LIBRARY_PATH
11976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11977
11978 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11979 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11980 ;;
11981
11982 dgux*)
11983 version_type=linux # correct to gnu/linux during the next big refactor
11984 need_lib_prefix=no
11985 need_version=no
11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11987 soname_spec='$libname$release$shared_ext$major'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 ;;
11990
11991 freebsd* | dragonfly* | midnightbsd*)
11992 # DragonFly does not have aout. When/if they implement a new
11993 # versioning mechanism, adjust this.
11994 if test -x /usr/bin/objformat; then
11995 objformat=`/usr/bin/objformat`
11996 else
11997 case $host_os in
11998 freebsd[23].*) objformat=aout ;;
11999 *) objformat=elf ;;
12000 esac
12001 fi
12002 version_type=freebsd-$objformat
12003 case $version_type in
12004 freebsd-elf*)
12005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12006 soname_spec='$libname$release$shared_ext$major'
12007 need_version=no
12008 need_lib_prefix=no
12009 ;;
12010 freebsd-*)
12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12012 need_version=yes
12013 ;;
12014 esac
12015 case $host_cpu in
12016 powerpc64)
12017 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12018 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021 int test_pointer_size[sizeof (void *) - 5];
12022
12023 _ACEOF
12024 if ac_fn_c_try_compile "$LINENO"
12025 then :
12026 shlibpath_var=LD_LIBRARY_PATH
12027 else case e in #(
12028 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12029 esac
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12032 ;;
12033 *)
12034 shlibpath_var=LD_LIBRARY_PATH
12035 ;;
12036 esac
12037 case $host_os in
12038 freebsd2.*)
12039 shlibpath_overrides_runpath=yes
12040 ;;
12041 freebsd3.[01]* | freebsdelf3.[01]*)
12042 shlibpath_overrides_runpath=yes
12043 hardcode_into_libs=yes
12044 ;;
12045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12047 shlibpath_overrides_runpath=no
12048 hardcode_into_libs=yes
12049 ;;
12050 *) # from 4.6 on, and DragonFly
12051 shlibpath_overrides_runpath=yes
12052 hardcode_into_libs=yes
12053 ;;
12054 esac
12055 ;;
12056
12057 haiku*)
12058 version_type=linux # correct to gnu/linux during the next big refactor
12059 need_lib_prefix=no
12060 need_version=no
12061 dynamic_linker="$host_os runtime_loader"
12062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12063 soname_spec='$libname$release$shared_ext$major'
12064 shlibpath_var=LIBRARY_PATH
12065 shlibpath_overrides_runpath=no
12066 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12067 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12068 hardcode_into_libs=no
12069 ;;
12070
12071 hpux9* | hpux10* | hpux11*)
12072 # Give a soname corresponding to the major version so that dld.sl refuses to
12073 # link against other versions.
12074 version_type=sunos
12075 need_lib_prefix=no
12076 need_version=no
12077 case $host_cpu in
12078 ia64*)
12079 shrext_cmds='.so'
12080 hardcode_into_libs=yes
12081 dynamic_linker="$host_os dld.so"
12082 shlibpath_var=LD_LIBRARY_PATH
12083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12085 soname_spec='$libname$release$shared_ext$major'
12086 if test 32 = "$HPUX_IA64_MODE"; then
12087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12088 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12089 else
12090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12091 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12092 fi
12093 ;;
12094 hppa*64*)
12095 shrext_cmds='.sl'
12096 hardcode_into_libs=yes
12097 dynamic_linker="$host_os dld.sl"
12098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12101 soname_spec='$libname$release$shared_ext$major'
12102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12104 ;;
12105 *)
12106 shrext_cmds='.sl'
12107 dynamic_linker="$host_os dld.sl"
12108 shlibpath_var=SHLIB_PATH
12109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12111 soname_spec='$libname$release$shared_ext$major'
12112 ;;
12113 esac
12114 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12115 postinstall_cmds='chmod 555 $lib'
12116 # or fails outright, so override atomically:
12117 install_override_mode=555
12118 ;;
12119
12120 interix[3-9]*)
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 soname_spec='$libname$release$shared_ext$major'
12126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12127 shlibpath_var=LD_LIBRARY_PATH
12128 shlibpath_overrides_runpath=no
12129 hardcode_into_libs=yes
12130 ;;
12131
12132 irix5* | irix6* | nonstopux*)
12133 case $host_os in
12134 nonstopux*) version_type=nonstopux ;;
12135 *)
12136 if test yes = "$lt_cv_prog_gnu_ld"; then
12137 version_type=linux # correct to gnu/linux during the next big refactor
12138 else
12139 version_type=irix
12140 fi ;;
12141 esac
12142 need_lib_prefix=no
12143 need_version=no
12144 soname_spec='$libname$release$shared_ext$major'
12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12146 case $host_os in
12147 irix5* | nonstopux*)
12148 libsuff= shlibsuff=
12149 ;;
12150 *)
12151 case $LD in # libtool.m4 will add one of these switches to LD
12152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12153 libsuff= shlibsuff= libmagic=32-bit;;
12154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12155 libsuff=32 shlibsuff=N32 libmagic=N32;;
12156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12157 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12158 *) libsuff= shlibsuff= libmagic=never-match;;
12159 esac
12160 ;;
12161 esac
12162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12163 shlibpath_overrides_runpath=no
12164 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12165 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12166 hardcode_into_libs=yes
12167 ;;
12168
12169 # No shared lib support for Linux oldld, aout, or coff.
12170 linux*oldld* | linux*aout* | linux*coff*)
12171 dynamic_linker=no
12172 ;;
12173
12174 linux*android*)
12175 version_type=none # Android doesn't support versioned libraries.
12176 need_lib_prefix=no
12177 need_version=no
12178 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12179 soname_spec='$libname$release$shared_ext'
12180 finish_cmds=
12181 shlibpath_var=LD_LIBRARY_PATH
12182 shlibpath_overrides_runpath=yes
12183
12184 # This implies no fast_install, which is unacceptable.
12185 # Some rework will be needed to allow for fast_install
12186 # before this can be enabled.
12187 hardcode_into_libs=yes
12188
12189 dynamic_linker='Android linker'
12190 # -rpath works at least for libraries that are not overridden by
12191 # libraries installed in system locations.
12192 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12193 ;;
12194
12195 # This must be glibc/ELF.
12196 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12197 version_type=linux # correct to gnu/linux during the next big refactor
12198 need_lib_prefix=no
12199 need_version=no
12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201 soname_spec='$libname$release$shared_ext$major'
12202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12203 shlibpath_var=LD_LIBRARY_PATH
12204 shlibpath_overrides_runpath=no
12205
12206 # Some binutils ld are patched to set DT_RUNPATH
12207 if test ${lt_cv_shlibpath_overrides_runpath+y}
12208 then :
12209 printf %s "(cached) " >&6
12210 else case e in #(
12211 e) lt_cv_shlibpath_overrides_runpath=no
12212 save_LDFLAGS=$LDFLAGS
12213 save_libdir=$libdir
12214 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12215 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218
12219 int
12220 main (void)
12221 {
12222
12223 ;
12224 return 0;
12225 }
12226 _ACEOF
12227 if ac_fn_c_try_link "$LINENO"
12228 then :
12229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12230 then :
12231 lt_cv_shlibpath_overrides_runpath=yes
12232 fi
12233 fi
12234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LDFLAGS=$save_LDFLAGS
12237 libdir=$save_libdir
12238 ;;
12239 esac
12240 fi
12241
12242 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12243
12244 # This implies no fast_install, which is unacceptable.
12245 # Some rework will be needed to allow for fast_install
12246 # before this can be enabled.
12247 hardcode_into_libs=yes
12248
12249 # Add ABI-specific directories to the system library path.
12250 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12251
12252 # Ideally, we could use ldconfig to report *all* directories which are
12253 # searched for libraries, however this is still not possible. Aside from not
12254 # being certain /sbin/ldconfig is available, command
12255 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12256 # even though it is searched at run-time. Try to do the best guess by
12257 # appending ld.so.conf contents (and includes) to the search path.
12258 if test -f /etc/ld.so.conf; then
12259 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' ' '`
12260 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12261 fi
12262
12263 # We used to test for /lib/ld.so.1 and disable shared libraries on
12264 # powerpc, because MkLinux only supported shared libraries with the
12265 # GNU dynamic linker. Since this was broken with cross compilers,
12266 # most powerpc-linux boxes support dynamic linking these days and
12267 # people can always --disable-shared, the test was removed, and we
12268 # assume the GNU/Linux dynamic linker is in use.
12269 dynamic_linker='GNU/Linux ld.so'
12270 ;;
12271
12272 netbsdelf*-gnu)
12273 version_type=linux
12274 need_lib_prefix=no
12275 need_version=no
12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12277 soname_spec='$libname$release$shared_ext$major'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=no
12280 hardcode_into_libs=yes
12281 dynamic_linker='NetBSD ld.elf_so'
12282 ;;
12283
12284 netbsd*)
12285 version_type=sunos
12286 need_lib_prefix=no
12287 need_version=no
12288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12289 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12291 dynamic_linker='NetBSD (a.out) ld.so'
12292 else
12293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12294 soname_spec='$libname$release$shared_ext$major'
12295 dynamic_linker='NetBSD ld.elf_so'
12296 fi
12297 shlibpath_var=LD_LIBRARY_PATH
12298 shlibpath_overrides_runpath=yes
12299 hardcode_into_libs=yes
12300 ;;
12301
12302 *-mlibc)
12303 version_type=linux # correct to gnu/linux during the next big refactor
12304 need_lib_prefix=no
12305 need_version=no
12306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12307 soname_spec='$libname$release$shared_ext$major'
12308 dynamic_linker='mlibc ld.so'
12309 shlibpath_var=LD_LIBRARY_PATH
12310 shlibpath_overrides_runpath=no
12311 hardcode_into_libs=yes
12312 ;;
12313
12314 newsos6)
12315 version_type=linux # correct to gnu/linux during the next big refactor
12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=yes
12319 ;;
12320
12321 *nto* | *qnx*)
12322 version_type=qnx
12323 need_lib_prefix=no
12324 need_version=no
12325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12326 soname_spec='$libname$release$shared_ext$major'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=no
12329 hardcode_into_libs=yes
12330 dynamic_linker='ldqnx.so'
12331 ;;
12332
12333 openbsd*)
12334 version_type=sunos
12335 sys_lib_dlsearch_path_spec=/usr/lib
12336 need_lib_prefix=no
12337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12338 need_version=no
12339 else
12340 need_version=yes
12341 fi
12342 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=yes
12346 ;;
12347
12348 os2*)
12349 libname_spec='$name'
12350 version_type=windows
12351 shrext_cmds=.dll
12352 need_version=no
12353 need_lib_prefix=no
12354 # OS/2 can only load a DLL with a base name of 8 characters or less.
12355 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12356 v=$($ECHO $release$versuffix | tr -d .-);
12357 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12358 $ECHO $n$v`$shared_ext'
12359 library_names_spec='${libname}_dll.$libext'
12360 dynamic_linker='OS/2 ld.exe'
12361 shlibpath_var=BEGINLIBPATH
12362 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12364 postinstall_cmds='base_file=`basename \$file`~
12365 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12366 dldir=$destdir/`dirname \$dlpath`~
12367 test -d \$dldir || mkdir -p \$dldir~
12368 $install_prog $dir/$dlname \$dldir/$dlname~
12369 chmod a+x \$dldir/$dlname~
12370 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12371 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12372 fi'
12373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12374 dlpath=$dir/\$dldll~
12375 $RM \$dlpath'
12376 ;;
12377
12378 osf3* | osf4* | osf5*)
12379 version_type=osf
12380 need_lib_prefix=no
12381 need_version=no
12382 soname_spec='$libname$release$shared_ext$major'
12383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12384 shlibpath_var=LD_LIBRARY_PATH
12385 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12387 ;;
12388
12389 rdos*)
12390 dynamic_linker=no
12391 ;;
12392
12393 serenity*)
12394 version_type=linux # correct to gnu/linux during the next big refactor
12395 need_lib_prefix=no
12396 need_version=no
12397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12398 soname_spec='$libname$release$shared_ext$major'
12399 shlibpath_var=LD_LIBRARY_PATH
12400 shlibpath_overrides_runpath=no
12401 dynamic_linker='SerenityOS LibELF'
12402 ;;
12403
12404 solaris*)
12405 version_type=linux # correct to gnu/linux during the next big refactor
12406 need_lib_prefix=no
12407 need_version=no
12408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409 soname_spec='$libname$release$shared_ext$major'
12410 shlibpath_var=LD_LIBRARY_PATH
12411 shlibpath_overrides_runpath=yes
12412 hardcode_into_libs=yes
12413 # ldd complains unless libraries are executable
12414 postinstall_cmds='chmod +x $lib'
12415 ;;
12416
12417 sunos4*)
12418 version_type=sunos
12419 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 shlibpath_overrides_runpath=yes
12423 if test yes = "$with_gnu_ld"; then
12424 need_lib_prefix=no
12425 fi
12426 need_version=yes
12427 ;;
12428
12429 sysv4 | sysv4.3*)
12430 version_type=linux # correct to gnu/linux during the next big refactor
12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12432 soname_spec='$libname$release$shared_ext$major'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 case $host_vendor in
12435 sni)
12436 shlibpath_overrides_runpath=no
12437 need_lib_prefix=no
12438 runpath_var=LD_RUN_PATH
12439 ;;
12440 siemens)
12441 need_lib_prefix=no
12442 ;;
12443 motorola)
12444 need_lib_prefix=no
12445 need_version=no
12446 shlibpath_overrides_runpath=no
12447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12448 ;;
12449 esac
12450 ;;
12451
12452 sysv4*MP*)
12453 if test -d /usr/nec; then
12454 version_type=linux # correct to gnu/linux during the next big refactor
12455 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12456 soname_spec='$libname$shared_ext.$major'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 fi
12459 ;;
12460
12461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12462 version_type=sco
12463 need_lib_prefix=no
12464 need_version=no
12465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12466 soname_spec='$libname$release$shared_ext$major'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 shlibpath_overrides_runpath=yes
12469 hardcode_into_libs=yes
12470 if test yes = "$with_gnu_ld"; then
12471 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12472 else
12473 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12474 case $host_os in
12475 sco3.2v5*)
12476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12477 ;;
12478 esac
12479 fi
12480 sys_lib_dlsearch_path_spec='/usr/lib'
12481 ;;
12482
12483 tpf*)
12484 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12485 version_type=linux # correct to gnu/linux during the next big refactor
12486 need_lib_prefix=no
12487 need_version=no
12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489 shlibpath_var=LD_LIBRARY_PATH
12490 shlibpath_overrides_runpath=no
12491 hardcode_into_libs=yes
12492 ;;
12493
12494 uts4*)
12495 version_type=linux # correct to gnu/linux during the next big refactor
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497 soname_spec='$libname$release$shared_ext$major'
12498 shlibpath_var=LD_LIBRARY_PATH
12499 ;;
12500
12501 emscripten*)
12502 version_type=none
12503 need_lib_prefix=no
12504 need_version=no
12505 library_names_spec='$libname$release$shared_ext'
12506 soname_spec='$libname$release$shared_ext'
12507 finish_cmds=
12508 dynamic_linker="Emscripten linker"
12509 lt_prog_compiler_wl=
12510 lt_prog_compiler_pic=
12511 lt_prog_compiler_static=
12512
12513
12514 if test yes = "$GCC"; then
12515 lt_prog_compiler_wl='-Wl,'
12516 lt_prog_compiler_static='-static'
12517
12518 case $host_os in
12519 aix*)
12520 # All AIX code is PIC.
12521 if test ia64 = "$host_cpu"; then
12522 # AIX 5 now supports IA64 processor
12523 lt_prog_compiler_static='-Bstatic'
12524 fi
12525 lt_prog_compiler_pic='-fPIC'
12526 ;;
12527
12528 amigaos*)
12529 case $host_cpu in
12530 powerpc)
12531 # see comment about AmigaOS4 .so support
12532 lt_prog_compiler_pic='-fPIC'
12533 ;;
12534 m68k)
12535 # FIXME: we need at least 68020 code to build shared libraries, but
12536 # adding the '-m68020' flag to GCC prevents building anything better,
12537 # like '-m68040'.
12538 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12539 ;;
12540 esac
12541 ;;
12542
12543 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12544 # PIC is the default for these OSes.
12545 ;;
12546
12547 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12548 # This hack is so that the source file can tell whether it is being
12549 # built for inclusion in a dll (and should export symbols for example).
12550 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12551 # (--disable-auto-import) libraries
12552 lt_prog_compiler_pic='-DDLL_EXPORT'
12553 case $host_os in
12554 os2*)
12555 lt_prog_compiler_static='$wl-static'
12556 ;;
12557 esac
12558 ;;
12559
12560 darwin* | rhapsody*)
12561 # PIC is the default on this platform
12562 # Common symbols not allowed in MH_DYLIB files
12563 lt_prog_compiler_pic='-fno-common'
12564 ;;
12565
12566 haiku*)
12567 # PIC is the default for Haiku.
12568 # The "-static" flag exists, but is broken.
12569 lt_prog_compiler_static=
12570 ;;
12571
12572 hpux*)
12573 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12574 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12575 # sets the default TLS model and affects inlining.
12576 case $host_cpu in
12577 hppa*64*)
12578 # +Z the default
12579 ;;
12580 *)
12581 lt_prog_compiler_pic='-fPIC'
12582 ;;
12583 esac
12584 ;;
12585
12586 interix[3-9]*)
12587 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12588 # Instead, we relocate shared libraries at runtime.
12589 ;;
12590
12591 msdosdjgpp*)
12592 # Just because we use GCC doesn't mean we suddenly get shared libraries
12593 # on systems that don't support them.
12594 lt_prog_compiler_can_build_shared=no
12595 enable_shared=no
12596 ;;
12597
12598 *nto* | *qnx*)
12599 # QNX uses GNU C++, but need to define -shared option too, otherwise
12600 # it will coredump.
12601 lt_prog_compiler_pic='-fPIC -shared'
12602 ;;
12603
12604 sysv4*MP*)
12605 if test -d /usr/nec; then
12606 lt_prog_compiler_pic=-Kconform_pic
12607 fi
12608 ;;
12609
12610 *)
12611 lt_prog_compiler_pic='-fPIC'
12612 ;;
12613 esac
12614
12615 case $cc_basename in
12616 nvcc*) # Cuda Compiler Driver 2.2
12617 lt_prog_compiler_wl='-Xlinker '
12618 if test -n "$lt_prog_compiler_pic"; then
12619 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12620 fi
12621 ;;
12622 esac
12623 else
12624 # PORTME Check for flag to pass linker flags through the system compiler.
12625 case $host_os in
12626 aix*)
12627 lt_prog_compiler_wl='-Wl,'
12628 if test ia64 = "$host_cpu"; then
12629 # AIX 5 now supports IA64 processor
12630 lt_prog_compiler_static='-Bstatic'
12631 else
12632 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12633 fi
12634 ;;
12635
12636 darwin* | rhapsody*)
12637 # PIC is the default on this platform
12638 # Common symbols not allowed in MH_DYLIB files
12639 lt_prog_compiler_pic='-fno-common'
12640 case $cc_basename in
12641 nagfor*)
12642 # NAG Fortran compiler
12643 lt_prog_compiler_wl='-Wl,-Wl,,'
12644 lt_prog_compiler_pic='-PIC'
12645 lt_prog_compiler_static='-Bstatic'
12646 ;;
12647 esac
12648 ;;
12649
12650 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12651 # This hack is so that the source file can tell whether it is being
12652 # built for inclusion in a dll (and should export symbols for example).
12653 lt_prog_compiler_pic='-DDLL_EXPORT'
12654 case $host_os in
12655 os2*)
12656 lt_prog_compiler_static='$wl-static'
12657 ;;
12658 esac
12659 ;;
12660
12661 hpux9* | hpux10* | hpux11*)
12662 lt_prog_compiler_wl='-Wl,'
12663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12664 # not for PA HP-UX.
12665 case $host_cpu in
12666 hppa*64*|ia64*)
12667 # +Z the default
12668 ;;
12669 *)
12670 lt_prog_compiler_pic='+Z'
12671 ;;
12672 esac
12673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12674 lt_prog_compiler_static='$wl-a ${wl}archive'
12675 ;;
12676
12677 irix5* | irix6* | nonstopux*)
12678 lt_prog_compiler_wl='-Wl,'
12679 # PIC (with -KPIC) is the default.
12680 lt_prog_compiler_static='-non_shared'
12681 ;;
12682
12683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12684 case $cc_basename in
12685 # old Intel for x86_64, which still supported -KPIC.
12686 ecc*)
12687 lt_prog_compiler_wl='-Wl,'
12688 lt_prog_compiler_pic='-KPIC'
12689 lt_prog_compiler_static='-static'
12690 ;;
12691 *flang* | ftn | f18* | f95*)
12692 # Flang compiler.
12693 lt_prog_compiler_wl='-Wl,'
12694 lt_prog_compiler_pic='-fPIC'
12695 lt_prog_compiler_static='-static'
12696 ;;
12697 # icc used to be incompatible with GCC.
12698 # ICC 10 doesn't accept -KPIC any more.
12699 icc* | ifort*)
12700 lt_prog_compiler_wl='-Wl,'
12701 lt_prog_compiler_pic='-fPIC'
12702 lt_prog_compiler_static='-static'
12703 ;;
12704 # Lahey Fortran 8.1.
12705 lf95*)
12706 lt_prog_compiler_wl='-Wl,'
12707 lt_prog_compiler_pic='--shared'
12708 lt_prog_compiler_static='--static'
12709 ;;
12710 nagfor*)
12711 # NAG Fortran compiler
12712 lt_prog_compiler_wl='-Wl,-Wl,,'
12713 lt_prog_compiler_pic='-PIC'
12714 lt_prog_compiler_static='-Bstatic'
12715 ;;
12716 tcc*)
12717 # Fabrice Bellard et al's Tiny C Compiler
12718 lt_prog_compiler_wl='-Wl,'
12719 lt_prog_compiler_pic='-fPIC'
12720 lt_prog_compiler_static='-static'
12721 ;;
12722 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12723 # Portland Group compilers (*not* the Pentium gcc compiler,
12724 # which looks to be a dead project)
12725 lt_prog_compiler_wl='-Wl,'
12726 lt_prog_compiler_pic='-fpic'
12727 lt_prog_compiler_static='-Bstatic'
12728 ;;
12729 ccc*)
12730 lt_prog_compiler_wl='-Wl,'
12731 # All Alpha code is PIC.
12732 lt_prog_compiler_static='-non_shared'
12733 ;;
12734 xl* | bgxl* | bgf* | mpixl*)
12735 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12736 lt_prog_compiler_wl='-Wl,'
12737 lt_prog_compiler_pic='-qpic'
12738 lt_prog_compiler_static='-qstaticlink'
12739 ;;
12740 *)
12741 case `$CC -V 2>&1 | $SED 5q` in
12742 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12743 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12744 lt_prog_compiler_pic='-KPIC'
12745 lt_prog_compiler_static='-Bstatic'
12746 lt_prog_compiler_wl=''
12747 ;;
12748 *Sun\ F* | *Sun*Fortran*)
12749 lt_prog_compiler_pic='-KPIC'
12750 lt_prog_compiler_static='-Bstatic'
12751 lt_prog_compiler_wl='-Qoption ld '
12752 ;;
12753 *Sun\ C*)
12754 # Sun C 5.9
12755 lt_prog_compiler_pic='-KPIC'
12756 lt_prog_compiler_static='-Bstatic'
12757 lt_prog_compiler_wl='-Wl,'
12758 ;;
12759 *Intel*\ [CF]*Compiler*)
12760 lt_prog_compiler_wl='-Wl,'
12761 lt_prog_compiler_pic='-fPIC'
12762 lt_prog_compiler_static='-static'
12763 ;;
12764 *Portland\ Group*)
12765 lt_prog_compiler_wl='-Wl,'
12766 lt_prog_compiler_pic='-fpic'
12767 lt_prog_compiler_static='-Bstatic'
12768 ;;
12769 esac
12770 ;;
12771 esac
12772 ;;
12773
12774 newsos6)
12775 lt_prog_compiler_pic='-KPIC'
12776 lt_prog_compiler_static='-Bstatic'
12777 ;;
12778
12779 *-mlibc)
12780 lt_prog_compiler_wl='-Wl,'
12781 lt_prog_compiler_pic='-fPIC'
12782 lt_prog_compiler_static='-static'
12783 ;;
12784
12785 *nto* | *qnx*)
12786 # QNX uses GNU C++, but need to define -shared option too, otherwise
12787 # it will coredump.
12788 lt_prog_compiler_pic='-fPIC -shared'
12789 ;;
12790
12791 osf3* | osf4* | osf5*)
12792 lt_prog_compiler_wl='-Wl,'
12793 # All OSF/1 code is PIC.
12794 lt_prog_compiler_static='-non_shared'
12795 ;;
12796
12797 rdos*)
12798 lt_prog_compiler_static='-non_shared'
12799 ;;
12800
12801 serenity*)
12802 ;;
12803
12804 solaris*)
12805 lt_prog_compiler_pic='-KPIC'
12806 lt_prog_compiler_static='-Bstatic'
12807 case $cc_basename in
12808 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12809 lt_prog_compiler_wl='-Qoption ld ';;
12810 *)
12811 lt_prog_compiler_wl='-Wl,';;
12812 esac
12813 ;;
12814
12815 sunos4*)
12816 lt_prog_compiler_wl='-Qoption ld '
12817 lt_prog_compiler_pic='-PIC'
12818 lt_prog_compiler_static='-Bstatic'
12819 ;;
12820
12821 sysv4 | sysv4.2uw2* | sysv4.3*)
12822 lt_prog_compiler_wl='-Wl,'
12823 lt_prog_compiler_pic='-KPIC'
12824 lt_prog_compiler_static='-Bstatic'
12825 ;;
12826
12827 sysv4*MP*)
12828 if test -d /usr/nec; then
12829 lt_prog_compiler_pic='-Kconform_pic'
12830 lt_prog_compiler_static='-Bstatic'
12831 fi
12832 ;;
12833
12834 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12835 lt_prog_compiler_wl='-Wl,'
12836 lt_prog_compiler_pic='-KPIC'
12837 lt_prog_compiler_static='-Bstatic'
12838 ;;
12839
12840 unicos*)
12841 lt_prog_compiler_wl='-Wl,'
12842 lt_prog_compiler_can_build_shared=no
12843 ;;
12844
12845 uts4*)
12846 lt_prog_compiler_pic='-pic'
12847 lt_prog_compiler_static='-Bstatic'
12848 ;;
12849
12850 *)
12851 lt_prog_compiler_can_build_shared=no
12852 ;;
12853 esac
12854 fi
12855
12856 case $host_os in
12857 # For platforms that do not support PIC, -DPIC is meaningless:
12858 *djgpp*)
12859 lt_prog_compiler_pic=
12860 ;;
12861 *)
12862 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12863 ;;
12864 esac
12865
12866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12867 printf %s "checking for $compiler option to produce PIC... " >&6; }
12868 if test ${lt_cv_prog_compiler_pic+y}
12869 then :
12870 printf %s "(cached) " >&6
12871 else case e in #(
12872 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12873 esac
12874 fi
12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12876 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12877 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12878
12879 #
12880 # Check to make sure the PIC flag actually works.
12881 #
12882 if test -n "$lt_prog_compiler_pic"; then
12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12884 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12885 if test ${lt_cv_prog_compiler_pic_works+y}
12886 then :
12887 printf %s "(cached) " >&6
12888 else case e in #(
12889 e) lt_cv_prog_compiler_pic_works=no
12890 ac_outfile=conftest.$ac_objext
12891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12893 # Insert the option either (1) after the last *FLAGS variable, or
12894 # (2) before a word containing "conftest.", or (3) at the end.
12895 # Note that $ac_compile itself does not contain backslashes and begins
12896 # with a dollar sign (not a hyphen), so the echo should work correctly.
12897 # The option is referenced via a variable to avoid confusing sed.
12898 lt_compile=`echo "$ac_compile" | $SED \
12899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12901 -e 's:$: $lt_compiler_flag:'`
12902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12903 (eval "$lt_compile" 2>conftest.err)
12904 ac_status=$?
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 if (exit $ac_status) && test -s "$ac_outfile"; then
12908 # The compiler can only warn and ignore the option if not recognized
12909 # So say no if there are warnings other than the usual output.
12910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12913 lt_cv_prog_compiler_pic_works=yes
12914 fi
12915 fi
12916 $RM conftest*
12917 ;;
12918 esac
12919 fi
12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12921 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12922
12923 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12924 case $lt_prog_compiler_pic in
12925 "" | " "*) ;;
12926 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12927 esac
12928 else
12929 lt_prog_compiler_pic=
12930 lt_prog_compiler_can_build_shared=no
12931 fi
12932
12933 fi
12934
12935
12936
12937
12938
12939 #
12940 # Check to make sure the static flag actually works.
12941 #
12942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12944 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12945 if test ${lt_cv_prog_compiler_static_works+y}
12946 then :
12947 printf %s "(cached) " >&6
12948 else case e in #(
12949 e) lt_cv_prog_compiler_static_works=no
12950 save_LDFLAGS=$LDFLAGS
12951 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12954 # The linker can only warn and ignore the option if not recognized
12955 # So say no if there are warnings
12956 if test -s conftest.err; then
12957 # Append any errors to the config.log.
12958 cat conftest.err 1>&5
12959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12961 if diff conftest.exp conftest.er2 >/dev/null; then
12962 lt_cv_prog_compiler_static_works=yes
12963 fi
12964 else
12965 lt_cv_prog_compiler_static_works=yes
12966 fi
12967 fi
12968 $RM -r conftest*
12969 LDFLAGS=$save_LDFLAGS
12970 ;;
12971 esac
12972 fi
12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12974 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12975
12976 if test yes = "$lt_cv_prog_compiler_static_works"; then
12977 :
12978 else
12979 lt_prog_compiler_static=
12980 fi
12981
12982
12983
12984 ='-fPIC'
12985 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12986 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12987 archive_cmds_need_lc=no
12988 no_undefined_flag=
12989 ;;
12990
12991 *)
12992 dynamic_linker=no
12993 ;;
12994 esac
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12996 printf "%s\n" "$dynamic_linker" >&6; }
12997 test no = "$dynamic_linker" && can_build_shared=no
12998
12999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13000 if test yes = "$GCC"; then
13001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13002 fi
13003
13004 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13005 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13006 fi
13007
13008 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13009 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13010 fi
13011
13012 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13013 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13014
13015 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13016 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13017
13018 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13019 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13118 printf %s "checking how to hardcode library paths into programs... " >&6; }
13119 hardcode_action=
13120 if test -n "$hardcode_libdir_flag_spec" ||
13121 test -n "$runpath_var" ||
13122 test yes = "$hardcode_automatic"; then
13123
13124 # We can hardcode non-existent directories.
13125 if test no != "$hardcode_direct" &&
13126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13127 # have to relink, otherwise we might link with an installed library
13128 # when we should be linking with a yet-to-be-installed one
13129 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13130 test no != "$hardcode_minus_L"; then
13131 # Linking always hardcodes the temporary library directory.
13132 hardcode_action=relink
13133 else
13134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13135 hardcode_action=immediate
13136 fi
13137 else
13138 # We cannot hardcode anything, or else we can only hardcode existing
13139 # directories.
13140 hardcode_action=unsupported
13141 fi
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13143 printf "%s\n" "$hardcode_action" >&6; }
13144
13145 if test relink = "$hardcode_action" ||
13146 test yes = "$inherit_rpath"; then
13147 # Fast installation is not supported
13148 enable_fast_install=no
13149 elif test yes = "$shlibpath_overrides_runpath" ||
13150 test no = "$enable_shared"; then
13151 # Fast installation is not necessary
13152 enable_fast_install=needless
13153 fi
13154
13155
13156
13157
13158
13159
13160 if test yes != "$enable_dlopen"; then
13161 enable_dlopen=unknown
13162 enable_dlopen_self=unknown
13163 enable_dlopen_self_static=unknown
13164 else
13165 lt_cv_dlopen=no
13166 lt_cv_dlopen_libs=
13167
13168 case $host_os in
13169 beos*)
13170 lt_cv_dlopen=load_add_on
13171 lt_cv_dlopen_libs=
13172 lt_cv_dlopen_self=yes
13173 ;;
13174
13175 mingw* | windows* | pw32* | cegcc*)
13176 lt_cv_dlopen=LoadLibrary
13177 lt_cv_dlopen_libs=
13178 ;;
13179
13180 cygwin*)
13181 lt_cv_dlopen=dlopen
13182 lt_cv_dlopen_libs=
13183 ;;
13184
13185 darwin*)
13186 # if libdl is installed we need to link against it
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13188 printf %s "checking for dlopen in -ldl... " >&6; }
13189 if test ${ac_cv_lib_dl_dlopen+y}
13190 then :
13191 printf %s "(cached) " >&6
13192 else case e in #(
13193 e) ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-ldl $LIBS"
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13197
13198 /* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply.
13201 The 'extern "C"' is for builds by C++ compilers;
13202 although this is not generally supported in C code supporting it here
13203 has little cost and some practical benefit (sr 110532). */
13204 #ifdef __cplusplus
13205 extern "C"
13206 #endif
13207 char dlopen (void);
13208 int
13209 main (void)
13210 {
13211 return dlopen ();
13212 ;
13213 return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_c_try_link "$LINENO"
13217 then :
13218 ac_cv_lib_dl_dlopen=yes
13219 else case e in #(
13220 e) ac_cv_lib_dl_dlopen=no ;;
13221 esac
13222 fi
13223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS ;;
13226 esac
13227 fi
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13229 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13230 if test "x$ac_cv_lib_dl_dlopen" = xyes
13231 then :
13232 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13233 else case e in #(
13234 e)
13235 lt_cv_dlopen=dyld
13236 lt_cv_dlopen_libs=
13237 lt_cv_dlopen_self=yes
13238 ;;
13239 esac
13240 fi
13241
13242 ;;
13243
13244 tpf*)
13245 # Don't try to run any link tests for TPF. We know it's impossible
13246 # because TPF is a cross-compiler, and we know how we open DSOs.
13247 lt_cv_dlopen=dlopen
13248 lt_cv_dlopen_libs=
13249 lt_cv_dlopen_self=no
13250 ;;
13251
13252 *)
13253 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13254 if test "x$ac_cv_func_shl_load" = xyes
13255 then :
13256 lt_cv_dlopen=shl_load
13257 else case e in #(
13258 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13259 printf %s "checking for shl_load in -ldld... " >&6; }
13260 if test ${ac_cv_lib_dld_shl_load+y}
13261 then :
13262 printf %s "(cached) " >&6
13263 else case e in #(
13264 e) ac_check_lib_save_LIBS=$LIBS
13265 LIBS="-ldld $LIBS"
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268
13269 /* Override any GCC internal prototype to avoid an error.
13270 Use char because int might match the return type of a GCC
13271 builtin and then its argument prototype would still apply.
13272 The 'extern "C"' is for builds by C++ compilers;
13273 although this is not generally supported in C code supporting it here
13274 has little cost and some practical benefit (sr 110532). */
13275 #ifdef __cplusplus
13276 extern "C"
13277 #endif
13278 char shl_load (void);
13279 int
13280 main (void)
13281 {
13282 return shl_load ();
13283 ;
13284 return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_c_try_link "$LINENO"
13288 then :
13289 ac_cv_lib_dld_shl_load=yes
13290 else case e in #(
13291 e) ac_cv_lib_dld_shl_load=no ;;
13292 esac
13293 fi
13294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS ;;
13297 esac
13298 fi
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13300 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13301 if test "x$ac_cv_lib_dld_shl_load" = xyes
13302 then :
13303 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13304 else case e in #(
13305 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13306 if test "x$ac_cv_func_dlopen" = xyes
13307 then :
13308 lt_cv_dlopen=dlopen
13309 else case e in #(
13310 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13311 printf %s "checking for dlopen in -ldl... " >&6; }
13312 if test ${ac_cv_lib_dl_dlopen+y}
13313 then :
13314 printf %s "(cached) " >&6
13315 else case e in #(
13316 e) ac_check_lib_save_LIBS=$LIBS
13317 LIBS="-ldl $LIBS"
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320
13321 /* Override any GCC internal prototype to avoid an error.
13322 Use char because int might match the return type of a GCC
13323 builtin and then its argument prototype would still apply.
13324 The 'extern "C"' is for builds by C++ compilers;
13325 although this is not generally supported in C code supporting it here
13326 has little cost and some practical benefit (sr 110532). */
13327 #ifdef __cplusplus
13328 extern "C"
13329 #endif
13330 char dlopen (void);
13331 int
13332 main (void)
13333 {
13334 return dlopen ();
13335 ;
13336 return 0;
13337 }
13338 _ACEOF
13339 if ac_fn_c_try_link "$LINENO"
13340 then :
13341 ac_cv_lib_dl_dlopen=yes
13342 else case e in #(
13343 e) ac_cv_lib_dl_dlopen=no ;;
13344 esac
13345 fi
13346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13347 conftest$ac_exeext conftest.$ac_ext
13348 LIBS=$ac_check_lib_save_LIBS ;;
13349 esac
13350 fi
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13352 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13353 if test "x$ac_cv_lib_dl_dlopen" = xyes
13354 then :
13355 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13356 else case e in #(
13357 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13358 printf %s "checking for dlopen in -lsvld... " >&6; }
13359 if test ${ac_cv_lib_svld_dlopen+y}
13360 then :
13361 printf %s "(cached) " >&6
13362 else case e in #(
13363 e) ac_check_lib_save_LIBS=$LIBS
13364 LIBS="-lsvld $LIBS"
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367
13368 /* Override any GCC internal prototype to avoid an error.
13369 Use char because int might match the return type of a GCC
13370 builtin and then its argument prototype would still apply.
13371 The 'extern "C"' is for builds by C++ compilers;
13372 although this is not generally supported in C code supporting it here
13373 has little cost and some practical benefit (sr 110532). */
13374 #ifdef __cplusplus
13375 extern "C"
13376 #endif
13377 char dlopen (void);
13378 int
13379 main (void)
13380 {
13381 return dlopen ();
13382 ;
13383 return 0;
13384 }
13385 _ACEOF
13386 if ac_fn_c_try_link "$LINENO"
13387 then :
13388 ac_cv_lib_svld_dlopen=yes
13389 else case e in #(
13390 e) ac_cv_lib_svld_dlopen=no ;;
13391 esac
13392 fi
13393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13394 conftest$ac_exeext conftest.$ac_ext
13395 LIBS=$ac_check_lib_save_LIBS ;;
13396 esac
13397 fi
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13399 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13400 if test "x$ac_cv_lib_svld_dlopen" = xyes
13401 then :
13402 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13403 else case e in #(
13404 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13405 printf %s "checking for dld_link in -ldld... " >&6; }
13406 if test ${ac_cv_lib_dld_dld_link+y}
13407 then :
13408 printf %s "(cached) " >&6
13409 else case e in #(
13410 e) ac_check_lib_save_LIBS=$LIBS
13411 LIBS="-ldld $LIBS"
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414
13415 /* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply.
13418 The 'extern "C"' is for builds by C++ compilers;
13419 although this is not generally supported in C code supporting it here
13420 has little cost and some practical benefit (sr 110532). */
13421 #ifdef __cplusplus
13422 extern "C"
13423 #endif
13424 char dld_link (void);
13425 int
13426 main (void)
13427 {
13428 return dld_link ();
13429 ;
13430 return 0;
13431 }
13432 _ACEOF
13433 if ac_fn_c_try_link "$LINENO"
13434 then :
13435 ac_cv_lib_dld_dld_link=yes
13436 else case e in #(
13437 e) ac_cv_lib_dld_dld_link=no ;;
13438 esac
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13441 conftest$ac_exeext conftest.$ac_ext
13442 LIBS=$ac_check_lib_save_LIBS ;;
13443 esac
13444 fi
13445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13446 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13447 if test "x$ac_cv_lib_dld_dld_link" = xyes
13448 then :
13449 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13450 fi
13451
13452 ;;
13453 esac
13454 fi
13455
13456 ;;
13457 esac
13458 fi
13459
13460 ;;
13461 esac
13462 fi
13463
13464 ;;
13465 esac
13466 fi
13467
13468 ;;
13469 esac
13470 fi
13471
13472 ;;
13473 esac
13474
13475 if test no = "$lt_cv_dlopen"; then
13476 enable_dlopen=no
13477 else
13478 enable_dlopen=yes
13479 fi
13480
13481 case $lt_cv_dlopen in
13482 dlopen)
13483 save_CPPFLAGS=$CPPFLAGS
13484 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13485
13486 save_LDFLAGS=$LDFLAGS
13487 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13488
13489 save_LIBS=$LIBS
13490 LIBS="$lt_cv_dlopen_libs $LIBS"
13491
13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13493 printf %s "checking whether a program can dlopen itself... " >&6; }
13494 if test ${lt_cv_dlopen_self+y}
13495 then :
13496 printf %s "(cached) " >&6
13497 else case e in #(
13498 e) if test yes = "$cross_compiling"; then :
13499 lt_cv_dlopen_self=cross
13500 else
13501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13502 lt_status=$lt_dlunknown
13503 cat > conftest.$ac_ext <<_LT_EOF
13504 #line $LINENO "configure"
13505 #include "confdefs.h"
13506
13507 #if HAVE_DLFCN_H
13508 #include <dlfcn.h>
13509 #endif
13510
13511 #include <stdio.h>
13512
13513 #ifdef RTLD_GLOBAL
13514 # define LT_DLGLOBAL RTLD_GLOBAL
13515 #else
13516 # ifdef DL_GLOBAL
13517 # define LT_DLGLOBAL DL_GLOBAL
13518 # else
13519 # define LT_DLGLOBAL 0
13520 # endif
13521 #endif
13522
13523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13524 find out it does not work in some platform. */
13525 #ifndef LT_DLLAZY_OR_NOW
13526 # ifdef RTLD_LAZY
13527 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13528 # else
13529 # ifdef DL_LAZY
13530 # define LT_DLLAZY_OR_NOW DL_LAZY
13531 # else
13532 # ifdef RTLD_NOW
13533 # define LT_DLLAZY_OR_NOW RTLD_NOW
13534 # else
13535 # ifdef DL_NOW
13536 # define LT_DLLAZY_OR_NOW DL_NOW
13537 # else
13538 # define LT_DLLAZY_OR_NOW 0
13539 # endif
13540 # endif
13541 # endif
13542 # endif
13543 #endif
13544
13545 /* When -fvisibility=hidden is used, assume the code has been annotated
13546 correspondingly for the symbols needed. */
13547 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13548 int fnord (void) __attribute__((visibility("default")));
13549 #endif
13550
13551 int fnord (void) { return 42; }
13552 int main (void)
13553 {
13554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13555 int status = $lt_dlunknown;
13556
13557 if (self)
13558 {
13559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13560 else
13561 {
13562 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13563 else puts (dlerror ());
13564 }
13565 /* dlclose (self); */
13566 }
13567 else
13568 puts (dlerror ());
13569
13570 return status;
13571 }
13572 _LT_EOF
13573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13574 (eval $ac_link) 2>&5
13575 ac_status=$?
13576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13577 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13578 (./conftest; exit; ) >&5 2>/dev/null
13579 lt_status=$?
13580 case x$lt_status in
13581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13583 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13584 esac
13585 else :
13586 # compilation failed
13587 lt_cv_dlopen_self=no
13588 fi
13589 fi
13590 rm -fr conftest*
13591
13592 ;;
13593 esac
13594 fi
13595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13596 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13597
13598 if test yes = "$lt_cv_dlopen_self"; then
13599 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13601 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13602 if test ${lt_cv_dlopen_self_static+y}
13603 then :
13604 printf %s "(cached) " >&6
13605 else case e in #(
13606 e) if test yes = "$cross_compiling"; then :
13607 lt_cv_dlopen_self_static=cross
13608 else
13609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13610 lt_status=$lt_dlunknown
13611 cat > conftest.$ac_ext <<_LT_EOF
13612 #line $LINENO "configure"
13613 #include "confdefs.h"
13614
13615 #if HAVE_DLFCN_H
13616 #include <dlfcn.h>
13617 #endif
13618
13619 #include <stdio.h>
13620
13621 #ifdef RTLD_GLOBAL
13622 # define LT_DLGLOBAL RTLD_GLOBAL
13623 #else
13624 # ifdef DL_GLOBAL
13625 # define LT_DLGLOBAL DL_GLOBAL
13626 # else
13627 # define LT_DLGLOBAL 0
13628 # endif
13629 #endif
13630
13631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13632 find out it does not work in some platform. */
13633 #ifndef LT_DLLAZY_OR_NOW
13634 # ifdef RTLD_LAZY
13635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13636 # else
13637 # ifdef DL_LAZY
13638 # define LT_DLLAZY_OR_NOW DL_LAZY
13639 # else
13640 # ifdef RTLD_NOW
13641 # define LT_DLLAZY_OR_NOW RTLD_NOW
13642 # else
13643 # ifdef DL_NOW
13644 # define LT_DLLAZY_OR_NOW DL_NOW
13645 # else
13646 # define LT_DLLAZY_OR_NOW 0
13647 # endif
13648 # endif
13649 # endif
13650 # endif
13651 #endif
13652
13653 /* When -fvisibility=hidden is used, assume the code has been annotated
13654 correspondingly for the symbols needed. */
13655 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13656 int fnord (void) __attribute__((visibility("default")));
13657 #endif
13658
13659 int fnord (void) { return 42; }
13660 int main (void)
13661 {
13662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13663 int status = $lt_dlunknown;
13664
13665 if (self)
13666 {
13667 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13668 else
13669 {
13670 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13671 else puts (dlerror ());
13672 }
13673 /* dlclose (self); */
13674 }
13675 else
13676 puts (dlerror ());
13677
13678 return status;
13679 }
13680 _LT_EOF
13681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13682 (eval $ac_link) 2>&5
13683 ac_status=$?
13684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13685 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13686 (./conftest; exit; ) >&5 2>/dev/null
13687 lt_status=$?
13688 case x$lt_status in
13689 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13690 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13691 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13692 esac
13693 else :
13694 # compilation failed
13695 lt_cv_dlopen_self_static=no
13696 fi
13697 fi
13698 rm -fr conftest*
13699
13700 ;;
13701 esac
13702 fi
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13704 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13705 fi
13706
13707 CPPFLAGS=$save_CPPFLAGS
13708 LDFLAGS=$save_LDFLAGS
13709 LIBS=$save_LIBS
13710 ;;
13711 esac
13712
13713 case $lt_cv_dlopen_self in
13714 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13715 *) enable_dlopen_self=unknown ;;
13716 esac
13717
13718 case $lt_cv_dlopen_self_static in
13719 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13720 *) enable_dlopen_self_static=unknown ;;
13721 esac
13722 fi
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740 striplib=
13741 old_striplib=
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13743 printf %s "checking whether stripping libraries is possible... " >&6; }
13744 if test -z "$STRIP"; then
13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 printf "%s\n" "no" >&6; }
13747 else
13748 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13749 old_striplib="$STRIP --strip-debug"
13750 striplib="$STRIP --strip-unneeded"
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13752 printf "%s\n" "yes" >&6; }
13753 else
13754 case $host_os in
13755 darwin*)
13756 # FIXME - insert some real tests, host_os isn't really good enough
13757 striplib="$STRIP -x"
13758 old_striplib="$STRIP -S"
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13760 printf "%s\n" "yes" >&6; }
13761 ;;
13762 freebsd*)
13763 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13764 old_striplib="$STRIP --strip-debug"
13765 striplib="$STRIP --strip-unneeded"
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 printf "%s\n" "yes" >&6; }
13768 else
13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 printf "%s\n" "no" >&6; }
13771 fi
13772 ;;
13773 *)
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 printf "%s\n" "no" >&6; }
13776 ;;
13777 esac
13778 fi
13779 fi
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792 # Report what library types will actually be built
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13794 printf %s "checking if libtool supports shared libraries... " >&6; }
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13796 printf "%s\n" "$can_build_shared" >&6; }
13797
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13799 printf %s "checking whether to build shared libraries... " >&6; }
13800 test no = "$can_build_shared" && enable_shared=no
13801
13802 # On AIX, shared libraries and static libraries use the same namespace, and
13803 # are all built from PIC.
13804 case $host_os in
13805 aix3*)
13806 test yes = "$enable_shared" && enable_static=no
13807 if test -n "$RANLIB"; then
13808 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13809 postinstall_cmds='$RANLIB $lib'
13810 fi
13811 ;;
13812
13813 aix[4-9]*)
13814 if test ia64 != "$host_cpu"; then
13815 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13816 yes,aix,yes) ;; # shared object as lib.so file only
13817 yes,svr4,*) ;; # shared object as lib.so archive member only
13818 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13819 esac
13820 fi
13821 ;;
13822 esac
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13824 printf "%s\n" "$enable_shared" >&6; }
13825
13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13827 printf %s "checking whether to build static libraries... " >&6; }
13828 # Make sure either enable_shared or enable_static is yes.
13829 test yes = "$enable_shared" || enable_static=yes
13830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13831 printf "%s\n" "$enable_static" >&6; }
13832
13833
13834
13835
13836 fi
13837 ac_ext=c
13838 ac_cpp='$CPP $CPPFLAGS'
13839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13842
13843 CC=$lt_save_CC
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859 ac_config_commands="$ac_config_commands libtool"
13860
13861
13862
13863
13864 # Only expand once:
13865
13866
13867
13868
13869 # Check whether --with-gnu-ld was given.
13870 if test ${with_gnu_ld+y}
13871 then :
13872 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13873 else case e in #(
13874 e) with_gnu_ld=no ;;
13875 esac
13876 fi
13877
13878 ac_prog=ld
13879 if test yes = "$GCC"; then
13880 # Check if gcc -print-prog-name=ld gives a path.
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13882 printf %s "checking for ld used by $CC... " >&6; }
13883 case $host in
13884 *-*-mingw* | *-*-windows*)
13885 # gcc leaves a trailing carriage return, which upsets mingw
13886 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13887 *)
13888 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13889 esac
13890 case $ac_prog in
13891 # Accept absolute paths.
13892 [\\/]* | ?:[\\/]*)
13893 re_direlt='/[^/][^/]*/\.\./'
13894 # Canonicalize the pathname of ld
13895 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13896 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13897 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13898 done
13899 test -z "$LD" && LD=$ac_prog
13900 ;;
13901 "")
13902 # If it fails, then pretend we aren't using GCC.
13903 ac_prog=ld
13904 ;;
13905 *)
13906 # If it is relative, then search for the first ld in PATH.
13907 with_gnu_ld=unknown
13908 ;;
13909 esac
13910 elif test yes = "$with_gnu_ld"; then
13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13912 printf %s "checking for GNU ld... " >&6; }
13913 else
13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13915 printf %s "checking for non-GNU ld... " >&6; }
13916 fi
13917 if test ${lt_cv_path_LD+y}
13918 then :
13919 printf %s "(cached) " >&6
13920 else case e in #(
13921 e) if test -z "$LD"; then
13922 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13923 for ac_dir in $PATH; do
13924 IFS=$lt_save_ifs
13925 test -z "$ac_dir" && ac_dir=.
13926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13927 lt_cv_path_LD=$ac_dir/$ac_prog
13928 # Check to see if the program is GNU ld. I'd rather use --version,
13929 # but apparently some variants of GNU ld only accept -v.
13930 # Break only if it was the GNU/non-GNU ld that we prefer.
13931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13932 *GNU* | *'with BFD'*)
13933 test no != "$with_gnu_ld" && break
13934 ;;
13935 *)
13936 test yes != "$with_gnu_ld" && break
13937 ;;
13938 esac
13939 fi
13940 done
13941 IFS=$lt_save_ifs
13942 else
13943 lt_cv_path_LD=$LD # Let the user override the test with a path.
13944 fi ;;
13945 esac
13946 fi
13947
13948 LD=$lt_cv_path_LD
13949 if test -n "$LD"; then
13950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13951 printf "%s\n" "$LD" >&6; }
13952 else
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 printf "%s\n" "no" >&6; }
13955 fi
13956 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13958 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13959 if test ${lt_cv_prog_gnu_ld+y}
13960 then :
13961 printf %s "(cached) " >&6
13962 else case e in #(
13963 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
13964 case `$LD -v 2>&1 </dev/null` in
13965 *GNU* | *'with BFD'*)
13966 lt_cv_prog_gnu_ld=yes
13967 ;;
13968 *)
13969 lt_cv_prog_gnu_ld=no
13970 ;;
13971 esac ;;
13972 esac
13973 fi
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13975 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
13976 with_gnu_ld=$lt_cv_prog_gnu_ld
13977
13978
13979
13980
13981
13982
13983
13984 with_ldflags=""
13985 if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
13986
13987 for flag in \
13988 -Wl,--as-needed \
13989 -Wl,--gc-sections \
13990 -Wl,-z,relro \
13991 -Wl,-z,now; do
13992
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5
13994 printf %s "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; }
13995 if { as_var=`printf "%s\n" "cc_cv_LDFLAGS_$flag" | sed "$as_sed_sh"`; eval test \${$as_var+y}; }
13996 then :
13997 printf %s "(cached) " >&6
13998 else case e in #(
13999 e) eval "cc_save_LDFLAGS='${LDFLAGS}'"
14000 eval "LDFLAGS='-Werror $flag'"
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003 int a = 0; int main(void) { return a; }
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"
14006 then :
14007 eval "`printf "%s\n" "cc_cv_LDFLAGS_$flag" | sed "$as_sed_sh"`='yes'"
14008 else case e in #(
14009 e) eval "`printf "%s\n" "cc_cv_LDFLAGS_$flag" | sed "$as_sed_sh"`='no'" ;;
14010 esac
14011 fi
14012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14013 conftest$ac_exeext conftest.$ac_ext
14014 eval "LDFLAGS='$cc_save_LDFLAGS'" ;;
14015 esac
14016 fi
14017 eval ac_res=\$`printf "%s\n" "cc_cv_LDFLAGS_$flag" | sed "$as_sed_sh"`
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14019 printf "%s\n" "$ac_res" >&6; }
14020
14021 if eval test x$`printf "%s\n" "cc_cv_LDFLAGS_$flag" | sed "$as_sed_sh"` = xyes
14022 then :
14023 eval "with_ldflags='${with_ldflags} $flag'"
14024 fi
14025
14026 done
14027
14028 fi
14029 GNU_LD_FLAGS=$with_ldflags
14030
14031
14032 case "${host_os}" in
14033 freebsd*)
14034 OS=freebsd
14035
14036 ;;
14037 *)
14038 OS=linux
14039
14040 ;;
14041 esac
14042
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
14044 printf %s "checking for round in -lm... " >&6; }
14045 if test ${ac_cv_lib_m_round+y}
14046 then :
14047 printf %s "(cached) " >&6
14048 else case e in #(
14049 e) ac_check_lib_save_LIBS=$LIBS
14050 LIBS="-lm $LIBS"
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053
14054 /* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply.
14057 The 'extern "C"' is for builds by C++ compilers;
14058 although this is not generally supported in C code supporting it here
14059 has little cost and some practical benefit (sr 110532). */
14060 #ifdef __cplusplus
14061 extern "C"
14062 #endif
14063 char round (void);
14064 int
14065 main (void)
14066 {
14067 return round ();
14068 ;
14069 return 0;
14070 }
14071 _ACEOF
14072 if ac_fn_c_try_link "$LINENO"
14073 then :
14074 ac_cv_lib_m_round=yes
14075 else case e in #(
14076 e) ac_cv_lib_m_round=no ;;
14077 esac
14078 fi
14079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14080 conftest$ac_exeext conftest.$ac_ext
14081 LIBS=$ac_check_lib_save_LIBS ;;
14082 esac
14083 fi
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
14085 printf "%s\n" "$ac_cv_lib_m_round" >&6; }
14086 if test "x$ac_cv_lib_m_round" = xyes
14087 then :
14088 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
14089
14090 LIBS="-lm $LIBS"
14091
14092 fi
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14103 if test -n "$ac_tool_prefix"; then
14104 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14105 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107 printf %s "checking for $ac_word... " >&6; }
14108 if test ${ac_cv_path_PKG_CONFIG+y}
14109 then :
14110 printf %s "(cached) " >&6
14111 else case e in #(
14112 e) case $PKG_CONFIG in
14113 [\\/]* | ?:[\\/]*)
14114 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14115 ;;
14116 *)
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14119 do
14120 IFS=$as_save_IFS
14121 case $as_dir in #(((
14122 '') as_dir=./ ;;
14123 */) ;;
14124 *) as_dir=$as_dir/ ;;
14125 esac
14126 for ac_exec_ext in '' $ac_executable_extensions; do
14127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14128 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14130 break 2
14131 fi
14132 done
14133 done
14134 IFS=$as_save_IFS
14135
14136 ;;
14137 esac ;;
14138 esac
14139 fi
14140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14141 if test -n "$PKG_CONFIG"; then
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14143 printf "%s\n" "$PKG_CONFIG" >&6; }
14144 else
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 printf "%s\n" "no" >&6; }
14147 fi
14148
14149
14150 fi
14151 if test -z "$ac_cv_path_PKG_CONFIG"; then
14152 ac_pt_PKG_CONFIG=$PKG_CONFIG
14153 # Extract the first word of "pkg-config", so it can be a program name with args.
14154 set dummy pkg-config; ac_word=$2
14155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14156 printf %s "checking for $ac_word... " >&6; }
14157 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14158 then :
14159 printf %s "(cached) " >&6
14160 else case e in #(
14161 e) case $ac_pt_PKG_CONFIG in
14162 [\\/]* | ?:[\\/]*)
14163 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14164 ;;
14165 *)
14166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14167 for as_dir in $PATH
14168 do
14169 IFS=$as_save_IFS
14170 case $as_dir in #(((
14171 '') as_dir=./ ;;
14172 */) ;;
14173 *) as_dir=$as_dir/ ;;
14174 esac
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14177 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14179 break 2
14180 fi
14181 done
14182 done
14183 IFS=$as_save_IFS
14184
14185 ;;
14186 esac ;;
14187 esac
14188 fi
14189 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14190 if test -n "$ac_pt_PKG_CONFIG"; then
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14192 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14193 else
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 printf "%s\n" "no" >&6; }
14196 fi
14197
14198 if test "x$ac_pt_PKG_CONFIG" = x; then
14199 PKG_CONFIG=""
14200 else
14201 case $cross_compiling:$ac_tool_warned in
14202 yes:)
14203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14204 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14205 ac_tool_warned=yes ;;
14206 esac
14207 PKG_CONFIG=$ac_pt_PKG_CONFIG
14208 fi
14209 else
14210 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14211 fi
14212
14213 fi
14214 if test -n "$PKG_CONFIG"; then
14215 _pkg_min_version=0.9.0
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14217 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14218 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14220 printf "%s\n" "yes" >&6; }
14221 else
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 printf "%s\n" "no" >&6; }
14224 PKG_CONFIG=""
14225 fi
14226 fi
14227 if test -z "$PKG_CONFIG"; then
14228 as_fn_error $? "pkg-config not found" "$LINENO" 5
14229 fi
14230
14231 pkg_failed=no
14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.9" >&5
14233 printf %s "checking for check >= 0.9.9... " >&6; }
14234
14235 if test -n "$CHECK_CFLAGS"; then
14236 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
14237 elif test -n "$PKG_CONFIG"; then
14238 if test -n "$PKG_CONFIG" && \
14239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5
14240 ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5
14241 ac_status=$?
14242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243 test $ac_status = 0; }; then
14244 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.9" 2>/dev/null`
14245 test "x$?" != "x0" && pkg_failed=yes
14246 else
14247 pkg_failed=yes
14248 fi
14249 else
14250 pkg_failed=untried
14251 fi
14252 if test -n "$CHECK_LIBS"; then
14253 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
14254 elif test -n "$PKG_CONFIG"; then
14255 if test -n "$PKG_CONFIG" && \
14256 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5
14257 ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5
14258 ac_status=$?
14259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14260 test $ac_status = 0; }; then
14261 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.9" 2>/dev/null`
14262 test "x$?" != "x0" && pkg_failed=yes
14263 else
14264 pkg_failed=yes
14265 fi
14266 else
14267 pkg_failed=untried
14268 fi
14269
14270
14271
14272 if test $pkg_failed = yes; then
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274 printf "%s\n" "no" >&6; }
14275
14276 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14277 _pkg_short_errors_supported=yes
14278 else
14279 _pkg_short_errors_supported=no
14280 fi
14281 if test $_pkg_short_errors_supported = yes; then
14282 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.9" 2>&1`
14283 else
14284 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.9" 2>&1`
14285 fi
14286 # Put the nasty error message in config.log where it belongs
14287 echo "$CHECK_PKG_ERRORS" >&5
14288
14289 HAVE_CHECK="no"
14290 elif test $pkg_failed = untried; then
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 printf "%s\n" "no" >&6; }
14293 HAVE_CHECK="no"
14294 else
14295 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
14296 CHECK_LIBS=$pkg_cv_CHECK_LIBS
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14298 printf "%s\n" "yes" >&6; }
14299 HAVE_CHECK="yes"
14300 fi
14301 if test "x$HAVE_CHECK" != "xyes"; then
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: check not found - skipping building unit tests" >&5
14303 printf "%s\n" "$as_me: WARNING: check not found - skipping building unit tests" >&2;}
14304 fi
14305 if test "x$HAVE_CHECK" = "xyes"; then
14306 ENABLE_RUNTIME_TESTS_TRUE=
14307 ENABLE_RUNTIME_TESTS_FALSE='#'
14308 else
14309 ENABLE_RUNTIME_TESTS_TRUE='#'
14310 ENABLE_RUNTIME_TESTS_FALSE=
14311 fi
14312
14313 if test "x$enable_static" = "xyes"; then
14314 ENABLE_STATIC_LINK_TEST_TRUE=
14315 ENABLE_STATIC_LINK_TEST_FALSE='#'
14316 else
14317 ENABLE_STATIC_LINK_TEST_TRUE='#'
14318 ENABLE_STATIC_LINK_TEST_FALSE=
14319 fi
14320
14321
14322 with_cflags=""
14323 if test "x$GCC" = "xyes"; then
14324
14325 for flag in \
14326 -Wall \
14327 -Wextra \
14328 -Wno-unused-parameter \
14329 -Wstrict-prototypes \
14330 -Wmissing-prototypes \
14331 -fvisibility=hidden \
14332 -pipe \
14333 -fno-strict-aliasing \
14334 -ffunction-sections \
14335 -fdata-sections \
14336 -fno-strict-aliasing \
14337 -fdiagnostics-show-option \
14338 -fno-common; do
14339
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5
14341 printf %s "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; }
14342 if { as_var=`printf "%s\n" "cc_cv_CFLAGS_$flag" | sed "$as_sed_sh"`; eval test \${$as_var+y}; }
14343 then :
14344 printf %s "(cached) " >&6
14345 else case e in #(
14346 e) eval "cc_save_CFLAGS='${CFLAGS}'"
14347 eval "CFLAGS='-Werror $flag'"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 int a = 0; int main(void) { return a; }
14351 _ACEOF
14352 if ac_fn_c_try_link "$LINENO"
14353 then :
14354 eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | sed "$as_sed_sh"`='yes'"
14355 else case e in #(
14356 e) eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | sed "$as_sed_sh"`='no'" ;;
14357 esac
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14360 conftest$ac_exeext conftest.$ac_ext
14361 eval "CFLAGS='$cc_save_CFLAGS'" ;;
14362 esac
14363 fi
14364 eval ac_res=\$`printf "%s\n" "cc_cv_CFLAGS_$flag" | sed "$as_sed_sh"`
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14366 printf "%s\n" "$ac_res" >&6; }
14367
14368 if eval test x$`printf "%s\n" "cc_cv_CFLAGS_$flag" | sed "$as_sed_sh"` = xyes
14369 then :
14370 eval "with_cflags='${with_cflags} $flag'"
14371 fi
14372
14373 done
14374
14375 fi
14376 GCC_CFLAGS=$with_cflags
14377
14378
14379 # Extract the first word of "doxygen", so it can be a program name with args.
14380 set dummy doxygen; ac_word=$2
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 printf %s "checking for $ac_word... " >&6; }
14383 if test ${ac_cv_path_DOXYGEN+y}
14384 then :
14385 printf %s "(cached) " >&6
14386 else case e in #(
14387 e) case $DOXYGEN in
14388 [\\/]* | ?:[\\/]*)
14389 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
14390 ;;
14391 *)
14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393 for as_dir in $PATH
14394 do
14395 IFS=$as_save_IFS
14396 case $as_dir in #(((
14397 '') as_dir=./ ;;
14398 */) ;;
14399 *) as_dir=$as_dir/ ;;
14400 esac
14401 for ac_exec_ext in '' $ac_executable_extensions; do
14402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14403 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
14404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14405 break 2
14406 fi
14407 done
14408 done
14409 IFS=$as_save_IFS
14410
14411 ;;
14412 esac ;;
14413 esac
14414 fi
14415 DOXYGEN=$ac_cv_path_DOXYGEN
14416 if test -n "$DOXYGEN"; then
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
14418 printf "%s\n" "$DOXYGEN" >&6; }
14419 else
14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 printf "%s\n" "no" >&6; }
14422 fi
14423
14424
14425 if test "x$DOXYGEN" = "x"; then
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - required for documentation" >&5
14427 printf "%s\n" "$as_me: WARNING: doxygen not found - required for documentation" >&2;}
14428 have_doxygen="no"
14429 else
14430 have_doxygen="yes"
14431 fi
14432 if test "x$have_doxygen" = "xyes"; then
14433 HAVE_DOXYGEN_TRUE=
14434 HAVE_DOXYGEN_FALSE='#'
14435 else
14436 HAVE_DOXYGEN_TRUE='#'
14437 HAVE_DOXYGEN_FALSE=
14438 fi
14439
14440
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov" >&5
14442 printf %s "checking whether to build with gcov... " >&6; }
14443 # Check whether --enable-gcov was given.
14444 if test ${enable_gcov+y}
14445 then :
14446 enableval=$enable_gcov;
14447 else case e in #(
14448 e) enable_gcov=no ;;
14449 esac
14450 fi
14451
14452 if test "x$enable_gcov" != "xno"
14453 then :
14454
14455 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
14456 GCOV_LDFLAGS="-lgcov"
14457 enable_gcov=yes
14458
14459 fi
14460 if test "x$enable_gcov" != "xno"; then
14461 GCOV_ENABLED_TRUE=
14462 GCOV_ENABLED_FALSE='#'
14463 else
14464 GCOV_ENABLED_TRUE='#'
14465 GCOV_ENABLED_FALSE=
14466 fi
14467
14468
14469
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gcov" >&5
14471 printf "%s\n" "$enable_gcov" >&6; }
14472
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with coverity support" >&5
14474 printf %s "checking whether to build with coverity support... " >&6; }
14475 # Check whether --enable-coverity was given.
14476 if test ${enable_coverity+y}
14477 then :
14478 enableval=$enable_coverity;
14479 else case e in #(
14480 e) enable_coverity=no ;;
14481 esac
14482 fi
14483
14484 if test "x$enable_coverity" != "xno"
14485 then :
14486
14487
14488 printf "%s\n" "#define _Float128 __uint128_t" >>confdefs.h
14489
14490
14491 printf "%s\n" "#define _Float32 int" >>confdefs.h
14492
14493
14494 printf "%s\n" "#define _Float32x int" >>confdefs.h
14495
14496
14497 printf "%s\n" "#define _Float64 long" >>confdefs.h
14498
14499
14500 printf "%s\n" "#define _Float64x long" >>confdefs.h
14501
14502 enable_coverity=yes
14503
14504 fi
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_coverity" >&5
14506 printf "%s\n" "$enable_coverity" >&6; }
14507
14508
14509
14510
14511
14512
14513
14514
14515 if test -n "$PYTHON"; then
14516 # If the user set $PYTHON, use it and don't search something else.
14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
14518 printf %s "checking whether $PYTHON version is >= 2.6... " >&6; }
14519 prog="import sys
14520 # split strings by '.' and convert to numeric. Append some zeros
14521 # because we need at least 4 digits for the hex conversion.
14522 # map returns an iterator in Python 3.0 and a list in 2.x
14523 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14524 minverhex = 0
14525 # xrange is not present in Python 3.0 and range returns an iterator
14526 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14527 sys.exit(sys.hexversion < minverhex)"
14528 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14529 ($PYTHON -c "$prog") >&5 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }
14533 then :
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14535 printf "%s\n" "yes" >&6; }
14536 else case e in #(
14537 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538 printf "%s\n" "no" >&6; }
14539 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
14540 esac
14541 fi
14542 am_display_PYTHON=$PYTHON
14543 else
14544 # Otherwise, try each interpreter until we find one that satisfies
14545 # VERSION.
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
14547 printf %s "checking for a Python interpreter with version >= 2.6... " >&6; }
14548 if test ${am_cv_pathless_PYTHON+y}
14549 then :
14550 printf %s "(cached) " >&6
14551 else case e in #(
14552 e)
14553 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14554 test "$am_cv_pathless_PYTHON" = none && break
14555 prog="import sys
14556 # split strings by '.' and convert to numeric. Append some zeros
14557 # because we need at least 4 digits for the hex conversion.
14558 # map returns an iterator in Python 3.0 and a list in 2.x
14559 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14560 minverhex = 0
14561 # xrange is not present in Python 3.0 and range returns an iterator
14562 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14563 sys.exit(sys.hexversion < minverhex)"
14564 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14565 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }
14569 then :
14570 break
14571 fi
14572 done ;;
14573 esac
14574 fi
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14576 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
14577 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14578 if test "$am_cv_pathless_PYTHON" = none; then
14579 PYTHON=:
14580 else
14581 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14582 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14584 printf %s "checking for $ac_word... " >&6; }
14585 if test ${ac_cv_path_PYTHON+y}
14586 then :
14587 printf %s "(cached) " >&6
14588 else case e in #(
14589 e) case $PYTHON in
14590 [\\/]* | ?:[\\/]*)
14591 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14592 ;;
14593 *)
14594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595 for as_dir in $PATH
14596 do
14597 IFS=$as_save_IFS
14598 case $as_dir in #(((
14599 '') as_dir=./ ;;
14600 */) ;;
14601 *) as_dir=$as_dir/ ;;
14602 esac
14603 for ac_exec_ext in '' $ac_executable_extensions; do
14604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14605 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
14606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14607 break 2
14608 fi
14609 done
14610 done
14611 IFS=$as_save_IFS
14612
14613 ;;
14614 esac ;;
14615 esac
14616 fi
14617 PYTHON=$ac_cv_path_PYTHON
14618 if test -n "$PYTHON"; then
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14620 printf "%s\n" "$PYTHON" >&6; }
14621 else
14622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14623 printf "%s\n" "no" >&6; }
14624 fi
14625
14626
14627 fi
14628 am_display_PYTHON=$am_cv_pathless_PYTHON
14629 fi
14630
14631
14632 if test "$PYTHON" = :; then
14633 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
14634 else
14635
14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14637 printf %s "checking for $am_display_PYTHON version... " >&6; }
14638 if test ${am_cv_python_version+y}
14639 then :
14640 printf %s "(cached) " >&6
14641 else case e in #(
14642 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
14643 esac
14644 fi
14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14646 printf "%s\n" "$am_cv_python_version" >&6; }
14647 PYTHON_VERSION=$am_cv_python_version
14648
14649
14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14651 printf %s "checking for $am_display_PYTHON platform... " >&6; }
14652 if test ${am_cv_python_platform+y}
14653 then :
14654 printf %s "(cached) " >&6
14655 else case e in #(
14656 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
14657 esac
14658 fi
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14660 printf "%s\n" "$am_cv_python_platform" >&6; }
14661 PYTHON_PLATFORM=$am_cv_python_platform
14662
14663
14664 if test "x$prefix" = xNONE; then
14665 am__usable_prefix=$ac_default_prefix
14666 else
14667 am__usable_prefix=$prefix
14668 fi
14669
14670 # Allow user to request using sys.* values from Python,
14671 # instead of the GNU $prefix values.
14672
14673 # Check whether --with-python-sys-prefix was given.
14674 if test ${with_python_sys_prefix+y}
14675 then :
14676 withval=$with_python_sys_prefix; am_use_python_sys=:
14677 else case e in #(
14678 e) am_use_python_sys=false ;;
14679 esac
14680 fi
14681
14682
14683 # Allow user to override whatever the default Python prefix is.
14684
14685 # Check whether --with-python_prefix was given.
14686 if test ${with_python_prefix+y}
14687 then :
14688 withval=$with_python_prefix; am_python_prefix_subst=$withval
14689 am_cv_python_prefix=$withval
14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
14691 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14693 printf "%s\n" "$am_cv_python_prefix" >&6; }
14694 else case e in #(
14695 e)
14696 if $am_use_python_sys; then
14697 # using python sys.prefix value, not GNU
14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
14699 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
14700 if test ${am_cv_python_prefix+y}
14701 then :
14702 printf %s "(cached) " >&6
14703 else case e in #(
14704 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
14705 esac
14706 fi
14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14708 printf "%s\n" "$am_cv_python_prefix" >&6; }
14709
14710 case $am_cv_python_prefix in
14711 $am__usable_prefix*)
14712 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
14713 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
14714 ;;
14715 *)
14716 am_python_prefix_subst=$am_cv_python_prefix
14717 ;;
14718 esac
14719 else # using GNU prefix value, not python sys.prefix
14720 am_python_prefix_subst='${prefix}'
14721 am_python_prefix=$am_python_prefix_subst
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
14723 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
14725 printf "%s\n" "$am_python_prefix" >&6; }
14726 fi ;;
14727 esac
14728 fi
14729
14730 # Substituting python_prefix_subst value.
14731 PYTHON_PREFIX=$am_python_prefix_subst
14732
14733
14734 # emacs-page Now do it all over again for Python exec_prefix, but with yet
14735 # another conditional: fall back to regular prefix if that was specified.
14736
14737 # Check whether --with-python_exec_prefix was given.
14738 if test ${with_python_exec_prefix+y}
14739 then :
14740 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
14741 am_cv_python_exec_prefix=$withval
14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
14743 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14745 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14746 else case e in #(
14747 e)
14748 # no explicit --with-python_exec_prefix, but if
14749 # --with-python_prefix was given, use its value for python_exec_prefix too.
14750 if test -n "$with_python_prefix"
14751 then :
14752 am_python_exec_prefix_subst=$with_python_prefix
14753 am_cv_python_exec_prefix=$with_python_prefix
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
14755 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14757 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14758 else case e in #(
14759 e)
14760 # Set am__usable_exec_prefix whether using GNU or Python values,
14761 # since we use that variable for pyexecdir.
14762 if test "x$exec_prefix" = xNONE; then
14763 am__usable_exec_prefix=$am__usable_prefix
14764 else
14765 am__usable_exec_prefix=$exec_prefix
14766 fi
14767 #
14768 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
14770 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
14771 if test ${am_cv_python_exec_prefix+y}
14772 then :
14773 printf %s "(cached) " >&6
14774 else case e in #(
14775 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
14776 esac
14777 fi
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14779 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14780 case $am_cv_python_exec_prefix in
14781 $am__usable_exec_prefix*)
14782 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
14783 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
14784 ;;
14785 *)
14786 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
14787 ;;
14788 esac
14789 else # using GNU $exec_prefix, not python sys.exec_prefix
14790 am_python_exec_prefix_subst='${exec_prefix}'
14791 am_python_exec_prefix=$am_python_exec_prefix_subst
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
14793 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
14795 printf "%s\n" "$am_python_exec_prefix" >&6; }
14796 fi ;;
14797 esac
14798 fi ;;
14799 esac
14800 fi
14801
14802 # Substituting python_exec_prefix_subst.
14803 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
14804
14805
14806 # Factor out some code duplication into this shell variable.
14807 am_python_setup_sysconfig="\
14808 import sys
14809 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14810 # with python 3.x. See automake bug#10227.
14811 try:
14812 import sysconfig
14813 except ImportError:
14814 can_use_sysconfig = 0
14815 else:
14816 can_use_sysconfig = 1
14817 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14818 # <https://github.com/pypa/virtualenv/issues/118>
14819 try:
14820 from platform import python_implementation
14821 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14822 can_use_sysconfig = 0
14823 except ImportError:
14824 pass" # end of am_python_setup_sysconfig
14825
14826 # More repeated code, for figuring out the installation scheme to use.
14827 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
14828 scheme = sysconfig.get_default_scheme()
14829 else:
14830 scheme = sysconfig._get_default_scheme()
14831 if scheme == 'posix_local':
14832 if '$am_py_prefix' == '/usr':
14833 scheme = 'deb_system' # should only happen during Debian package builds
14834 else:
14835 # Debian's default scheme installs to /usr/local/ but we want to
14836 # follow the prefix, as we always have.
14837 # See bugs#54412, #64837, et al.
14838 scheme = 'posix_prefix'" # end of am_python_setup_scheme
14839
14840
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
14842 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
14843 if test ${am_cv_python_pythondir+y}
14844 then :
14845 printf %s "(cached) " >&6
14846 else case e in #(
14847 e) if test "x$am_cv_python_prefix" = x; then
14848 am_py_prefix=$am__usable_prefix
14849 else
14850 am_py_prefix=$am_cv_python_prefix
14851 fi
14852 am_cv_python_pythondir=`$PYTHON -c "
14853 $am_python_setup_sysconfig
14854 if can_use_sysconfig:
14855 try:
14856 $am_python_setup_scheme
14857 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
14858 except:
14859 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14860 else:
14861 from distutils import sysconfig
14862 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14863 sys.stdout.write(sitedir)"`
14864 #
14865 case $am_cv_python_pythondir in
14866 $am_py_prefix*)
14867 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14868 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
14869 ;;
14870 *)
14871 case $am_py_prefix in
14872 /usr|/System*) ;;
14873 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14874 ;;
14875 esac
14876 ;;
14877 esac
14878 ;;
14879 esac
14880 fi
14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14882 printf "%s\n" "$am_cv_python_pythondir" >&6; }
14883 pythondir=$am_cv_python_pythondir
14884
14885
14886 pkgpythondir=\${pythondir}/$PACKAGE
14887
14888
14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
14890 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
14891 if test ${am_cv_python_pyexecdir+y}
14892 then :
14893 printf %s "(cached) " >&6
14894 else case e in #(
14895 e) if test "x$am_cv_python_exec_prefix" = x; then
14896 am_py_exec_prefix=$am__usable_exec_prefix
14897 else
14898 am_py_exec_prefix=$am_cv_python_exec_prefix
14899 fi
14900 am_cv_python_pyexecdir=`$PYTHON -c "
14901 $am_python_setup_sysconfig
14902 if can_use_sysconfig:
14903 try:
14904 $am_python_setup_scheme
14905 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
14906 except:
14907 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
14908 else:
14909 from distutils import sysconfig
14910 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
14911 sys.stdout.write(sitedir)"`
14912 #
14913 case $am_cv_python_pyexecdir in
14914 $am_py_exec_prefix*)
14915 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14916 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
14917 ;;
14918 *)
14919 case $am_py_exec_prefix in
14920 /usr|/System*) ;;
14921 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14922 ;;
14923 esac
14924 ;;
14925 esac
14926 ;;
14927 esac
14928 fi
14929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14930 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
14931 pyexecdir=$am_cv_python_pyexecdir
14932
14933
14934 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14935
14936
14937
14938 fi
14939
14940
14941 # nm to check for leaking symbols in the static library
14942 # Extract the first word of "nm", so it can be a program name with args.
14943 set dummy nm; ac_word=$2
14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14945 printf %s "checking for $ac_word... " >&6; }
14946 if test ${ac_cv_path_NM+y}
14947 then :
14948 printf %s "(cached) " >&6
14949 else case e in #(
14950 e) case $NM in
14951 [\\/]* | ?:[\\/]*)
14952 ac_cv_path_NM="$NM" # Let the user override the test with a path.
14953 ;;
14954 *)
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14957 do
14958 IFS=$as_save_IFS
14959 case $as_dir in #(((
14960 '') as_dir=./ ;;
14961 */) ;;
14962 *) as_dir=$as_dir/ ;;
14963 esac
14964 for ac_exec_ext in '' $ac_executable_extensions; do
14965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14966 ac_cv_path_NM="$as_dir$ac_word$ac_exec_ext"
14967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14968 break 2
14969 fi
14970 done
14971 done
14972 IFS=$as_save_IFS
14973
14974 ;;
14975 esac ;;
14976 esac
14977 fi
14978 NM=$ac_cv_path_NM
14979 if test -n "$NM"; then
14980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14981 printf "%s\n" "$NM" >&6; }
14982 else
14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14984 printf "%s\n" "no" >&6; }
14985 fi
14986
14987
14988 if test "x$NM" != "x"; then
14989 HAVE_NM_TRUE=
14990 HAVE_NM_FALSE='#'
14991 else
14992 HAVE_NM_TRUE='#'
14993 HAVE_NM_FALSE=
14994 fi
14995
14996 if test "x$enable_static" = "xno"; then
14997 static_symbol_leaks_test="no - static build disabled"
14998 else
14999 if test "x$NM" = "x"; then
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nm not found - skipping symbol leak test" >&5
15001 printf "%s\n" "$as_me: WARNING: nm not found - skipping symbol leak test" >&2;}
15002 have_nm="no"
15003 static_symbol_leaks_test="no - nm not found"
15004 else
15005 have_nm="yes"
15006 static_symbol_leaks_test="yes"
15007 fi
15008 fi
15009
15010 if test "x$static_symbol_leaks_test" = "xyes"; then
15011 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE=
15012 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE='#'
15013 else
15014 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE='#'
15015 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE=
15016 fi
15017
15018
15019 ac_config_files="$ac_config_files Makefile libevdev/Makefile doc/Makefile doc/libevdev.doxygen doc/libevdev.man tools/Makefile test/Makefile libevdev.pc"
15020
15021 cat >confcache <<\_ACEOF
15022 # This file is a shell script that caches the results of configure
15023 # tests run on this system so they can be shared between configure
15024 # scripts and configure runs, see configure's option --config-cache.
15025 # It is not useful on other systems. If it contains results you don't
15026 # want to keep, you may remove or edit it.
15027 #
15028 # config.status only pays attention to the cache file if you give it
15029 # the --recheck option to rerun configure.
15030 #
15031 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15032 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15033 # following values.
15034
15035 _ACEOF
15036
15037 # The following way of writing the cache mishandles newlines in values,
15038 # but we know of no workaround that is simple, portable, and efficient.
15039 # So, we kill variables containing newlines.
15040 # Ultrix sh set writes to stderr and can't be redirected directly,
15041 # and sets the high bit in the cache file unless we assign to the vars.
15042 (
15043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15044 eval ac_val=\$$ac_var
15045 case $ac_val in #(
15046 *${as_nl}*)
15047 case $ac_var in #(
15048 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15049 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15050 esac
15051 case $ac_var in #(
15052 _ | IFS | as_nl) ;; #(
15053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15054 *) { eval $ac_var=; unset $ac_var;} ;;
15055 esac ;;
15056 esac
15057 done
15058
15059 (set) 2>&1 |
15060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15061 *${as_nl}ac_space=\ *)
15062 # 'set' does not quote correctly, so add quotes: double-quote
15063 # substitution turns \\\\ into \\, and sed turns \\ into \.
15064 sed -n \
15065 "s/'/'\\\\''/g;
15066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15067 ;; #(
15068 *)
15069 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15071 ;;
15072 esac |
15073 sort
15074 ) |
15075 sed '
15076 /^ac_cv_env_/b end
15077 t clear
15078 :clear
15079 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15080 t end
15081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15082 :end' >>confcache
15083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15084 if test -w "$cache_file"; then
15085 if test "x$cache_file" != "x/dev/null"; then
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15087 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15088 if test ! -f "$cache_file" || test -h "$cache_file"; then
15089 cat confcache >"$cache_file"
15090 else
15091 case $cache_file in #(
15092 */* | ?:*)
15093 mv -f confcache "$cache_file"$$ &&
15094 mv -f "$cache_file"$$ "$cache_file" ;; #(
15095 *)
15096 mv -f confcache "$cache_file" ;;
15097 esac
15098 fi
15099 fi
15100 else
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15102 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15103 fi
15104 fi
15105 rm -f confcache
15106
15107 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15108 # Let make expand exec_prefix.
15109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15110
15111 DEFS=-DHAVE_CONFIG_H
15112
15113 ac_libobjs=
15114 ac_ltlibobjs=
15115 U=
15116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15117 # 1. Remove the extension, and $U if already installed.
15118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15119 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15121 # will be set to the directory where LIBOBJS objects are built.
15122 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15123 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15124 done
15125 LIBOBJS=$ac_libobjs
15126
15127 LTLIBOBJS=$ac_ltlibobjs
15128
15129
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15131 printf %s "checking that generated files are newer than configure... " >&6; }
15132 if test -n "$am_sleep_pid"; then
15133 # Hide warnings about reused PIDs.
15134 wait $am_sleep_pid 2>/dev/null
15135 fi
15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15137 printf "%s\n" "done" >&6; }
15138 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15139 as_fn_error $? "conditional \"AMDEP\" was never defined.
15140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15141 fi
15142 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15143 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15145 fi
15146 case $enable_silent_rules in # (((
15147 yes) AM_DEFAULT_VERBOSITY=0;;
15148 no) AM_DEFAULT_VERBOSITY=1;;
15149 esac
15150 if test $am_cv_make_support_nested_variables = yes; then
15151 AM_V='$(V)'
15152 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15153 else
15154 AM_V=$AM_DEFAULT_VERBOSITY
15155 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15156 fi
15157
15158 if test -n "$EXEEXT"; then
15159 am__EXEEXT_TRUE=
15160 am__EXEEXT_FALSE='#'
15161 else
15162 am__EXEEXT_TRUE='#'
15163 am__EXEEXT_FALSE=
15164 fi
15165
15166 if test -z "${ENABLE_RUNTIME_TESTS_TRUE}" && test -z "${ENABLE_RUNTIME_TESTS_FALSE}"; then
15167 as_fn_error $? "conditional \"ENABLE_RUNTIME_TESTS\" was never defined.
15168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15169 fi
15170 if test -z "${ENABLE_STATIC_LINK_TEST_TRUE}" && test -z "${ENABLE_STATIC_LINK_TEST_FALSE}"; then
15171 as_fn_error $? "conditional \"ENABLE_STATIC_LINK_TEST\" was never defined.
15172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15173 fi
15174 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
15175 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
15176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15177 fi
15178 if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then
15179 as_fn_error $? "conditional \"GCOV_ENABLED\" was never defined.
15180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15181 fi
15182 if test -z "${HAVE_NM_TRUE}" && test -z "${HAVE_NM_FALSE}"; then
15183 as_fn_error $? "conditional \"HAVE_NM\" was never defined.
15184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15185 fi
15186 if test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE}" && test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE}"; then
15187 as_fn_error $? "conditional \"ENABLE_STATIC_SYMBOL_LEAKS_TEST\" was never defined.
15188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15189 fi
15190
15191 : "${CONFIG_STATUS=./config.status}"
15192 ac_write_fail=0
15193 ac_clean_files_save=$ac_clean_files
15194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15196 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15197 as_write_fail=0
15198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15199 #! $SHELL
15200 # Generated by $as_me.
15201 # Run this file to recreate the current configuration.
15202 # Compiler output produced by configure, useful for debugging
15203 # configure, is in config.log if it exists.
15204
15205 debug=false
15206 ac_cs_recheck=false
15207 ac_cs_silent=false
15208
15209 SHELL=\${CONFIG_SHELL-$SHELL}
15210 export SHELL
15211 _ASEOF
15212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15213 ## -------------------- ##
15214 ## M4sh Initialization. ##
15215 ## -------------------- ##
15216
15217 # Be more Bourne compatible
15218 DUALCASE=1; export DUALCASE # for MKS sh
15219 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15220 then :
15221 emulate sh
15222 NULLCMD=:
15223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15224 # is contrary to our usage. Disable this feature.
15225 alias -g '${1+"$@"}'='"$@"'
15226 setopt NO_GLOB_SUBST
15227 else case e in #(
15228 e) case `(set -o) 2>/dev/null` in #(
15229 *posix*) :
15230 set -o posix ;; #(
15231 *) :
15232 ;;
15233 esac ;;
15234 esac
15235 fi
15236
15237
15238
15239 # Reset variables that may have inherited troublesome values from
15240 # the environment.
15241
15242 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15243 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15244 # side effect of setting IFS to empty, thus disabling word splitting.)
15245 # Quoting is to prevent editors from complaining about space-tab.
15246 as_nl='
15247 '
15248 export as_nl
15249 IFS=" "" $as_nl"
15250
15251 PS1='$ '
15252 PS2='> '
15253 PS4='+ '
15254
15255 # Ensure predictable behavior from utilities with locale-dependent output.
15256 LC_ALL=C
15257 export LC_ALL
15258 LANGUAGE=C
15259 export LANGUAGE
15260
15261 # We cannot yet rely on "unset" to work, but we need these variables
15262 # to be unset--not just set to an empty or harmless value--now, to
15263 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15264 # also avoids known problems related to "unset" and subshell syntax
15265 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15266 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15267 do eval test \${$as_var+y} \
15268 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15269 done
15270
15271 # Ensure that fds 0, 1, and 2 are open.
15272 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15273 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15274 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15275
15276 # The user is always right.
15277 if ${PATH_SEPARATOR+false} :; then
15278 PATH_SEPARATOR=:
15279 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15280 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15281 PATH_SEPARATOR=';'
15282 }
15283 fi
15284
15285
15286 # Find who we are. Look in the path if we contain no directory separator.
15287 as_myself=
15288 case $0 in #((
15289 *[\\/]* ) as_myself=$0 ;;
15290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $PATH
15292 do
15293 IFS=$as_save_IFS
15294 case $as_dir in #(((
15295 '') as_dir=./ ;;
15296 */) ;;
15297 *) as_dir=$as_dir/ ;;
15298 esac
15299 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15300 done
15301 IFS=$as_save_IFS
15302
15303 ;;
15304 esac
15305 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15306 # in which case we are not to be found in the path.
15307 if test "x$as_myself" = x; then
15308 as_myself=$0
15309 fi
15310 if test ! -f "$as_myself"; then
15311 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15312 exit 1
15313 fi
15314
15315
15316
15317 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15318 # ----------------------------------------
15319 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15320 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15321 # script with STATUS, using 1 if that was 0.
15322 as_fn_error ()
15323 {
15324 as_status=$1; test $as_status -eq 0 && as_status=1
15325 if test "$4"; then
15326 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15328 fi
15329 printf "%s\n" "$as_me: error: $2" >&2
15330 as_fn_exit $as_status
15331 } # as_fn_error
15332
15333
15334 # as_fn_set_status STATUS
15335 # -----------------------
15336 # Set $? to STATUS, without forking.
15337 as_fn_set_status ()
15338 {
15339 return $1
15340 } # as_fn_set_status
15341
15342 # as_fn_exit STATUS
15343 # -----------------
15344 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15345 as_fn_exit ()
15346 {
15347 set +e
15348 as_fn_set_status $1
15349 exit $1
15350 } # as_fn_exit
15351
15352 # as_fn_unset VAR
15353 # ---------------
15354 # Portably unset VAR.
15355 as_fn_unset ()
15356 {
15357 { eval $1=; unset $1;}
15358 }
15359 as_unset=as_fn_unset
15360
15361 # as_fn_append VAR VALUE
15362 # ----------------------
15363 # Append the text in VALUE to the end of the definition contained in VAR. Take
15364 # advantage of any shell optimizations that allow amortized linear growth over
15365 # repeated appends, instead of the typical quadratic growth present in naive
15366 # implementations.
15367 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15368 then :
15369 eval 'as_fn_append ()
15370 {
15371 eval $1+=\$2
15372 }'
15373 else case e in #(
15374 e) as_fn_append ()
15375 {
15376 eval $1=\$$1\$2
15377 } ;;
15378 esac
15379 fi # as_fn_append
15380
15381 # as_fn_arith ARG...
15382 # ------------------
15383 # Perform arithmetic evaluation on the ARGs, and store the result in the
15384 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15385 # must be portable across $(()) and expr.
15386 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15387 then :
15388 eval 'as_fn_arith ()
15389 {
15390 as_val=$(( $* ))
15391 }'
15392 else case e in #(
15393 e) as_fn_arith ()
15394 {
15395 as_val=`expr "$@" || test $? -eq 1`
15396 } ;;
15397 esac
15398 fi # as_fn_arith
15399
15400
15401 if expr a : '\(a\)' >/dev/null 2>&1 &&
15402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15403 as_expr=expr
15404 else
15405 as_expr=false
15406 fi
15407
15408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15409 as_basename=basename
15410 else
15411 as_basename=false
15412 fi
15413
15414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15415 as_dirname=dirname
15416 else
15417 as_dirname=false
15418 fi
15419
15420 as_me=`$as_basename -- "$0" ||
15421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15422 X"$0" : 'X\(//\)$' \| \
15423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15424 printf "%s\n" X/"$0" |
15425 sed '/^.*\/\([^/][^/]*\)\/*$/{
15426 s//\1/
15427 q
15428 }
15429 /^X\/\(\/\/\)$/{
15430 s//\1/
15431 q
15432 }
15433 /^X\/\(\/\).*/{
15434 s//\1/
15435 q
15436 }
15437 s/.*/./; q'`
15438
15439 # Avoid depending upon Character Ranges.
15440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15443 as_cr_digits='0123456789'
15444 as_cr_alnum=$as_cr_Letters$as_cr_digits
15445
15446
15447 # Determine whether it's possible to make 'echo' print without a newline.
15448 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15449 # for compatibility with existing Makefiles.
15450 ECHO_C= ECHO_N= ECHO_T=
15451 case `echo -n x` in #(((((
15452 -n*)
15453 case `echo 'xy\c'` in
15454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15455 xy) ECHO_C='\c';;
15456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15457 ECHO_T=' ';;
15458 esac;;
15459 *)
15460 ECHO_N='-n';;
15461 esac
15462
15463 # For backward compatibility with old third-party macros, we provide
15464 # the shell variables $as_echo and $as_echo_n. New code should use
15465 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15466 as_echo='printf %s\n'
15467 as_echo_n='printf %s'
15468
15469 rm -f conf$$ conf$$.exe conf$$.file
15470 if test -d conf$$.dir; then
15471 rm -f conf$$.dir/conf$$.file
15472 else
15473 rm -f conf$$.dir
15474 mkdir conf$$.dir 2>/dev/null
15475 fi
15476 if (echo >conf$$.file) 2>/dev/null; then
15477 if ln -s conf$$.file conf$$ 2>/dev/null; then
15478 as_ln_s='ln -s'
15479 # ... but there are two gotchas:
15480 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15481 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15482 # In both cases, we have to default to 'cp -pR'.
15483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15484 as_ln_s='cp -pR'
15485 elif ln conf$$.file conf$$ 2>/dev/null; then
15486 as_ln_s=ln
15487 else
15488 as_ln_s='cp -pR'
15489 fi
15490 else
15491 as_ln_s='cp -pR'
15492 fi
15493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15494 rmdir conf$$.dir 2>/dev/null
15495
15496
15497 # as_fn_mkdir_p
15498 # -------------
15499 # Create "$as_dir" as a directory, including parents if necessary.
15500 as_fn_mkdir_p ()
15501 {
15502
15503 case $as_dir in #(
15504 -*) as_dir=./$as_dir;;
15505 esac
15506 test -d "$as_dir" || eval $as_mkdir_p || {
15507 as_dirs=
15508 while :; do
15509 case $as_dir in #(
15510 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15511 *) as_qdir=$as_dir;;
15512 esac
15513 as_dirs="'$as_qdir' $as_dirs"
15514 as_dir=`$as_dirname -- "$as_dir" ||
15515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15516 X"$as_dir" : 'X\(//\)[^/]' \| \
15517 X"$as_dir" : 'X\(//\)$' \| \
15518 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15519 printf "%s\n" X"$as_dir" |
15520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15521 s//\1/
15522 q
15523 }
15524 /^X\(\/\/\)[^/].*/{
15525 s//\1/
15526 q
15527 }
15528 /^X\(\/\/\)$/{
15529 s//\1/
15530 q
15531 }
15532 /^X\(\/\).*/{
15533 s//\1/
15534 q
15535 }
15536 s/.*/./; q'`
15537 test -d "$as_dir" && break
15538 done
15539 test -z "$as_dirs" || eval "mkdir $as_dirs"
15540 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15541
15542
15543 } # as_fn_mkdir_p
15544 if mkdir -p . 2>/dev/null; then
15545 as_mkdir_p='mkdir -p "$as_dir"'
15546 else
15547 test -d ./-p && rmdir ./-p
15548 as_mkdir_p=false
15549 fi
15550
15551
15552 # as_fn_executable_p FILE
15553 # -----------------------
15554 # Test if FILE is an executable regular file.
15555 as_fn_executable_p ()
15556 {
15557 test -f "$1" && test -x "$1"
15558 } # as_fn_executable_p
15559 as_test_x='test -x'
15560 as_executable_p=as_fn_executable_p
15561
15562 # Sed expression to map a string onto a valid CPP name.
15563 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15564 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15565
15566 # Sed expression to map a string onto a valid variable name.
15567 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15568 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15569
15570
15571 exec 6>&1
15572 ## ----------------------------------- ##
15573 ## Main body of $CONFIG_STATUS script. ##
15574 ## ----------------------------------- ##
15575 _ASEOF
15576 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15577
15578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15579 # Save the log message, to keep $0 and so on meaningful, and to
15580 # report actual input values of CONFIG_FILES etc. instead of their
15581 # values after options handling.
15582 ac_log="
15583 This file was extended by libevdev $as_me 1.13.6, which was
15584 generated by GNU Autoconf 2.72. Invocation command line was
15585
15586 CONFIG_FILES = $CONFIG_FILES
15587 CONFIG_HEADERS = $CONFIG_HEADERS
15588 CONFIG_LINKS = $CONFIG_LINKS
15589 CONFIG_COMMANDS = $CONFIG_COMMANDS
15590 $ $0 $@
15591
15592 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15593 "
15594
15595 _ACEOF
15596
15597 case $ac_config_files in *"
15598 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15599 esac
15600
15601 case $ac_config_headers in *"
15602 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15603 esac
15604
15605
15606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15607 # Files that config.status was made for.
15608 config_files="$ac_config_files"
15609 config_headers="$ac_config_headers"
15610 config_commands="$ac_config_commands"
15611
15612 _ACEOF
15613
15614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15615 ac_cs_usage="\
15616 '$as_me' instantiates files and other configuration actions
15617 from templates according to the current configuration. Unless the files
15618 and actions are specified as TAGs, all are instantiated by default.
15619
15620 Usage: $0 [OPTION]... [TAG]...
15621
15622 -h, --help print this help, then exit
15623 -V, --version print version number and configuration settings, then exit
15624 --config print configuration, then exit
15625 -q, --quiet, --silent
15626 do not print progress messages
15627 -d, --debug don't remove temporary files
15628 --recheck update $as_me by reconfiguring in the same conditions
15629 --file=FILE[:TEMPLATE]
15630 instantiate the configuration file FILE
15631 --header=FILE[:TEMPLATE]
15632 instantiate the configuration header FILE
15633
15634 Configuration files:
15635 $config_files
15636
15637 Configuration headers:
15638 $config_headers
15639
15640 Configuration commands:
15641 $config_commands
15642
15643 Report bugs to <https://gitlab.freedesktop.org/libevdev/libevdev/issues/>.
15644 libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>."
15645
15646 _ACEOF
15647 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15648 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15650 ac_cs_config='$ac_cs_config_escaped'
15651 ac_cs_version="\\
15652 libevdev config.status 1.13.6
15653 configured by $0, generated by GNU Autoconf 2.72,
15654 with options \\"\$ac_cs_config\\"
15655
15656 Copyright (C) 2023 Free Software Foundation, Inc.
15657 This config.status script is free software; the Free Software Foundation
15658 gives unlimited permission to copy, distribute and modify it."
15659
15660 ac_pwd='$ac_pwd'
15661 srcdir='$srcdir'
15662 INSTALL='$INSTALL'
15663 MKDIR_P='$MKDIR_P'
15664 AWK='$AWK'
15665 test -n "\$AWK" || AWK=awk
15666 _ACEOF
15667
15668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15669 # The default lists apply if the user does not specify any file.
15670 ac_need_defaults=:
15671 while test $# != 0
15672 do
15673 case $1 in
15674 --*=?*)
15675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15677 ac_shift=:
15678 ;;
15679 --*=)
15680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15681 ac_optarg=
15682 ac_shift=:
15683 ;;
15684 *)
15685 ac_option=$1
15686 ac_optarg=$2
15687 ac_shift=shift
15688 ;;
15689 esac
15690
15691 case $ac_option in
15692 # Handling of the options.
15693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15694 ac_cs_recheck=: ;;
15695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15696 printf "%s\n" "$ac_cs_version"; exit ;;
15697 --config | --confi | --conf | --con | --co | --c )
15698 printf "%s\n" "$ac_cs_config"; exit ;;
15699 --debug | --debu | --deb | --de | --d | -d )
15700 debug=: ;;
15701 --file | --fil | --fi | --f )
15702 $ac_shift
15703 case $ac_optarg in
15704 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15705 '') as_fn_error $? "missing file argument" ;;
15706 esac
15707 as_fn_append CONFIG_FILES " '$ac_optarg'"
15708 ac_need_defaults=false;;
15709 --header | --heade | --head | --hea )
15710 $ac_shift
15711 case $ac_optarg in
15712 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15713 esac
15714 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15715 ac_need_defaults=false;;
15716 --he | --h)
15717 # Conflict between --help and --header
15718 as_fn_error $? "ambiguous option: '$1'
15719 Try '$0 --help' for more information.";;
15720 --help | --hel | -h )
15721 printf "%s\n" "$ac_cs_usage"; exit ;;
15722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15724 ac_cs_silent=: ;;
15725
15726 # This is an error.
15727 -*) as_fn_error $? "unrecognized option: '$1'
15728 Try '$0 --help' for more information." ;;
15729
15730 *) as_fn_append ac_config_targets " $1"
15731 ac_need_defaults=false ;;
15732
15733 esac
15734 shift
15735 done
15736
15737 ac_configure_extra_args=
15738
15739 if $ac_cs_silent; then
15740 exec 6>/dev/null
15741 ac_configure_extra_args="$ac_configure_extra_args --silent"
15742 fi
15743
15744 _ACEOF
15745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15746 if \$ac_cs_recheck; then
15747 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15748 shift
15749 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15750 CONFIG_SHELL='$SHELL'
15751 export CONFIG_SHELL
15752 exec "\$@"
15753 fi
15754
15755 _ACEOF
15756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15757 exec 5>>config.log
15758 {
15759 echo
15760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15761 ## Running $as_me. ##
15762 _ASBOX
15763 printf "%s\n" "$ac_log"
15764 } >&5
15765
15766 _ACEOF
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 #
15769 # INIT-COMMANDS
15770 #
15771 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15772
15773
15774 # The HP-UX ksh and POSIX shell print the target directory to stdout
15775 # if CDPATH is set.
15776 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15777
15778 sed_quote_subst='$sed_quote_subst'
15779 double_quote_subst='$double_quote_subst'
15780 delay_variable_subst='$delay_variable_subst'
15781 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15782 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15783 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15784 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15785 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15786 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15787 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15788 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15789 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15790 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15791 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15792 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15793 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15794 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15795 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15796 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15797 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15798 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15799 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15800 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15801 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15802 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15803 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15804 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15805 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15806 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15807 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15808 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15809 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15810 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15811 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15812 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15813 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15814 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15815 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15816 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15817 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15818 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15819 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15820 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15821 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15822 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15823 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15824 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15825 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15826 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15827 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15828 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15829 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15830 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15831 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15832 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15833 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15834 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15835 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15836 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15837 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15838 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15839 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15840 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15841 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"`'
15842 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15843 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15844 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15845 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15846 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15847 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15848 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15849 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15850 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15851 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15852 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15853 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15854 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15855 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15856 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15857 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15858 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15859 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15860 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15861 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15862 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15863 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15864 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15865 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15866 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15867 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15868 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15869 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15870 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15871 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15872 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15873 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15874 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15875 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15876 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15877 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15878 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15879 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15880 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15881 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15882 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15883 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15884 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15885 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15886 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15887 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15888 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15889 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15890 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15891 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15892 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15893 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15894 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15895 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15896 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15897 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15898 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15899 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15900 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15901 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15902 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15903 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15904 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15905 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15906 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15907 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15908 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15909 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15910 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15911 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15912 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15913 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15914 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15915 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15916 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15917 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15918
15919 LTCC='$LTCC'
15920 LTCFLAGS='$LTCFLAGS'
15921 compiler='$compiler_DEFAULT'
15922
15923 # A function that is used when there is no print builtin or printf.
15924 func_fallback_echo ()
15925 {
15926 eval 'cat <<_LTECHO_EOF
15927 \$1
15928 _LTECHO_EOF'
15929 }
15930
15931 # Quote evaled strings.
15932 for var in SHELL \
15933 ECHO \
15934 PATH_SEPARATOR \
15935 SED \
15936 GREP \
15937 EGREP \
15938 FGREP \
15939 LD \
15940 NM \
15941 LN_S \
15942 lt_SP2NL \
15943 lt_NL2SP \
15944 reload_flag \
15945 FILECMD \
15946 OBJDUMP \
15947 deplibs_check_method \
15948 file_magic_cmd \
15949 file_magic_glob \
15950 want_nocaseglob \
15951 DLLTOOL \
15952 sharedlib_from_linklib_cmd \
15953 AR \
15954 archiver_list_spec \
15955 STRIP \
15956 RANLIB \
15957 CC \
15958 CFLAGS \
15959 compiler \
15960 lt_cv_sys_global_symbol_pipe \
15961 lt_cv_sys_global_symbol_to_cdecl \
15962 lt_cv_sys_global_symbol_to_import \
15963 lt_cv_sys_global_symbol_to_c_name_address \
15964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15965 lt_cv_nm_interface \
15966 nm_file_list_spec \
15967 lt_cv_truncate_bin \
15968 lt_prog_compiler_no_builtin_flag \
15969 lt_prog_compiler_pic \
15970 lt_prog_compiler_wl \
15971 lt_prog_compiler_static \
15972 lt_cv_prog_compiler_c_o \
15973 need_locks \
15974 MANIFEST_TOOL \
15975 DSYMUTIL \
15976 NMEDIT \
15977 LIPO \
15978 OTOOL \
15979 OTOOL64 \
15980 shrext_cmds \
15981 export_dynamic_flag_spec \
15982 whole_archive_flag_spec \
15983 compiler_needs_object \
15984 with_gnu_ld \
15985 allow_undefined_flag \
15986 no_undefined_flag \
15987 hardcode_libdir_flag_spec \
15988 hardcode_libdir_separator \
15989 exclude_expsyms \
15990 include_expsyms \
15991 file_list_spec \
15992 variables_saved_for_relink \
15993 libname_spec \
15994 library_names_spec \
15995 soname_spec \
15996 install_override_mode \
15997 finish_eval \
15998 old_striplib \
15999 striplib; do
16000 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16001 *[\\\\\\\`\\"\\\$]*)
16002 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16003 ;;
16004 *)
16005 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16006 ;;
16007 esac
16008 done
16009
16010 # Double-quote double-evaled strings.
16011 for var in reload_cmds \
16012 old_postinstall_cmds \
16013 old_postuninstall_cmds \
16014 old_archive_cmds \
16015 extract_expsyms_cmds \
16016 old_archive_from_new_cmds \
16017 old_archive_from_expsyms_cmds \
16018 archive_cmds \
16019 archive_expsym_cmds \
16020 module_cmds \
16021 module_expsym_cmds \
16022 export_symbols_cmds \
16023 prelink_cmds \
16024 postlink_cmds \
16025 postinstall_cmds \
16026 postuninstall_cmds \
16027 finish_cmds \
16028 sys_lib_search_path_spec \
16029 configure_time_dlsearch_path \
16030 configure_time_lt_sys_library_path; do
16031 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16032 *[\\\\\\\`\\"\\\$]*)
16033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16034 ;;
16035 *)
16036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16037 ;;
16038 esac
16039 done
16040
16041 ac_aux_dir='$ac_aux_dir'
16042
16043 # See if we are running on zsh, and set the options that allow our
16044 # commands through without removal of \ escapes INIT.
16045 if test -n "\${ZSH_VERSION+set}"; then
16046 setopt NO_GLOB_SUBST
16047 fi
16048
16049
16050 PACKAGE='$PACKAGE'
16051 VERSION='$VERSION'
16052 RM='$RM'
16053 ofile='$ofile'
16054
16055
16056
16057
16058 _ACEOF
16059
16060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16061
16062 # Handling of arguments.
16063 for ac_config_target in $ac_config_targets
16064 do
16065 case $ac_config_target in
16066 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16067 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16068 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16069 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16070 "libevdev/Makefile") CONFIG_FILES="$CONFIG_FILES libevdev/Makefile" ;;
16071 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16072 "doc/libevdev.doxygen") CONFIG_FILES="$CONFIG_FILES doc/libevdev.doxygen" ;;
16073 "doc/libevdev.man") CONFIG_FILES="$CONFIG_FILES doc/libevdev.man" ;;
16074 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16075 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16076 "libevdev.pc") CONFIG_FILES="$CONFIG_FILES libevdev.pc" ;;
16077
16078 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16079 esac
16080 done
16081
16082
16083 # If the user did not use the arguments to specify the items to instantiate,
16084 # then the envvar interface is used. Set only those that are not.
16085 # We use the long form for the default assignment because of an extremely
16086 # bizarre bug on SunOS 4.1.3.
16087 if $ac_need_defaults; then
16088 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16089 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16090 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16091 fi
16092
16093 # Have a temporary directory for convenience. Make it in the build tree
16094 # simply because there is no reason against having it here, and in addition,
16095 # creating and moving files from /tmp can sometimes cause problems.
16096 # Hook for its removal unless debugging.
16097 # Note that there is a small window in which the directory will not be cleaned:
16098 # after its creation but before its name has been assigned to '$tmp'.
16099 $debug ||
16100 {
16101 tmp= ac_tmp=
16102 trap 'exit_status=$?
16103 : "${ac_tmp:=$tmp}"
16104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16105 ' 0
16106 trap 'as_fn_exit 1' 1 2 13 15
16107 }
16108 # Create a (secure) tmp directory for tmp files.
16109
16110 {
16111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16112 test -d "$tmp"
16113 } ||
16114 {
16115 tmp=./conf$$-$RANDOM
16116 (umask 077 && mkdir "$tmp")
16117 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16118 ac_tmp=$tmp
16119
16120 # Set up the scripts for CONFIG_FILES section.
16121 # No need to generate them if there are no CONFIG_FILES.
16122 # This happens for instance with './config.status config.h'.
16123 if test -n "$CONFIG_FILES"; then
16124
16125
16126 ac_cr=`echo X | tr X '\015'`
16127 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16128 # But we know of no other shell where ac_cr would be empty at this
16129 # point, so we can use a bashism as a fallback.
16130 if test "x$ac_cr" = x; then
16131 eval ac_cr=\$\'\\r\'
16132 fi
16133 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16134 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16135 ac_cs_awk_cr='\\r'
16136 else
16137 ac_cs_awk_cr=$ac_cr
16138 fi
16139
16140 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16141 _ACEOF
16142
16143
16144 {
16145 echo "cat >conf$$subs.awk <<_ACEOF" &&
16146 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16147 echo "_ACEOF"
16148 } >conf$$subs.sh ||
16149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16150 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16151 ac_delim='%!_!# '
16152 for ac_last_try in false false false false false :; do
16153 . ./conf$$subs.sh ||
16154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16155
16156 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16157 if test $ac_delim_n = $ac_delim_num; then
16158 break
16159 elif $ac_last_try; then
16160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16161 else
16162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16163 fi
16164 done
16165 rm -f conf$$subs.sh
16166
16167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16168 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16169 _ACEOF
16170 sed -n '
16171 h
16172 s/^/S["/; s/!.*/"]=/
16173 p
16174 g
16175 s/^[^!]*!//
16176 :repl
16177 t repl
16178 s/'"$ac_delim"'$//
16179 t delim
16180 :nl
16181 h
16182 s/\(.\{148\}\)..*/\1/
16183 t more1
16184 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16185 p
16186 n
16187 b repl
16188 :more1
16189 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16190 p
16191 g
16192 s/.\{148\}//
16193 t nl
16194 :delim
16195 h
16196 s/\(.\{148\}\)..*/\1/
16197 t more2
16198 s/["\\]/\\&/g; s/^/"/; s/$/"/
16199 p
16200 b
16201 :more2
16202 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16203 p
16204 g
16205 s/.\{148\}//
16206 t delim
16207 ' <conf$$subs.awk | sed '
16208 /^[^""]/{
16209 N
16210 s/\n//
16211 }
16212 ' >>$CONFIG_STATUS || ac_write_fail=1
16213 rm -f conf$$subs.awk
16214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16215 _ACAWK
16216 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16217 for (key in S) S_is_set[key] = 1
16218 FS = ""
16219
16220 }
16221 {
16222 line = $ 0
16223 nfields = split(line, field, "@")
16224 substed = 0
16225 len = length(field[1])
16226 for (i = 2; i < nfields; i++) {
16227 key = field[i]
16228 keylen = length(key)
16229 if (S_is_set[key]) {
16230 value = S[key]
16231 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16232 len += length(value) + length(field[++i])
16233 substed = 1
16234 } else
16235 len += 1 + keylen
16236 }
16237
16238 print line
16239 }
16240
16241 _ACAWK
16242 _ACEOF
16243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16246 else
16247 cat
16248 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16249 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16250 _ACEOF
16251
16252 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16253 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16254 # trailing colons and then remove the whole line if VPATH becomes empty
16255 # (actually we leave an empty line to preserve line numbers).
16256 if test "x$srcdir" = x.; then
16257 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16258 h
16259 s///
16260 s/^/:/
16261 s/[ ]*$/:/
16262 s/:\$(srcdir):/:/g
16263 s/:\${srcdir}:/:/g
16264 s/:@srcdir@:/:/g
16265 s/^:*//
16266 s/:*$//
16267 x
16268 s/\(=[ ]*\).*/\1/
16269 G
16270 s/\n//
16271 s/^[^=]*=[ ]*$//
16272 }'
16273 fi
16274
16275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16276 fi # test -n "$CONFIG_FILES"
16277
16278 # Set up the scripts for CONFIG_HEADERS section.
16279 # No need to generate them if there are no CONFIG_HEADERS.
16280 # This happens for instance with './config.status Makefile'.
16281 if test -n "$CONFIG_HEADERS"; then
16282 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16283 BEGIN {
16284 _ACEOF
16285
16286 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16287 # here-document in config.status, that substitutes the proper values into
16288 # config.h.in to produce config.h.
16289
16290 # Create a delimiter string that does not exist in confdefs.h, to ease
16291 # handling of long lines.
16292 ac_delim='%!_!# '
16293 for ac_last_try in false false :; do
16294 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16295 if test -z "$ac_tt"; then
16296 break
16297 elif $ac_last_try; then
16298 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16299 else
16300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16301 fi
16302 done
16303
16304 # For the awk script, D is an array of macro values keyed by name,
16305 # likewise P contains macro parameters if any. Preserve backslash
16306 # newline sequences.
16307
16308 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16309 sed -n '
16310 s/.\{148\}/&'"$ac_delim"'/g
16311 t rset
16312 :rset
16313 s/^[ ]*#[ ]*define[ ][ ]*/ /
16314 t def
16315 d
16316 :def
16317 s/\\$//
16318 t bsnl
16319 s/["\\]/\\&/g
16320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16321 D["\1"]=" \3"/p
16322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16323 d
16324 :bsnl
16325 s/["\\]/\\&/g
16326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16327 D["\1"]=" \3\\\\\\n"\\/p
16328 t cont
16329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16330 t cont
16331 d
16332 :cont
16333 n
16334 s/.\{148\}/&'"$ac_delim"'/g
16335 t clear
16336 :clear
16337 s/\\$//
16338 t bsnlc
16339 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16340 d
16341 :bsnlc
16342 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16343 b cont
16344 ' <confdefs.h | sed '
16345 s/'"$ac_delim"'/"\\\
16346 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16347
16348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349 for (key in D) D_is_set[key] = 1
16350 FS = ""
16351 }
16352 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16353 line = \$ 0
16354 split(line, arg, " ")
16355 if (arg[1] == "#") {
16356 defundef = arg[2]
16357 mac1 = arg[3]
16358 } else {
16359 defundef = substr(arg[1], 2)
16360 mac1 = arg[2]
16361 }
16362 split(mac1, mac2, "(") #)
16363 macro = mac2[1]
16364 prefix = substr(line, 1, index(line, defundef) - 1)
16365 if (D_is_set[macro]) {
16366 # Preserve the white space surrounding the "#".
16367 print prefix "define", macro P[macro] D[macro]
16368 next
16369 } else {
16370 # Replace #undef with comments. This is necessary, for example,
16371 # in the case of _POSIX_SOURCE, which is predefined and required
16372 # on some systems where configure will not decide to define it.
16373 if (defundef == "undef") {
16374 print "/*", prefix defundef, macro, "*/"
16375 next
16376 }
16377 }
16378 }
16379 { print }
16380 _ACAWK
16381 _ACEOF
16382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16383 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16384 fi # test -n "$CONFIG_HEADERS"
16385
16386
16387 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16388 shift
16389 for ac_tag
16390 do
16391 case $ac_tag in
16392 :[FHLC]) ac_mode=$ac_tag; continue;;
16393 esac
16394 case $ac_mode$ac_tag in
16395 :[FHL]*:*);;
16396 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16397 :[FH]-) ac_tag=-:-;;
16398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16399 esac
16400 ac_save_IFS=$IFS
16401 IFS=:
16402 set x $ac_tag
16403 IFS=$ac_save_IFS
16404 shift
16405 ac_file=$1
16406 shift
16407
16408 case $ac_mode in
16409 :L) ac_source=$1;;
16410 :[FH])
16411 ac_file_inputs=
16412 for ac_f
16413 do
16414 case $ac_f in
16415 -) ac_f="$ac_tmp/stdin";;
16416 *) # Look for the file first in the build tree, then in the source tree
16417 # (if the path is not absolute). The absolute path cannot be DOS-style,
16418 # because $ac_f cannot contain ':'.
16419 test -f "$ac_f" ||
16420 case $ac_f in
16421 [\\/$]*) false;;
16422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16423 esac ||
16424 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16425 esac
16426 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16427 as_fn_append ac_file_inputs " '$ac_f'"
16428 done
16429
16430 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16431 # use $as_me), people would be surprised to read:
16432 # /* config.h. Generated by config.status. */
16433 configure_input='Generated from '`
16434 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16435 `' by configure.'
16436 if test x"$ac_file" != x-; then
16437 configure_input="$ac_file. $configure_input"
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16439 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16440 fi
16441 # Neutralize special characters interpreted by sed in replacement strings.
16442 case $configure_input in #(
16443 *\&* | *\|* | *\\* )
16444 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16445 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16446 *) ac_sed_conf_input=$configure_input;;
16447 esac
16448
16449 case $ac_tag in
16450 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16452 esac
16453 ;;
16454 esac
16455
16456 ac_dir=`$as_dirname -- "$ac_file" ||
16457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16458 X"$ac_file" : 'X\(//\)[^/]' \| \
16459 X"$ac_file" : 'X\(//\)$' \| \
16460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16461 printf "%s\n" X"$ac_file" |
16462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16463 s//\1/
16464 q
16465 }
16466 /^X\(\/\/\)[^/].*/{
16467 s//\1/
16468 q
16469 }
16470 /^X\(\/\/\)$/{
16471 s//\1/
16472 q
16473 }
16474 /^X\(\/\).*/{
16475 s//\1/
16476 q
16477 }
16478 s/.*/./; q'`
16479 as_dir="$ac_dir"; as_fn_mkdir_p
16480 ac_builddir=.
16481
16482 case "$ac_dir" in
16483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16484 *)
16485 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16486 # A ".." for each directory in $ac_dir_suffix.
16487 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16488 case $ac_top_builddir_sub in
16489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16491 esac ;;
16492 esac
16493 ac_abs_top_builddir=$ac_pwd
16494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16495 # for backward compatibility:
16496 ac_top_builddir=$ac_top_build_prefix
16497
16498 case $srcdir in
16499 .) # We are building in place.
16500 ac_srcdir=.
16501 ac_top_srcdir=$ac_top_builddir_sub
16502 ac_abs_top_srcdir=$ac_pwd ;;
16503 [\\/]* | ?:[\\/]* ) # Absolute name.
16504 ac_srcdir=$srcdir$ac_dir_suffix;
16505 ac_top_srcdir=$srcdir
16506 ac_abs_top_srcdir=$srcdir ;;
16507 *) # Relative name.
16508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16509 ac_top_srcdir=$ac_top_build_prefix$srcdir
16510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16511 esac
16512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16513
16514
16515 case $ac_mode in
16516 :F)
16517 #
16518 # CONFIG_FILE
16519 #
16520
16521 case $INSTALL in
16522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16523 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16524 esac
16525 ac_MKDIR_P=$MKDIR_P
16526 case $MKDIR_P in
16527 [\\/$]* | ?:[\\/]* ) ;;
16528 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16529 esac
16530 _ACEOF
16531
16532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16533 # If the template does not know about datarootdir, expand it.
16534 # FIXME: This hack should be removed a few years after 2.60.
16535 ac_datarootdir_hack=; ac_datarootdir_seen=
16536 ac_sed_dataroot='
16537 /datarootdir/ {
16538 p
16539 q
16540 }
16541 /@datadir@/p
16542 /@docdir@/p
16543 /@infodir@/p
16544 /@localedir@/p
16545 /@mandir@/p'
16546 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16547 *datarootdir*) ac_datarootdir_seen=yes;;
16548 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16550 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16551 _ACEOF
16552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16553 ac_datarootdir_hack='
16554 s&@datadir@&$datadir&g
16555 s&@docdir@&$docdir&g
16556 s&@infodir@&$infodir&g
16557 s&@localedir@&$localedir&g
16558 s&@mandir@&$mandir&g
16559 s&\\\${datarootdir}&$datarootdir&g' ;;
16560 esac
16561 _ACEOF
16562
16563 # Neutralize VPATH when '$srcdir' = '.'.
16564 # Shell code in configure.ac might set extrasub.
16565 # FIXME: do we really want to maintain this feature?
16566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16567 ac_sed_extra="$ac_vpsub
16568 $extrasub
16569 _ACEOF
16570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16571 :t
16572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16573 s|@configure_input@|$ac_sed_conf_input|;t t
16574 s&@top_builddir@&$ac_top_builddir_sub&;t t
16575 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16576 s&@srcdir@&$ac_srcdir&;t t
16577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16578 s&@top_srcdir@&$ac_top_srcdir&;t t
16579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16580 s&@builddir@&$ac_builddir&;t t
16581 s&@abs_builddir@&$ac_abs_builddir&;t t
16582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16583 s&@INSTALL@&$ac_INSTALL&;t t
16584 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16585 $ac_datarootdir_hack
16586 "
16587 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16588 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16589
16590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16591 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16593 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16595 which seems to be undefined. Please make sure it is defined" >&5
16596 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16597 which seems to be undefined. Please make sure it is defined" >&2;}
16598
16599 rm -f "$ac_tmp/stdin"
16600 case $ac_file in
16601 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16602 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16603 esac \
16604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16605 ;;
16606 :H)
16607 #
16608 # CONFIG_HEADER
16609 #
16610 if test x"$ac_file" != x-; then
16611 {
16612 printf "%s\n" "/* $configure_input */" >&1 \
16613 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16614 } >"$ac_tmp/config.h" \
16615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16616 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16618 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16619 else
16620 rm -f "$ac_file"
16621 mv "$ac_tmp/config.h" "$ac_file" \
16622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16623 fi
16624 else
16625 printf "%s\n" "/* $configure_input */" >&1 \
16626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16627 || as_fn_error $? "could not create -" "$LINENO" 5
16628 fi
16629 # Compute "$ac_file"'s index in $config_headers.
16630 _am_arg="$ac_file"
16631 _am_stamp_count=1
16632 for _am_header in $config_headers :; do
16633 case $_am_header in
16634 $_am_arg | $_am_arg:* )
16635 break ;;
16636 * )
16637 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16638 esac
16639 done
16640 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16641 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16642 X"$_am_arg" : 'X\(//\)[^/]' \| \
16643 X"$_am_arg" : 'X\(//\)$' \| \
16644 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16645 printf "%s\n" X"$_am_arg" |
16646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16647 s//\1/
16648 q
16649 }
16650 /^X\(\/\/\)[^/].*/{
16651 s//\1/
16652 q
16653 }
16654 /^X\(\/\/\)$/{
16655 s//\1/
16656 q
16657 }
16658 /^X\(\/\).*/{
16659 s//\1/
16660 q
16661 }
16662 s/.*/./; q'`/stamp-h$_am_stamp_count
16663 ;;
16664
16665 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16666 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16667 ;;
16668 esac
16669
16670
16671 case $ac_file$ac_mode in
16672 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16673 # Older Autoconf quotes --file arguments for eval, but not when files
16674 # are listed without --file. Let's play safe and only enable the eval
16675 # if we detect the quoting.
16676 # TODO: see whether this extra hack can be removed once we start
16677 # requiring Autoconf 2.70 or later.
16678 case $CONFIG_FILES in #(
16679 *\'*) :
16680 eval set x "$CONFIG_FILES" ;; #(
16681 *) :
16682 set x $CONFIG_FILES ;; #(
16683 *) :
16684 ;;
16685 esac
16686 shift
16687 # Used to flag and report bootstrapping failures.
16688 am_rc=0
16689 for am_mf
16690 do
16691 # Strip MF so we end up with the name of the file.
16692 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16693 # Check whether this is an Automake generated Makefile which includes
16694 # dependency-tracking related rules and includes.
16695 # Grep'ing the whole file directly is not great: AIX grep has a line
16696 # limit of 2048, but all sed's we know have understand at least 4000.
16697 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16698 || continue
16699 am_dirpart=`$as_dirname -- "$am_mf" ||
16700 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16701 X"$am_mf" : 'X\(//\)[^/]' \| \
16702 X"$am_mf" : 'X\(//\)$' \| \
16703 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16704 printf "%s\n" X"$am_mf" |
16705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16706 s//\1/
16707 q
16708 }
16709 /^X\(\/\/\)[^/].*/{
16710 s//\1/
16711 q
16712 }
16713 /^X\(\/\/\)$/{
16714 s//\1/
16715 q
16716 }
16717 /^X\(\/\).*/{
16718 s//\1/
16719 q
16720 }
16721 s/.*/./; q'`
16722 am_filepart=`$as_basename -- "$am_mf" ||
16723 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16724 X"$am_mf" : 'X\(//\)$' \| \
16725 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16726 printf "%s\n" X/"$am_mf" |
16727 sed '/^.*\/\([^/][^/]*\)\/*$/{
16728 s//\1/
16729 q
16730 }
16731 /^X\/\(\/\/\)$/{
16732 s//\1/
16733 q
16734 }
16735 /^X\/\(\/\).*/{
16736 s//\1/
16737 q
16738 }
16739 s/.*/./; q'`
16740 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16741 && sed -e '/# am--include-marker/d' "$am_filepart" \
16742 | $MAKE -f - am--depfiles" >&5
16743 (cd "$am_dirpart" \
16744 && sed -e '/# am--include-marker/d' "$am_filepart" \
16745 | $MAKE -f - am--depfiles) >&5 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } || am_rc=$?
16749 done
16750 if test $am_rc -ne 0; then
16751 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16752 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16753 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16754 for automatic dependency tracking. If GNU make was not used, consider
16755 re-running the configure script with MAKE=\"gmake\" (or whatever is
16756 necessary). You can also try re-running configure with the
16757 '--disable-dependency-tracking' option to at least be able to build
16758 the package (albeit without support for automatic dependency tracking).
16759 See 'config.log' for more details" "$LINENO" 5; }
16760 fi
16761 { am_dirpart=; unset am_dirpart;}
16762 { am_filepart=; unset am_filepart;}
16763 { am_mf=; unset am_mf;}
16764 { am_rc=; unset am_rc;}
16765 rm -f conftest-deps.mk
16766 }
16767 ;;
16768 "libtool":C)
16769
16770 # See if we are running on zsh, and set the options that allow our
16771 # commands through without removal of \ escapes.
16772 if test -n "${ZSH_VERSION+set}"; then
16773 setopt NO_GLOB_SUBST
16774 fi
16775
16776 cfgfile=${ofile}T
16777 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16778 $RM "$cfgfile"
16779
16780 cat <<_LT_EOF >> "$cfgfile"
16781 #! $SHELL
16782 # Generated automatically by $as_me ($PACKAGE) $VERSION
16783 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16784
16785 # Provide generalized library-building support services.
16786 # Written by Gordon Matzigkeit, 1996
16787
16788 # Copyright (C) 2024 Free Software Foundation, Inc.
16789 # This is free software; see the source for copying conditions. There is NO
16790 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16791
16792 # GNU Libtool is free software; you can redistribute it and/or modify
16793 # it under the terms of the GNU General Public License as published by
16794 # the Free Software Foundation; either version 2 of the License, or
16795 # (at your option) any later version.
16796 #
16797 # As a special exception to the GNU General Public License, if you
16798 # distribute this file as part of a program or library that is built
16799 # using GNU Libtool, you may include this file under the same
16800 # distribution terms that you use for the rest of that program.
16801 #
16802 # GNU Libtool is distributed in the hope that it will be useful, but
16803 # WITHOUT ANY WARRANTY; without even the implied warranty of
16804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16805 # GNU General Public License for more details.
16806 #
16807 # You should have received a copy of the GNU General Public License
16808 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16809
16810
16811 # The names of the tagged configurations supported by this script.
16812 available_tags=''
16813
16814 # Configured defaults for sys_lib_dlsearch_path munging.
16815 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16816
16817 # ### BEGIN LIBTOOL CONFIG
16818
16819 # Which release of libtool.m4 was used?
16820 macro_version=$macro_version
16821 macro_revision=$macro_revision
16822
16823 # Whether or not to build shared libraries.
16824 build_libtool_libs=$enable_shared
16825
16826 # Whether or not to build static libraries.
16827 build_old_libs=$enable_static
16828
16829 # What type of objects to build.
16830 pic_mode=$pic_mode
16831
16832 # Whether or not to optimize for fast installation.
16833 fast_install=$enable_fast_install
16834
16835 # Shared archive member basename,for filename based shared library versioning on AIX.
16836 shared_archive_member_spec=$shared_archive_member_spec
16837
16838 # Shell to use when invoking shell scripts.
16839 SHELL=$lt_SHELL
16840
16841 # An echo program that protects backslashes.
16842 ECHO=$lt_ECHO
16843
16844 # The PATH separator for the build system.
16845 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16846
16847 # The host system.
16848 host_alias=$host_alias
16849 host=$host
16850 host_os=$host_os
16851
16852 # The build system.
16853 build_alias=$build_alias
16854 build=$build
16855 build_os=$build_os
16856
16857 # A sed program that does not truncate output.
16858 SED=$lt_SED
16859
16860 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16861 Xsed="\$SED -e 1s/^X//"
16862
16863 # A grep program that handles long lines.
16864 GREP=$lt_GREP
16865
16866 # An ERE matcher.
16867 EGREP=$lt_EGREP
16868
16869 # A literal string matcher.
16870 FGREP=$lt_FGREP
16871
16872 # A BSD- or MS-compatible name lister.
16873 NM=$lt_NM
16874
16875 # Whether we need soft or hard links.
16876 LN_S=$lt_LN_S
16877
16878 # What is the maximum length of a command?
16879 max_cmd_len=$max_cmd_len
16880
16881 # Object file suffix (normally "o").
16882 objext=$ac_objext
16883
16884 # Executable file suffix (normally "").
16885 exeext=$exeext
16886
16887 # whether the shell understands "unset".
16888 lt_unset=$lt_unset
16889
16890 # turn spaces into newlines.
16891 SP2NL=$lt_lt_SP2NL
16892
16893 # turn newlines into spaces.
16894 NL2SP=$lt_lt_NL2SP
16895
16896 # convert \$build file names to \$host format.
16897 to_host_file_cmd=$lt_cv_to_host_file_cmd
16898
16899 # convert \$build files to toolchain format.
16900 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16901
16902 # A file(cmd) program that detects file types.
16903 FILECMD=$lt_FILECMD
16904
16905 # An object symbol dumper.
16906 OBJDUMP=$lt_OBJDUMP
16907
16908 # Method to check whether dependent libraries are shared objects.
16909 deplibs_check_method=$lt_deplibs_check_method
16910
16911 # Command to use when deplibs_check_method = "file_magic".
16912 file_magic_cmd=$lt_file_magic_cmd
16913
16914 # How to find potential files when deplibs_check_method = "file_magic".
16915 file_magic_glob=$lt_file_magic_glob
16916
16917 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16918 want_nocaseglob=$lt_want_nocaseglob
16919
16920 # DLL creation program.
16921 DLLTOOL=$lt_DLLTOOL
16922
16923 # Command to associate shared and link libraries.
16924 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16925
16926 # The archiver.
16927 AR=$lt_AR
16928
16929 # Flags to create an archive (by configure).
16930 lt_ar_flags=$lt_ar_flags
16931
16932 # Flags to create an archive.
16933 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16934
16935 # How to feed a file listing to the archiver.
16936 archiver_list_spec=$lt_archiver_list_spec
16937
16938 # A symbol stripping program.
16939 STRIP=$lt_STRIP
16940
16941 # Commands used to install an old-style archive.
16942 RANLIB=$lt_RANLIB
16943 old_postinstall_cmds=$lt_old_postinstall_cmds
16944 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16945
16946 # Whether to use a lock for old archive extraction.
16947 lock_old_archive_extraction=$lock_old_archive_extraction
16948
16949 # A C compiler.
16950 LTCC=$lt_CC
16951
16952 # LTCC compiler flags.
16953 LTCFLAGS=$lt_CFLAGS
16954
16955 # Take the output of nm and produce a listing of raw symbols and C names.
16956 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16957
16958 # Transform the output of nm in a proper C declaration.
16959 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16960
16961 # Transform the output of nm into a list of symbols to manually relocate.
16962 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16963
16964 # Transform the output of nm in a C name address pair.
16965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16966
16967 # Transform the output of nm in a C name address pair when lib prefix is needed.
16968 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16969
16970 # The name lister interface.
16971 nm_interface=$lt_lt_cv_nm_interface
16972
16973 # Specify filename containing input files for \$NM.
16974 nm_file_list_spec=$lt_nm_file_list_spec
16975
16976 # The root where to search for dependent libraries,and where our libraries should be installed.
16977 lt_sysroot=$lt_sysroot
16978
16979 # Command to truncate a binary pipe.
16980 lt_truncate_bin=$lt_lt_cv_truncate_bin
16981
16982 # The name of the directory that contains temporary libtool files.
16983 objdir=$objdir
16984
16985 # Used to examine libraries when file_magic_cmd begins with "file".
16986 MAGIC_CMD=$MAGIC_CMD
16987
16988 # Must we lock files when doing compilation?
16989 need_locks=$lt_need_locks
16990
16991 # Manifest tool.
16992 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16993
16994 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16995 DSYMUTIL=$lt_DSYMUTIL
16996
16997 # Tool to change global to local symbols on Mac OS X.
16998 NMEDIT=$lt_NMEDIT
16999
17000 # Tool to manipulate fat objects and archives on Mac OS X.
17001 LIPO=$lt_LIPO
17002
17003 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17004 OTOOL=$lt_OTOOL
17005
17006 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17007 OTOOL64=$lt_OTOOL64
17008
17009 # Old archive suffix (normally "a").
17010 libext=$libext
17011
17012 # Shared library suffix (normally ".so").
17013 shrext_cmds=$lt_shrext_cmds
17014
17015 # The commands to extract the exported symbol list from a shared archive.
17016 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17017
17018 # Variables whose values should be saved in libtool wrapper scripts and
17019 # restored at link time.
17020 variables_saved_for_relink=$lt_variables_saved_for_relink
17021
17022 # Do we need the "lib" prefix for modules?
17023 need_lib_prefix=$need_lib_prefix
17024
17025 # Do we need a version for libraries?
17026 need_version=$need_version
17027
17028 # Library versioning type.
17029 version_type=$version_type
17030
17031 # Shared library runtime path variable.
17032 runpath_var=$runpath_var
17033
17034 # Shared library path variable.
17035 shlibpath_var=$shlibpath_var
17036
17037 # Is shlibpath searched before the hard-coded library search path?
17038 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17039
17040 # Format of library name prefix.
17041 libname_spec=$lt_libname_spec
17042
17043 # List of archive names. First name is the real one, the rest are links.
17044 # The last name is the one that the linker finds with -lNAME
17045 library_names_spec=$lt_library_names_spec
17046
17047 # The coded name of the library, if different from the real name.
17048 soname_spec=$lt_soname_spec
17049
17050 # Permission mode override for installation of shared libraries.
17051 install_override_mode=$lt_install_override_mode
17052
17053 # Command to use after installation of a shared archive.
17054 postinstall_cmds=$lt_postinstall_cmds
17055
17056 # Command to use after uninstallation of a shared archive.
17057 postuninstall_cmds=$lt_postuninstall_cmds
17058
17059 # Commands used to finish a libtool library installation in a directory.
17060 finish_cmds=$lt_finish_cmds
17061
17062 # As "finish_cmds", except a single script fragment to be evaled but
17063 # not shown.
17064 finish_eval=$lt_finish_eval
17065
17066 # Whether we should hardcode library paths into libraries.
17067 hardcode_into_libs=$hardcode_into_libs
17068
17069 # Compile-time system search path for libraries.
17070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17071
17072 # Detected run-time system search path for libraries.
17073 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17074
17075 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17076 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17077
17078 # Whether dlopen is supported.
17079 dlopen_support=$enable_dlopen
17080
17081 # Whether dlopen of programs is supported.
17082 dlopen_self=$enable_dlopen_self
17083
17084 # Whether dlopen of statically linked programs is supported.
17085 dlopen_self_static=$enable_dlopen_self_static
17086
17087 # Commands to strip libraries.
17088 old_striplib=$lt_old_striplib
17089 striplib=$lt_striplib
17090
17091
17092 # The linker used to build libraries.
17093 LD=$lt_LD
17094
17095 # How to create reloadable object files.
17096 reload_flag=$lt_reload_flag
17097 reload_cmds=$lt_reload_cmds
17098
17099 # Commands used to build an old-style archive.
17100 old_archive_cmds=$lt_old_archive_cmds
17101
17102 # A language specific compiler.
17103 CC=$lt_compiler
17104
17105 # Is the compiler the GNU compiler?
17106 with_gcc=$GCC
17107
17108 # Compiler flag to turn off builtin functions.
17109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17110
17111 # Additional compiler flags for building library objects.
17112 pic_flag=$lt_lt_prog_compiler_pic
17113
17114 # How to pass a linker flag through the compiler.
17115 wl=$lt_lt_prog_compiler_wl
17116
17117 # Compiler flag to prevent dynamic linking.
17118 link_static_flag=$lt_lt_prog_compiler_static
17119
17120 # Does compiler simultaneously support -c and -o options?
17121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17122
17123 # Whether or not to add -lc for building shared libraries.
17124 build_libtool_need_lc=$archive_cmds_need_lc
17125
17126 # Whether or not to disallow shared libs when runtime libs are static.
17127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17128
17129 # Compiler flag to allow reflexive dlopens.
17130 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17131
17132 # Compiler flag to generate shared objects directly from archives.
17133 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17134
17135 # Whether the compiler copes with passing no objects directly.
17136 compiler_needs_object=$lt_compiler_needs_object
17137
17138 # Create an old-style archive from a shared archive.
17139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17140
17141 # Create a temporary old-style archive to link instead of a shared archive.
17142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17143
17144 # Commands used to build a shared archive.
17145 archive_cmds=$lt_archive_cmds
17146 archive_expsym_cmds=$lt_archive_expsym_cmds
17147
17148 # Commands used to build a loadable module if different from building
17149 # a shared archive.
17150 module_cmds=$lt_module_cmds
17151 module_expsym_cmds=$lt_module_expsym_cmds
17152
17153 # Whether we are building with GNU ld or not.
17154 with_gnu_ld=$lt_with_gnu_ld
17155
17156 # Flag that allows shared libraries with undefined symbols to be built.
17157 allow_undefined_flag=$lt_allow_undefined_flag
17158
17159 # Flag that enforces no undefined symbols.
17160 no_undefined_flag=$lt_no_undefined_flag
17161
17162 # Flag to hardcode \$libdir into a binary during linking.
17163 # This must work even if \$libdir does not exist
17164 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17165
17166 # Whether we need a single "-rpath" flag with a separated argument.
17167 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17168
17169 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17170 # DIR into the resulting binary.
17171 hardcode_direct=$hardcode_direct
17172
17173 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17174 # DIR into the resulting binary and the resulting library dependency is
17175 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17176 # library is relocated.
17177 hardcode_direct_absolute=$hardcode_direct_absolute
17178
17179 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17180 # into the resulting binary.
17181 hardcode_minus_L=$hardcode_minus_L
17182
17183 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17184 # into the resulting binary.
17185 hardcode_shlibpath_var=$hardcode_shlibpath_var
17186
17187 # Set to "yes" if building a shared library automatically hardcodes DIR
17188 # into the library and all subsequent libraries and executables linked
17189 # against it.
17190 hardcode_automatic=$hardcode_automatic
17191
17192 # Set to yes if linker adds runtime paths of dependent libraries
17193 # to runtime path list.
17194 inherit_rpath=$inherit_rpath
17195
17196 # Whether libtool must link a program against all its dependency libraries.
17197 link_all_deplibs=$link_all_deplibs
17198
17199 # Set to "yes" if exported symbols are required.
17200 always_export_symbols=$always_export_symbols
17201
17202 # The commands to list exported symbols.
17203 export_symbols_cmds=$lt_export_symbols_cmds
17204
17205 # Symbols that should not be listed in the preloaded symbols.
17206 exclude_expsyms=$lt_exclude_expsyms
17207
17208 # Symbols that must always be exported.
17209 include_expsyms=$lt_include_expsyms
17210
17211 # Commands necessary for linking programs (against libraries) with templates.
17212 prelink_cmds=$lt_prelink_cmds
17213
17214 # Commands necessary for finishing linking programs.
17215 postlink_cmds=$lt_postlink_cmds
17216
17217 # Specify filename containing input files.
17218 file_list_spec=$lt_file_list_spec
17219
17220 # How to hardcode a shared library path into an executable.
17221 hardcode_action=$hardcode_action
17222
17223 # ### END LIBTOOL CONFIG
17224
17225 _LT_EOF
17226
17227 cat <<'_LT_EOF' >> "$cfgfile"
17228
17229 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17230
17231 # func_munge_path_list VARIABLE PATH
17232 # -----------------------------------
17233 # VARIABLE is name of variable containing _space_ separated list of
17234 # directories to be munged by the contents of PATH, which is string
17235 # having a format:
17236 # "DIR[:DIR]:"
17237 # string "DIR[ DIR]" will be prepended to VARIABLE
17238 # ":DIR[:DIR]"
17239 # string "DIR[ DIR]" will be appended to VARIABLE
17240 # "DIRP[:DIRP]::[DIRA:]DIRA"
17241 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17242 # "DIRA[ DIRA]" will be appended to VARIABLE
17243 # "DIR[:DIR]"
17244 # VARIABLE will be replaced by "DIR[ DIR]"
17245 func_munge_path_list ()
17246 {
17247 case x$2 in
17248 x)
17249 ;;
17250 *:)
17251 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17252 ;;
17253 x:*)
17254 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17255 ;;
17256 *::*)
17257 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17258 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17259 ;;
17260 *)
17261 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17262 ;;
17263 esac
17264 }
17265
17266
17267 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17268 func_cc_basename ()
17269 {
17270 for cc_temp in $*""; do
17271 case $cc_temp in
17272 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17273 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17274 \-*) ;;
17275 *) break;;
17276 esac
17277 done
17278 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17279 }
17280
17281
17282 # ### END FUNCTIONS SHARED WITH CONFIGURE
17283
17284 _LT_EOF
17285
17286 case $host_os in
17287 aix3*)
17288 cat <<\_LT_EOF >> "$cfgfile"
17289 # AIX sometimes has problems with the GCC collect2 program. For some
17290 # reason, if we set the COLLECT_NAMES environment variable, the problems
17291 # vanish in a puff of smoke.
17292 if test set != "${COLLECT_NAMES+set}"; then
17293 COLLECT_NAMES=
17294 export COLLECT_NAMES
17295 fi
17296 _LT_EOF
17297 ;;
17298 esac
17299
17300
17301
17302 ltmain=$ac_aux_dir/ltmain.sh
17303
17304
17305 # We use sed instead of cat because bash on DJGPP gets confused if
17306 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17307 # text mode, it properly converts lines to CR/LF. This bash problem
17308 # is reportedly fixed, but why not run on old versions too?
17309 $SED '$q' "$ltmain" >> "$cfgfile" \
17310 || (rm -f "$cfgfile"; exit 1)
17311
17312 mv -f "$cfgfile" "$ofile" ||
17313 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17314 chmod +x "$ofile"
17315
17316 ;;
17317
17318 esac
17319 done # for ac_tag
17320
17321
17322 as_fn_exit 0
17323 _ACEOF
17324 ac_clean_files=$ac_clean_files_save
17325
17326 test $ac_write_fail = 0 ||
17327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17328
17329
17330 # configure is writing to config.log, and then calls config.status.
17331 # config.status does its own redirection, appending to config.log.
17332 # Unfortunately, on DOS this fails, as config.log is still kept open
17333 # by configure, so config.status won't be able to write to it; its
17334 # output is simply discarded. So we exec the FD to /dev/null,
17335 # effectively closing config.log, so it can be properly (re)opened and
17336 # appended to by config.status. When coming back to configure, we
17337 # need to make the FD available again.
17338 if test "$no_create" != yes; then
17339 ac_cs_success=:
17340 ac_config_status_args=
17341 test "$silent" = yes &&
17342 ac_config_status_args="$ac_config_status_args --quiet"
17343 exec 5>/dev/null
17344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17345 exec 5>>config.log
17346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17347 # would make configure fail if this is the last instruction.
17348 $ac_cs_success || as_fn_exit 1
17349 fi
17350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17352 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17353 fi
17354
17355
17356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
17357 Prefix ${prefix}
17358 Libdir ${libdir}
17359
17360 Build documentation ${have_doxygen}
17361 Enable unit-tests ${HAVE_CHECK}
17362 Enable profiling ${enable_gcov}
17363 Enable coverity support ${enable_coverity}
17364 Static library symbol check ${static_symbol_leaks_test}
17365 " >&5
17366 printf "%s\n" "
17367 Prefix ${prefix}
17368 Libdir ${libdir}
17369
17370 Build documentation ${have_doxygen}
17371 Enable unit-tests ${HAVE_CHECK}
17372 Enable profiling ${enable_gcov}
17373 Enable coverity support ${enable_coverity}
17374 Static library symbol check ${static_symbol_leaks_test}
17375 " >&6; }
17376