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 NetworkManager-openvpn 1.12.5.
4 #
5 # Report bugs to <https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/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.gnome.org/GNOME/NetworkManager-openvpn/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='NetworkManager-openvpn'
617 PACKAGE_TARNAME='NetworkManager-openvpn'
618 PACKAGE_VERSION='1.12.5'
619 PACKAGE_STRING='NetworkManager-openvpn 1.12.5'
620 PACKAGE_BUGREPORT='https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/issues'
621 PACKAGE_URL=''
622
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 gt_needs=
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 NM_PLUGIN_DIR_NAME_FILE
660 NM_PLUGIN_DIR
661 NM_VPN_SERVICE_DIR
662 LIBNM_LIBS
663 LIBNM_CFLAGS
664 LIBNMA_GTK4_LIBS
665 LIBNMA_GTK4_CFLAGS
666 GTK4_LIBS
667 GTK4_CFLAGS
668 LIBNMA_LIBS
669 LIBNMA_CFLAGS
670 GTK_LIBS
671 GTK_CFLAGS
672 LIBSECRET_LIBS
673 LIBSECRET_CFLAGS
674 GLIB_LIBS
675 GLIB_CFLAGS
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 localedir_c_make
680 localedir_c
681 POSUB
682 LTLIBINTL
683 LIBINTL
684 INTLLIBS
685 LTLIBICONV
686 LIBICONV
687 INTL_MACOSX_LIBS
688 CPP
689 XGETTEXT_EXTRA_OPTIONS
690 MSGMERGE_FOR_MSGFMT_OPTION
691 MSGMERGE
692 XGETTEXT_015
693 XGETTEXT
694 GMSGFMT_015
695 GMSGFMT
696 MSGFMT
697 GETTEXT_MACRO_VERSION
698 USE_NLS
699 GETTEXT_PACKAGE
700 WITH_GTK4_FALSE
701 WITH_GTK4_TRUE
702 WITH_GNOME_FALSE
703 WITH_GNOME_TRUE
704 ACLOCAL_AMFLAGS
705 DL_LIBS
706 LIBOBJS
707 LT_SYS_LIBRARY_PATH
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 MANIFEST_TOOL
714 DLLTOOL
715 OBJDUMP
716 FILECMD
717 LN_S
718 NM
719 ac_ct_DUMPBIN
720 DUMPBIN
721 LD
722 FGREP
723 EGREP
724 GREP
725 SED
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 LIBTOOL
735 ac_ct_RANLIB
736 RANLIB
737 ac_ct_AR
738 AR
739 has_find
740 has_file
741 GLIB_COMPILE_RESOURCES
742 am__fastdepCC_FALSE
743 am__fastdepCC_TRUE
744 CCDEPMODE
745 am__nodep
746 AMDEPBACKSLASH
747 AMDEP_FALSE
748 AMDEP_TRUE
749 am__include
750 DEPDIR
751 OBJEXT
752 EXEEXT
753 ac_ct_CC
754 CPPFLAGS
755 LDFLAGS
756 CFLAGS
757 CC
758 MAINT
759 MAINTAINER_MODE_FALSE
760 MAINTAINER_MODE_TRUE
761 am__xargs_n
762 am__rm_f_notfound
763 AM_BACKSLASH
764 AM_DEFAULT_VERBOSITY
765 AM_DEFAULT_V
766 AM_V
767 CSCOPE
768 ETAGS
769 CTAGS
770 am__untar
771 am__tar
772 AMTAR
773 am__leading_dot
774 SET_MAKE
775 AWK
776 mkdir_p
777 MKDIR_P
778 INSTALL_STRIP_PROGRAM
779 STRIP
780 install_sh
781 MAKEINFO
782 AUTOHEADER
783 AUTOMAKE
784 AUTOCONF
785 ACLOCAL
786 VERSION
787 PACKAGE
788 CYGPATH_W
789 am__isrc
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 runstatedir
813 localstatedir
814 sharedstatedir
815 sysconfdir
816 datadir
817 datarootdir
818 libexecdir
819 sbindir
820 bindir
821 program_transform_name
822 prefix
823 exec_prefix
824 PACKAGE_URL
825 PACKAGE_BUGREPORT
826 PACKAGE_STRING
827 PACKAGE_VERSION
828 PACKAGE_TARNAME
829 PACKAGE_NAME
830 PATH_SEPARATOR
831 SHELL
832 am__quote'
833 ac_subst_files=''
834 ac_user_opts='
835 enable_option_checking
836 enable_silent_rules
837 enable_maintainer_mode
838 enable_dependency_tracking
839 enable_static
840 enable_shared
841 enable_pic
842 with_pic
843 enable_fast_install
844 enable_aix_soname
845 with_aix_soname
846 with_gnu_ld
847 with_sysroot
848 enable_libtool_lock
849 with_gnome
850 with_gtk4
851 enable_absolute_paths
852 enable_nls
853 enable_rpath
854 with_libiconv_prefix
855 with_libintl_prefix
856 enable_more_warnings
857 enable_lto
858 enable_ld_gc
859 with_dist_version
860 '
861 ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 LT_SYS_LIBRARY_PATH
870 CPP
871 PKG_CONFIG
872 PKG_CONFIG_PATH
873 PKG_CONFIG_LIBDIR
874 GLIB_CFLAGS
875 GLIB_LIBS
876 LIBSECRET_CFLAGS
877 LIBSECRET_LIBS
878 GTK_CFLAGS
879 GTK_LIBS
880 LIBNMA_CFLAGS
881 LIBNMA_LIBS
882 GTK4_CFLAGS
883 GTK4_LIBS
884 LIBNMA_GTK4_CFLAGS
885 LIBNMA_GTK4_LIBS
886 LIBNM_CFLAGS
887 LIBNM_LIBS'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 runstatedir='${localstatedir}/run'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
948 fi
949
950 case $ac_option in
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *=) ac_optarg= ;;
953 *) ac_optarg=yes ;;
954 esac
955
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
964
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
979
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
984
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: '$ac_useropt'"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1017
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: '$ac_useropt'"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -runstatedir | --runstatedir | --runstatedi | --runstated \
1178 | --runstate | --runstat | --runsta | --runst | --runs \
1179 | --run | --ru | --r)
1180 ac_prev=runstatedir ;;
1181 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1182 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1183 | --run=* | --ru=* | --r=*)
1184 runstatedir=$ac_optarg ;;
1185
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1191
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1202
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1207
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1212
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1219
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1224
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1227
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1230
1231 -with-* | --with-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: '$ac_useropt'"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=\$ac_optarg ;;
1246
1247 -without-* | --without-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: '$ac_useropt'"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=no ;;
1262
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1266
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1273
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1280
1281 -*) as_fn_error $? "unrecognized option: '$ac_option'
1282 Try '$0 --help' for more information"
1283 ;;
1284
1285 *=*)
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
1290 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1291 esac
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1294
1295 *)
1296 # FIXME: should be removed in autoconf 3.0.
1297 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1301 ;;
1302
1303 esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error $? "missing argument to $ac_option"
1309 fi
1310
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1313 no) ;;
1314 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1315 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 esac
1317 fi
1318
1319 # Check all directory arguments for consistency.
1320 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir runstatedir
1324 do
1325 eval ac_val=\$$ac_var
1326 # Remove trailing slashes.
1327 case $ac_val in
1328 */ )
1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\$ac_val;;
1331 esac
1332 # Be sure to have absolute directory names.
1333 case $ac_val in
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336 esac
1337 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1338 done
1339
1340 # There might be people who depend on the old broken behavior: '$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1343 build=$build_alias
1344 host=$host_alias
1345 target=$target_alias
1346
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354 fi
1355
1356 ac_tool_prefix=
1357 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359 test "$silent" = yes && exec 6>/dev/null
1360
1361
1362 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di=`ls -di .` &&
1364 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365 as_fn_error $? "working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 as_fn_error $? "pwd does not report name of working directory"
1368
1369
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 printf "%s\n" X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1400 fi
1401 else
1402 ac_srcdir_defaulted=no
1403 fi
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 fi
1408 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415 fi
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 'configure' configures NetworkManager-openvpn 1.12.5 to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print 'checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for '--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or '..']
1455
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1461
1462 By default, 'make install' will install all the files in
1463 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than '$ac_default_prefix' using '--prefix',
1465 for instance '--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root
1486 [DATAROOTDIR/doc/NetworkManager-openvpn]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1492
1493 cat <<\_ACEOF
1494
1495 Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of NetworkManager-openvpn 1.12.5:";;
1509 esac
1510 cat <<\_ACEOF
1511
1512 Optional Features:
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-silent-rules less verbose build output (undo: "make V=1")
1517 --disable-silent-rules verbose build output (undo: "make V=0")
1518 --enable-maintainer-mode
1519 enable make rules and dependencies not useful (and
1520 sometimes confusing) to the casual installer
1521 --enable-dependency-tracking
1522 do not reject slow dependency extractors
1523 --disable-dependency-tracking
1524 speeds up one-time build
1525 --enable-static[=PKGS] build static libraries [default=no]
1526 --enable-shared[=PKGS] build shared libraries [default=yes]
1527 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1528 both]
1529 --enable-fast-install[=PKGS]
1530 optimize for fast installation [default=yes]
1531 --enable-aix-soname=aix|svr4|both
1532 shared library versioning (aka "SONAME") variant to
1533 provide on AIX, [default=aix].
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1535 --enable-absolute-paths Use absolute paths to in .name files. Useful for
1536 development. (default is no)
1537 --disable-nls do not use Native Language Support
1538 --disable-rpath do not hardcode runtime library paths
1539 --enable-more-warnings Possible values: no/yes/error
1540 --enable-lto Enable Link Time Optimization for smaller size
1541 (default: no)
1542 --enable-ld-gc Enable garbage collection of unused symbols on
1543 linking (default: auto)
1544
1545 Optional Packages:
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1550 compiler's sysroot if not specified).
1551 --without-gnome Build NetworkManager-openvpn without GNOME support,
1552 e.g. vpn service only
1553 --with-gtk4 Build NetworkManager-openvpn with libnma-gtk4
1554 support
1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1557 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1558 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1559 --without-libintl-prefix don't search for libintl in includedir and libdir
1560 --with-dist-version=<dist-version>
1561 Define the custom version (like distribution package
1562 name and revision)
1563
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 LT_SYS_LIBRARY_PATH
1573 User-defined run-time library search path.
1574 CPP C preprocessor
1575 PKG_CONFIG path to pkg-config utility
1576 PKG_CONFIG_PATH
1577 directories to add to pkg-config's search path
1578 PKG_CONFIG_LIBDIR
1579 path overriding pkg-config's built-in search path
1580 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1581 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1582 LIBSECRET_CFLAGS
1583 C compiler flags for LIBSECRET, overriding pkg-config
1584 LIBSECRET_LIBS
1585 linker flags for LIBSECRET, overriding pkg-config
1586 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1587 GTK_LIBS linker flags for GTK, overriding pkg-config
1588 LIBNMA_CFLAGS
1589 C compiler flags for LIBNMA, overriding pkg-config
1590 LIBNMA_LIBS linker flags for LIBNMA, overriding pkg-config
1591 GTK4_CFLAGS C compiler flags for GTK4, overriding pkg-config
1592 GTK4_LIBS linker flags for GTK4, overriding pkg-config
1593 LIBNMA_GTK4_CFLAGS
1594 C compiler flags for LIBNMA_GTK4, overriding pkg-config
1595 LIBNMA_GTK4_LIBS
1596 linker flags for LIBNMA_GTK4, overriding pkg-config
1597 LIBNM_CFLAGS
1598 C compiler flags for LIBNM, overriding pkg-config
1599 LIBNM_LIBS linker flags for LIBNM, overriding pkg-config
1600
1601 Use these variables to override the choices made by 'configure' or to help
1602 it to find libraries and programs with nonstandard names/locations.
1603
1604 Report bugs to <https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/issues>.
1605 _ACEOF
1606 ac_status=$?
1607 fi
1608
1609 if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 continue
1615 ac_builddir=.
1616
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *)
1620 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1632
1633 case $srcdir in
1634 .) # We are building in place.
1635 ac_srcdir=.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for configure.gnu first; this name is used for a wrapper for
1651 # Metaconfig's "Configure" on case-insensitive file systems.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1658 else
1659 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1662 done
1663 fi
1664
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667 cat <<\_ACEOF
1668 NetworkManager-openvpn configure 1.12.5
1669 generated by GNU Autoconf 2.72
1670
1671 Copyright (C) 2023 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1676 fi
1677
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1681
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest.beam
1689 if { { ac_try="$ac_compile"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 printf "%s\n" "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext
1708 then :
1709 ac_retval=0
1710 else case e in #(
1711 e) printf "%s\n" "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1 ;;
1715 esac
1716 fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_compile
1721
1722 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists and can be compiled using the include files in
1725 # INCLUDES, setting the cache variable VAR accordingly.
1726 ac_fn_c_check_header_compile ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 printf %s "checking for $2... " >&6; }
1731 if eval test \${$3+y}
1732 then :
1733 printf %s "(cached) " >&6
1734 else case e in #(
1735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 $4
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_compile "$LINENO"
1741 then :
1742 eval "$3=yes"
1743 else case e in #(
1744 e) eval "$3=no" ;;
1745 esac
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1748 esac
1749 fi
1750 eval ac_res=\$$3
1751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 printf "%s\n" "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_header_compile
1756
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_link ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1764 if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 printf "%s\n" "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest$ac_exeext && {
1783 test "$cross_compiling" = yes ||
1784 test -x conftest$ac_exeext
1785 }
1786 then :
1787 ac_retval=0
1788 else case e in #(
1789 e) printf "%s\n" "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1 ;;
1793 esac
1794 fi
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_link
1804
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 printf %s "checking for $2... " >&6; }
1813 if eval test \${$3+y}
1814 then :
1815 printf %s "(cached) " >&6
1816 else case e in #(
1817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1821 #define $2 innocuous_$2
1822
1823 /* System header to define __stub macros and hopefully few prototypes,
1824 which can conflict with char $2 (void); below. */
1825
1826 #include <limits.h>
1827 #undef $2
1828
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1832 #ifdef __cplusplus
1833 extern "C"
1834 #endif
1835 char $2 (void);
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1840 choke me
1841 #endif
1842
1843 int
1844 main (void)
1845 {
1846 return $2 ();
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_link "$LINENO"
1852 then :
1853 eval "$3=yes"
1854 else case e in #(
1855 e) eval "$3=no" ;;
1856 esac
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1859 conftest$ac_exeext conftest.$ac_ext ;;
1860 esac
1861 fi
1862 eval ac_res=\$$3
1863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 printf "%s\n" "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_func
1868
1869 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1870 # -------------------------------------------
1871 # Tests whether TYPE exists after having included INCLUDES, setting cache
1872 # variable VAR accordingly.
1873 ac_fn_c_check_type ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 printf %s "checking for $2... " >&6; }
1878 if eval test \${$3+y}
1879 then :
1880 printf %s "(cached) " >&6
1881 else case e in #(
1882 e) eval "$3=no"
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $4
1886 int
1887 main (void)
1888 {
1889 if (sizeof ($2))
1890 return 0;
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"
1896 then :
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 int
1901 main (void)
1902 {
1903 if (sizeof (($2)))
1904 return 0;
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"
1910 then :
1911
1912 else case e in #(
1913 e) eval "$3=yes" ;;
1914 esac
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1919 esac
1920 fi
1921 eval ac_res=\$$3
1922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 printf "%s\n" "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_type
1927
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1931 # executables *can* be run.
1932 ac_fn_c_try_run ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 printf "%s\n" "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>&5
1943 ac_status=$?
1944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1946 { { case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 printf "%s\n" "$ac_try_echo"; } >&5
1952 (eval "$ac_try") 2>&5
1953 ac_status=$?
1954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; }; }
1956 then :
1957 ac_retval=0
1958 else case e in #(
1959 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1960 printf "%s\n" "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=$ac_status ;;
1964 esac
1965 fi
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_run
1971
1972 # ac_fn_c_try_cpp LINENO
1973 # ----------------------
1974 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1975 ac_fn_c_try_cpp ()
1976 {
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { { ac_try="$ac_cpp conftest.$ac_ext"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 printf "%s\n" "$ac_try_echo"; } >&5
1985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1986 ac_status=$?
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1991 fi
1992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } > conftest.i && {
1994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1995 test ! -s conftest.err
1996 }
1997 then :
1998 ac_retval=0
1999 else case e in #(
2000 e) printf "%s\n" "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2002
2003 ac_retval=1 ;;
2004 esac
2005 fi
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2008
2009 } # ac_fn_c_try_cpp
2010 ac_configure_args_raw=
2011 for ac_arg
2012 do
2013 case $ac_arg in
2014 *\'*)
2015 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2016 esac
2017 as_fn_append ac_configure_args_raw " '$ac_arg'"
2018 done
2019
2020 case $ac_configure_args_raw in
2021 *$as_nl*)
2022 ac_safe_unquote= ;;
2023 *)
2024 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2025 ac_unsafe_a="$ac_unsafe_z#~"
2026 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2027 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2028 esac
2029
2030 cat >config.log <<_ACEOF
2031 This file contains any messages produced by compilers while
2032 running configure, to aid debugging if configure makes a mistake.
2033
2034 It was created by NetworkManager-openvpn $as_me 1.12.5, which was
2035 generated by GNU Autoconf 2.72. Invocation command line was
2036
2037 $ $0$ac_configure_args_raw
2038
2039 _ACEOF
2040 exec 5>>config.log
2041 {
2042 cat <<_ASUNAME
2043 ## --------- ##
2044 ## Platform. ##
2045 ## --------- ##
2046
2047 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2048 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2049 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2050 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2051 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052
2053 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2054 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2055
2056 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2057 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2058 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2059 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2060 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2061 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2062 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2063
2064 _ASUNAME
2065
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069 IFS=$as_save_IFS
2070 case $as_dir in #(((
2071 '') as_dir=./ ;;
2072 */) ;;
2073 *) as_dir=$as_dir/ ;;
2074 esac
2075 printf "%s\n" "PATH: $as_dir"
2076 done
2077 IFS=$as_save_IFS
2078
2079 } >&5
2080
2081 cat >&5 <<_ACEOF
2082
2083
2084 ## ----------- ##
2085 ## Core tests. ##
2086 ## ----------- ##
2087
2088 _ACEOF
2089
2090
2091 # Keep a trace of the command line.
2092 # Strip out --no-create and --no-recursion so they do not pile up.
2093 # Strip out --silent because we don't want to record it for future runs.
2094 # Also quote any args containing shell meta-characters.
2095 # Make two passes to allow for proper duplicate-argument suppression.
2096 ac_configure_args=
2097 ac_configure_args0=
2098 ac_configure_args1=
2099 ac_must_keep_next=false
2100 for ac_pass in 1 2
2101 do
2102 for ac_arg
2103 do
2104 case $ac_arg in
2105 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107 | -silent | --silent | --silen | --sile | --sil)
2108 continue ;;
2109 *\'*)
2110 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2111 esac
2112 case $ac_pass in
2113 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114 2)
2115 as_fn_append ac_configure_args1 " '$ac_arg'"
2116 if test $ac_must_keep_next = true; then
2117 ac_must_keep_next=false # Got value, back to normal.
2118 else
2119 case $ac_arg in
2120 *=* | --config-cache | -C | -disable-* | --disable-* \
2121 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123 | -with-* | --with-* | -without-* | --without-* | --x)
2124 case "$ac_configure_args0 " in
2125 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126 esac
2127 ;;
2128 -* ) ac_must_keep_next=true ;;
2129 esac
2130 fi
2131 as_fn_append ac_configure_args " '$ac_arg'"
2132 ;;
2133 esac
2134 done
2135 done
2136 { ac_configure_args0=; unset ac_configure_args0;}
2137 { ac_configure_args1=; unset ac_configure_args1;}
2138
2139 # When interrupted or exit'd, cleanup temporary files, and complete
2140 # config.log. We remove comments because anyway the quotes in there
2141 # would cause problems or look ugly.
2142 # WARNING: Use '\'' to represent an apostrophe within the trap.
2143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2144 trap 'exit_status=$?
2145 # Sanitize IFS.
2146 IFS=" "" $as_nl"
2147 # Save into config.log some information that might help in debugging.
2148 {
2149 echo
2150
2151 printf "%s\n" "## ---------------- ##
2152 ## Cache variables. ##
2153 ## ---------------- ##"
2154 echo
2155 # The following way of writing the cache mishandles newlines in values,
2156 (
2157 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in #(
2160 *${as_nl}*)
2161 case $ac_var in #(
2162 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2163 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2164 esac
2165 case $ac_var in #(
2166 _ | IFS | as_nl) ;; #(
2167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2168 *) { eval $ac_var=; unset $ac_var;} ;;
2169 esac ;;
2170 esac
2171 done
2172 (set) 2>&1 |
2173 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2174 *${as_nl}ac_space=\ *)
2175 sed -n \
2176 "s/'\''/'\''\\\\'\'''\''/g;
2177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2178 ;; #(
2179 *)
2180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2181 ;;
2182 esac |
2183 sort
2184 )
2185 echo
2186
2187 printf "%s\n" "## ----------------- ##
2188 ## Output variables. ##
2189 ## ----------------- ##"
2190 echo
2191 for ac_var in $ac_subst_vars
2192 do
2193 eval ac_val=\$$ac_var
2194 case $ac_val in
2195 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196 esac
2197 printf "%s\n" "$ac_var='\''$ac_val'\''"
2198 done | sort
2199 echo
2200
2201 if test -n "$ac_subst_files"; then
2202 printf "%s\n" "## ------------------- ##
2203 ## File substitutions. ##
2204 ## ------------------- ##"
2205 echo
2206 for ac_var in $ac_subst_files
2207 do
2208 eval ac_val=\$$ac_var
2209 case $ac_val in
2210 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211 esac
2212 printf "%s\n" "$ac_var='\''$ac_val'\''"
2213 done | sort
2214 echo
2215 fi
2216
2217 if test -s confdefs.h; then
2218 printf "%s\n" "## ----------- ##
2219 ## confdefs.h. ##
2220 ## ----------- ##"
2221 echo
2222 cat confdefs.h
2223 echo
2224 fi
2225 test "$ac_signal" != 0 &&
2226 printf "%s\n" "$as_me: caught signal $ac_signal"
2227 printf "%s\n" "$as_me: exit $exit_status"
2228 } >&5
2229 rm -f core *.core core.conftest.* &&
2230 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231 exit $exit_status
2232 ' 0
2233 for ac_signal in 1 2 13 15; do
2234 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 done
2236 ac_signal=0
2237
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2240
2241 printf "%s\n" "/* confdefs.h */" > confdefs.h
2242
2243 # Predefined preprocessor variables.
2244
2245 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2246
2247 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2248
2249 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2250
2251 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2252
2253 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2254
2255 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2256
2257
2258 # Let the site file select an alternate cache file if it wants to.
2259 # Prefer an explicitly selected file to automatically selected ones.
2260 if test -n "$CONFIG_SITE"; then
2261 ac_site_files="$CONFIG_SITE"
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2264 else
2265 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2266 fi
2267
2268 for ac_site_file in $ac_site_files
2269 do
2270 case $ac_site_file in #(
2271 */*) :
2272 ;; #(
2273 *) :
2274 ac_site_file=./$ac_site_file ;;
2275 esac
2276 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2278 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2279 sed 's/^/| /' "$ac_site_file" >&5
2280 . "$ac_site_file" \
2281 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2282 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2283 as_fn_error $? "failed to load site script $ac_site_file
2284 See 'config.log' for more details" "$LINENO" 5; }
2285 fi
2286 done
2287
2288 if test -r "$cache_file"; then
2289 # Some versions of bash will fail to source /dev/null (special files
2290 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2291 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2293 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2294 case $cache_file in
2295 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2296 *) . "./$cache_file";;
2297 esac
2298 fi
2299 else
2300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2301 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2302 >$cache_file
2303 fi
2304
2305 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2306 # Test code for whether the C compiler supports C89 (global declarations)
2307 ac_c_conftest_c89_globals='
2308 /* Does the compiler advertise C89 conformance?
2309 Do not test the value of __STDC__, because some compilers set it to 0
2310 while being otherwise adequately conformant. */
2311 #if !defined __STDC__
2312 # error "Compiler does not advertise C89 conformance"
2313 #endif
2314
2315 #include <stddef.h>
2316 #include <stdarg.h>
2317 struct stat;
2318 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2319 struct buf { int x; };
2320 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2321 static char *e (char **p, int i)
2322 {
2323 return p[i];
2324 }
2325 static char *f (char * (*g) (char **, int), char **p, ...)
2326 {
2327 char *s;
2328 va_list v;
2329 va_start (v,p);
2330 s = g (p, va_arg (v,int));
2331 va_end (v);
2332 return s;
2333 }
2334
2335 /* C89 style stringification. */
2336 #define noexpand_stringify(a) #a
2337 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2338
2339 /* C89 style token pasting. Exercises some of the corner cases that
2340 e.g. old MSVC gets wrong, but not very hard. */
2341 #define noexpand_concat(a,b) a##b
2342 #define expand_concat(a,b) noexpand_concat(a,b)
2343 extern int vA;
2344 extern int vbee;
2345 #define aye A
2346 #define bee B
2347 int *pvA = &expand_concat(v,aye);
2348 int *pvbee = &noexpand_concat(v,bee);
2349
2350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2351 function prototypes and stuff, but not \xHH hex character constants.
2352 These do not provoke an error unfortunately, instead are silently treated
2353 as an "x". The following induces an error, until -std is added to get
2354 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2355 array size at least. It is necessary to write \x00 == 0 to get something
2356 that is true only with -std. */
2357 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2358
2359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2360 inside strings and character constants. */
2361 #define FOO(x) '\''x'\''
2362 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2363
2364 int test (int i, double x);
2365 struct s1 {int (*f) (int a);};
2366 struct s2 {int (*f) (double a);};
2367 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2368 int, int);'
2369
2370 # Test code for whether the C compiler supports C89 (body of main).
2371 ac_c_conftest_c89_main='
2372 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2373 '
2374
2375 # Test code for whether the C compiler supports C99 (global declarations)
2376 ac_c_conftest_c99_globals='
2377 /* Does the compiler advertise C99 conformance? */
2378 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2379 # error "Compiler does not advertise C99 conformance"
2380 #endif
2381
2382 // See if C++-style comments work.
2383
2384 #include <stdbool.h>
2385 extern int puts (const char *);
2386 extern int printf (const char *, ...);
2387 extern int dprintf (int, const char *, ...);
2388 extern void *malloc (size_t);
2389 extern void free (void *);
2390
2391 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2392 // dprintf is used instead of fprintf to avoid needing to declare
2393 // FILE and stderr.
2394 #define debug(...) dprintf (2, __VA_ARGS__)
2395 #define showlist(...) puts (#__VA_ARGS__)
2396 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2397 static void
2398 test_varargs_macros (void)
2399 {
2400 int x = 1234;
2401 int y = 5678;
2402 debug ("Flag");
2403 debug ("X = %d\n", x);
2404 showlist (The first, second, and third items.);
2405 report (x>y, "x is %d but y is %d", x, y);
2406 }
2407
2408 // Check long long types.
2409 #define BIG64 18446744073709551615ull
2410 #define BIG32 4294967295ul
2411 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2412 #if !BIG_OK
2413 #error "your preprocessor is broken"
2414 #endif
2415 #if BIG_OK
2416 #else
2417 #error "your preprocessor is broken"
2418 #endif
2419 static long long int bignum = -9223372036854775807LL;
2420 static unsigned long long int ubignum = BIG64;
2421
2422 struct incomplete_array
2423 {
2424 int datasize;
2425 double data[];
2426 };
2427
2428 struct named_init {
2429 int number;
2430 const wchar_t *name;
2431 double average;
2432 };
2433
2434 typedef const char *ccp;
2435
2436 static inline int
2437 test_restrict (ccp restrict text)
2438 {
2439 // Iterate through items via the restricted pointer.
2440 // Also check for declarations in for loops.
2441 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2442 continue;
2443 return 0;
2444 }
2445
2446 // Check varargs and va_copy.
2447 static bool
2448 test_varargs (const char *format, ...)
2449 {
2450 va_list args;
2451 va_start (args, format);
2452 va_list args_copy;
2453 va_copy (args_copy, args);
2454
2455 const char *str = "";
2456 int number = 0;
2457 float fnumber = 0;
2458
2459 while (*format)
2460 {
2461 switch (*format++)
2462 {
2463 case '\''s'\'': // string
2464 str = va_arg (args_copy, const char *);
2465 break;
2466 case '\''d'\'': // int
2467 number = va_arg (args_copy, int);
2468 break;
2469 case '\''f'\'': // float
2470 fnumber = va_arg (args_copy, double);
2471 break;
2472 default:
2473 break;
2474 }
2475 }
2476 va_end (args_copy);
2477 va_end (args);
2478
2479 return *str && number && fnumber;
2480 }
2481 '
2482
2483 # Test code for whether the C compiler supports C99 (body of main).
2484 ac_c_conftest_c99_main='
2485 // Check bool.
2486 _Bool success = false;
2487 success |= (argc != 0);
2488
2489 // Check restrict.
2490 if (test_restrict ("String literal") == 0)
2491 success = true;
2492 char *restrict newvar = "Another string";
2493
2494 // Check varargs.
2495 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2496 test_varargs_macros ();
2497
2498 // Check flexible array members.
2499 struct incomplete_array *ia =
2500 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2501 ia->datasize = 10;
2502 for (int i = 0; i < ia->datasize; ++i)
2503 ia->data[i] = i * 1.234;
2504 // Work around memory leak warnings.
2505 free (ia);
2506
2507 // Check named initializers.
2508 struct named_init ni = {
2509 .number = 34,
2510 .name = L"Test wide string",
2511 .average = 543.34343,
2512 };
2513
2514 ni.number = 58;
2515
2516 int dynamic_array[ni.number];
2517 dynamic_array[0] = argv[0][0];
2518 dynamic_array[ni.number - 1] = 543;
2519
2520 // work around unused variable warnings
2521 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2522 || dynamic_array[ni.number - 1] != 543);
2523 '
2524
2525 # Test code for whether the C compiler supports C11 (global declarations)
2526 ac_c_conftest_c11_globals='
2527 /* Does the compiler advertise C11 conformance? */
2528 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2529 # error "Compiler does not advertise C11 conformance"
2530 #endif
2531
2532 // Check _Alignas.
2533 char _Alignas (double) aligned_as_double;
2534 char _Alignas (0) no_special_alignment;
2535 extern char aligned_as_int;
2536 char _Alignas (0) _Alignas (int) aligned_as_int;
2537
2538 // Check _Alignof.
2539 enum
2540 {
2541 int_alignment = _Alignof (int),
2542 int_array_alignment = _Alignof (int[100]),
2543 char_alignment = _Alignof (char)
2544 };
2545 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2546
2547 // Check _Noreturn.
2548 int _Noreturn does_not_return (void) { for (;;) continue; }
2549
2550 // Check _Static_assert.
2551 struct test_static_assert
2552 {
2553 int x;
2554 _Static_assert (sizeof (int) <= sizeof (long int),
2555 "_Static_assert does not work in struct");
2556 long int y;
2557 };
2558
2559 // Check UTF-8 literals.
2560 #define u8 syntax error!
2561 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2562
2563 // Check duplicate typedefs.
2564 typedef long *long_ptr;
2565 typedef long int *long_ptr;
2566 typedef long_ptr long_ptr;
2567
2568 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2569 struct anonymous
2570 {
2571 union {
2572 struct { int i; int j; };
2573 struct { int k; long int l; } w;
2574 };
2575 int m;
2576 } v1;
2577 '
2578
2579 # Test code for whether the C compiler supports C11 (body of main).
2580 ac_c_conftest_c11_main='
2581 _Static_assert ((offsetof (struct anonymous, i)
2582 == offsetof (struct anonymous, w.k)),
2583 "Anonymous union alignment botch");
2584 v1.i = 2;
2585 v1.w.k = 5;
2586 ok |= v1.i != 5;
2587 '
2588
2589 # Test code for whether the C compiler supports C11 (complete).
2590 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2591 ${ac_c_conftest_c99_globals}
2592 ${ac_c_conftest_c11_globals}
2593
2594 int
2595 main (int argc, char **argv)
2596 {
2597 int ok = 0;
2598 ${ac_c_conftest_c89_main}
2599 ${ac_c_conftest_c99_main}
2600 ${ac_c_conftest_c11_main}
2601 return ok;
2602 }
2603 "
2604
2605 # Test code for whether the C compiler supports C99 (complete).
2606 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2607 ${ac_c_conftest_c99_globals}
2608
2609 int
2610 main (int argc, char **argv)
2611 {
2612 int ok = 0;
2613 ${ac_c_conftest_c89_main}
2614 ${ac_c_conftest_c99_main}
2615 return ok;
2616 }
2617 "
2618
2619 # Test code for whether the C compiler supports C89 (complete).
2620 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2621
2622 int
2623 main (int argc, char **argv)
2624 {
2625 int ok = 0;
2626 ${ac_c_conftest_c89_main}
2627 return ok;
2628 }
2629 "
2630
2631 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2632 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2633 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2634 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2635 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2636 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2637 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2638 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2639 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2640 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2641 gt_needs="$gt_needs "
2642
2643 # Auxiliary files required by this configure script.
2644 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
2645
2646 # Locations in which to look for auxiliary files.
2647 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2648
2649 # Search for a directory containing all of the required auxiliary files,
2650 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2651 # If we don't find one directory that contains all the files we need,
2652 # we report the set of missing files from the *first* directory in
2653 # $ac_aux_dir_candidates and give up.
2654 ac_missing_aux_files=""
2655 ac_first_candidate=:
2656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 as_found=false
2659 for as_dir in $ac_aux_dir_candidates
2660 do
2661 IFS=$as_save_IFS
2662 case $as_dir in #(((
2663 '') as_dir=./ ;;
2664 */) ;;
2665 *) as_dir=$as_dir/ ;;
2666 esac
2667 as_found=:
2668
2669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2670 ac_aux_dir_found=yes
2671 ac_install_sh=
2672 for ac_aux in $ac_aux_files
2673 do
2674 # As a special case, if "install-sh" is required, that requirement
2675 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2676 # and $ac_install_sh is set appropriately for whichever one is found.
2677 if test x"$ac_aux" = x"install-sh"
2678 then
2679 if test -f "${as_dir}install-sh"; then
2680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2681 ac_install_sh="${as_dir}install-sh -c"
2682 elif test -f "${as_dir}install.sh"; then
2683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2684 ac_install_sh="${as_dir}install.sh -c"
2685 elif test -f "${as_dir}shtool"; then
2686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2687 ac_install_sh="${as_dir}shtool install -c"
2688 else
2689 ac_aux_dir_found=no
2690 if $ac_first_candidate; then
2691 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2692 else
2693 break
2694 fi
2695 fi
2696 else
2697 if test -f "${as_dir}${ac_aux}"; then
2698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2699 else
2700 ac_aux_dir_found=no
2701 if $ac_first_candidate; then
2702 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2703 else
2704 break
2705 fi
2706 fi
2707 fi
2708 done
2709 if test "$ac_aux_dir_found" = yes; then
2710 ac_aux_dir="$as_dir"
2711 break
2712 fi
2713 ac_first_candidate=false
2714
2715 as_found=false
2716 done
2717 IFS=$as_save_IFS
2718 if $as_found
2719 then :
2720
2721 else case e in #(
2722 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2723 esac
2724 fi
2725
2726
2727 # These three variables are undocumented and unsupported,
2728 # and are intended to be withdrawn in a future Autoconf release.
2729 # They can cause serious problems if a builder's source tree is in a directory
2730 # whose full name contains unusual characters.
2731 if test -f "${ac_aux_dir}config.guess"; then
2732 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2733 fi
2734 if test -f "${ac_aux_dir}config.sub"; then
2735 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2736 fi
2737 if test -f "$ac_aux_dir/configure"; then
2738 ac_configure="$SHELL ${ac_aux_dir}configure"
2739 fi
2740
2741 # Check that the precious variables saved in the cache have kept the same
2742 # value.
2743 ac_cache_corrupted=false
2744 for ac_var in $ac_precious_vars; do
2745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2746 eval ac_new_set=\$ac_env_${ac_var}_set
2747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2748 eval ac_new_val=\$ac_env_${ac_var}_value
2749 case $ac_old_set,$ac_new_set in
2750 set,)
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2752 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2753 ac_cache_corrupted=: ;;
2754 ,set)
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2756 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2757 ac_cache_corrupted=: ;;
2758 ,);;
2759 *)
2760 if test "x$ac_old_val" != "x$ac_new_val"; then
2761 # differences in whitespace do not lead to failure.
2762 ac_old_val_w=`echo x $ac_old_val`
2763 ac_new_val_w=`echo x $ac_new_val`
2764 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2766 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2767 ac_cache_corrupted=:
2768 else
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2770 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2771 eval $ac_var=\$ac_old_val
2772 fi
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2774 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2776 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2777 fi;;
2778 esac
2779 # Pass precious variables to config.status.
2780 if test "$ac_new_set" = set; then
2781 case $ac_new_val in
2782 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2783 *) ac_arg=$ac_var=$ac_new_val ;;
2784 esac
2785 case " $ac_configure_args " in
2786 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2787 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2788 esac
2789 fi
2790 done
2791 if $ac_cache_corrupted; then
2792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2793 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2795 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2796 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2797 and start over" "$LINENO" 5
2798 fi
2799 ## -------------------- ##
2800 ## Main body of script. ##
2801 ## -------------------- ##
2802
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809
2810 am__api_version='1.17'
2811
2812
2813
2814 # Find a good install program. We prefer a C program (faster),
2815 # so one script is as good as another. But avoid the broken or
2816 # incompatible versions:
2817 # SysV /etc/install, /usr/sbin/install
2818 # SunOS /usr/etc/install
2819 # IRIX /sbin/install
2820 # AIX /bin/install
2821 # AmigaOS /C/install, which installs bootblocks on floppy discs
2822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2825 # OS/2's system install, which has a completely different semantic
2826 # ./install, which can be erroneously created by make from ./install.sh.
2827 # Reject install programs that cannot install multiple files.
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2829 printf %s "checking for a BSD-compatible install... " >&6; }
2830 if test -z "$INSTALL"; then
2831 if test ${ac_cv_path_install+y}
2832 then :
2833 printf %s "(cached) " >&6
2834 else case e in #(
2835 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 case $as_dir in #(((
2840 '') as_dir=./ ;;
2841 */) ;;
2842 *) as_dir=$as_dir/ ;;
2843 esac
2844 # Account for fact that we put trailing slashes in our PATH walk.
2845 case $as_dir in #((
2846 ./ | /[cC]/* | \
2847 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2848 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2849 /usr/ucb/* ) ;;
2850 *)
2851 # OSF1 and SCO ODT 3.0 have their own names for install.
2852 # Don't use installbsd from OSF since it installs stuff as root
2853 # by default.
2854 for ac_prog in ginstall scoinst install; do
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2857 if test $ac_prog = install &&
2858 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2859 # AIX install. It has an incompatible calling convention.
2860 :
2861 elif test $ac_prog = install &&
2862 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2863 # program-specific install script used by HP pwplus--don't use.
2864 :
2865 else
2866 rm -rf conftest.one conftest.two conftest.dir
2867 echo one > conftest.one
2868 echo two > conftest.two
2869 mkdir conftest.dir
2870 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2871 test -s conftest.one && test -s conftest.two &&
2872 test -s conftest.dir/conftest.one &&
2873 test -s conftest.dir/conftest.two
2874 then
2875 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2876 break 3
2877 fi
2878 fi
2879 fi
2880 done
2881 done
2882 ;;
2883 esac
2884
2885 done
2886 IFS=$as_save_IFS
2887
2888 rm -rf conftest.one conftest.two conftest.dir
2889 ;;
2890 esac
2891 fi
2892 if test ${ac_cv_path_install+y}; then
2893 INSTALL=$ac_cv_path_install
2894 else
2895 # As a last resort, use the slow shell script. Don't cache a
2896 # value for INSTALL within a source directory, because that will
2897 # break other packages using the cache if that directory is
2898 # removed, or if the value is a relative name.
2899 INSTALL=$ac_install_sh
2900 fi
2901 fi
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2903 printf "%s\n" "$INSTALL" >&6; }
2904
2905 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2906 # It thinks the first close brace ends the variable substitution.
2907 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2908
2909 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2910
2911 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2912
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2914 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2915 if test ${am_cv_sleep_fractional_seconds+y}
2916 then :
2917 printf %s "(cached) " >&6
2918 else case e in #(
2919 e) if sleep 0.001 2>/dev/null
2920 then :
2921 am_cv_sleep_fractional_seconds=yes
2922 else case e in #(
2923 e) am_cv_sleep_fractional_seconds=no ;;
2924 esac
2925 fi
2926 ;;
2927 esac
2928 fi
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2930 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2931
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2933 printf %s "checking filesystem timestamp resolution... " >&6; }
2934 if test ${am_cv_filesystem_timestamp_resolution+y}
2935 then :
2936 printf %s "(cached) " >&6
2937 else case e in #(
2938 e) # Default to the worst case.
2939 am_cv_filesystem_timestamp_resolution=2
2940
2941 # Only try to go finer than 1 sec if sleep can do it.
2942 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2943 # - 1 sec is not much of a win compared to 2 sec, and
2944 # - it takes 2 seconds to perform the test whether 1 sec works.
2945 #
2946 # Instead, just use the default 2s on platforms that have 1s resolution,
2947 # accept the extra 1s delay when using $sleep in the Automake tests, in
2948 # exchange for not incurring the 2s delay for running the test for all
2949 # packages.
2950 #
2951 am_try_resolutions=
2952 if test "$am_cv_sleep_fractional_seconds" = yes; then
2953 # Even a millisecond often causes a bunch of false positives,
2954 # so just try a hundredth of a second. The time saved between .001 and
2955 # .01 is not terribly consequential.
2956 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2957 fi
2958
2959 # In order to catch current-generation FAT out, we must *modify* files
2960 # that already exist; the *creation* timestamp is finer. Use names
2961 # that make ls -t sort them differently when they have equal
2962 # timestamps than when they have distinct timestamps, keeping
2963 # in mind that ls -t prints the *newest* file first.
2964 rm -f conftest.ts?
2965 : > conftest.ts1
2966 : > conftest.ts2
2967 : > conftest.ts3
2968
2969 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2970 # clobber the current shell's arguments. (Outer-level square brackets
2971 # are removed by m4; they're present so that m4 does not expand
2972 # <dollar><star>; be careful, easy to get confused.)
2973 if (
2974 set X `ls -t conftest.ts[12]` &&
2975 {
2976 test "$*" != "X conftest.ts1 conftest.ts2" ||
2977 test "$*" != "X conftest.ts2 conftest.ts1";
2978 }
2979 ); then :; else
2980 # If neither matched, then we have a broken ls. This can happen
2981 # if, for instance, CONFIG_SHELL is bash and it inherits a
2982 # broken ls alias from the environment. This has actually
2983 # happened. Such a system could not be considered "sane".
2984 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2986 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2987 as_fn_error $? "ls -t produces unexpected output.
2988 Make sure there is not a broken ls alias in your environment.
2989 See 'config.log' for more details" "$LINENO" 5; }
2990 fi
2991
2992 for am_try_res in $am_try_resolutions; do
2993 # Any one fine-grained sleep might happen to cross the boundary
2994 # between two values of a coarser actual resolution, but if we do
2995 # two fine-grained sleeps in a row, at least one of them will fall
2996 # entirely within a coarse interval.
2997 echo alpha > conftest.ts1
2998 sleep $am_try_res
2999 echo beta > conftest.ts2
3000 sleep $am_try_res
3001 echo gamma > conftest.ts3
3002
3003 # We assume that 'ls -t' will make use of high-resolution
3004 # timestamps if the operating system supports them at all.
3005 if (set X `ls -t conftest.ts?` &&
3006 test "$2" = conftest.ts3 &&
3007 test "$3" = conftest.ts2 &&
3008 test "$4" = conftest.ts1); then
3009 #
3010 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3011 # because we don't need to test make.
3012 make_ok=true
3013 if test $am_try_res != 1; then
3014 # But if we've succeeded so far with a subsecond resolution, we
3015 # have one more thing to check: make. It can happen that
3016 # everything else supports the subsecond mtimes, but make doesn't;
3017 # notably on macOS, which ships make 3.81 from 2006 (the last one
3018 # released under GPLv2). https://bugs.gnu.org/68808
3019 #
3020 # We test $MAKE if it is defined in the environment, else "make".
3021 # It might get overridden later, but our hope is that in practice
3022 # it does not matter: it is the system "make" which is (by far)
3023 # the most likely to be broken, whereas if the user overrides it,
3024 # probably they did so with a better, or at least not worse, make.
3025 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3026 #
3027 # Create a Makefile (real tab character here):
3028 rm -f conftest.mk
3029 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3030 echo ' touch conftest.ts2' >>conftest.mk
3031 #
3032 # Now, running
3033 # touch conftest.ts1; touch conftest.ts2; make
3034 # should touch ts1 because ts2 is newer. This could happen by luck,
3035 # but most often, it will fail if make's support is insufficient. So
3036 # test for several consecutive successes.
3037 #
3038 # (We reuse conftest.ts[12] because we still want to modify existing
3039 # files, not create new ones, per above.)
3040 n=0
3041 make=${MAKE-make}
3042 until test $n -eq 3; do
3043 echo one > conftest.ts1
3044 sleep $am_try_res
3045 echo two > conftest.ts2 # ts2 should now be newer than ts1
3046 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3047 make_ok=false
3048 break # out of $n loop
3049 fi
3050 n=`expr $n + 1`
3051 done
3052 fi
3053 #
3054 if $make_ok; then
3055 # Everything we know to check worked out, so call this resolution good.
3056 am_cv_filesystem_timestamp_resolution=$am_try_res
3057 break # out of $am_try_res loop
3058 fi
3059 # Otherwise, we'll go on to check the next resolution.
3060 fi
3061 done
3062 rm -f conftest.ts?
3063 # (end _am_filesystem_timestamp_resolution)
3064 ;;
3065 esac
3066 fi
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3068 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3069
3070 # This check should not be cached, as it may vary across builds of
3071 # different projects.
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3073 printf %s "checking whether build environment is sane... " >&6; }
3074 # Reject unsafe characters in $srcdir or the absolute working directory
3075 # name. Accept space and tab only in the latter.
3076 am_lf='
3077 '
3078 case `pwd` in
3079 *[\\\"\#\$\&\'\`$am_lf]*)
3080 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3081 esac
3082 case $srcdir in
3083 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3084 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3085 esac
3086
3087 # Do 'set' in a subshell so we don't clobber the current shell's
3088 # arguments. Must try -L first in case configure is actually a
3089 # symlink; some systems play weird games with the mod time of symlinks
3090 # (eg FreeBSD returns the mod time of the symlink's containing
3091 # directory).
3092 am_build_env_is_sane=no
3093 am_has_slept=no
3094 rm -f conftest.file
3095 for am_try in 1 2; do
3096 echo "timestamp, slept: $am_has_slept" > conftest.file
3097 if (
3098 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3099 if test "$*" = "X"; then
3100 # -L didn't work.
3101 set X `ls -t "$srcdir/configure" conftest.file`
3102 fi
3103 test "$2" = conftest.file
3104 ); then
3105 am_build_env_is_sane=yes
3106 break
3107 fi
3108 # Just in case.
3109 sleep "$am_cv_filesystem_timestamp_resolution"
3110 am_has_slept=yes
3111 done
3112
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3114 printf "%s\n" "$am_build_env_is_sane" >&6; }
3115 if test "$am_build_env_is_sane" = no; then
3116 as_fn_error $? "newly created file is older than distributed files!
3117 Check your system clock" "$LINENO" 5
3118 fi
3119
3120 # If we didn't sleep, we still need to ensure time stamps of config.status and
3121 # generated files are strictly newer.
3122 am_sleep_pid=
3123 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3124 then :
3125
3126 else case e in #(
3127 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3128 am_sleep_pid=$!
3129 ;;
3130 esac
3131 fi
3132
3133 rm -f conftest.file
3134
3135 test "$program_prefix" != NONE &&
3136 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3137 # Use a double $ so make ignores it.
3138 test "$program_suffix" != NONE &&
3139 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3140 # Double any \ or $.
3141 # By default was 's,x,x', remove it if useless.
3142 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3143 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3144
3145
3146 # Expand $ac_aux_dir to an absolute path.
3147 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3148
3149
3150 if test x"${MISSING+set}" != xset; then
3151 MISSING="\${SHELL} '$am_aux_dir/missing'"
3152 fi
3153 # Use eval to expand $SHELL
3154 if eval "$MISSING --is-lightweight"; then
3155 am_missing_run="$MISSING "
3156 else
3157 am_missing_run=
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3159 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3160 fi
3161
3162 if test x"${install_sh+set}" != xset; then
3163 case $am_aux_dir in
3164 *\ * | *\ *)
3165 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3166 *)
3167 install_sh="\${SHELL} $am_aux_dir/install-sh"
3168 esac
3169 fi
3170
3171 # Installed binaries are usually stripped using 'strip' when the user
3172 # run "make install-strip". However 'strip' might not be the right
3173 # tool to use in cross-compilation environments, therefore Automake
3174 # will honor the 'STRIP' environment variable to overrule this program.
3175 if test "$cross_compiling" != no; then
3176 if test -n "$ac_tool_prefix"; then
3177 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3178 set dummy ${ac_tool_prefix}strip; ac_word=$2
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 printf %s "checking for $ac_word... " >&6; }
3181 if test ${ac_cv_prog_STRIP+y}
3182 then :
3183 printf %s "(cached) " >&6
3184 else case e in #(
3185 e) if test -n "$STRIP"; then
3186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191 IFS=$as_save_IFS
3192 case $as_dir in #(((
3193 '') as_dir=./ ;;
3194 */) ;;
3195 *) as_dir=$as_dir/ ;;
3196 esac
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi ;;
3208 esac
3209 fi
3210 STRIP=$ac_cv_prog_STRIP
3211 if test -n "$STRIP"; then
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3213 printf "%s\n" "$STRIP" >&6; }
3214 else
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 printf "%s\n" "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 if test -z "$ac_cv_prog_STRIP"; then
3222 ac_ct_STRIP=$STRIP
3223 # Extract the first word of "strip", so it can be a program name with args.
3224 set dummy strip; ac_word=$2
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 printf %s "checking for $ac_word... " >&6; }
3227 if test ${ac_cv_prog_ac_ct_STRIP+y}
3228 then :
3229 printf %s "(cached) " >&6
3230 else case e in #(
3231 e) if test -n "$ac_ct_STRIP"; then
3232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 case $as_dir in #(((
3239 '') as_dir=./ ;;
3240 */) ;;
3241 *) as_dir=$as_dir/ ;;
3242 esac
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_ac_ct_STRIP="strip"
3246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi ;;
3254 esac
3255 fi
3256 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3257 if test -n "$ac_ct_STRIP"; then
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3259 printf "%s\n" "$ac_ct_STRIP" >&6; }
3260 else
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 printf "%s\n" "no" >&6; }
3263 fi
3264
3265 if test "x$ac_ct_STRIP" = x; then
3266 STRIP=":"
3267 else
3268 case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272 ac_tool_warned=yes ;;
3273 esac
3274 STRIP=$ac_ct_STRIP
3275 fi
3276 else
3277 STRIP="$ac_cv_prog_STRIP"
3278 fi
3279
3280 fi
3281 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3282
3283
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3285 printf %s "checking for a race-free mkdir -p... " >&6; }
3286 if test -z "$MKDIR_P"; then
3287 if test ${ac_cv_path_mkdir+y}
3288 then :
3289 printf %s "(cached) " >&6
3290 else case e in #(
3291 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3293 do
3294 IFS=$as_save_IFS
3295 case $as_dir in #(((
3296 '') as_dir=./ ;;
3297 */) ;;
3298 *) as_dir=$as_dir/ ;;
3299 esac
3300 for ac_prog in mkdir gmkdir; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3303 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3304 'mkdir ('*'coreutils) '* | \
3305 *'BusyBox '* | \
3306 'mkdir (fileutils) '4.1*)
3307 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3308 break 3;;
3309 esac
3310 done
3311 done
3312 done
3313 IFS=$as_save_IFS
3314 ;;
3315 esac
3316 fi
3317
3318 test -d ./--version && rmdir ./--version
3319 if test ${ac_cv_path_mkdir+y}; then
3320 MKDIR_P="$ac_cv_path_mkdir -p"
3321 else
3322 # As a last resort, use plain mkdir -p,
3323 # in the hope it doesn't have the bugs of ancient mkdir.
3324 MKDIR_P='mkdir -p'
3325 fi
3326 fi
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3328 printf "%s\n" "$MKDIR_P" >&6; }
3329
3330 for ac_prog in gawk mawk nawk awk
3331 do
3332 # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy $ac_prog; ac_word=$2
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 printf %s "checking for $ac_word... " >&6; }
3336 if test ${ac_cv_prog_AWK+y}
3337 then :
3338 printf %s "(cached) " >&6
3339 else case e in #(
3340 e) if test -n "$AWK"; then
3341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346 IFS=$as_save_IFS
3347 case $as_dir in #(((
3348 '') as_dir=./ ;;
3349 */) ;;
3350 *) as_dir=$as_dir/ ;;
3351 esac
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_AWK="$ac_prog"
3355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3356 break 2
3357 fi
3358 done
3359 done
3360 IFS=$as_save_IFS
3361
3362 fi ;;
3363 esac
3364 fi
3365 AWK=$ac_cv_prog_AWK
3366 if test -n "$AWK"; then
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3368 printf "%s\n" "$AWK" >&6; }
3369 else
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 printf "%s\n" "no" >&6; }
3372 fi
3373
3374
3375 test -n "$AWK" && break
3376 done
3377
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3379 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3380 set x ${MAKE-make}
3381 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3382 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3383 then :
3384 printf %s "(cached) " >&6
3385 else case e in #(
3386 e) cat >conftest.make <<\_ACEOF
3387 SHELL = /bin/sh
3388 all:
3389 @echo '@@@%%%=$(MAKE)=@@@%%%'
3390 _ACEOF
3391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3393 *@@@%%%=?*=@@@%%%*)
3394 eval ac_cv_prog_make_${ac_make}_set=yes;;
3395 *)
3396 eval ac_cv_prog_make_${ac_make}_set=no;;
3397 esac
3398 rm -f conftest.make ;;
3399 esac
3400 fi
3401 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403 printf "%s\n" "yes" >&6; }
3404 SET_MAKE=
3405 else
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 printf "%s\n" "no" >&6; }
3408 SET_MAKE="MAKE=${MAKE-make}"
3409 fi
3410
3411 rm -rf .tst 2>/dev/null
3412 mkdir .tst 2>/dev/null
3413 if test -d .tst; then
3414 am__leading_dot=.
3415 else
3416 am__leading_dot=_
3417 fi
3418 rmdir .tst 2>/dev/null
3419
3420 AM_DEFAULT_VERBOSITY=1
3421 # Check whether --enable-silent-rules was given.
3422 if test ${enable_silent_rules+y}
3423 then :
3424 enableval=$enable_silent_rules;
3425 fi
3426
3427 am_make=${MAKE-make}
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3429 printf %s "checking whether $am_make supports nested variables... " >&6; }
3430 if test ${am_cv_make_support_nested_variables+y}
3431 then :
3432 printf %s "(cached) " >&6
3433 else case e in #(
3434 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3435 BAR0=false
3436 BAR1=true
3437 V=1
3438 am__doit:
3439 @$(TRUE)
3440 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3441 am_cv_make_support_nested_variables=yes
3442 else
3443 am_cv_make_support_nested_variables=no
3444 fi ;;
3445 esac
3446 fi
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3448 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3449 AM_BACKSLASH='\'
3450
3451 am__rm_f_notfound=
3452 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3453 then :
3454
3455 else case e in #(
3456 e) am__rm_f_notfound='""' ;;
3457 esac
3458 fi
3459
3460
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3462 printf %s "checking xargs -n works... " >&6; }
3463 if test ${am_cv_xargs_n_works+y}
3464 then :
3465 printf %s "(cached) " >&6
3466 else case e in #(
3467 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3468 3"
3469 then :
3470 am_cv_xargs_n_works=yes
3471 else case e in #(
3472 e) am_cv_xargs_n_works=no ;;
3473 esac
3474 fi ;;
3475 esac
3476 fi
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3478 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3479 if test "$am_cv_xargs_n_works" = yes
3480 then :
3481 am__xargs_n='xargs -n'
3482 else case e in #(
3483 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3484 ;;
3485 esac
3486 fi
3487
3488 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3489 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3490 # is not polluted with repeated "-I."
3491 am__isrc=' -I$(srcdir)'
3492 # test to see if srcdir already configured
3493 if test -f $srcdir/config.status; then
3494 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3495 fi
3496 fi
3497
3498 # test whether we have cygpath
3499 if test -z "$CYGPATH_W"; then
3500 if (cygpath --version) >/dev/null 2>/dev/null; then
3501 CYGPATH_W='cygpath -w'
3502 else
3503 CYGPATH_W=echo
3504 fi
3505 fi
3506
3507
3508 # Define the identity of the package.
3509 PACKAGE='NetworkManager-openvpn'
3510 VERSION='1.12.5'
3511
3512
3513 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3514
3515
3516 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3517
3518 # Some tools Automake needs.
3519
3520 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3521
3522
3523 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3524
3525
3526 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3527
3528
3529 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3530
3531
3532 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3533
3534 # For better backward compatibility. To be removed once Automake 1.9.x
3535 # dies out for good. For more background, see:
3536 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3537 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3538 mkdir_p='$(MKDIR_P)'
3539
3540 # We need awk for the "check" target (and possibly the TAP driver). The
3541 # system "awk" is bad on some platforms.
3542 # Always define AMTAR for backward compatibility. Yes, it's still used
3543 # in the wild :-( We should find a proper way to deprecate it ...
3544 AMTAR='$${TAR-tar}'
3545
3546
3547 # We'll loop over all known methods to create a tar archive until one works.
3548 _am_tools='gnutar plaintar pax cpio none'
3549
3550 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3551 # There is notably a 21 bits limit for the UID and the GID. In fact,
3552 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3553 # and bug#13588).
3554 am_max_uid=2097151 # 2^21 - 1
3555 am_max_gid=$am_max_uid
3556 # The $UID and $GID variables are not portable, so we need to resort
3557 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3558 # below are definitely unexpected, so allow the users to see them
3559 # (that is, avoid stderr redirection).
3560 am_uid=`id -u || echo unknown`
3561 am_gid=`id -g || echo unknown`
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3563 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3564 if test x$am_uid = xunknown; then
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3566 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3567 elif test $am_uid -le $am_max_uid; then
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3569 printf "%s\n" "yes" >&6; }
3570 else
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 printf "%s\n" "no" >&6; }
3573 _am_tools=none
3574 fi
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3576 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3577 if test x$gm_gid = xunknown; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3579 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3580 elif test $am_gid -le $am_max_gid; then
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3582 printf "%s\n" "yes" >&6; }
3583 else
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 printf "%s\n" "no" >&6; }
3586 _am_tools=none
3587 fi
3588
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3590 printf %s "checking how to create a ustar tar archive... " >&6; }
3591
3592 # Go ahead even if we have the value already cached. We do so because we
3593 # need to set the values for the 'am__tar' and 'am__untar' variables.
3594 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3595
3596 for _am_tool in $_am_tools; do
3597 case $_am_tool in
3598 gnutar)
3599 for _am_tar in tar gnutar gtar; do
3600 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3601 ($_am_tar --version) >&5 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && break
3605 done
3606 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3607 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3608 am__untar="$_am_tar -xf -"
3609 ;;
3610 plaintar)
3611 # Must skip GNU tar: if it does not support --format= it doesn't create
3612 # ustar tarball either.
3613 (tar --version) >/dev/null 2>&1 && continue
3614 am__tar='tar chf - "$$tardir"'
3615 am__tar_='tar chf - "$tardir"'
3616 am__untar='tar xf -'
3617 ;;
3618 pax)
3619 am__tar='pax -L -x ustar -w "$$tardir"'
3620 am__tar_='pax -L -x ustar -w "$tardir"'
3621 am__untar='pax -r'
3622 ;;
3623 cpio)
3624 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3625 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3626 am__untar='cpio -i -H ustar -d'
3627 ;;
3628 none)
3629 am__tar=false
3630 am__tar_=false
3631 am__untar=false
3632 ;;
3633 esac
3634
3635 # If the value was cached, stop now. We just wanted to have am__tar
3636 # and am__untar set.
3637 test -n "${am_cv_prog_tar_ustar}" && break
3638
3639 # tar/untar a dummy directory, and stop if the command works.
3640 rm -rf conftest.dir
3641 mkdir conftest.dir
3642 echo GrepMe > conftest.dir/file
3643 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3644 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }
3648 rm -rf conftest.dir
3649 if test -s conftest.tar; then
3650 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3651 ($am__untar <conftest.tar) >&5 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }
3655 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3656 (cat conftest.dir/file) >&5 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }
3660 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3661 fi
3662 done
3663 rm -rf conftest.dir
3664
3665 if test ${am_cv_prog_tar_ustar+y}
3666 then :
3667 printf %s "(cached) " >&6
3668 else case e in #(
3669 e) am_cv_prog_tar_ustar=$_am_tool ;;
3670 esac
3671 fi
3672
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3674 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3675
3676
3677
3678
3679
3680 # Variables for tags utilities; see am/tags.am
3681 if test -z "$CTAGS"; then
3682 CTAGS=ctags
3683 fi
3684
3685 if test -z "$ETAGS"; then
3686 ETAGS=etags
3687 fi
3688
3689 if test -z "$CSCOPE"; then
3690 CSCOPE=cscope
3691 fi
3692
3693
3694
3695
3696
3697
3698
3699
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3701 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3702 # Check whether --enable-maintainer-mode was given.
3703 if test ${enable_maintainer_mode+y}
3704 then :
3705 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3706 else case e in #(
3707 e) USE_MAINTAINER_MODE=no ;;
3708 esac
3709 fi
3710
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3712 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3713 if test $USE_MAINTAINER_MODE = yes; then
3714 MAINTAINER_MODE_TRUE=
3715 MAINTAINER_MODE_FALSE='#'
3716 else
3717 MAINTAINER_MODE_TRUE='#'
3718 MAINTAINER_MODE_FALSE=
3719 fi
3720
3721 MAINT=$MAINTAINER_MODE_TRUE
3722
3723
3724
3725 AM_DEFAULT_VERBOSITY=0
3726
3727 ac_config_headers="$ac_config_headers config.h"
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739 DEPDIR="${am__leading_dot}deps"
3740
3741 ac_config_commands="$ac_config_commands depfiles"
3742
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3744 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3745 cat > confinc.mk << 'END'
3746 am__doit:
3747 @echo this is the am__doit target >confinc.out
3748 .PHONY: am__doit
3749 END
3750 am__include="#"
3751 am__quote=
3752 # BSD make does it like this.
3753 echo '.include "confinc.mk" # ignored' > confmf.BSD
3754 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3755 echo 'include confinc.mk # ignored' > confmf.GNU
3756 _am_result=no
3757 for s in GNU BSD; do
3758 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3759 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }
3763 case $?:`cat confinc.out 2>/dev/null` in #(
3764 '0:this is the am__doit target') :
3765 case $s in #(
3766 BSD) :
3767 am__include='.include' am__quote='"' ;; #(
3768 *) :
3769 am__include='include' am__quote='' ;;
3770 esac ;; #(
3771 *) :
3772 ;;
3773 esac
3774 if test "$am__include" != "#"; then
3775 _am_result="yes ($s style)"
3776 break
3777 fi
3778 done
3779 rm -f confinc.* confmf.*
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3781 printf "%s\n" "${_am_result}" >&6; }
3782
3783 # Check whether --enable-dependency-tracking was given.
3784 if test ${enable_dependency_tracking+y}
3785 then :
3786 enableval=$enable_dependency_tracking;
3787 fi
3788
3789 if test "x$enable_dependency_tracking" != xno; then
3790 am_depcomp="$ac_aux_dir/depcomp"
3791 AMDEPBACKSLASH='\'
3792 am__nodep='_no'
3793 fi
3794 if test "x$enable_dependency_tracking" != xno; then
3795 AMDEP_TRUE=
3796 AMDEP_FALSE='#'
3797 else
3798 AMDEP_TRUE='#'
3799 AMDEP_FALSE=
3800 fi
3801
3802
3803 ac_ext=c
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3812 printf %s "checking for $ac_word... " >&6; }
3813 if test ${ac_cv_prog_CC+y}
3814 then :
3815 printf %s "(cached) " >&6
3816 else case e in #(
3817 e) if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 case $as_dir in #(((
3825 '') as_dir=./ ;;
3826 */) ;;
3827 *) as_dir=$as_dir/ ;;
3828 esac
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835 done
3836 done
3837 IFS=$as_save_IFS
3838
3839 fi ;;
3840 esac
3841 fi
3842 CC=$ac_cv_prog_CC
3843 if test -n "$CC"; then
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845 printf "%s\n" "$CC" >&6; }
3846 else
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 printf "%s\n" "no" >&6; }
3849 fi
3850
3851
3852 fi
3853 if test -z "$ac_cv_prog_CC"; then
3854 ac_ct_CC=$CC
3855 # Extract the first word of "gcc", so it can be a program name with args.
3856 set dummy gcc; ac_word=$2
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 printf %s "checking for $ac_word... " >&6; }
3859 if test ${ac_cv_prog_ac_ct_CC+y}
3860 then :
3861 printf %s "(cached) " >&6
3862 else case e in #(
3863 e) if test -n "$ac_ct_CC"; then
3864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869 IFS=$as_save_IFS
3870 case $as_dir in #(((
3871 '') as_dir=./ ;;
3872 */) ;;
3873 *) as_dir=$as_dir/ ;;
3874 esac
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_CC="gcc"
3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881 done
3882 done
3883 IFS=$as_save_IFS
3884
3885 fi ;;
3886 esac
3887 fi
3888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3889 if test -n "$ac_ct_CC"; then
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3891 printf "%s\n" "$ac_ct_CC" >&6; }
3892 else
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 printf "%s\n" "no" >&6; }
3895 fi
3896
3897 if test "x$ac_ct_CC" = x; then
3898 CC=""
3899 else
3900 case $cross_compiling:$ac_tool_warned in
3901 yes:)
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3904 ac_tool_warned=yes ;;
3905 esac
3906 CC=$ac_ct_CC
3907 fi
3908 else
3909 CC="$ac_cv_prog_CC"
3910 fi
3911
3912 if test -z "$CC"; then
3913 if test -n "$ac_tool_prefix"; then
3914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3915 set dummy ${ac_tool_prefix}cc; ac_word=$2
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 printf %s "checking for $ac_word... " >&6; }
3918 if test ${ac_cv_prog_CC+y}
3919 then :
3920 printf %s "(cached) " >&6
3921 else case e in #(
3922 e) if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 case $as_dir in #(((
3930 '') as_dir=./ ;;
3931 */) ;;
3932 *) as_dir=$as_dir/ ;;
3933 esac
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_CC="${ac_tool_prefix}cc"
3937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940 done
3941 done
3942 IFS=$as_save_IFS
3943
3944 fi ;;
3945 esac
3946 fi
3947 CC=$ac_cv_prog_CC
3948 if test -n "$CC"; then
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 printf "%s\n" "$CC" >&6; }
3951 else
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 printf "%s\n" "no" >&6; }
3954 fi
3955
3956
3957 fi
3958 fi
3959 if test -z "$CC"; then
3960 # Extract the first word of "cc", so it can be a program name with args.
3961 set dummy cc; ac_word=$2
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 printf %s "checking for $ac_word... " >&6; }
3964 if test ${ac_cv_prog_CC+y}
3965 then :
3966 printf %s "(cached) " >&6
3967 else case e in #(
3968 e) if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3970 else
3971 ac_prog_rejected=no
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 case $as_dir in #(((
3977 '') as_dir=./ ;;
3978 */) ;;
3979 *) as_dir=$as_dir/ ;;
3980 esac
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3983 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3984 ac_prog_rejected=yes
3985 continue
3986 fi
3987 ac_cv_prog_CC="cc"
3988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991 done
3992 done
3993 IFS=$as_save_IFS
3994
3995 if test $ac_prog_rejected = yes; then
3996 # We found a bogon in the path, so make sure we never use it.
3997 set dummy $ac_cv_prog_CC
3998 shift
3999 if test $# != 0; then
4000 # We chose a different compiler from the bogus one.
4001 # However, it has the same basename, so the bogon will be chosen
4002 # first if we set CC to just the basename; use the full file name.
4003 shift
4004 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4005 fi
4006 fi
4007 fi ;;
4008 esac
4009 fi
4010 CC=$ac_cv_prog_CC
4011 if test -n "$CC"; then
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013 printf "%s\n" "$CC" >&6; }
4014 else
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 printf "%s\n" "no" >&6; }
4017 fi
4018
4019
4020 fi
4021 if test -z "$CC"; then
4022 if test -n "$ac_tool_prefix"; then
4023 for ac_prog in cl.exe
4024 do
4025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 printf %s "checking for $ac_word... " >&6; }
4029 if test ${ac_cv_prog_CC+y}
4030 then :
4031 printf %s "(cached) " >&6
4032 else case e in #(
4033 e) if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039 IFS=$as_save_IFS
4040 case $as_dir in #(((
4041 '') as_dir=./ ;;
4042 */) ;;
4043 *) as_dir=$as_dir/ ;;
4044 esac
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051 done
4052 done
4053 IFS=$as_save_IFS
4054
4055 fi ;;
4056 esac
4057 fi
4058 CC=$ac_cv_prog_CC
4059 if test -n "$CC"; then
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061 printf "%s\n" "$CC" >&6; }
4062 else
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 printf "%s\n" "no" >&6; }
4065 fi
4066
4067
4068 test -n "$CC" && break
4069 done
4070 fi
4071 if test -z "$CC"; then
4072 ac_ct_CC=$CC
4073 for ac_prog in cl.exe
4074 do
4075 # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy $ac_prog; ac_word=$2
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 printf %s "checking for $ac_word... " >&6; }
4079 if test ${ac_cv_prog_ac_ct_CC+y}
4080 then :
4081 printf %s "(cached) " >&6
4082 else case e in #(
4083 e) if test -n "$ac_ct_CC"; then
4084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 case $as_dir in #(((
4091 '') as_dir=./ ;;
4092 */) ;;
4093 *) as_dir=$as_dir/ ;;
4094 esac
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_ac_ct_CC="$ac_prog"
4098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi ;;
4106 esac
4107 fi
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111 printf "%s\n" "$ac_ct_CC" >&6; }
4112 else
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 printf "%s\n" "no" >&6; }
4115 fi
4116
4117
4118 test -n "$ac_ct_CC" && break
4119 done
4120
4121 if test "x$ac_ct_CC" = x; then
4122 CC=""
4123 else
4124 case $cross_compiling:$ac_tool_warned in
4125 yes:)
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4127 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4128 ac_tool_warned=yes ;;
4129 esac
4130 CC=$ac_ct_CC
4131 fi
4132 fi
4133
4134 fi
4135 if test -z "$CC"; then
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}clang; ac_word=$2
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 printf %s "checking for $ac_word... " >&6; }
4141 if test ${ac_cv_prog_CC+y}
4142 then :
4143 printf %s "(cached) " >&6
4144 else case e in #(
4145 e) if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151 IFS=$as_save_IFS
4152 case $as_dir in #(((
4153 '') as_dir=./ ;;
4154 */) ;;
4155 *) as_dir=$as_dir/ ;;
4156 esac
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_CC="${ac_tool_prefix}clang"
4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 fi ;;
4168 esac
4169 fi
4170 CC=$ac_cv_prog_CC
4171 if test -n "$CC"; then
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4173 printf "%s\n" "$CC" >&6; }
4174 else
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 printf "%s\n" "no" >&6; }
4177 fi
4178
4179
4180 fi
4181 if test -z "$ac_cv_prog_CC"; then
4182 ac_ct_CC=$CC
4183 # Extract the first word of "clang", so it can be a program name with args.
4184 set dummy clang; ac_word=$2
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 printf %s "checking for $ac_word... " >&6; }
4187 if test ${ac_cv_prog_ac_ct_CC+y}
4188 then :
4189 printf %s "(cached) " >&6
4190 else case e in #(
4191 e) if test -n "$ac_ct_CC"; then
4192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197 IFS=$as_save_IFS
4198 case $as_dir in #(((
4199 '') as_dir=./ ;;
4200 */) ;;
4201 *) as_dir=$as_dir/ ;;
4202 esac
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_ac_ct_CC="clang"
4206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi ;;
4214 esac
4215 fi
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4219 printf "%s\n" "$ac_ct_CC" >&6; }
4220 else
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 printf "%s\n" "no" >&6; }
4223 fi
4224
4225 if test "x$ac_ct_CC" = x; then
4226 CC=""
4227 else
4228 case $cross_compiling:$ac_tool_warned in
4229 yes:)
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232 ac_tool_warned=yes ;;
4233 esac
4234 CC=$ac_ct_CC
4235 fi
4236 else
4237 CC="$ac_cv_prog_CC"
4238 fi
4239
4240 fi
4241
4242
4243 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4244 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4245 as_fn_error $? "no acceptable C compiler found in \$PATH
4246 See 'config.log' for more details" "$LINENO" 5; }
4247
4248 # Provide some information about the compiler.
4249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4250 set X $ac_compile
4251 ac_compiler=$2
4252 for ac_option in --version -v -V -qversion -version; do
4253 { { ac_try="$ac_compiler $ac_option >&5"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 printf "%s\n" "$ac_try_echo"; } >&5
4260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4261 ac_status=$?
4262 if test -s conftest.err; then
4263 sed '10a\
4264 ... rest of stderr output deleted ...
4265 10q' conftest.err >conftest.er1
4266 cat conftest.er1 >&5
4267 fi
4268 rm -f conftest.er1 conftest.err
4269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }
4271 done
4272
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 int
4277 main (void)
4278 {
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 ac_clean_files_save=$ac_clean_files
4285 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4286 # Try to create an executable without -o first, disregard a.out.
4287 # It will help us diagnose broken compilers, and finding out an intuition
4288 # of exeext.
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4290 printf %s "checking whether the C compiler works... " >&6; }
4291 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4292
4293 # The possible output files:
4294 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4295
4296 ac_rmfiles=
4297 for ac_file in $ac_files
4298 do
4299 case $ac_file in
4300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4301 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4302 esac
4303 done
4304 rm -f $ac_rmfiles
4305
4306 if { { ac_try="$ac_link_default"
4307 case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 printf "%s\n" "$ac_try_echo"; } >&5
4313 (eval "$ac_link_default") 2>&5
4314 ac_status=$?
4315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }
4317 then :
4318 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4319 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4320 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4321 # so that the user can short-circuit this test for compilers unknown to
4322 # Autoconf.
4323 for ac_file in $ac_files ''
4324 do
4325 test -f "$ac_file" || continue
4326 case $ac_file in
4327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4328 ;;
4329 [ab].out )
4330 # We found the default executable, but exeext='' is most
4331 # certainly right.
4332 break;;
4333 *.* )
4334 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4335 then :; else
4336 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4337 fi
4338 # We set ac_cv_exeext here because the later test for it is not
4339 # safe: cross compilers may not add the suffix if given an '-o'
4340 # argument, so we may need to know it at that point already.
4341 # Even if this section looks crufty: it has the advantage of
4342 # actually working.
4343 break;;
4344 * )
4345 break;;
4346 esac
4347 done
4348 test "$ac_cv_exeext" = no && ac_cv_exeext=
4349
4350 else case e in #(
4351 e) ac_file='' ;;
4352 esac
4353 fi
4354 if test -z "$ac_file"
4355 then :
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 printf "%s\n" "no" >&6; }
4358 printf "%s\n" "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4362 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4363 as_fn_error 77 "C compiler cannot create executables
4364 See 'config.log' for more details" "$LINENO" 5; }
4365 else case e in #(
4366 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 printf "%s\n" "yes" >&6; } ;;
4368 esac
4369 fi
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371 printf %s "checking for C compiler default output file name... " >&6; }
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4373 printf "%s\n" "$ac_file" >&6; }
4374 ac_exeext=$ac_cv_exeext
4375
4376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4377 ac_clean_files=$ac_clean_files_save
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4379 printf %s "checking for suffix of executables... " >&6; }
4380 if { { ac_try="$ac_link"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 printf "%s\n" "$ac_try_echo"; } >&5
4387 (eval "$ac_link") 2>&5
4388 ac_status=$?
4389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391 then :
4392 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4393 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4394 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4395 # 'rm'.
4396 for ac_file in conftest.exe conftest conftest.*; do
4397 test -f "$ac_file" || continue
4398 case $ac_file in
4399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4401 break;;
4402 * ) break;;
4403 esac
4404 done
4405 else case e in #(
4406 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4407 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4408 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4409 See 'config.log' for more details" "$LINENO" 5; } ;;
4410 esac
4411 fi
4412 rm -f conftest conftest$ac_cv_exeext
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4414 printf "%s\n" "$ac_cv_exeext" >&6; }
4415
4416 rm -f conftest.$ac_ext
4417 EXEEXT=$ac_cv_exeext
4418 ac_exeext=$EXEEXT
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <stdio.h>
4422 int
4423 main (void)
4424 {
4425 FILE *f = fopen ("conftest.out", "w");
4426 if (!f)
4427 return 1;
4428 return ferror (f) || fclose (f) != 0;
4429
4430 ;
4431 return 0;
4432 }
4433 _ACEOF
4434 ac_clean_files="$ac_clean_files conftest.out"
4435 # Check that the compiler produces executables we can run. If not, either
4436 # the compiler is broken, or we cross compile.
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4438 printf %s "checking whether we are cross compiling... " >&6; }
4439 if test "$cross_compiling" != yes; then
4440 { { ac_try="$ac_link"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 printf "%s\n" "$ac_try_echo"; } >&5
4447 (eval "$ac_link") 2>&5
4448 ac_status=$?
4449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; }
4451 if { ac_try='./conftest$ac_cv_exeext'
4452 { { case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 printf "%s\n" "$ac_try_echo"; } >&5
4458 (eval "$ac_try") 2>&5
4459 ac_status=$?
4460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; }; then
4462 cross_compiling=no
4463 else
4464 if test "$cross_compiling" = maybe; then
4465 cross_compiling=yes
4466 else
4467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4468 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4469 as_fn_error 77 "cannot run C compiled programs.
4470 If you meant to cross compile, use '--host'.
4471 See 'config.log' for more details" "$LINENO" 5; }
4472 fi
4473 fi
4474 fi
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4476 printf "%s\n" "$cross_compiling" >&6; }
4477
4478 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4479 conftest.o conftest.obj conftest.out
4480 ac_clean_files=$ac_clean_files_save
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4482 printf %s "checking for suffix of object files... " >&6; }
4483 if test ${ac_cv_objext+y}
4484 then :
4485 printf %s "(cached) " >&6
4486 else case e in #(
4487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489
4490 int
4491 main (void)
4492 {
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 rm -f conftest.o conftest.obj
4499 if { { ac_try="$ac_compile"
4500 case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 printf "%s\n" "$ac_try_echo"; } >&5
4506 (eval "$ac_compile") 2>&5
4507 ac_status=$?
4508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4510 then :
4511 for ac_file in conftest.o conftest.obj conftest.*; do
4512 test -f "$ac_file" || continue;
4513 case $ac_file in
4514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4516 break;;
4517 esac
4518 done
4519 else case e in #(
4520 e) printf "%s\n" "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4524 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4525 as_fn_error $? "cannot compute suffix of object files: cannot compile
4526 See 'config.log' for more details" "$LINENO" 5; } ;;
4527 esac
4528 fi
4529 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4530 esac
4531 fi
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4533 printf "%s\n" "$ac_cv_objext" >&6; }
4534 OBJEXT=$ac_cv_objext
4535 ac_objext=$OBJEXT
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4537 printf %s "checking whether the compiler supports GNU C... " >&6; }
4538 if test ${ac_cv_c_compiler_gnu+y}
4539 then :
4540 printf %s "(cached) " >&6
4541 else case e in #(
4542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544
4545 int
4546 main (void)
4547 {
4548 #ifndef __GNUC__
4549 choke me
4550 #endif
4551
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"
4557 then :
4558 ac_compiler_gnu=yes
4559 else case e in #(
4560 e) ac_compiler_gnu=no ;;
4561 esac
4562 fi
4563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4564 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4565 ;;
4566 esac
4567 fi
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4569 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571
4572 if test $ac_compiler_gnu = yes; then
4573 GCC=yes
4574 else
4575 GCC=
4576 fi
4577 ac_test_CFLAGS=${CFLAGS+y}
4578 ac_save_CFLAGS=$CFLAGS
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4580 printf %s "checking whether $CC accepts -g... " >&6; }
4581 if test ${ac_cv_prog_cc_g+y}
4582 then :
4583 printf %s "(cached) " >&6
4584 else case e in #(
4585 e) ac_save_c_werror_flag=$ac_c_werror_flag
4586 ac_c_werror_flag=yes
4587 ac_cv_prog_cc_g=no
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591
4592 int
4593 main (void)
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"
4601 then :
4602 ac_cv_prog_cc_g=yes
4603 else case e in #(
4604 e) CFLAGS=""
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607
4608 int
4609 main (void)
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"
4617 then :
4618
4619 else case e in #(
4620 e) ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="-g"
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624
4625 int
4626 main (void)
4627 {
4628
4629 ;
4630 return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"
4634 then :
4635 ac_cv_prog_cc_g=yes
4636 fi
4637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4638 esac
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4641 esac
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4644 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4645 esac
4646 fi
4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4648 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4649 if test $ac_test_CFLAGS; then
4650 CFLAGS=$ac_save_CFLAGS
4651 elif test $ac_cv_prog_cc_g = yes; then
4652 if test "$GCC" = yes; then
4653 CFLAGS="-g -O2"
4654 else
4655 CFLAGS="-g"
4656 fi
4657 else
4658 if test "$GCC" = yes; then
4659 CFLAGS="-O2"
4660 else
4661 CFLAGS=
4662 fi
4663 fi
4664 ac_prog_cc_stdc=no
4665 if test x$ac_prog_cc_stdc = xno
4666 then :
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4668 printf %s "checking for $CC option to enable C11 features... " >&6; }
4669 if test ${ac_cv_prog_cc_c11+y}
4670 then :
4671 printf %s "(cached) " >&6
4672 else case e in #(
4673 e) ac_cv_prog_cc_c11=no
4674 ac_save_CC=$CC
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 $ac_c_conftest_c11_program
4678 _ACEOF
4679 for ac_arg in '' -std=gnu11
4680 do
4681 CC="$ac_save_CC $ac_arg"
4682 if ac_fn_c_try_compile "$LINENO"
4683 then :
4684 ac_cv_prog_cc_c11=$ac_arg
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.beam
4687 test "x$ac_cv_prog_cc_c11" != "xno" && break
4688 done
4689 rm -f conftest.$ac_ext
4690 CC=$ac_save_CC ;;
4691 esac
4692 fi
4693
4694 if test "x$ac_cv_prog_cc_c11" = xno
4695 then :
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4697 printf "%s\n" "unsupported" >&6; }
4698 else case e in #(
4699 e) if test "x$ac_cv_prog_cc_c11" = x
4700 then :
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4702 printf "%s\n" "none needed" >&6; }
4703 else case e in #(
4704 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4705 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4706 CC="$CC $ac_cv_prog_cc_c11" ;;
4707 esac
4708 fi
4709 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4710 ac_prog_cc_stdc=c11 ;;
4711 esac
4712 fi
4713 fi
4714 if test x$ac_prog_cc_stdc = xno
4715 then :
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4717 printf %s "checking for $CC option to enable C99 features... " >&6; }
4718 if test ${ac_cv_prog_cc_c99+y}
4719 then :
4720 printf %s "(cached) " >&6
4721 else case e in #(
4722 e) ac_cv_prog_cc_c99=no
4723 ac_save_CC=$CC
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726 $ac_c_conftest_c99_program
4727 _ACEOF
4728 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4729 do
4730 CC="$ac_save_CC $ac_arg"
4731 if ac_fn_c_try_compile "$LINENO"
4732 then :
4733 ac_cv_prog_cc_c99=$ac_arg
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.beam
4736 test "x$ac_cv_prog_cc_c99" != "xno" && break
4737 done
4738 rm -f conftest.$ac_ext
4739 CC=$ac_save_CC ;;
4740 esac
4741 fi
4742
4743 if test "x$ac_cv_prog_cc_c99" = xno
4744 then :
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4746 printf "%s\n" "unsupported" >&6; }
4747 else case e in #(
4748 e) if test "x$ac_cv_prog_cc_c99" = x
4749 then :
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4751 printf "%s\n" "none needed" >&6; }
4752 else case e in #(
4753 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4754 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4755 CC="$CC $ac_cv_prog_cc_c99" ;;
4756 esac
4757 fi
4758 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4759 ac_prog_cc_stdc=c99 ;;
4760 esac
4761 fi
4762 fi
4763 if test x$ac_prog_cc_stdc = xno
4764 then :
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4766 printf %s "checking for $CC option to enable C89 features... " >&6; }
4767 if test ${ac_cv_prog_cc_c89+y}
4768 then :
4769 printf %s "(cached) " >&6
4770 else case e in #(
4771 e) ac_cv_prog_cc_c89=no
4772 ac_save_CC=$CC
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 $ac_c_conftest_c89_program
4776 _ACEOF
4777 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4778 do
4779 CC="$ac_save_CC $ac_arg"
4780 if ac_fn_c_try_compile "$LINENO"
4781 then :
4782 ac_cv_prog_cc_c89=$ac_arg
4783 fi
4784 rm -f core conftest.err conftest.$ac_objext conftest.beam
4785 test "x$ac_cv_prog_cc_c89" != "xno" && break
4786 done
4787 rm -f conftest.$ac_ext
4788 CC=$ac_save_CC ;;
4789 esac
4790 fi
4791
4792 if test "x$ac_cv_prog_cc_c89" = xno
4793 then :
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795 printf "%s\n" "unsupported" >&6; }
4796 else case e in #(
4797 e) if test "x$ac_cv_prog_cc_c89" = x
4798 then :
4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4800 printf "%s\n" "none needed" >&6; }
4801 else case e in #(
4802 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4803 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4804 CC="$CC $ac_cv_prog_cc_c89" ;;
4805 esac
4806 fi
4807 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4808 ac_prog_cc_stdc=c89 ;;
4809 esac
4810 fi
4811 fi
4812
4813 ac_ext=c
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818
4819
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4826 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4827 if test ${am_cv_prog_cc_c_o+y}
4828 then :
4829 printf %s "(cached) " >&6
4830 else case e in #(
4831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833
4834 int
4835 main (void)
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 # Make sure it works both with $CC and with simple cc.
4843 # Following AC_PROG_CC_C_O, we do the test twice because some
4844 # compilers refuse to overwrite an existing .o file with -o,
4845 # though they will create one.
4846 am_cv_prog_cc_c_o=yes
4847 for am_i in 1 2; do
4848 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4849 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } \
4853 && test -f conftest2.$ac_objext; then
4854 : OK
4855 else
4856 am_cv_prog_cc_c_o=no
4857 break
4858 fi
4859 done
4860 rm -f core conftest*
4861 unset am_i ;;
4862 esac
4863 fi
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4865 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4866 if test "$am_cv_prog_cc_c_o" != yes; then
4867 # Losing compiler, so override with the script.
4868 # FIXME: It is wrong to rewrite CC.
4869 # But if we don't then we get into trouble of one sort or another.
4870 # A longer-term fix would be to have automake use am__CC in this case,
4871 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4872 CC="$am_aux_dir/compile $CC"
4873 fi
4874 ac_ext=c
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879
4880
4881 depcc="$CC" am_compiler_list=
4882
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4884 printf %s "checking dependency style of $depcc... " >&6; }
4885 if test ${am_cv_CC_dependencies_compiler_type+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else case e in #(
4889 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4890 # We make a subdir and do the tests there. Otherwise we can end up
4891 # making bogus files that we don't know about and never remove. For
4892 # instance it was reported that on HP-UX the gcc test will end up
4893 # making a dummy file named 'D' -- because '-MD' means "put the output
4894 # in D".
4895 rm -rf conftest.dir
4896 mkdir conftest.dir
4897 # Copy depcomp to subdir because otherwise we won't find it if we're
4898 # using a relative directory.
4899 cp "$am_depcomp" conftest.dir
4900 cd conftest.dir
4901 # We will build objects and dependencies in a subdirectory because
4902 # it helps to detect inapplicable dependency modes. For instance
4903 # both Tru64's cc and ICC support -MD to output dependencies as a
4904 # side effect of compilation, but ICC will put the dependencies in
4905 # the current directory while Tru64 will put them in the object
4906 # directory.
4907 mkdir sub
4908
4909 am_cv_CC_dependencies_compiler_type=none
4910 if test "$am_compiler_list" = ""; then
4911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4912 fi
4913 am__universal=false
4914 case " $depcc " in #(
4915 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4916 esac
4917
4918 for depmode in $am_compiler_list; do
4919 # Setup a source with many dependencies, because some compilers
4920 # like to wrap large dependency lists on column 80 (with \), and
4921 # we should not choose a depcomp mode which is confused by this.
4922 #
4923 # We need to recreate these files for each test, as the compiler may
4924 # overwrite some of them when testing with obscure command lines.
4925 # This happens at least with the AIX C compiler.
4926 : > sub/conftest.c
4927 for i in 1 2 3 4 5 6; do
4928 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4929 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4930 # Solaris 10 /bin/sh.
4931 echo '/* dummy */' > sub/conftst$i.h
4932 done
4933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4934
4935 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4936 # mode. It turns out that the SunPro C++ compiler does not properly
4937 # handle '-M -o', and we need to detect this. Also, some Intel
4938 # versions had trouble with output in subdirs.
4939 am__obj=sub/conftest.${OBJEXT-o}
4940 am__minus_obj="-o $am__obj"
4941 case $depmode in
4942 gcc)
4943 # This depmode causes a compiler race in universal mode.
4944 test "$am__universal" = false || continue
4945 ;;
4946 nosideeffect)
4947 # After this tag, mechanisms are not by side-effect, so they'll
4948 # only be used when explicitly requested.
4949 if test "x$enable_dependency_tracking" = xyes; then
4950 continue
4951 else
4952 break
4953 fi
4954 ;;
4955 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4956 # This compiler won't grok '-c -o', but also, the minuso test has
4957 # not run yet. These depmodes are late enough in the game, and
4958 # so weak that their functioning should not be impacted.
4959 am__obj=conftest.${OBJEXT-o}
4960 am__minus_obj=
4961 ;;
4962 none) break ;;
4963 esac
4964 if depmode=$depmode \
4965 source=sub/conftest.c object=$am__obj \
4966 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4967 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4968 >/dev/null 2>conftest.err &&
4969 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4970 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4971 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4972 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4973 # icc doesn't choke on unknown options, it will just issue warnings
4974 # or remarks (even with -Werror). So we grep stderr for any message
4975 # that says an option was ignored or not supported.
4976 # When given -MP, icc 7.0 and 7.1 complain thus:
4977 # icc: Command line warning: ignoring option '-M'; no argument required
4978 # The diagnosis changed in icc 8.0:
4979 # icc: Command line remark: option '-MP' not supported
4980 if (grep 'ignoring option' conftest.err ||
4981 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4982 am_cv_CC_dependencies_compiler_type=$depmode
4983 break
4984 fi
4985 fi
4986 done
4987
4988 cd ..
4989 rm -rf conftest.dir
4990 else
4991 am_cv_CC_dependencies_compiler_type=none
4992 fi
4993 ;;
4994 esac
4995 fi
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4997 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4998 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4999
5000 if
5001 test "x$enable_dependency_tracking" != xno \
5002 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5003 am__fastdepCC_TRUE=
5004 am__fastdepCC_FALSE='#'
5005 else
5006 am__fastdepCC_TRUE='#'
5007 am__fastdepCC_FALSE=
5008 fi
5009
5010
5011
5012 ac_header= ac_cache=
5013 for ac_item in $ac_header_c_list
5014 do
5015 if test $ac_cache; then
5016 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5017 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5018 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5019 fi
5020 ac_header= ac_cache=
5021 elif test $ac_header; then
5022 ac_cache=$ac_item
5023 else
5024 ac_header=$ac_item
5025 fi
5026 done
5027
5028
5029
5030
5031
5032
5033
5034
5035 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5036 then :
5037
5038 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5039
5040 fi
5041
5042
5043
5044
5045
5046
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5048 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5049 if test ${ac_cv_safe_to_define___extensions__+y}
5050 then :
5051 printf %s "(cached) " >&6
5052 else case e in #(
5053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055
5056 # define __EXTENSIONS__ 1
5057 $ac_includes_default
5058 int
5059 main (void)
5060 {
5061
5062 ;
5063 return 0;
5064 }
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"
5067 then :
5068 ac_cv_safe_to_define___extensions__=yes
5069 else case e in #(
5070 e) ac_cv_safe_to_define___extensions__=no ;;
5071 esac
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5074 esac
5075 fi
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5077 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5078
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5080 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5081 if test ${ac_cv_should_define__xopen_source+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else case e in #(
5085 e) ac_cv_should_define__xopen_source=no
5086 if test $ac_cv_header_wchar_h = yes
5087 then :
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090
5091 #include <wchar.h>
5092 mbstate_t x;
5093 int
5094 main (void)
5095 {
5096
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"
5102 then :
5103
5104 else case e in #(
5105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107
5108 #define _XOPEN_SOURCE 500
5109 #include <wchar.h>
5110 mbstate_t x;
5111 int
5112 main (void)
5113 {
5114
5115 ;
5116 return 0;
5117 }
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"
5120 then :
5121 ac_cv_should_define__xopen_source=yes
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5124 esac
5125 fi
5126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5127 fi ;;
5128 esac
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5131 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5132
5133 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5134
5135 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5136
5137 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5138
5139 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5140
5141 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5142
5143 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5144
5145 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5146
5147 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5148
5149 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5150
5151 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5152
5153 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5154
5155 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5156
5157 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5158
5159 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5160
5161 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5162
5163 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5164
5165 if test $ac_cv_header_minix_config_h = yes
5166 then :
5167 MINIX=yes
5168 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5169
5170 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5171
5172 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5173
5174 else case e in #(
5175 e) MINIX= ;;
5176 esac
5177 fi
5178 if test $ac_cv_safe_to_define___extensions__ = yes
5179 then :
5180 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5181
5182 fi
5183 if test $ac_cv_should_define__xopen_source = yes
5184 then :
5185 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5186
5187 fi
5188
5189
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 if test -n "$ac_tool_prefix"; then
5196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 printf %s "checking for $ac_word... " >&6; }
5200 if test ${ac_cv_prog_CC+y}
5201 then :
5202 printf %s "(cached) " >&6
5203 else case e in #(
5204 e) if test -n "$CC"; then
5205 ac_cv_prog_CC="$CC" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210 IFS=$as_save_IFS
5211 case $as_dir in #(((
5212 '') as_dir=./ ;;
5213 */) ;;
5214 *) as_dir=$as_dir/ ;;
5215 esac
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222 done
5223 done
5224 IFS=$as_save_IFS
5225
5226 fi ;;
5227 esac
5228 fi
5229 CC=$ac_cv_prog_CC
5230 if test -n "$CC"; then
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5232 printf "%s\n" "$CC" >&6; }
5233 else
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 printf "%s\n" "no" >&6; }
5236 fi
5237
5238
5239 fi
5240 if test -z "$ac_cv_prog_CC"; then
5241 ac_ct_CC=$CC
5242 # Extract the first word of "gcc", so it can be a program name with args.
5243 set dummy gcc; ac_word=$2
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 printf %s "checking for $ac_word... " >&6; }
5246 if test ${ac_cv_prog_ac_ct_CC+y}
5247 then :
5248 printf %s "(cached) " >&6
5249 else case e in #(
5250 e) if test -n "$ac_ct_CC"; then
5251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 case $as_dir in #(((
5258 '') as_dir=./ ;;
5259 */) ;;
5260 *) as_dir=$as_dir/ ;;
5261 esac
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_ac_ct_CC="gcc"
5265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268 done
5269 done
5270 IFS=$as_save_IFS
5271
5272 fi ;;
5273 esac
5274 fi
5275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5276 if test -n "$ac_ct_CC"; then
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5278 printf "%s\n" "$ac_ct_CC" >&6; }
5279 else
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 printf "%s\n" "no" >&6; }
5282 fi
5283
5284 if test "x$ac_ct_CC" = x; then
5285 CC=""
5286 else
5287 case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293 CC=$ac_ct_CC
5294 fi
5295 else
5296 CC="$ac_cv_prog_CC"
5297 fi
5298
5299 if test -z "$CC"; then
5300 if test -n "$ac_tool_prefix"; then
5301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5302 set dummy ${ac_tool_prefix}cc; ac_word=$2
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 printf %s "checking for $ac_word... " >&6; }
5305 if test ${ac_cv_prog_CC+y}
5306 then :
5307 printf %s "(cached) " >&6
5308 else case e in #(
5309 e) if test -n "$CC"; then
5310 ac_cv_prog_CC="$CC" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 case $as_dir in #(((
5317 '') as_dir=./ ;;
5318 */) ;;
5319 *) as_dir=$as_dir/ ;;
5320 esac
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_CC="${ac_tool_prefix}cc"
5324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327 done
5328 done
5329 IFS=$as_save_IFS
5330
5331 fi ;;
5332 esac
5333 fi
5334 CC=$ac_cv_prog_CC
5335 if test -n "$CC"; then
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5337 printf "%s\n" "$CC" >&6; }
5338 else
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 printf "%s\n" "no" >&6; }
5341 fi
5342
5343
5344 fi
5345 fi
5346 if test -z "$CC"; then
5347 # Extract the first word of "cc", so it can be a program name with args.
5348 set dummy cc; ac_word=$2
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 printf %s "checking for $ac_word... " >&6; }
5351 if test ${ac_cv_prog_CC+y}
5352 then :
5353 printf %s "(cached) " >&6
5354 else case e in #(
5355 e) if test -n "$CC"; then
5356 ac_cv_prog_CC="$CC" # Let the user override the test.
5357 else
5358 ac_prog_rejected=no
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 case $as_dir in #(((
5364 '') as_dir=./ ;;
5365 */) ;;
5366 *) as_dir=$as_dir/ ;;
5367 esac
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5370 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5371 ac_prog_rejected=yes
5372 continue
5373 fi
5374 ac_cv_prog_CC="cc"
5375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 if test $ac_prog_rejected = yes; then
5383 # We found a bogon in the path, so make sure we never use it.
5384 set dummy $ac_cv_prog_CC
5385 shift
5386 if test $# != 0; then
5387 # We chose a different compiler from the bogus one.
5388 # However, it has the same basename, so the bogon will be chosen
5389 # first if we set CC to just the basename; use the full file name.
5390 shift
5391 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5392 fi
5393 fi
5394 fi ;;
5395 esac
5396 fi
5397 CC=$ac_cv_prog_CC
5398 if test -n "$CC"; then
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5400 printf "%s\n" "$CC" >&6; }
5401 else
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 printf "%s\n" "no" >&6; }
5404 fi
5405
5406
5407 fi
5408 if test -z "$CC"; then
5409 if test -n "$ac_tool_prefix"; then
5410 for ac_prog in cl.exe
5411 do
5412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 printf %s "checking for $ac_word... " >&6; }
5416 if test ${ac_cv_prog_CC+y}
5417 then :
5418 printf %s "(cached) " >&6
5419 else case e in #(
5420 e) if test -n "$CC"; then
5421 ac_cv_prog_CC="$CC" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426 IFS=$as_save_IFS
5427 case $as_dir in #(((
5428 '') as_dir=./ ;;
5429 */) ;;
5430 *) as_dir=$as_dir/ ;;
5431 esac
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438 done
5439 done
5440 IFS=$as_save_IFS
5441
5442 fi ;;
5443 esac
5444 fi
5445 CC=$ac_cv_prog_CC
5446 if test -n "$CC"; then
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5448 printf "%s\n" "$CC" >&6; }
5449 else
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 printf "%s\n" "no" >&6; }
5452 fi
5453
5454
5455 test -n "$CC" && break
5456 done
5457 fi
5458 if test -z "$CC"; then
5459 ac_ct_CC=$CC
5460 for ac_prog in cl.exe
5461 do
5462 # Extract the first word of "$ac_prog", so it can be a program name with args.
5463 set dummy $ac_prog; ac_word=$2
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 printf %s "checking for $ac_word... " >&6; }
5466 if test ${ac_cv_prog_ac_ct_CC+y}
5467 then :
5468 printf %s "(cached) " >&6
5469 else case e in #(
5470 e) if test -n "$ac_ct_CC"; then
5471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476 IFS=$as_save_IFS
5477 case $as_dir in #(((
5478 '') as_dir=./ ;;
5479 */) ;;
5480 *) as_dir=$as_dir/ ;;
5481 esac
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_ac_ct_CC="$ac_prog"
5485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5486 break 2
5487 fi
5488 done
5489 done
5490 IFS=$as_save_IFS
5491
5492 fi ;;
5493 esac
5494 fi
5495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5496 if test -n "$ac_ct_CC"; then
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5498 printf "%s\n" "$ac_ct_CC" >&6; }
5499 else
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 printf "%s\n" "no" >&6; }
5502 fi
5503
5504
5505 test -n "$ac_ct_CC" && break
5506 done
5507
5508 if test "x$ac_ct_CC" = x; then
5509 CC=""
5510 else
5511 case $cross_compiling:$ac_tool_warned in
5512 yes:)
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515 ac_tool_warned=yes ;;
5516 esac
5517 CC=$ac_ct_CC
5518 fi
5519 fi
5520
5521 fi
5522 if test -z "$CC"; then
5523 if test -n "$ac_tool_prefix"; then
5524 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5525 set dummy ${ac_tool_prefix}clang; ac_word=$2
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 printf %s "checking for $ac_word... " >&6; }
5528 if test ${ac_cv_prog_CC+y}
5529 then :
5530 printf %s "(cached) " >&6
5531 else case e in #(
5532 e) if test -n "$CC"; then
5533 ac_cv_prog_CC="$CC" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 case $as_dir in #(((
5540 '') as_dir=./ ;;
5541 */) ;;
5542 *) as_dir=$as_dir/ ;;
5543 esac
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_CC="${ac_tool_prefix}clang"
5547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5548 break 2
5549 fi
5550 done
5551 done
5552 IFS=$as_save_IFS
5553
5554 fi ;;
5555 esac
5556 fi
5557 CC=$ac_cv_prog_CC
5558 if test -n "$CC"; then
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5560 printf "%s\n" "$CC" >&6; }
5561 else
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 printf "%s\n" "no" >&6; }
5564 fi
5565
5566
5567 fi
5568 if test -z "$ac_cv_prog_CC"; then
5569 ac_ct_CC=$CC
5570 # Extract the first word of "clang", so it can be a program name with args.
5571 set dummy clang; ac_word=$2
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 printf %s "checking for $ac_word... " >&6; }
5574 if test ${ac_cv_prog_ac_ct_CC+y}
5575 then :
5576 printf %s "(cached) " >&6
5577 else case e in #(
5578 e) if test -n "$ac_ct_CC"; then
5579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584 IFS=$as_save_IFS
5585 case $as_dir in #(((
5586 '') as_dir=./ ;;
5587 */) ;;
5588 *) as_dir=$as_dir/ ;;
5589 esac
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_ac_ct_CC="clang"
5593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi ;;
5601 esac
5602 fi
5603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5604 if test -n "$ac_ct_CC"; then
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5606 printf "%s\n" "$ac_ct_CC" >&6; }
5607 else
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 printf "%s\n" "no" >&6; }
5610 fi
5611
5612 if test "x$ac_ct_CC" = x; then
5613 CC=""
5614 else
5615 case $cross_compiling:$ac_tool_warned in
5616 yes:)
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5619 ac_tool_warned=yes ;;
5620 esac
5621 CC=$ac_ct_CC
5622 fi
5623 else
5624 CC="$ac_cv_prog_CC"
5625 fi
5626
5627 fi
5628
5629
5630 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5631 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5632 as_fn_error $? "no acceptable C compiler found in \$PATH
5633 See 'config.log' for more details" "$LINENO" 5; }
5634
5635 # Provide some information about the compiler.
5636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5637 set X $ac_compile
5638 ac_compiler=$2
5639 for ac_option in --version -v -V -qversion -version; do
5640 { { ac_try="$ac_compiler $ac_option >&5"
5641 case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644 esac
5645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5646 printf "%s\n" "$ac_try_echo"; } >&5
5647 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5648 ac_status=$?
5649 if test -s conftest.err; then
5650 sed '10a\
5651 ... rest of stderr output deleted ...
5652 10q' conftest.err >conftest.er1
5653 cat conftest.er1 >&5
5654 fi
5655 rm -f conftest.er1 conftest.err
5656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }
5658 done
5659
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5661 printf %s "checking whether the compiler supports GNU C... " >&6; }
5662 if test ${ac_cv_c_compiler_gnu+y}
5663 then :
5664 printf %s "(cached) " >&6
5665 else case e in #(
5666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668
5669 int
5670 main (void)
5671 {
5672 #ifndef __GNUC__
5673 choke me
5674 #endif
5675
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 if ac_fn_c_try_compile "$LINENO"
5681 then :
5682 ac_compiler_gnu=yes
5683 else case e in #(
5684 e) ac_compiler_gnu=no ;;
5685 esac
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5689 ;;
5690 esac
5691 fi
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5693 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695
5696 if test $ac_compiler_gnu = yes; then
5697 GCC=yes
5698 else
5699 GCC=
5700 fi
5701 ac_test_CFLAGS=${CFLAGS+y}
5702 ac_save_CFLAGS=$CFLAGS
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5704 printf %s "checking whether $CC accepts -g... " >&6; }
5705 if test ${ac_cv_prog_cc_g+y}
5706 then :
5707 printf %s "(cached) " >&6
5708 else case e in #(
5709 e) ac_save_c_werror_flag=$ac_c_werror_flag
5710 ac_c_werror_flag=yes
5711 ac_cv_prog_cc_g=no
5712 CFLAGS="-g"
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715
5716 int
5717 main (void)
5718 {
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 if ac_fn_c_try_compile "$LINENO"
5725 then :
5726 ac_cv_prog_cc_g=yes
5727 else case e in #(
5728 e) CFLAGS=""
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731
5732 int
5733 main (void)
5734 {
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"
5741 then :
5742
5743 else case e in #(
5744 e) ac_c_werror_flag=$ac_save_c_werror_flag
5745 CFLAGS="-g"
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748
5749 int
5750 main (void)
5751 {
5752
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 if ac_fn_c_try_compile "$LINENO"
5758 then :
5759 ac_cv_prog_cc_g=yes
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5762 esac
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5765 esac
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5768 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5769 esac
5770 fi
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5772 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5773 if test $ac_test_CFLAGS; then
5774 CFLAGS=$ac_save_CFLAGS
5775 elif test $ac_cv_prog_cc_g = yes; then
5776 if test "$GCC" = yes; then
5777 CFLAGS="-g -O2"
5778 else
5779 CFLAGS="-g"
5780 fi
5781 else
5782 if test "$GCC" = yes; then
5783 CFLAGS="-O2"
5784 else
5785 CFLAGS=
5786 fi
5787 fi
5788 ac_prog_cc_stdc=no
5789 if test x$ac_prog_cc_stdc = xno
5790 then :
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5792 printf %s "checking for $CC option to enable C11 features... " >&6; }
5793 if test ${ac_cv_prog_cc_c11+y}
5794 then :
5795 printf %s "(cached) " >&6
5796 else case e in #(
5797 e) ac_cv_prog_cc_c11=no
5798 ac_save_CC=$CC
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 $ac_c_conftest_c11_program
5802 _ACEOF
5803 for ac_arg in '' -std=gnu11
5804 do
5805 CC="$ac_save_CC $ac_arg"
5806 if ac_fn_c_try_compile "$LINENO"
5807 then :
5808 ac_cv_prog_cc_c11=$ac_arg
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext conftest.beam
5811 test "x$ac_cv_prog_cc_c11" != "xno" && break
5812 done
5813 rm -f conftest.$ac_ext
5814 CC=$ac_save_CC ;;
5815 esac
5816 fi
5817
5818 if test "x$ac_cv_prog_cc_c11" = xno
5819 then :
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5821 printf "%s\n" "unsupported" >&6; }
5822 else case e in #(
5823 e) if test "x$ac_cv_prog_cc_c11" = x
5824 then :
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5826 printf "%s\n" "none needed" >&6; }
5827 else case e in #(
5828 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5829 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5830 CC="$CC $ac_cv_prog_cc_c11" ;;
5831 esac
5832 fi
5833 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5834 ac_prog_cc_stdc=c11 ;;
5835 esac
5836 fi
5837 fi
5838 if test x$ac_prog_cc_stdc = xno
5839 then :
5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5841 printf %s "checking for $CC option to enable C99 features... " >&6; }
5842 if test ${ac_cv_prog_cc_c99+y}
5843 then :
5844 printf %s "(cached) " >&6
5845 else case e in #(
5846 e) ac_cv_prog_cc_c99=no
5847 ac_save_CC=$CC
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 $ac_c_conftest_c99_program
5851 _ACEOF
5852 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5853 do
5854 CC="$ac_save_CC $ac_arg"
5855 if ac_fn_c_try_compile "$LINENO"
5856 then :
5857 ac_cv_prog_cc_c99=$ac_arg
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext conftest.beam
5860 test "x$ac_cv_prog_cc_c99" != "xno" && break
5861 done
5862 rm -f conftest.$ac_ext
5863 CC=$ac_save_CC ;;
5864 esac
5865 fi
5866
5867 if test "x$ac_cv_prog_cc_c99" = xno
5868 then :
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5870 printf "%s\n" "unsupported" >&6; }
5871 else case e in #(
5872 e) if test "x$ac_cv_prog_cc_c99" = x
5873 then :
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5875 printf "%s\n" "none needed" >&6; }
5876 else case e in #(
5877 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5878 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5879 CC="$CC $ac_cv_prog_cc_c99" ;;
5880 esac
5881 fi
5882 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5883 ac_prog_cc_stdc=c99 ;;
5884 esac
5885 fi
5886 fi
5887 if test x$ac_prog_cc_stdc = xno
5888 then :
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5890 printf %s "checking for $CC option to enable C89 features... " >&6; }
5891 if test ${ac_cv_prog_cc_c89+y}
5892 then :
5893 printf %s "(cached) " >&6
5894 else case e in #(
5895 e) ac_cv_prog_cc_c89=no
5896 ac_save_CC=$CC
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 $ac_c_conftest_c89_program
5900 _ACEOF
5901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5902 do
5903 CC="$ac_save_CC $ac_arg"
5904 if ac_fn_c_try_compile "$LINENO"
5905 then :
5906 ac_cv_prog_cc_c89=$ac_arg
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam
5909 test "x$ac_cv_prog_cc_c89" != "xno" && break
5910 done
5911 rm -f conftest.$ac_ext
5912 CC=$ac_save_CC ;;
5913 esac
5914 fi
5915
5916 if test "x$ac_cv_prog_cc_c89" = xno
5917 then :
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5919 printf "%s\n" "unsupported" >&6; }
5920 else case e in #(
5921 e) if test "x$ac_cv_prog_cc_c89" = x
5922 then :
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5924 printf "%s\n" "none needed" >&6; }
5925 else case e in #(
5926 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5927 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5928 CC="$CC $ac_cv_prog_cc_c89" ;;
5929 esac
5930 fi
5931 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5932 ac_prog_cc_stdc=c89 ;;
5933 esac
5934 fi
5935 fi
5936
5937 ac_ext=c
5938 ac_cpp='$CPP $CPPFLAGS'
5939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942
5943
5944 ac_ext=c
5945 ac_cpp='$CPP $CPPFLAGS'
5946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5950 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5951 if test ${am_cv_prog_cc_c_o+y}
5952 then :
5953 printf %s "(cached) " >&6
5954 else case e in #(
5955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957
5958 int
5959 main (void)
5960 {
5961
5962 ;
5963 return 0;
5964 }
5965 _ACEOF
5966 # Make sure it works both with $CC and with simple cc.
5967 # Following AC_PROG_CC_C_O, we do the test twice because some
5968 # compilers refuse to overwrite an existing .o file with -o,
5969 # though they will create one.
5970 am_cv_prog_cc_c_o=yes
5971 for am_i in 1 2; do
5972 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5973 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } \
5977 && test -f conftest2.$ac_objext; then
5978 : OK
5979 else
5980 am_cv_prog_cc_c_o=no
5981 break
5982 fi
5983 done
5984 rm -f core conftest*
5985 unset am_i ;;
5986 esac
5987 fi
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5989 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5990 if test "$am_cv_prog_cc_c_o" != yes; then
5991 # Losing compiler, so override with the script.
5992 # FIXME: It is wrong to rewrite CC.
5993 # But if we don't then we get into trouble of one sort or another.
5994 # A longer-term fix would be to have automake use am__CC in this case,
5995 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5996 CC="$am_aux_dir/compile $CC"
5997 fi
5998 ac_ext=c
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003
6004
6005 depcc="$CC" am_compiler_list=
6006
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6008 printf %s "checking dependency style of $depcc... " >&6; }
6009 if test ${am_cv_CC_dependencies_compiler_type+y}
6010 then :
6011 printf %s "(cached) " >&6
6012 else case e in #(
6013 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6014 # We make a subdir and do the tests there. Otherwise we can end up
6015 # making bogus files that we don't know about and never remove. For
6016 # instance it was reported that on HP-UX the gcc test will end up
6017 # making a dummy file named 'D' -- because '-MD' means "put the output
6018 # in D".
6019 rm -rf conftest.dir
6020 mkdir conftest.dir
6021 # Copy depcomp to subdir because otherwise we won't find it if we're
6022 # using a relative directory.
6023 cp "$am_depcomp" conftest.dir
6024 cd conftest.dir
6025 # We will build objects and dependencies in a subdirectory because
6026 # it helps to detect inapplicable dependency modes. For instance
6027 # both Tru64's cc and ICC support -MD to output dependencies as a
6028 # side effect of compilation, but ICC will put the dependencies in
6029 # the current directory while Tru64 will put them in the object
6030 # directory.
6031 mkdir sub
6032
6033 am_cv_CC_dependencies_compiler_type=none
6034 if test "$am_compiler_list" = ""; then
6035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6036 fi
6037 am__universal=false
6038 case " $depcc " in #(
6039 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6040 esac
6041
6042 for depmode in $am_compiler_list; do
6043 # Setup a source with many dependencies, because some compilers
6044 # like to wrap large dependency lists on column 80 (with \), and
6045 # we should not choose a depcomp mode which is confused by this.
6046 #
6047 # We need to recreate these files for each test, as the compiler may
6048 # overwrite some of them when testing with obscure command lines.
6049 # This happens at least with the AIX C compiler.
6050 : > sub/conftest.c
6051 for i in 1 2 3 4 5 6; do
6052 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6053 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6054 # Solaris 10 /bin/sh.
6055 echo '/* dummy */' > sub/conftst$i.h
6056 done
6057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6058
6059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6060 # mode. It turns out that the SunPro C++ compiler does not properly
6061 # handle '-M -o', and we need to detect this. Also, some Intel
6062 # versions had trouble with output in subdirs.
6063 am__obj=sub/conftest.${OBJEXT-o}
6064 am__minus_obj="-o $am__obj"
6065 case $depmode in
6066 gcc)
6067 # This depmode causes a compiler race in universal mode.
6068 test "$am__universal" = false || continue
6069 ;;
6070 nosideeffect)
6071 # After this tag, mechanisms are not by side-effect, so they'll
6072 # only be used when explicitly requested.
6073 if test "x$enable_dependency_tracking" = xyes; then
6074 continue
6075 else
6076 break
6077 fi
6078 ;;
6079 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6080 # This compiler won't grok '-c -o', but also, the minuso test has
6081 # not run yet. These depmodes are late enough in the game, and
6082 # so weak that their functioning should not be impacted.
6083 am__obj=conftest.${OBJEXT-o}
6084 am__minus_obj=
6085 ;;
6086 none) break ;;
6087 esac
6088 if depmode=$depmode \
6089 source=sub/conftest.c object=$am__obj \
6090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6092 >/dev/null 2>conftest.err &&
6093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6097 # icc doesn't choke on unknown options, it will just issue warnings
6098 # or remarks (even with -Werror). So we grep stderr for any message
6099 # that says an option was ignored or not supported.
6100 # When given -MP, icc 7.0 and 7.1 complain thus:
6101 # icc: Command line warning: ignoring option '-M'; no argument required
6102 # The diagnosis changed in icc 8.0:
6103 # icc: Command line remark: option '-MP' not supported
6104 if (grep 'ignoring option' conftest.err ||
6105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6106 am_cv_CC_dependencies_compiler_type=$depmode
6107 break
6108 fi
6109 fi
6110 done
6111
6112 cd ..
6113 rm -rf conftest.dir
6114 else
6115 am_cv_CC_dependencies_compiler_type=none
6116 fi
6117 ;;
6118 esac
6119 fi
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6121 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6122 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6123
6124 if
6125 test "x$enable_dependency_tracking" != xno \
6126 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6127 am__fastdepCC_TRUE=
6128 am__fastdepCC_FALSE='#'
6129 else
6130 am__fastdepCC_TRUE='#'
6131 am__fastdepCC_FALSE=
6132 fi
6133
6134
6135
6136
6137
6138 # Extract the first word of "glib-compile-resources", so it can be a program name with args.
6139 set dummy glib-compile-resources; ac_word=$2
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 printf %s "checking for $ac_word... " >&6; }
6142 if test ${ac_cv_path_GLIB_COMPILE_RESOURCES+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else case e in #(
6146 e) case $GLIB_COMPILE_RESOURCES in
6147 [\\/]* | ?:[\\/]*)
6148 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
6149 ;;
6150 *)
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154 IFS=$as_save_IFS
6155 case $as_dir in #(((
6156 '') as_dir=./ ;;
6157 */) ;;
6158 *) as_dir=$as_dir/ ;;
6159 esac
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6162 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir$ac_word$ac_exec_ext"
6163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 ;;
6171 esac ;;
6172 esac
6173 fi
6174 GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
6175 if test -n "$GLIB_COMPILE_RESOURCES"; then
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
6177 printf "%s\n" "$GLIB_COMPILE_RESOURCES" >&6; }
6178 else
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 printf "%s\n" "no" >&6; }
6181 fi
6182
6183
6184
6185 # Extract the first word of "file", so it can be a program name with args.
6186 set dummy file; ac_word=$2
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 printf %s "checking for $ac_word... " >&6; }
6189 if test ${ac_cv_prog_has_file+y}
6190 then :
6191 printf %s "(cached) " >&6
6192 else case e in #(
6193 e) if test -n "$has_file"; then
6194 ac_cv_prog_has_file="$has_file" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199 IFS=$as_save_IFS
6200 case $as_dir in #(((
6201 '') as_dir=./ ;;
6202 */) ;;
6203 *) as_dir=$as_dir/ ;;
6204 esac
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6207 ac_cv_prog_has_file="yes"
6208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 test -z "$ac_cv_prog_has_file" && ac_cv_prog_has_file="no"
6216 fi ;;
6217 esac
6218 fi
6219 has_file=$ac_cv_prog_has_file
6220 if test -n "$has_file"; then
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_file" >&5
6222 printf "%s\n" "$has_file" >&6; }
6223 else
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 printf "%s\n" "no" >&6; }
6226 fi
6227
6228
6229 if test x$has_file = xno ; then
6230 as_fn_error $? "\"file\" utility not found." "$LINENO" 5
6231 fi
6232
6233 # Extract the first word of "find", so it can be a program name with args.
6234 set dummy find; ac_word=$2
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 printf %s "checking for $ac_word... " >&6; }
6237 if test ${ac_cv_prog_has_find+y}
6238 then :
6239 printf %s "(cached) " >&6
6240 else case e in #(
6241 e) if test -n "$has_find"; then
6242 ac_cv_prog_has_find="$has_find" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 case $as_dir in #(((
6249 '') as_dir=./ ;;
6250 */) ;;
6251 *) as_dir=$as_dir/ ;;
6252 esac
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_has_find="yes"
6256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 test -z "$ac_cv_prog_has_find" && ac_cv_prog_has_find="no"
6264 fi ;;
6265 esac
6266 fi
6267 has_find=$ac_cv_prog_has_find
6268 if test -n "$has_find"; then
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_find" >&5
6270 printf "%s\n" "$has_find" >&6; }
6271 else
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 printf "%s\n" "no" >&6; }
6274 fi
6275
6276
6277 if test x$has_find = xno ; then
6278 as_fn_error $? "\"find\" utility not found." "$LINENO" 5
6279 fi
6280
6281
6282
6283 if test -n "$ac_tool_prefix"; then
6284 for ac_prog in gcc-ar ar
6285 do
6286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 printf %s "checking for $ac_word... " >&6; }
6290 if test ${ac_cv_prog_AR+y}
6291 then :
6292 printf %s "(cached) " >&6
6293 else case e in #(
6294 e) if test -n "$AR"; then
6295 ac_cv_prog_AR="$AR" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 case $as_dir in #(((
6302 '') as_dir=./ ;;
6303 */) ;;
6304 *) as_dir=$as_dir/ ;;
6305 esac
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi ;;
6317 esac
6318 fi
6319 AR=$ac_cv_prog_AR
6320 if test -n "$AR"; then
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6322 printf "%s\n" "$AR" >&6; }
6323 else
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 printf "%s\n" "no" >&6; }
6326 fi
6327
6328
6329 test -n "$AR" && break
6330 done
6331 fi
6332 if test -z "$AR"; then
6333 ac_ct_AR=$AR
6334 for ac_prog in gcc-ar ar
6335 do
6336 # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 printf %s "checking for $ac_word... " >&6; }
6340 if test ${ac_cv_prog_ac_ct_AR+y}
6341 then :
6342 printf %s "(cached) " >&6
6343 else case e in #(
6344 e) if test -n "$ac_ct_AR"; then
6345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 case $as_dir in #(((
6352 '') as_dir=./ ;;
6353 */) ;;
6354 *) as_dir=$as_dir/ ;;
6355 esac
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6358 ac_cv_prog_ac_ct_AR="$ac_prog"
6359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366 fi ;;
6367 esac
6368 fi
6369 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6370 if test -n "$ac_ct_AR"; then
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6372 printf "%s\n" "$ac_ct_AR" >&6; }
6373 else
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 printf "%s\n" "no" >&6; }
6376 fi
6377
6378
6379 test -n "$ac_ct_AR" && break
6380 done
6381
6382 if test "x$ac_ct_AR" = x; then
6383 AR="false"
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391 AR=$ac_ct_AR
6392 fi
6393 fi
6394
6395 if test -n "$ac_tool_prefix"; then
6396 for ac_prog in gcc-ranlib ranlib
6397 do
6398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 printf %s "checking for $ac_word... " >&6; }
6402 if test ${ac_cv_prog_RANLIB+y}
6403 then :
6404 printf %s "(cached) " >&6
6405 else case e in #(
6406 e) if test -n "$RANLIB"; then
6407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412 IFS=$as_save_IFS
6413 case $as_dir in #(((
6414 '') as_dir=./ ;;
6415 */) ;;
6416 *) as_dir=$as_dir/ ;;
6417 esac
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6420 ac_cv_prog_RANLIB="$ac_tool_prefix$ac_prog"
6421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6422 break 2
6423 fi
6424 done
6425 done
6426 IFS=$as_save_IFS
6427
6428 fi ;;
6429 esac
6430 fi
6431 RANLIB=$ac_cv_prog_RANLIB
6432 if test -n "$RANLIB"; then
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6434 printf "%s\n" "$RANLIB" >&6; }
6435 else
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 printf "%s\n" "no" >&6; }
6438 fi
6439
6440
6441 test -n "$RANLIB" && break
6442 done
6443 fi
6444 if test -z "$RANLIB"; then
6445 ac_ct_RANLIB=$RANLIB
6446 for ac_prog in gcc-ranlib ranlib
6447 do
6448 # Extract the first word of "$ac_prog", so it can be a program name with args.
6449 set dummy $ac_prog; ac_word=$2
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 printf %s "checking for $ac_word... " >&6; }
6452 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6453 then :
6454 printf %s "(cached) " >&6
6455 else case e in #(
6456 e) if test -n "$ac_ct_RANLIB"; then
6457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462 IFS=$as_save_IFS
6463 case $as_dir in #(((
6464 '') as_dir=./ ;;
6465 */) ;;
6466 *) as_dir=$as_dir/ ;;
6467 esac
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_ac_ct_RANLIB="$ac_prog"
6471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6472 break 2
6473 fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478 fi ;;
6479 esac
6480 fi
6481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6482 if test -n "$ac_ct_RANLIB"; then
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6484 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6485 else
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 printf "%s\n" "no" >&6; }
6488 fi
6489
6490
6491 test -n "$ac_ct_RANLIB" && break
6492 done
6493
6494 if test "x$ac_ct_RANLIB" = x; then
6495 RANLIB=":"
6496 else
6497 case $cross_compiling:$ac_tool_warned in
6498 yes:)
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6502 esac
6503 RANLIB=$ac_ct_RANLIB
6504 fi
6505 fi
6506
6507
6508 case `pwd` in
6509 *\ * | *\ *)
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6511 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6512 esac
6513
6514
6515
6516 macro_version='2.5.4'
6517 macro_revision='2.5.4'
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532 ltmain=$ac_aux_dir/ltmain.sh
6533
6534
6535
6536 # Make sure we can run config.sub.
6537 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6538 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6539
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6541 printf %s "checking build system type... " >&6; }
6542 if test ${ac_cv_build+y}
6543 then :
6544 printf %s "(cached) " >&6
6545 else case e in #(
6546 e) ac_build_alias=$build_alias
6547 test "x$ac_build_alias" = x &&
6548 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6549 test "x$ac_build_alias" = x &&
6550 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6551 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6552 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6553 ;;
6554 esac
6555 fi
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6557 printf "%s\n" "$ac_cv_build" >&6; }
6558 case $ac_cv_build in
6559 *-*-*) ;;
6560 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6561 esac
6562 build=$ac_cv_build
6563 ac_save_IFS=$IFS; IFS='-'
6564 set x $ac_cv_build
6565 shift
6566 build_cpu=$1
6567 build_vendor=$2
6568 shift; shift
6569 # Remember, the first character of IFS is used to create $*,
6570 # except with old shells:
6571 build_os=$*
6572 IFS=$ac_save_IFS
6573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6574
6575
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6577 printf %s "checking host system type... " >&6; }
6578 if test ${ac_cv_host+y}
6579 then :
6580 printf %s "(cached) " >&6
6581 else case e in #(
6582 e) if test "x$host_alias" = x; then
6583 ac_cv_host=$ac_cv_build
6584 else
6585 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6586 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6587 fi
6588 ;;
6589 esac
6590 fi
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6592 printf "%s\n" "$ac_cv_host" >&6; }
6593 case $ac_cv_host in
6594 *-*-*) ;;
6595 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6596 esac
6597 host=$ac_cv_host
6598 ac_save_IFS=$IFS; IFS='-'
6599 set x $ac_cv_host
6600 shift
6601 host_cpu=$1
6602 host_vendor=$2
6603 shift; shift
6604 # Remember, the first character of IFS is used to create $*,
6605 # except with old shells:
6606 host_os=$*
6607 IFS=$ac_save_IFS
6608 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6609
6610
6611 # Backslashify metacharacters that are still active within
6612 # double-quoted strings.
6613 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6614
6615 # Same as above, but do not quote variable references.
6616 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6617
6618 # Sed substitution to delay expansion of an escaped shell variable in a
6619 # double_quote_subst'ed string.
6620 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6621
6622 # Sed substitution to delay expansion of an escaped single quote.
6623 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6624
6625 # Sed substitution to avoid accidental globbing in evaled expressions
6626 no_glob_subst='s/\*/\\\*/g'
6627
6628 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6630 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6631
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6633 printf %s "checking how to print strings... " >&6; }
6634 # Test print first, because it will be a builtin if present.
6635 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6636 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6637 ECHO='print -r --'
6638 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6639 ECHO='printf %s\n'
6640 else
6641 # Use this function as a fallback that always works.
6642 func_fallback_echo ()
6643 {
6644 eval 'cat <<_LTECHO_EOF
6645 $1
6646 _LTECHO_EOF'
6647 }
6648 ECHO='func_fallback_echo'
6649 fi
6650
6651 # func_echo_all arg...
6652 # Invoke $ECHO with all args, space-separated.
6653 func_echo_all ()
6654 {
6655 $ECHO ""
6656 }
6657
6658 case $ECHO in
6659 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6660 printf "%s\n" "printf" >&6; } ;;
6661 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6662 printf "%s\n" "print -r" >&6; } ;;
6663 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6664 printf "%s\n" "cat" >&6; } ;;
6665 esac
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6681 printf %s "checking for a sed that does not truncate output... " >&6; }
6682 if test ${ac_cv_path_SED+y}
6683 then :
6684 printf %s "(cached) " >&6
6685 else case e in #(
6686 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6687 for ac_i in 1 2 3 4 5 6 7; do
6688 ac_script="$ac_script$as_nl$ac_script"
6689 done
6690 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6691 { ac_script=; unset ac_script;}
6692 if test -z "$SED"; then
6693 ac_path_SED_found=false
6694 # Loop through the user's path and test for each of PROGNAME-LIST
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 case $as_dir in #(((
6700 '') as_dir=./ ;;
6701 */) ;;
6702 *) as_dir=$as_dir/ ;;
6703 esac
6704 for ac_prog in sed gsed
6705 do
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6708 as_fn_executable_p "$ac_path_SED" || continue
6709 # Check for GNU ac_path_SED and select it if it is found.
6710 # Check for GNU $ac_path_SED
6711 case `"$ac_path_SED" --version 2>&1` in #(
6712 *GNU*)
6713 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6714 #(
6715 *)
6716 ac_count=0
6717 printf %s 0123456789 >"conftest.in"
6718 while :
6719 do
6720 cat "conftest.in" "conftest.in" >"conftest.tmp"
6721 mv "conftest.tmp" "conftest.in"
6722 cp "conftest.in" "conftest.nl"
6723 printf "%s\n" '' >> "conftest.nl"
6724 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6726 as_fn_arith $ac_count + 1 && ac_count=$as_val
6727 if test $ac_count -gt ${ac_path_SED_max-0}; then
6728 # Best one so far, save it but keep looking for a better one
6729 ac_cv_path_SED="$ac_path_SED"
6730 ac_path_SED_max=$ac_count
6731 fi
6732 # 10*(2^10) chars as input seems more than enough
6733 test $ac_count -gt 10 && break
6734 done
6735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6736 esac
6737
6738 $ac_path_SED_found && break 3
6739 done
6740 done
6741 done
6742 IFS=$as_save_IFS
6743 if test -z "$ac_cv_path_SED"; then
6744 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6745 fi
6746 else
6747 ac_cv_path_SED=$SED
6748 fi
6749 ;;
6750 esac
6751 fi
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6753 printf "%s\n" "$ac_cv_path_SED" >&6; }
6754 SED="$ac_cv_path_SED"
6755 rm -f conftest.sed
6756
6757 test -z "$SED" && SED=sed
6758 Xsed="$SED -e 1s/^X//"
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6771 printf %s "checking for grep that handles long lines and -e... " >&6; }
6772 if test ${ac_cv_path_GREP+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else case e in #(
6776 e) if test -z "$GREP"; then
6777 ac_path_GREP_found=false
6778 # Loop through the user's path and test for each of PROGNAME-LIST
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6781 do
6782 IFS=$as_save_IFS
6783 case $as_dir in #(((
6784 '') as_dir=./ ;;
6785 */) ;;
6786 *) as_dir=$as_dir/ ;;
6787 esac
6788 for ac_prog in grep ggrep
6789 do
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6792 as_fn_executable_p "$ac_path_GREP" || continue
6793 # Check for GNU ac_path_GREP and select it if it is found.
6794 # Check for GNU $ac_path_GREP
6795 case `"$ac_path_GREP" --version 2>&1` in #(
6796 *GNU*)
6797 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6798 #(
6799 *)
6800 ac_count=0
6801 printf %s 0123456789 >"conftest.in"
6802 while :
6803 do
6804 cat "conftest.in" "conftest.in" >"conftest.tmp"
6805 mv "conftest.tmp" "conftest.in"
6806 cp "conftest.in" "conftest.nl"
6807 printf "%s\n" 'GREP' >> "conftest.nl"
6808 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6810 as_fn_arith $ac_count + 1 && ac_count=$as_val
6811 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6812 # Best one so far, save it but keep looking for a better one
6813 ac_cv_path_GREP="$ac_path_GREP"
6814 ac_path_GREP_max=$ac_count
6815 fi
6816 # 10*(2^10) chars as input seems more than enough
6817 test $ac_count -gt 10 && break
6818 done
6819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6820 esac
6821
6822 $ac_path_GREP_found && break 3
6823 done
6824 done
6825 done
6826 IFS=$as_save_IFS
6827 if test -z "$ac_cv_path_GREP"; then
6828 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6829 fi
6830 else
6831 ac_cv_path_GREP=$GREP
6832 fi
6833 ;;
6834 esac
6835 fi
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6837 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6838 GREP="$ac_cv_path_GREP"
6839
6840
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6842 printf %s "checking for egrep... " >&6; }
6843 if test ${ac_cv_path_EGREP+y}
6844 then :
6845 printf %s "(cached) " >&6
6846 else case e in #(
6847 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6848 then ac_cv_path_EGREP="$GREP -E"
6849 else
6850 if test -z "$EGREP"; then
6851 ac_path_EGREP_found=false
6852 # Loop through the user's path and test for each of PROGNAME-LIST
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6855 do
6856 IFS=$as_save_IFS
6857 case $as_dir in #(((
6858 '') as_dir=./ ;;
6859 */) ;;
6860 *) as_dir=$as_dir/ ;;
6861 esac
6862 for ac_prog in egrep
6863 do
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6866 as_fn_executable_p "$ac_path_EGREP" || continue
6867 # Check for GNU ac_path_EGREP and select it if it is found.
6868 # Check for GNU $ac_path_EGREP
6869 case `"$ac_path_EGREP" --version 2>&1` in #(
6870 *GNU*)
6871 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6872 #(
6873 *)
6874 ac_count=0
6875 printf %s 0123456789 >"conftest.in"
6876 while :
6877 do
6878 cat "conftest.in" "conftest.in" >"conftest.tmp"
6879 mv "conftest.tmp" "conftest.in"
6880 cp "conftest.in" "conftest.nl"
6881 printf "%s\n" 'EGREP' >> "conftest.nl"
6882 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6884 as_fn_arith $ac_count + 1 && ac_count=$as_val
6885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6886 # Best one so far, save it but keep looking for a better one
6887 ac_cv_path_EGREP="$ac_path_EGREP"
6888 ac_path_EGREP_max=$ac_count
6889 fi
6890 # 10*(2^10) chars as input seems more than enough
6891 test $ac_count -gt 10 && break
6892 done
6893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6894 esac
6895
6896 $ac_path_EGREP_found && break 3
6897 done
6898 done
6899 done
6900 IFS=$as_save_IFS
6901 if test -z "$ac_cv_path_EGREP"; then
6902 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6903 fi
6904 else
6905 ac_cv_path_EGREP=$EGREP
6906 fi
6907
6908 fi ;;
6909 esac
6910 fi
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6912 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6913 EGREP="$ac_cv_path_EGREP"
6914
6915 EGREP_TRADITIONAL=$EGREP
6916 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6917
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6919 printf %s "checking for fgrep... " >&6; }
6920 if test ${ac_cv_path_FGREP+y}
6921 then :
6922 printf %s "(cached) " >&6
6923 else case e in #(
6924 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6925 then ac_cv_path_FGREP="$GREP -F"
6926 else
6927 if test -z "$FGREP"; then
6928 ac_path_FGREP_found=false
6929 # Loop through the user's path and test for each of PROGNAME-LIST
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6932 do
6933 IFS=$as_save_IFS
6934 case $as_dir in #(((
6935 '') as_dir=./ ;;
6936 */) ;;
6937 *) as_dir=$as_dir/ ;;
6938 esac
6939 for ac_prog in fgrep
6940 do
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6943 as_fn_executable_p "$ac_path_FGREP" || continue
6944 # Check for GNU ac_path_FGREP and select it if it is found.
6945 # Check for GNU $ac_path_FGREP
6946 case `"$ac_path_FGREP" --version 2>&1` in #(
6947 *GNU*)
6948 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6949 #(
6950 *)
6951 ac_count=0
6952 printf %s 0123456789 >"conftest.in"
6953 while :
6954 do
6955 cat "conftest.in" "conftest.in" >"conftest.tmp"
6956 mv "conftest.tmp" "conftest.in"
6957 cp "conftest.in" "conftest.nl"
6958 printf "%s\n" 'FGREP' >> "conftest.nl"
6959 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6961 as_fn_arith $ac_count + 1 && ac_count=$as_val
6962 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6963 # Best one so far, save it but keep looking for a better one
6964 ac_cv_path_FGREP="$ac_path_FGREP"
6965 ac_path_FGREP_max=$ac_count
6966 fi
6967 # 10*(2^10) chars as input seems more than enough
6968 test $ac_count -gt 10 && break
6969 done
6970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6971 esac
6972
6973 $ac_path_FGREP_found && break 3
6974 done
6975 done
6976 done
6977 IFS=$as_save_IFS
6978 if test -z "$ac_cv_path_FGREP"; then
6979 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6980 fi
6981 else
6982 ac_cv_path_FGREP=$FGREP
6983 fi
6984
6985 fi ;;
6986 esac
6987 fi
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6989 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6990 FGREP="$ac_cv_path_FGREP"
6991
6992
6993 test -z "$GREP" && GREP=grep
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013 # Check whether --with-gnu-ld was given.
7014 if test ${with_gnu_ld+y}
7015 then :
7016 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7017 else case e in #(
7018 e) with_gnu_ld=no ;;
7019 esac
7020 fi
7021
7022 ac_prog=ld
7023 if test yes = "$GCC"; then
7024 # Check if gcc -print-prog-name=ld gives a path.
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7026 printf %s "checking for ld used by $CC... " >&6; }
7027 case $host in
7028 *-*-mingw* | *-*-windows*)
7029 # gcc leaves a trailing carriage return, which upsets mingw
7030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7031 *)
7032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7033 esac
7034 case $ac_prog in
7035 # Accept absolute paths.
7036 [\\/]* | ?:[\\/]*)
7037 re_direlt='/[^/][^/]*/\.\./'
7038 # Canonicalize the pathname of ld
7039 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7040 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7041 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7042 done
7043 test -z "$LD" && LD=$ac_prog
7044 ;;
7045 "")
7046 # If it fails, then pretend we aren't using GCC.
7047 ac_prog=ld
7048 ;;
7049 *)
7050 # If it is relative, then search for the first ld in PATH.
7051 with_gnu_ld=unknown
7052 ;;
7053 esac
7054 elif test yes = "$with_gnu_ld"; then
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7056 printf %s "checking for GNU ld... " >&6; }
7057 else
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7059 printf %s "checking for non-GNU ld... " >&6; }
7060 fi
7061 if test ${lt_cv_path_LD+y}
7062 then :
7063 printf %s "(cached) " >&6
7064 else case e in #(
7065 e) if test -z "$LD"; then
7066 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7067 for ac_dir in $PATH; do
7068 IFS=$lt_save_ifs
7069 test -z "$ac_dir" && ac_dir=.
7070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7071 lt_cv_path_LD=$ac_dir/$ac_prog
7072 # Check to see if the program is GNU ld. I'd rather use --version,
7073 # but apparently some variants of GNU ld only accept -v.
7074 # Break only if it was the GNU/non-GNU ld that we prefer.
7075 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7076 *GNU* | *'with BFD'*)
7077 test no != "$with_gnu_ld" && break
7078 ;;
7079 *)
7080 test yes != "$with_gnu_ld" && break
7081 ;;
7082 esac
7083 fi
7084 done
7085 IFS=$lt_save_ifs
7086 else
7087 lt_cv_path_LD=$LD # Let the user override the test with a path.
7088 fi ;;
7089 esac
7090 fi
7091
7092 LD=$lt_cv_path_LD
7093 if test -n "$LD"; then
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7095 printf "%s\n" "$LD" >&6; }
7096 else
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 printf "%s\n" "no" >&6; }
7099 fi
7100 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7102 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7103 if test ${lt_cv_prog_gnu_ld+y}
7104 then :
7105 printf %s "(cached) " >&6
7106 else case e in #(
7107 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7108 case `$LD -v 2>&1 </dev/null` in
7109 *GNU* | *'with BFD'*)
7110 lt_cv_prog_gnu_ld=yes
7111 ;;
7112 *)
7113 lt_cv_prog_gnu_ld=no
7114 ;;
7115 esac ;;
7116 esac
7117 fi
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7119 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7120 with_gnu_ld=$lt_cv_prog_gnu_ld
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7131 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7132 if test ${lt_cv_path_NM+y}
7133 then :
7134 printf %s "(cached) " >&6
7135 else case e in #(
7136 e) if test -n "$NM"; then
7137 # Let the user override the test.
7138 lt_cv_path_NM=$NM
7139 else
7140 lt_nm_to_check=${ac_tool_prefix}nm
7141 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7142 lt_nm_to_check="$lt_nm_to_check nm"
7143 fi
7144 for lt_tmp_nm in $lt_nm_to_check; do
7145 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7146 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7147 IFS=$lt_save_ifs
7148 test -z "$ac_dir" && ac_dir=.
7149 tmp_nm=$ac_dir/$lt_tmp_nm
7150 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7151 # Check to see if the nm accepts a BSD-compat flag.
7152 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7153 # nm: unknown option "B" ignored
7154 # Tru64's nm complains that /dev/null is an invalid object file
7155 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7156 case $build_os in
7157 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7158 *) lt_bad_file=/dev/null ;;
7159 esac
7160 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7161 *$lt_bad_file* | *'Invalid file or object type'*)
7162 lt_cv_path_NM="$tmp_nm -B"
7163 break 2
7164 ;;
7165 *)
7166 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7167 */dev/null*)
7168 lt_cv_path_NM="$tmp_nm -p"
7169 break 2
7170 ;;
7171 *)
7172 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7173 continue # so that we can try to find one that supports BSD flags
7174 ;;
7175 esac
7176 ;;
7177 esac
7178 fi
7179 done
7180 IFS=$lt_save_ifs
7181 done
7182 : ${lt_cv_path_NM=no}
7183 fi ;;
7184 esac
7185 fi
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7187 printf "%s\n" "$lt_cv_path_NM" >&6; }
7188 if test no != "$lt_cv_path_NM"; then
7189 NM=$lt_cv_path_NM
7190 else
7191 # Didn't find any BSD compatible name lister, look for dumpbin.
7192 if test -n "$DUMPBIN"; then :
7193 # Let the user override the test.
7194 else
7195 if test -n "$ac_tool_prefix"; then
7196 for ac_prog in dumpbin "link -dump"
7197 do
7198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 printf %s "checking for $ac_word... " >&6; }
7202 if test ${ac_cv_prog_DUMPBIN+y}
7203 then :
7204 printf %s "(cached) " >&6
7205 else case e in #(
7206 e) if test -n "$DUMPBIN"; then
7207 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212 IFS=$as_save_IFS
7213 case $as_dir in #(((
7214 '') as_dir=./ ;;
7215 */) ;;
7216 *) as_dir=$as_dir/ ;;
7217 esac
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228 fi ;;
7229 esac
7230 fi
7231 DUMPBIN=$ac_cv_prog_DUMPBIN
7232 if test -n "$DUMPBIN"; then
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7234 printf "%s\n" "$DUMPBIN" >&6; }
7235 else
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 printf "%s\n" "no" >&6; }
7238 fi
7239
7240
7241 test -n "$DUMPBIN" && break
7242 done
7243 fi
7244 if test -z "$DUMPBIN"; then
7245 ac_ct_DUMPBIN=$DUMPBIN
7246 for ac_prog in dumpbin "link -dump"
7247 do
7248 # Extract the first word of "$ac_prog", so it can be a program name with args.
7249 set dummy $ac_prog; ac_word=$2
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 printf %s "checking for $ac_word... " >&6; }
7252 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7253 then :
7254 printf %s "(cached) " >&6
7255 else case e in #(
7256 e) if test -n "$ac_ct_DUMPBIN"; then
7257 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262 IFS=$as_save_IFS
7263 case $as_dir in #(((
7264 '') as_dir=./ ;;
7265 */) ;;
7266 *) as_dir=$as_dir/ ;;
7267 esac
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7272 break 2
7273 fi
7274 done
7275 done
7276 IFS=$as_save_IFS
7277
7278 fi ;;
7279 esac
7280 fi
7281 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7282 if test -n "$ac_ct_DUMPBIN"; then
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7284 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7285 else
7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 printf "%s\n" "no" >&6; }
7288 fi
7289
7290
7291 test -n "$ac_ct_DUMPBIN" && break
7292 done
7293
7294 if test "x$ac_ct_DUMPBIN" = x; then
7295 DUMPBIN=":"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303 DUMPBIN=$ac_ct_DUMPBIN
7304 fi
7305 fi
7306
7307 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7308 *COFF*)
7309 DUMPBIN="$DUMPBIN -symbols -headers"
7310 ;;
7311 *)
7312 DUMPBIN=:
7313 ;;
7314 esac
7315 fi
7316
7317 if test : != "$DUMPBIN"; then
7318 NM=$DUMPBIN
7319 fi
7320 fi
7321 test -z "$NM" && NM=nm
7322
7323
7324
7325
7326
7327
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7329 printf %s "checking the name lister ($NM) interface... " >&6; }
7330 if test ${lt_cv_nm_interface+y}
7331 then :
7332 printf %s "(cached) " >&6
7333 else case e in #(
7334 e) lt_cv_nm_interface="BSD nm"
7335 echo "int some_variable = 0;" > conftest.$ac_ext
7336 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7337 (eval "$ac_compile" 2>conftest.err)
7338 cat conftest.err >&5
7339 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7340 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7341 cat conftest.err >&5
7342 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7343 cat conftest.out >&5
7344 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7345 lt_cv_nm_interface="MS dumpbin"
7346 fi
7347 rm -f conftest* ;;
7348 esac
7349 fi
7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7351 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7352
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7354 printf %s "checking whether ln -s works... " >&6; }
7355 LN_S=$as_ln_s
7356 if test "$LN_S" = "ln -s"; then
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7358 printf "%s\n" "yes" >&6; }
7359 else
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7361 printf "%s\n" "no, using $LN_S" >&6; }
7362 fi
7363
7364 # find the maximum length of command line arguments
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7366 printf %s "checking the maximum length of command line arguments... " >&6; }
7367 if test ${lt_cv_sys_max_cmd_len+y}
7368 then :
7369 printf %s "(cached) " >&6
7370 else case e in #(
7371 e) i=0
7372 teststring=ABCD
7373
7374 case $build_os in
7375 msdosdjgpp*)
7376 # On DJGPP, this test can blow up pretty badly due to problems in libc
7377 # (any single argument exceeding 2000 bytes causes a buffer overrun
7378 # during glob expansion). Even if it were fixed, the result of this
7379 # check would be larger than it should be.
7380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7381 ;;
7382
7383 gnu* | ironclad*)
7384 # Under GNU Hurd and Ironclad, this test is not required because there
7385 # is no limit to the length of command line arguments.
7386 # Libtool will interpret -1 as no limit whatsoever
7387 lt_cv_sys_max_cmd_len=-1;
7388 ;;
7389
7390 cygwin* | mingw* | windows* | cegcc*)
7391 # On Win9x/ME, this test blows up -- it succeeds, but takes
7392 # about 5 minutes as the teststring grows exponentially.
7393 # Worse, since 9x/ME are not pre-emptively multitasking,
7394 # you end up with a "frozen" computer, even though with patience
7395 # the test eventually succeeds (with a max line length of 256k).
7396 # Instead, let's just punt: use the minimum linelength reported by
7397 # all of the supported platforms: 8192 (on NT/2K/XP).
7398 lt_cv_sys_max_cmd_len=8192;
7399 ;;
7400
7401 mint*)
7402 # On MiNT this can take a long time and run out of memory.
7403 lt_cv_sys_max_cmd_len=8192;
7404 ;;
7405
7406 amigaos*)
7407 # On AmigaOS with pdksh, this test takes hours, literally.
7408 # So we just punt and use a minimum line length of 8192.
7409 lt_cv_sys_max_cmd_len=8192;
7410 ;;
7411
7412 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7413 # This has been around since 386BSD, at least. Likely further.
7414 if test -x /sbin/sysctl; then
7415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7416 elif test -x /usr/sbin/sysctl; then
7417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7418 else
7419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7420 fi
7421 # And add a safety zone
7422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7424 ;;
7425
7426 interix*)
7427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7428 lt_cv_sys_max_cmd_len=196608
7429 ;;
7430
7431 os2*)
7432 # The test takes a long time on OS/2.
7433 lt_cv_sys_max_cmd_len=8192
7434 ;;
7435
7436 osf*)
7437 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7438 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7439 # nice to cause kernel panics so lets avoid the loop below.
7440 # First set a reasonable default.
7441 lt_cv_sys_max_cmd_len=16384
7442 #
7443 if test -x /sbin/sysconfig; then
7444 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7445 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7446 esac
7447 fi
7448 ;;
7449 sco3.2v5*)
7450 lt_cv_sys_max_cmd_len=102400
7451 ;;
7452 sysv5* | sco5v6* | sysv4.2uw2*)
7453 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7454 if test -n "$kargmax"; then
7455 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7456 else
7457 lt_cv_sys_max_cmd_len=32768
7458 fi
7459 ;;
7460 *)
7461 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7462 if test -n "$lt_cv_sys_max_cmd_len" && \
7463 test undefined != "$lt_cv_sys_max_cmd_len"; then
7464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7466 else
7467 # Make teststring a little bigger before we do anything with it.
7468 # a 1K string should be a reasonable start.
7469 for i in 1 2 3 4 5 6 7 8; do
7470 teststring=$teststring$teststring
7471 done
7472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7473 # If test is not a shell built-in, we'll probably end up computing a
7474 # maximum length that is only half of the actual maximum length, but
7475 # we can't tell.
7476 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7477 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7478 test 17 != "$i" # 1/2 MB should be enough
7479 do
7480 i=`expr $i + 1`
7481 teststring=$teststring$teststring
7482 done
7483 # Only check the string length outside the loop.
7484 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7485 teststring=
7486 # Add a significant safety factor because C++ compilers can tack on
7487 # massive amounts of additional arguments before passing them to the
7488 # linker. It appears as though 1/2 is a usable value.
7489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7490 fi
7491 ;;
7492 esac
7493 ;;
7494 esac
7495 fi
7496
7497 if test -n "$lt_cv_sys_max_cmd_len"; then
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7499 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7500 else
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7502 printf "%s\n" "none" >&6; }
7503 fi
7504 max_cmd_len=$lt_cv_sys_max_cmd_len
7505
7506
7507
7508
7509
7510
7511 : ${CP="cp -f"}
7512 : ${MV="mv -f"}
7513 : ${RM="rm -f"}
7514
7515 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7516 lt_unset=unset
7517 else
7518 lt_unset=false
7519 fi
7520
7521
7522
7523
7524
7525 # test EBCDIC or ASCII
7526 case `echo X|tr X '\101'` in
7527 A) # ASCII based system
7528 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7529 lt_SP2NL='tr \040 \012'
7530 lt_NL2SP='tr \015\012 \040\040'
7531 ;;
7532 *) # EBCDIC based system
7533 lt_SP2NL='tr \100 \n'
7534 lt_NL2SP='tr \r\n \100\100'
7535 ;;
7536 esac
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7547 printf %s "checking how to convert $build file names to $host format... " >&6; }
7548 if test ${lt_cv_to_host_file_cmd+y}
7549 then :
7550 printf %s "(cached) " >&6
7551 else case e in #(
7552 e) case $host in
7553 *-*-mingw* )
7554 case $build in
7555 *-*-mingw* | *-*-windows* ) # actually msys
7556 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7557 ;;
7558 *-*-cygwin* )
7559 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7560 ;;
7561 * ) # otherwise, assume *nix
7562 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7563 ;;
7564 esac
7565 ;;
7566 *-*-cygwin* )
7567 case $build in
7568 *-*-mingw* | *-*-windows* ) # actually msys
7569 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7570 ;;
7571 *-*-cygwin* )
7572 lt_cv_to_host_file_cmd=func_convert_file_noop
7573 ;;
7574 * ) # otherwise, assume *nix
7575 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7576 ;;
7577 esac
7578 ;;
7579 * ) # unhandled hosts (and "normal" native builds)
7580 lt_cv_to_host_file_cmd=func_convert_file_noop
7581 ;;
7582 esac
7583 ;;
7584 esac
7585 fi
7586
7587 to_host_file_cmd=$lt_cv_to_host_file_cmd
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7589 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7590
7591
7592
7593
7594
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7596 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7597 if test ${lt_cv_to_tool_file_cmd+y}
7598 then :
7599 printf %s "(cached) " >&6
7600 else case e in #(
7601 e) #assume ordinary cross tools, or native build.
7602 lt_cv_to_tool_file_cmd=func_convert_file_noop
7603 case $host in
7604 *-*-mingw* | *-*-windows* )
7605 case $build in
7606 *-*-mingw* | *-*-windows* ) # actually msys
7607 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7608 ;;
7609 esac
7610 ;;
7611 esac
7612 ;;
7613 esac
7614 fi
7615
7616 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7618 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7619
7620
7621
7622
7623
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7625 printf %s "checking for $LD option to reload object files... " >&6; }
7626 if test ${lt_cv_ld_reload_flag+y}
7627 then :
7628 printf %s "(cached) " >&6
7629 else case e in #(
7630 e) lt_cv_ld_reload_flag='-r' ;;
7631 esac
7632 fi
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7634 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7635 reload_flag=$lt_cv_ld_reload_flag
7636 case $reload_flag in
7637 "" | " "*) ;;
7638 *) reload_flag=" $reload_flag" ;;
7639 esac
7640 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7641 case $host_os in
7642 cygwin* | mingw* | windows* | pw32* | cegcc*)
7643 if test yes != "$GCC"; then
7644 reload_cmds=false
7645 fi
7646 ;;
7647 darwin*)
7648 if test yes = "$GCC"; then
7649 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7650 else
7651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7652 fi
7653 ;;
7654 esac
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 # Extract the first word of "file", so it can be a program name with args.
7665 set dummy file; ac_word=$2
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 printf %s "checking for $ac_word... " >&6; }
7668 if test ${ac_cv_prog_FILECMD+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else case e in #(
7672 e) if test -n "$FILECMD"; then
7673 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 case $as_dir in #(((
7680 '') as_dir=./ ;;
7681 */) ;;
7682 *) as_dir=$as_dir/ ;;
7683 esac
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_FILECMD="file"
7687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7695 fi ;;
7696 esac
7697 fi
7698 FILECMD=$ac_cv_prog_FILECMD
7699 if test -n "$FILECMD"; then
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7701 printf "%s\n" "$FILECMD" >&6; }
7702 else
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 printf "%s\n" "no" >&6; }
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 printf %s "checking for $ac_word... " >&6; }
7719 if test ${ac_cv_prog_OBJDUMP+y}
7720 then :
7721 printf %s "(cached) " >&6
7722 else case e in #(
7723 e) if test -n "$OBJDUMP"; then
7724 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729 IFS=$as_save_IFS
7730 case $as_dir in #(((
7731 '') as_dir=./ ;;
7732 */) ;;
7733 *) as_dir=$as_dir/ ;;
7734 esac
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7737 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7739 break 2
7740 fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745 fi ;;
7746 esac
7747 fi
7748 OBJDUMP=$ac_cv_prog_OBJDUMP
7749 if test -n "$OBJDUMP"; then
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7751 printf "%s\n" "$OBJDUMP" >&6; }
7752 else
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 printf "%s\n" "no" >&6; }
7755 fi
7756
7757
7758 fi
7759 if test -z "$ac_cv_prog_OBJDUMP"; then
7760 ac_ct_OBJDUMP=$OBJDUMP
7761 # Extract the first word of "objdump", so it can be a program name with args.
7762 set dummy objdump; ac_word=$2
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 printf %s "checking for $ac_word... " >&6; }
7765 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7766 then :
7767 printf %s "(cached) " >&6
7768 else case e in #(
7769 e) if test -n "$ac_ct_OBJDUMP"; then
7770 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775 IFS=$as_save_IFS
7776 case $as_dir in #(((
7777 '') as_dir=./ ;;
7778 */) ;;
7779 *) as_dir=$as_dir/ ;;
7780 esac
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7785 break 2
7786 fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791 fi ;;
7792 esac
7793 fi
7794 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7795 if test -n "$ac_ct_OBJDUMP"; then
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7797 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7798 else
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 printf "%s\n" "no" >&6; }
7801 fi
7802
7803 if test "x$ac_ct_OBJDUMP" = x; then
7804 OBJDUMP="false"
7805 else
7806 case $cross_compiling:$ac_tool_warned in
7807 yes:)
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7809 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7810 ac_tool_warned=yes ;;
7811 esac
7812 OBJDUMP=$ac_ct_OBJDUMP
7813 fi
7814 else
7815 OBJDUMP="$ac_cv_prog_OBJDUMP"
7816 fi
7817
7818 test -z "$OBJDUMP" && OBJDUMP=objdump
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7829 printf %s "checking how to recognize dependent libraries... " >&6; }
7830 if test ${lt_cv_deplibs_check_method+y}
7831 then :
7832 printf %s "(cached) " >&6
7833 else case e in #(
7834 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7835 lt_cv_file_magic_test_file=
7836 lt_cv_deplibs_check_method='unknown'
7837 # Need to set the preceding variable on all platforms that support
7838 # interlibrary dependencies.
7839 # 'none' -- dependencies not supported.
7840 # 'unknown' -- same as none, but documents that we really don't know.
7841 # 'pass_all' -- all dependencies passed with no checks.
7842 # 'file_magic [[regex]]' -- check by looking for files in library path
7843 # that responds to the $file_magic_cmd with a given extended regex.
7844 # If you have 'file' or equivalent on your system and you're not sure
7845 # whether 'pass_all' will *always* work, you probably want this one.
7846
7847 case $host_os in
7848 aix[4-9]*)
7849 lt_cv_deplibs_check_method=pass_all
7850 ;;
7851
7852 beos*)
7853 lt_cv_deplibs_check_method=pass_all
7854 ;;
7855
7856 bsdi[45]*)
7857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7858 lt_cv_file_magic_cmd='$FILECMD -L'
7859 lt_cv_file_magic_test_file=/shlib/libc.so
7860 ;;
7861
7862 cygwin*)
7863 # func_win32_libid is a shell function defined in ltmain.sh
7864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7865 lt_cv_file_magic_cmd='func_win32_libid'
7866 ;;
7867
7868 mingw* | windows* | pw32*)
7869 # Base MSYS/MinGW do not provide the 'file' command needed by
7870 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7871 # unless we find 'file', for example because we are cross-compiling.
7872 if ( file / ) >/dev/null 2>&1; then
7873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7874 lt_cv_file_magic_cmd='func_win32_libid'
7875 else
7876 # Keep this pattern in sync with the one in func_win32_libid.
7877 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7878 lt_cv_file_magic_cmd='$OBJDUMP -f'
7879 fi
7880 ;;
7881
7882 cegcc*)
7883 # use the weaker test based on 'objdump'. See mingw*.
7884 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7885 lt_cv_file_magic_cmd='$OBJDUMP -f'
7886 ;;
7887
7888 darwin* | rhapsody*)
7889 lt_cv_deplibs_check_method=pass_all
7890 ;;
7891
7892 freebsd* | dragonfly* | midnightbsd*)
7893 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7894 case $host_cpu in
7895 i*86 )
7896 # Not sure whether the presence of OpenBSD here was a mistake.
7897 # Let's accept both of them until this is cleared up.
7898 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7899 lt_cv_file_magic_cmd=$FILECMD
7900 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7901 ;;
7902 esac
7903 else
7904 lt_cv_deplibs_check_method=pass_all
7905 fi
7906 ;;
7907
7908 haiku*)
7909 lt_cv_deplibs_check_method=pass_all
7910 ;;
7911
7912 hpux10.20* | hpux11*)
7913 lt_cv_file_magic_cmd=$FILECMD
7914 case $host_cpu in
7915 ia64*)
7916 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7917 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7918 ;;
7919 hppa*64*)
7920 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]'
7921 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7922 ;;
7923 *)
7924 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7925 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7926 ;;
7927 esac
7928 ;;
7929
7930 interix[3-9]*)
7931 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7933 ;;
7934
7935 irix5* | irix6* | nonstopux*)
7936 case $LD in
7937 *-32|*"-32 ") libmagic=32-bit;;
7938 *-n32|*"-n32 ") libmagic=N32;;
7939 *-64|*"-64 ") libmagic=64-bit;;
7940 *) libmagic=never-match;;
7941 esac
7942 lt_cv_deplibs_check_method=pass_all
7943 ;;
7944
7945 # This must be glibc/ELF.
7946 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7947 lt_cv_deplibs_check_method=pass_all
7948 ;;
7949
7950 *-mlibc)
7951 lt_cv_deplibs_check_method=pass_all
7952 ;;
7953
7954 netbsd* | netbsdelf*-gnu)
7955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7957 else
7958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7959 fi
7960 ;;
7961
7962 newos6*)
7963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7964 lt_cv_file_magic_cmd=$FILECMD
7965 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7966 ;;
7967
7968 *nto* | *qnx*)
7969 lt_cv_deplibs_check_method=pass_all
7970 ;;
7971
7972 openbsd*)
7973 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7975 else
7976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7977 fi
7978 ;;
7979
7980 osf3* | osf4* | osf5*)
7981 lt_cv_deplibs_check_method=pass_all
7982 ;;
7983
7984 rdos*)
7985 lt_cv_deplibs_check_method=pass_all
7986 ;;
7987
7988 serenity*)
7989 lt_cv_deplibs_check_method=pass_all
7990 ;;
7991
7992 solaris*)
7993 lt_cv_deplibs_check_method=pass_all
7994 ;;
7995
7996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7997 lt_cv_deplibs_check_method=pass_all
7998 ;;
7999
8000 sysv4 | sysv4.3*)
8001 case $host_vendor in
8002 motorola)
8003 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]'
8004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8005 ;;
8006 ncr)
8007 lt_cv_deplibs_check_method=pass_all
8008 ;;
8009 sequent)
8010 lt_cv_file_magic_cmd='/bin/file'
8011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8012 ;;
8013 sni)
8014 lt_cv_file_magic_cmd='/bin/file'
8015 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8016 lt_cv_file_magic_test_file=/lib/libc.so
8017 ;;
8018 siemens)
8019 lt_cv_deplibs_check_method=pass_all
8020 ;;
8021 pc)
8022 lt_cv_deplibs_check_method=pass_all
8023 ;;
8024 esac
8025 ;;
8026
8027 tpf*)
8028 lt_cv_deplibs_check_method=pass_all
8029 ;;
8030 os2*)
8031 lt_cv_deplibs_check_method=pass_all
8032 ;;
8033 esac
8034 ;;
8035 esac
8036 fi
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8038 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8039
8040 file_magic_glob=
8041 want_nocaseglob=no
8042 if test "$build" = "$host"; then
8043 case $host_os in
8044 mingw* | windows* | pw32*)
8045 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8046 want_nocaseglob=yes
8047 else
8048 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8049 fi
8050 ;;
8051 esac
8052 fi
8053
8054 file_magic_cmd=$lt_cv_file_magic_cmd
8055 deplibs_check_method=$lt_cv_deplibs_check_method
8056 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079 if test -n "$ac_tool_prefix"; then
8080 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8081 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 printf %s "checking for $ac_word... " >&6; }
8084 if test ${ac_cv_prog_DLLTOOL+y}
8085 then :
8086 printf %s "(cached) " >&6
8087 else case e in #(
8088 e) if test -n "$DLLTOOL"; then
8089 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 case $as_dir in #(((
8096 '') as_dir=./ ;;
8097 */) ;;
8098 *) as_dir=$as_dir/ ;;
8099 esac
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 fi ;;
8111 esac
8112 fi
8113 DLLTOOL=$ac_cv_prog_DLLTOOL
8114 if test -n "$DLLTOOL"; then
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8116 printf "%s\n" "$DLLTOOL" >&6; }
8117 else
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 printf "%s\n" "no" >&6; }
8120 fi
8121
8122
8123 fi
8124 if test -z "$ac_cv_prog_DLLTOOL"; then
8125 ac_ct_DLLTOOL=$DLLTOOL
8126 # Extract the first word of "dlltool", so it can be a program name with args.
8127 set dummy dlltool; ac_word=$2
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 printf %s "checking for $ac_word... " >&6; }
8130 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8131 then :
8132 printf %s "(cached) " >&6
8133 else case e in #(
8134 e) if test -n "$ac_ct_DLLTOOL"; then
8135 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8139 do
8140 IFS=$as_save_IFS
8141 case $as_dir in #(((
8142 '') as_dir=./ ;;
8143 */) ;;
8144 *) as_dir=$as_dir/ ;;
8145 esac
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152 done
8153 done
8154 IFS=$as_save_IFS
8155
8156 fi ;;
8157 esac
8158 fi
8159 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8160 if test -n "$ac_ct_DLLTOOL"; then
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8162 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8163 else
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 printf "%s\n" "no" >&6; }
8166 fi
8167
8168 if test "x$ac_ct_DLLTOOL" = x; then
8169 DLLTOOL="false"
8170 else
8171 case $cross_compiling:$ac_tool_warned in
8172 yes:)
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8174 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8175 ac_tool_warned=yes ;;
8176 esac
8177 DLLTOOL=$ac_ct_DLLTOOL
8178 fi
8179 else
8180 DLLTOOL="$ac_cv_prog_DLLTOOL"
8181 fi
8182
8183 test -z "$DLLTOOL" && DLLTOOL=dlltool
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8195 printf %s "checking how to associate runtime and link libraries... " >&6; }
8196 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8197 then :
8198 printf %s "(cached) " >&6
8199 else case e in #(
8200 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8201
8202 case $host_os in
8203 cygwin* | mingw* | windows* | pw32* | cegcc*)
8204 # two different shell functions defined in ltmain.sh;
8205 # decide which one to use based on capabilities of $DLLTOOL
8206 case `$DLLTOOL --help 2>&1` in
8207 *--identify-strict*)
8208 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8209 ;;
8210 *)
8211 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8212 ;;
8213 esac
8214 ;;
8215 *)
8216 # fallback: assume linklib IS sharedlib
8217 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8218 ;;
8219 esac
8220 ;;
8221 esac
8222 fi
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8224 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8225 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8226 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8227
8228
8229
8230
8231
8232
8233
8234 if test -n "$ac_tool_prefix"; then
8235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 printf %s "checking for $ac_word... " >&6; }
8239 if test ${ac_cv_prog_RANLIB+y}
8240 then :
8241 printf %s "(cached) " >&6
8242 else case e in #(
8243 e) if test -n "$RANLIB"; then
8244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249 IFS=$as_save_IFS
8250 case $as_dir in #(((
8251 '') as_dir=./ ;;
8252 */) ;;
8253 *) as_dir=$as_dir/ ;;
8254 esac
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8259 break 2
8260 fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265 fi ;;
8266 esac
8267 fi
8268 RANLIB=$ac_cv_prog_RANLIB
8269 if test -n "$RANLIB"; then
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8271 printf "%s\n" "$RANLIB" >&6; }
8272 else
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 printf "%s\n" "no" >&6; }
8275 fi
8276
8277
8278 fi
8279 if test -z "$ac_cv_prog_RANLIB"; then
8280 ac_ct_RANLIB=$RANLIB
8281 # Extract the first word of "ranlib", so it can be a program name with args.
8282 set dummy ranlib; ac_word=$2
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 printf %s "checking for $ac_word... " >&6; }
8285 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8286 then :
8287 printf %s "(cached) " >&6
8288 else case e in #(
8289 e) if test -n "$ac_ct_RANLIB"; then
8290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295 IFS=$as_save_IFS
8296 case $as_dir in #(((
8297 '') as_dir=./ ;;
8298 */) ;;
8299 *) as_dir=$as_dir/ ;;
8300 esac
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8303 ac_cv_prog_ac_ct_RANLIB="ranlib"
8304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8305 break 2
8306 fi
8307 done
8308 done
8309 IFS=$as_save_IFS
8310
8311 fi ;;
8312 esac
8313 fi
8314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8315 if test -n "$ac_ct_RANLIB"; then
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8317 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8318 else
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 printf "%s\n" "no" >&6; }
8321 fi
8322
8323 if test "x$ac_ct_RANLIB" = x; then
8324 RANLIB=":"
8325 else
8326 case $cross_compiling:$ac_tool_warned in
8327 yes:)
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 ac_tool_warned=yes ;;
8331 esac
8332 RANLIB=$ac_ct_RANLIB
8333 fi
8334 else
8335 RANLIB="$ac_cv_prog_RANLIB"
8336 fi
8337
8338 if test -n "$ac_tool_prefix"; then
8339 for ac_prog in ar
8340 do
8341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 printf %s "checking for $ac_word... " >&6; }
8345 if test ${ac_cv_prog_AR+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else case e in #(
8349 e) if test -n "$AR"; then
8350 ac_cv_prog_AR="$AR" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355 IFS=$as_save_IFS
8356 case $as_dir in #(((
8357 '') as_dir=./ ;;
8358 */) ;;
8359 *) as_dir=$as_dir/ ;;
8360 esac
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8363 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367 done
8368 done
8369 IFS=$as_save_IFS
8370
8371 fi ;;
8372 esac
8373 fi
8374 AR=$ac_cv_prog_AR
8375 if test -n "$AR"; then
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8377 printf "%s\n" "$AR" >&6; }
8378 else
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 printf "%s\n" "no" >&6; }
8381 fi
8382
8383
8384 test -n "$AR" && break
8385 done
8386 fi
8387 if test -z "$AR"; then
8388 ac_ct_AR=$AR
8389 for ac_prog in ar
8390 do
8391 # Extract the first word of "$ac_prog", so it can be a program name with args.
8392 set dummy $ac_prog; ac_word=$2
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 printf %s "checking for $ac_word... " >&6; }
8395 if test ${ac_cv_prog_ac_ct_AR+y}
8396 then :
8397 printf %s "(cached) " >&6
8398 else case e in #(
8399 e) if test -n "$ac_ct_AR"; then
8400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405 IFS=$as_save_IFS
8406 case $as_dir in #(((
8407 '') as_dir=./ ;;
8408 */) ;;
8409 *) as_dir=$as_dir/ ;;
8410 esac
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8413 ac_cv_prog_ac_ct_AR="$ac_prog"
8414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417 done
8418 done
8419 IFS=$as_save_IFS
8420
8421 fi ;;
8422 esac
8423 fi
8424 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8425 if test -n "$ac_ct_AR"; then
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8427 printf "%s\n" "$ac_ct_AR" >&6; }
8428 else
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 printf "%s\n" "no" >&6; }
8431 fi
8432
8433
8434 test -n "$ac_ct_AR" && break
8435 done
8436
8437 if test "x$ac_ct_AR" = x; then
8438 AR="false"
8439 else
8440 case $cross_compiling:$ac_tool_warned in
8441 yes:)
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8443 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8444 ac_tool_warned=yes ;;
8445 esac
8446 AR=$ac_ct_AR
8447 fi
8448 fi
8449
8450 : ${AR=ar}
8451
8452
8453
8454
8455
8456
8457 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8458 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8459 # higher priority because that's what people were doing historically (setting
8460 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8461 # variable obsoleted/removed.
8462
8463 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8464 lt_ar_flags=$AR_FLAGS
8465
8466
8467
8468
8469
8470
8471 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8472 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8473
8474
8475
8476
8477
8478
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8480 printf %s "checking for archiver @FILE support... " >&6; }
8481 if test ${lt_cv_ar_at_file+y}
8482 then :
8483 printf %s "(cached) " >&6
8484 else case e in #(
8485 e) lt_cv_ar_at_file=no
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488
8489 int
8490 main (void)
8491 {
8492
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"
8498 then :
8499 echo conftest.$ac_objext > conftest.lst
8500 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8502 (eval $lt_ar_try) 2>&5
8503 ac_status=$?
8504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8505 test $ac_status = 0; }
8506 if test 0 -eq "$ac_status"; then
8507 # Ensure the archiver fails upon bogus file names.
8508 rm -f conftest.$ac_objext libconftest.a
8509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8510 (eval $lt_ar_try) 2>&5
8511 ac_status=$?
8512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8513 test $ac_status = 0; }
8514 if test 0 -ne "$ac_status"; then
8515 lt_cv_ar_at_file=@
8516 fi
8517 fi
8518 rm -f conftest.* libconftest.a
8519
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8522 ;;
8523 esac
8524 fi
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8526 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8527
8528 if test no = "$lt_cv_ar_at_file"; then
8529 archiver_list_spec=
8530 else
8531 archiver_list_spec=$lt_cv_ar_at_file
8532 fi
8533
8534
8535
8536
8537
8538
8539
8540 if test -n "$ac_tool_prefix"; then
8541 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8542 set dummy ${ac_tool_prefix}strip; ac_word=$2
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 printf %s "checking for $ac_word... " >&6; }
8545 if test ${ac_cv_prog_STRIP+y}
8546 then :
8547 printf %s "(cached) " >&6
8548 else case e in #(
8549 e) if test -n "$STRIP"; then
8550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555 IFS=$as_save_IFS
8556 case $as_dir in #(((
8557 '') as_dir=./ ;;
8558 */) ;;
8559 *) as_dir=$as_dir/ ;;
8560 esac
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567 done
8568 done
8569 IFS=$as_save_IFS
8570
8571 fi ;;
8572 esac
8573 fi
8574 STRIP=$ac_cv_prog_STRIP
8575 if test -n "$STRIP"; then
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8577 printf "%s\n" "$STRIP" >&6; }
8578 else
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 printf "%s\n" "no" >&6; }
8581 fi
8582
8583
8584 fi
8585 if test -z "$ac_cv_prog_STRIP"; then
8586 ac_ct_STRIP=$STRIP
8587 # Extract the first word of "strip", so it can be a program name with args.
8588 set dummy strip; ac_word=$2
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 printf %s "checking for $ac_word... " >&6; }
8591 if test ${ac_cv_prog_ac_ct_STRIP+y}
8592 then :
8593 printf %s "(cached) " >&6
8594 else case e in #(
8595 e) if test -n "$ac_ct_STRIP"; then
8596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8597 else
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 for as_dir in $PATH
8600 do
8601 IFS=$as_save_IFS
8602 case $as_dir in #(((
8603 '') as_dir=./ ;;
8604 */) ;;
8605 *) as_dir=$as_dir/ ;;
8606 esac
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_ac_ct_STRIP="strip"
8610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613 done
8614 done
8615 IFS=$as_save_IFS
8616
8617 fi ;;
8618 esac
8619 fi
8620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8621 if test -n "$ac_ct_STRIP"; then
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8623 printf "%s\n" "$ac_ct_STRIP" >&6; }
8624 else
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 printf "%s\n" "no" >&6; }
8627 fi
8628
8629 if test "x$ac_ct_STRIP" = x; then
8630 STRIP=":"
8631 else
8632 case $cross_compiling:$ac_tool_warned in
8633 yes:)
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8636 ac_tool_warned=yes ;;
8637 esac
8638 STRIP=$ac_ct_STRIP
8639 fi
8640 else
8641 STRIP="$ac_cv_prog_STRIP"
8642 fi
8643
8644 test -z "$STRIP" && STRIP=:
8645
8646
8647
8648
8649
8650
8651
8652 test -z "$RANLIB" && RANLIB=:
8653
8654
8655
8656
8657
8658
8659 # Determine commands to create old-style static archives.
8660 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8661 old_postinstall_cmds='chmod 644 $oldlib'
8662 old_postuninstall_cmds=
8663
8664 if test -n "$RANLIB"; then
8665 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8666 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8667 fi
8668
8669 case $host_os in
8670 darwin*)
8671 lock_old_archive_extraction=yes ;;
8672 *)
8673 lock_old_archive_extraction=no ;;
8674 esac
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714 # If no C compiler was specified, use CC.
8715 LTCC=${LTCC-"$CC"}
8716
8717 # If no C compiler flags were specified, use CFLAGS.
8718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8719
8720 # Allow CC to be a program name with arguments.
8721 compiler=$CC
8722
8723
8724 # Check for command to grab the raw symbol name followed by C symbol from nm.
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8726 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8727 if test ${lt_cv_sys_global_symbol_pipe+y}
8728 then :
8729 printf %s "(cached) " >&6
8730 else case e in #(
8731 e)
8732 # These are sane defaults that work on at least a few old systems.
8733 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8734
8735 # Character class describing NM global symbol codes.
8736 symcode='[BCDEGRST]'
8737
8738 # Regexp to match symbols that can be accessed directly from C.
8739 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8740
8741 # Define system-specific variables.
8742 case $host_os in
8743 aix*)
8744 symcode='[BCDT]'
8745 ;;
8746 cygwin* | mingw* | windows* | pw32* | cegcc*)
8747 symcode='[ABCDGISTW]'
8748 ;;
8749 hpux*)
8750 if test ia64 = "$host_cpu"; then
8751 symcode='[ABCDEGRST]'
8752 fi
8753 ;;
8754 irix* | nonstopux*)
8755 symcode='[BCDEGRST]'
8756 ;;
8757 osf*)
8758 symcode='[BCDEGQRST]'
8759 ;;
8760 solaris*)
8761 symcode='[BCDRT]'
8762 ;;
8763 sco3.2v5*)
8764 symcode='[DT]'
8765 ;;
8766 sysv4.2uw2*)
8767 symcode='[DT]'
8768 ;;
8769 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8770 symcode='[ABDT]'
8771 ;;
8772 sysv4)
8773 symcode='[DFNSTU]'
8774 ;;
8775 esac
8776
8777 # If we're using GNU nm, then use its standard symbol codes.
8778 case `$NM -V 2>&1` in
8779 *GNU* | *'with BFD'*)
8780 symcode='[ABCDGIRSTW]' ;;
8781 esac
8782
8783 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8784 # Gets list of data symbols to import.
8785 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8786 # Adjust the below global symbol transforms to fixup imported variables.
8787 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8788 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8789 lt_c_name_lib_hook="\
8790 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8791 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8792 else
8793 # Disable hooks by default.
8794 lt_cv_sys_global_symbol_to_import=
8795 lt_cdecl_hook=
8796 lt_c_name_hook=
8797 lt_c_name_lib_hook=
8798 fi
8799
8800 # Transform an extracted symbol line into a proper C declaration.
8801 # Some systems (esp. on ia64) link data and code symbols differently,
8802 # so use this general approach.
8803 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8804 $lt_cdecl_hook\
8805 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8806 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8807
8808 # Transform an extracted symbol line into symbol name and symbol address
8809 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8810 $lt_c_name_hook\
8811 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8812 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8813
8814 # Transform an extracted symbol line into symbol name with lib prefix and
8815 # symbol address.
8816 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8817 $lt_c_name_lib_hook\
8818 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8819 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8820 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8821
8822 # Handle CRLF in mingw tool chain
8823 opt_cr=
8824 case $build_os in
8825 mingw* | windows*)
8826 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8827 ;;
8828 esac
8829
8830 # Try without a prefix underscore, then with it.
8831 for ac_symprfx in "" "_"; do
8832
8833 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8834 symxfrm="\\1 $ac_symprfx\\2 \\2"
8835
8836 # Write the raw and C identifiers.
8837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8838 # Fake it for dumpbin and say T for any non-static function,
8839 # D for any global variable and I for any imported variable.
8840 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8841 # which start with @ or ?.
8842 lt_cv_sys_global_symbol_pipe="$AWK '"\
8843 " {last_section=section; section=\$ 3};"\
8844 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8845 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8846 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8847 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8848 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8849 " \$ 0!~/External *\|/{next};"\
8850 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8851 " {if(hide[section]) next};"\
8852 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8853 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8854 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8855 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8856 " ' prfx=^$ac_symprfx"
8857 else
8858 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8859 fi
8860 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8861
8862 # Check to see that the pipe works correctly.
8863 pipe_works=no
8864
8865 rm -f conftest*
8866 cat > conftest.$ac_ext <<_LT_EOF
8867 #ifdef __cplusplus
8868 extern "C" {
8869 #endif
8870 char nm_test_var;
8871 void nm_test_func(void);
8872 void nm_test_func(void){}
8873 #ifdef __cplusplus
8874 }
8875 #endif
8876 int main(void){nm_test_var='a';nm_test_func();return(0);}
8877 _LT_EOF
8878
8879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8880 (eval $ac_compile) 2>&5
8881 ac_status=$?
8882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8883 test $ac_status = 0; }; then
8884 # Now try to grab the symbols.
8885 nlist=conftest.nm
8886 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8887 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8888 # Try sorting and uniquifying the output.
8889 if sort "$nlist" | uniq > "$nlist"T; then
8890 mv -f "$nlist"T "$nlist"
8891 else
8892 rm -f "$nlist"T
8893 fi
8894
8895 # Make sure that we snagged all the symbols we need.
8896 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8897 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8898 cat <<_LT_EOF > conftest.$ac_ext
8899 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8900 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8901 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8902 relocations are performed -- see ld's documentation on pseudo-relocs. */
8903 # define LT_DLSYM_CONST
8904 #elif defined __osf__
8905 /* This system does not cope well with relocations in const data. */
8906 # define LT_DLSYM_CONST
8907 #else
8908 # define LT_DLSYM_CONST const
8909 #endif
8910
8911 #ifdef __cplusplus
8912 extern "C" {
8913 #endif
8914
8915 _LT_EOF
8916 # Now generate the symbol file.
8917 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8918
8919 cat <<_LT_EOF >> conftest.$ac_ext
8920
8921 /* The mapping between symbol names and symbols. */
8922 LT_DLSYM_CONST struct {
8923 const char *name;
8924 void *address;
8925 }
8926 lt__PROGRAM__LTX_preloaded_symbols[] =
8927 {
8928 { "@PROGRAM@", (void *) 0 },
8929 _LT_EOF
8930 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8931 cat <<\_LT_EOF >> conftest.$ac_ext
8932 {0, (void *) 0}
8933 };
8934
8935 /* This works around a problem in FreeBSD linker */
8936 #ifdef FREEBSD_WORKAROUND
8937 static const void *lt_preloaded_setup() {
8938 return lt__PROGRAM__LTX_preloaded_symbols;
8939 }
8940 #endif
8941
8942 #ifdef __cplusplus
8943 }
8944 #endif
8945 _LT_EOF
8946 # Now try linking the two files.
8947 mv conftest.$ac_objext conftstm.$ac_objext
8948 lt_globsym_save_LIBS=$LIBS
8949 lt_globsym_save_CFLAGS=$CFLAGS
8950 LIBS=conftstm.$ac_objext
8951 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8953 (eval $ac_link) 2>&5
8954 ac_status=$?
8955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8956 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8957 pipe_works=yes
8958 fi
8959 LIBS=$lt_globsym_save_LIBS
8960 CFLAGS=$lt_globsym_save_CFLAGS
8961 else
8962 echo "cannot find nm_test_func in $nlist" >&5
8963 fi
8964 else
8965 echo "cannot find nm_test_var in $nlist" >&5
8966 fi
8967 else
8968 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8969 fi
8970 else
8971 echo "$progname: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 fi
8974 rm -rf conftest* conftst*
8975
8976 # Do not use the global_symbol_pipe unless it works.
8977 if test yes = "$pipe_works"; then
8978 break
8979 else
8980 lt_cv_sys_global_symbol_pipe=
8981 fi
8982 done
8983 ;;
8984 esac
8985 fi
8986
8987 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8988 lt_cv_sys_global_symbol_to_cdecl=
8989 fi
8990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8992 printf "%s\n" "failed" >&6; }
8993 else
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8995 printf "%s\n" "ok" >&6; }
8996 fi
8997
8998 # Response file support.
8999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9000 nm_file_list_spec='@'
9001 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9002 nm_file_list_spec='@'
9003 fi
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9042 printf %s "checking for sysroot... " >&6; }
9043
9044 # Check whether --with-sysroot was given.
9045 if test ${with_sysroot+y}
9046 then :
9047 withval=$with_sysroot;
9048 else case e in #(
9049 e) with_sysroot=no ;;
9050 esac
9051 fi
9052
9053
9054 lt_sysroot=
9055 case $with_sysroot in #(
9056 yes)
9057 if test yes = "$GCC"; then
9058 # Trim trailing / since we'll always append absolute paths and we want
9059 # to avoid //, if only for less confusing output for the user.
9060 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9061 fi
9062 ;; #(
9063 /*)
9064 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9065 ;; #(
9066 no|'')
9067 ;; #(
9068 *)
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9070 printf "%s\n" "$with_sysroot" >&6; }
9071 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9072 ;;
9073 esac
9074
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9076 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9077
9078
9079
9080
9081
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9083 printf %s "checking for a working dd... " >&6; }
9084 if test ${ac_cv_path_lt_DD+y}
9085 then :
9086 printf %s "(cached) " >&6
9087 else case e in #(
9088 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9089 cat conftest.i conftest.i >conftest2.i
9090 : ${lt_DD:=$DD}
9091 if test -z "$lt_DD"; then
9092 ac_path_lt_DD_found=false
9093 # Loop through the user's path and test for each of PROGNAME-LIST
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in $PATH
9096 do
9097 IFS=$as_save_IFS
9098 case $as_dir in #(((
9099 '') as_dir=./ ;;
9100 */) ;;
9101 *) as_dir=$as_dir/ ;;
9102 esac
9103 for ac_prog in dd
9104 do
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9107 as_fn_executable_p "$ac_path_lt_DD" || continue
9108 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9109 cmp -s conftest.i conftest.out \
9110 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9111 fi
9112 $ac_path_lt_DD_found && break 3
9113 done
9114 done
9115 done
9116 IFS=$as_save_IFS
9117 if test -z "$ac_cv_path_lt_DD"; then
9118 :
9119 fi
9120 else
9121 ac_cv_path_lt_DD=$lt_DD
9122 fi
9123
9124 rm -f conftest.i conftest2.i conftest.out ;;
9125 esac
9126 fi
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9128 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9129
9130
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9132 printf %s "checking how to truncate binary pipes... " >&6; }
9133 if test ${lt_cv_truncate_bin+y}
9134 then :
9135 printf %s "(cached) " >&6
9136 else case e in #(
9137 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9138 cat conftest.i conftest.i >conftest2.i
9139 lt_cv_truncate_bin=
9140 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9141 cmp -s conftest.i conftest.out \
9142 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9143 fi
9144 rm -f conftest.i conftest2.i conftest.out
9145 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9146 esac
9147 fi
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9149 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9150
9151
9152
9153
9154
9155
9156
9157 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9158 func_cc_basename ()
9159 {
9160 for cc_temp in $*""; do
9161 case $cc_temp in
9162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9164 \-*) ;;
9165 *) break;;
9166 esac
9167 done
9168 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9169 }
9170
9171 # Check whether --enable-libtool-lock was given.
9172 if test ${enable_libtool_lock+y}
9173 then :
9174 enableval=$enable_libtool_lock;
9175 fi
9176
9177 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9178
9179 # Some flags need to be propagated to the compiler or linker for good
9180 # libtool support.
9181 case $host in
9182 ia64-*-hpux*)
9183 # Find out what ABI is being produced by ac_compile, and set mode
9184 # options accordingly.
9185 echo 'int i;' > conftest.$ac_ext
9186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9187 (eval $ac_compile) 2>&5
9188 ac_status=$?
9189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9190 test $ac_status = 0; }; then
9191 case `$FILECMD conftest.$ac_objext` in
9192 *ELF-32*)
9193 HPUX_IA64_MODE=32
9194 ;;
9195 *ELF-64*)
9196 HPUX_IA64_MODE=64
9197 ;;
9198 esac
9199 fi
9200 rm -rf conftest*
9201 ;;
9202 *-*-irix6*)
9203 # Find out what ABI is being produced by ac_compile, and set linker
9204 # options accordingly.
9205 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9207 (eval $ac_compile) 2>&5
9208 ac_status=$?
9209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9210 test $ac_status = 0; }; then
9211 if test yes = "$lt_cv_prog_gnu_ld"; then
9212 case `$FILECMD conftest.$ac_objext` in
9213 *32-bit*)
9214 LD="${LD-ld} -melf32bsmip"
9215 ;;
9216 *N32*)
9217 LD="${LD-ld} -melf32bmipn32"
9218 ;;
9219 *64-bit*)
9220 LD="${LD-ld} -melf64bmip"
9221 ;;
9222 esac
9223 else
9224 case `$FILECMD conftest.$ac_objext` in
9225 *32-bit*)
9226 LD="${LD-ld} -32"
9227 ;;
9228 *N32*)
9229 LD="${LD-ld} -n32"
9230 ;;
9231 *64-bit*)
9232 LD="${LD-ld} -64"
9233 ;;
9234 esac
9235 fi
9236 fi
9237 rm -rf conftest*
9238 ;;
9239
9240 mips64*-*linux*)
9241 # Find out what ABI is being produced by ac_compile, and set linker
9242 # options accordingly.
9243 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9245 (eval $ac_compile) 2>&5
9246 ac_status=$?
9247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9248 test $ac_status = 0; }; then
9249 emul=elf
9250 case `$FILECMD conftest.$ac_objext` in
9251 *32-bit*)
9252 emul="${emul}32"
9253 ;;
9254 *64-bit*)
9255 emul="${emul}64"
9256 ;;
9257 esac
9258 case `$FILECMD conftest.$ac_objext` in
9259 *MSB*)
9260 emul="${emul}btsmip"
9261 ;;
9262 *LSB*)
9263 emul="${emul}ltsmip"
9264 ;;
9265 esac
9266 case `$FILECMD conftest.$ac_objext` in
9267 *N32*)
9268 emul="${emul}n32"
9269 ;;
9270 esac
9271 LD="${LD-ld} -m $emul"
9272 fi
9273 rm -rf conftest*
9274 ;;
9275
9276 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9277 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9278 # Find out what ABI is being produced by ac_compile, and set linker
9279 # options accordingly. Note that the listed cases only cover the
9280 # situations where additional linker options are needed (such as when
9281 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9282 # vice versa); the common cases where no linker options are needed do
9283 # not appear in the list.
9284 echo 'int i;' > conftest.$ac_ext
9285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9286 (eval $ac_compile) 2>&5
9287 ac_status=$?
9288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9289 test $ac_status = 0; }; then
9290 case `$FILECMD conftest.o` in
9291 *32-bit*)
9292 case $host in
9293 x86_64-*kfreebsd*-gnu)
9294 LD="${LD-ld} -m elf_i386_fbsd"
9295 ;;
9296 x86_64-*linux*|x86_64-gnu*)
9297 case `$FILECMD conftest.o` in
9298 *x86-64*)
9299 LD="${LD-ld} -m elf32_x86_64"
9300 ;;
9301 *)
9302 LD="${LD-ld} -m elf_i386"
9303 ;;
9304 esac
9305 ;;
9306 powerpc64le-*linux*)
9307 LD="${LD-ld} -m elf32lppclinux"
9308 ;;
9309 powerpc64-*linux*)
9310 LD="${LD-ld} -m elf32ppclinux"
9311 ;;
9312 s390x-*linux*)
9313 LD="${LD-ld} -m elf_s390"
9314 ;;
9315 sparc64-*linux*)
9316 LD="${LD-ld} -m elf32_sparc"
9317 ;;
9318 esac
9319 ;;
9320 *64-bit*)
9321 case $host in
9322 x86_64-*kfreebsd*-gnu)
9323 LD="${LD-ld} -m elf_x86_64_fbsd"
9324 ;;
9325 x86_64-*linux*|x86_64-gnu*)
9326 LD="${LD-ld} -m elf_x86_64"
9327 ;;
9328 powerpcle-*linux*)
9329 LD="${LD-ld} -m elf64lppc"
9330 ;;
9331 powerpc-*linux*)
9332 LD="${LD-ld} -m elf64ppc"
9333 ;;
9334 s390*-*linux*|s390*-*tpf*)
9335 LD="${LD-ld} -m elf64_s390"
9336 ;;
9337 sparc*-*linux*)
9338 LD="${LD-ld} -m elf64_sparc"
9339 ;;
9340 esac
9341 ;;
9342 esac
9343 fi
9344 rm -rf conftest*
9345 ;;
9346
9347 *-*-sco3.2v5*)
9348 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9349 SAVE_CFLAGS=$CFLAGS
9350 CFLAGS="$CFLAGS -belf"
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9352 printf %s "checking whether the C compiler needs -belf... " >&6; }
9353 if test ${lt_cv_cc_needs_belf+y}
9354 then :
9355 printf %s "(cached) " >&6
9356 else case e in #(
9357 e) ac_ext=c
9358 ac_cpp='$CPP $CPPFLAGS'
9359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365
9366 int
9367 main (void)
9368 {
9369
9370 ;
9371 return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"
9375 then :
9376 lt_cv_cc_needs_belf=yes
9377 else case e in #(
9378 e) lt_cv_cc_needs_belf=no ;;
9379 esac
9380 fi
9381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9382 conftest$ac_exeext conftest.$ac_ext
9383 ac_ext=c
9384 ac_cpp='$CPP $CPPFLAGS'
9385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9388 ;;
9389 esac
9390 fi
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9392 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9393 if test yes != "$lt_cv_cc_needs_belf"; then
9394 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9395 CFLAGS=$SAVE_CFLAGS
9396 fi
9397 ;;
9398 *-*solaris*)
9399 # Find out what ABI is being produced by ac_compile, and set linker
9400 # options accordingly.
9401 echo 'int i;' > conftest.$ac_ext
9402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9403 (eval $ac_compile) 2>&5
9404 ac_status=$?
9405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9406 test $ac_status = 0; }; then
9407 case `$FILECMD conftest.o` in
9408 *64-bit*)
9409 case $lt_cv_prog_gnu_ld in
9410 yes*)
9411 case $host in
9412 i?86-*-solaris*|x86_64-*-solaris*)
9413 LD="${LD-ld} -m elf_x86_64"
9414 ;;
9415 sparc*-*-solaris*)
9416 LD="${LD-ld} -m elf64_sparc"
9417 ;;
9418 esac
9419 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9420 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9421 LD=${LD-ld}_sol2
9422 fi
9423 ;;
9424 *)
9425 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9426 LD="${LD-ld} -64"
9427 fi
9428 ;;
9429 esac
9430 ;;
9431 esac
9432 fi
9433 rm -rf conftest*
9434 ;;
9435 esac
9436
9437 need_locks=$enable_libtool_lock
9438
9439 if test -n "$ac_tool_prefix"; then
9440 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9441 set dummy ${ac_tool_prefix}mt; ac_word=$2
9442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443 printf %s "checking for $ac_word... " >&6; }
9444 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9445 then :
9446 printf %s "(cached) " >&6
9447 else case e in #(
9448 e) if test -n "$MANIFEST_TOOL"; then
9449 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9450 else
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in $PATH
9453 do
9454 IFS=$as_save_IFS
9455 case $as_dir in #(((
9456 '') as_dir=./ ;;
9457 */) ;;
9458 *) as_dir=$as_dir/ ;;
9459 esac
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9462 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9464 break 2
9465 fi
9466 done
9467 done
9468 IFS=$as_save_IFS
9469
9470 fi ;;
9471 esac
9472 fi
9473 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9474 if test -n "$MANIFEST_TOOL"; then
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9476 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9477 else
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 printf "%s\n" "no" >&6; }
9480 fi
9481
9482
9483 fi
9484 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9485 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9486 # Extract the first word of "mt", so it can be a program name with args.
9487 set dummy mt; ac_word=$2
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 printf %s "checking for $ac_word... " >&6; }
9490 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9491 then :
9492 printf %s "(cached) " >&6
9493 else case e in #(
9494 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9495 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9496 else
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9499 do
9500 IFS=$as_save_IFS
9501 case $as_dir in #(((
9502 '') as_dir=./ ;;
9503 */) ;;
9504 *) as_dir=$as_dir/ ;;
9505 esac
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9508 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9510 break 2
9511 fi
9512 done
9513 done
9514 IFS=$as_save_IFS
9515
9516 fi ;;
9517 esac
9518 fi
9519 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9520 if test -n "$ac_ct_MANIFEST_TOOL"; then
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9522 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9523 else
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 printf "%s\n" "no" >&6; }
9526 fi
9527
9528 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9529 MANIFEST_TOOL=":"
9530 else
9531 case $cross_compiling:$ac_tool_warned in
9532 yes:)
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9534 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9535 ac_tool_warned=yes ;;
9536 esac
9537 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9538 fi
9539 else
9540 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9541 fi
9542
9543 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9545 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9546 if test ${lt_cv_path_manifest_tool+y}
9547 then :
9548 printf %s "(cached) " >&6
9549 else case e in #(
9550 e) lt_cv_path_manifest_tool=no
9551 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9552 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9553 cat conftest.err >&5
9554 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9555 lt_cv_path_manifest_tool=yes
9556 fi
9557 rm -f conftest* ;;
9558 esac
9559 fi
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9561 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9562 if test yes != "$lt_cv_path_manifest_tool"; then
9563 MANIFEST_TOOL=:
9564 fi
9565
9566
9567
9568
9569
9570
9571 case $host_os in
9572 rhapsody* | darwin*)
9573 if test -n "$ac_tool_prefix"; then
9574 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9575 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 printf %s "checking for $ac_word... " >&6; }
9578 if test ${ac_cv_prog_DSYMUTIL+y}
9579 then :
9580 printf %s "(cached) " >&6
9581 else case e in #(
9582 e) if test -n "$DSYMUTIL"; then
9583 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9584 else
9585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586 for as_dir in $PATH
9587 do
9588 IFS=$as_save_IFS
9589 case $as_dir in #(((
9590 '') as_dir=./ ;;
9591 */) ;;
9592 *) as_dir=$as_dir/ ;;
9593 esac
9594 for ac_exec_ext in '' $ac_executable_extensions; do
9595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9596 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9598 break 2
9599 fi
9600 done
9601 done
9602 IFS=$as_save_IFS
9603
9604 fi ;;
9605 esac
9606 fi
9607 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9608 if test -n "$DSYMUTIL"; then
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9610 printf "%s\n" "$DSYMUTIL" >&6; }
9611 else
9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 printf "%s\n" "no" >&6; }
9614 fi
9615
9616
9617 fi
9618 if test -z "$ac_cv_prog_DSYMUTIL"; then
9619 ac_ct_DSYMUTIL=$DSYMUTIL
9620 # Extract the first word of "dsymutil", so it can be a program name with args.
9621 set dummy dsymutil; ac_word=$2
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 printf %s "checking for $ac_word... " >&6; }
9624 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9625 then :
9626 printf %s "(cached) " >&6
9627 else case e in #(
9628 e) if test -n "$ac_ct_DSYMUTIL"; then
9629 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9630 else
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9633 do
9634 IFS=$as_save_IFS
9635 case $as_dir in #(((
9636 '') as_dir=./ ;;
9637 */) ;;
9638 *) as_dir=$as_dir/ ;;
9639 esac
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9644 break 2
9645 fi
9646 done
9647 done
9648 IFS=$as_save_IFS
9649
9650 fi ;;
9651 esac
9652 fi
9653 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9654 if test -n "$ac_ct_DSYMUTIL"; then
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9656 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9657 else
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 printf "%s\n" "no" >&6; }
9660 fi
9661
9662 if test "x$ac_ct_DSYMUTIL" = x; then
9663 DSYMUTIL=":"
9664 else
9665 case $cross_compiling:$ac_tool_warned in
9666 yes:)
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9668 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9669 ac_tool_warned=yes ;;
9670 esac
9671 DSYMUTIL=$ac_ct_DSYMUTIL
9672 fi
9673 else
9674 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9675 fi
9676
9677 if test -n "$ac_tool_prefix"; then
9678 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9679 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 printf %s "checking for $ac_word... " >&6; }
9682 if test ${ac_cv_prog_NMEDIT+y}
9683 then :
9684 printf %s "(cached) " >&6
9685 else case e in #(
9686 e) if test -n "$NMEDIT"; then
9687 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9688 else
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9691 do
9692 IFS=$as_save_IFS
9693 case $as_dir in #(((
9694 '') as_dir=./ ;;
9695 */) ;;
9696 *) as_dir=$as_dir/ ;;
9697 esac
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9700 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704 done
9705 done
9706 IFS=$as_save_IFS
9707
9708 fi ;;
9709 esac
9710 fi
9711 NMEDIT=$ac_cv_prog_NMEDIT
9712 if test -n "$NMEDIT"; then
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9714 printf "%s\n" "$NMEDIT" >&6; }
9715 else
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 printf "%s\n" "no" >&6; }
9718 fi
9719
9720
9721 fi
9722 if test -z "$ac_cv_prog_NMEDIT"; then
9723 ac_ct_NMEDIT=$NMEDIT
9724 # Extract the first word of "nmedit", so it can be a program name with args.
9725 set dummy nmedit; ac_word=$2
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 printf %s "checking for $ac_word... " >&6; }
9728 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9729 then :
9730 printf %s "(cached) " >&6
9731 else case e in #(
9732 e) if test -n "$ac_ct_NMEDIT"; then
9733 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9734 else
9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 for as_dir in $PATH
9737 do
9738 IFS=$as_save_IFS
9739 case $as_dir in #(((
9740 '') as_dir=./ ;;
9741 */) ;;
9742 *) as_dir=$as_dir/ ;;
9743 esac
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9746 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9748 break 2
9749 fi
9750 done
9751 done
9752 IFS=$as_save_IFS
9753
9754 fi ;;
9755 esac
9756 fi
9757 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9758 if test -n "$ac_ct_NMEDIT"; then
9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9760 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9761 else
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 printf "%s\n" "no" >&6; }
9764 fi
9765
9766 if test "x$ac_ct_NMEDIT" = x; then
9767 NMEDIT=":"
9768 else
9769 case $cross_compiling:$ac_tool_warned in
9770 yes:)
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9773 ac_tool_warned=yes ;;
9774 esac
9775 NMEDIT=$ac_ct_NMEDIT
9776 fi
9777 else
9778 NMEDIT="$ac_cv_prog_NMEDIT"
9779 fi
9780
9781 if test -n "$ac_tool_prefix"; then
9782 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9783 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9785 printf %s "checking for $ac_word... " >&6; }
9786 if test ${ac_cv_prog_LIPO+y}
9787 then :
9788 printf %s "(cached) " >&6
9789 else case e in #(
9790 e) if test -n "$LIPO"; then
9791 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9792 else
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9795 do
9796 IFS=$as_save_IFS
9797 case $as_dir in #(((
9798 '') as_dir=./ ;;
9799 */) ;;
9800 *) as_dir=$as_dir/ ;;
9801 esac
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9804 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9806 break 2
9807 fi
9808 done
9809 done
9810 IFS=$as_save_IFS
9811
9812 fi ;;
9813 esac
9814 fi
9815 LIPO=$ac_cv_prog_LIPO
9816 if test -n "$LIPO"; then
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9818 printf "%s\n" "$LIPO" >&6; }
9819 else
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 printf "%s\n" "no" >&6; }
9822 fi
9823
9824
9825 fi
9826 if test -z "$ac_cv_prog_LIPO"; then
9827 ac_ct_LIPO=$LIPO
9828 # Extract the first word of "lipo", so it can be a program name with args.
9829 set dummy lipo; ac_word=$2
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9831 printf %s "checking for $ac_word... " >&6; }
9832 if test ${ac_cv_prog_ac_ct_LIPO+y}
9833 then :
9834 printf %s "(cached) " >&6
9835 else case e in #(
9836 e) if test -n "$ac_ct_LIPO"; then
9837 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9838 else
9839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840 for as_dir in $PATH
9841 do
9842 IFS=$as_save_IFS
9843 case $as_dir in #(((
9844 '') as_dir=./ ;;
9845 */) ;;
9846 *) as_dir=$as_dir/ ;;
9847 esac
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9850 ac_cv_prog_ac_ct_LIPO="lipo"
9851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9852 break 2
9853 fi
9854 done
9855 done
9856 IFS=$as_save_IFS
9857
9858 fi ;;
9859 esac
9860 fi
9861 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9862 if test -n "$ac_ct_LIPO"; then
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9864 printf "%s\n" "$ac_ct_LIPO" >&6; }
9865 else
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 printf "%s\n" "no" >&6; }
9868 fi
9869
9870 if test "x$ac_ct_LIPO" = x; then
9871 LIPO=":"
9872 else
9873 case $cross_compiling:$ac_tool_warned in
9874 yes:)
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9877 ac_tool_warned=yes ;;
9878 esac
9879 LIPO=$ac_ct_LIPO
9880 fi
9881 else
9882 LIPO="$ac_cv_prog_LIPO"
9883 fi
9884
9885 if test -n "$ac_tool_prefix"; then
9886 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9887 set dummy ${ac_tool_prefix}otool; ac_word=$2
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 printf %s "checking for $ac_word... " >&6; }
9890 if test ${ac_cv_prog_OTOOL+y}
9891 then :
9892 printf %s "(cached) " >&6
9893 else case e in #(
9894 e) if test -n "$OTOOL"; then
9895 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9896 else
9897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898 for as_dir in $PATH
9899 do
9900 IFS=$as_save_IFS
9901 case $as_dir in #(((
9902 '') as_dir=./ ;;
9903 */) ;;
9904 *) as_dir=$as_dir/ ;;
9905 esac
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9908 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9910 break 2
9911 fi
9912 done
9913 done
9914 IFS=$as_save_IFS
9915
9916 fi ;;
9917 esac
9918 fi
9919 OTOOL=$ac_cv_prog_OTOOL
9920 if test -n "$OTOOL"; then
9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9922 printf "%s\n" "$OTOOL" >&6; }
9923 else
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 printf "%s\n" "no" >&6; }
9926 fi
9927
9928
9929 fi
9930 if test -z "$ac_cv_prog_OTOOL"; then
9931 ac_ct_OTOOL=$OTOOL
9932 # Extract the first word of "otool", so it can be a program name with args.
9933 set dummy otool; ac_word=$2
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 printf %s "checking for $ac_word... " >&6; }
9936 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9937 then :
9938 printf %s "(cached) " >&6
9939 else case e in #(
9940 e) if test -n "$ac_ct_OTOOL"; then
9941 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9942 else
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in $PATH
9945 do
9946 IFS=$as_save_IFS
9947 case $as_dir in #(((
9948 '') as_dir=./ ;;
9949 */) ;;
9950 *) as_dir=$as_dir/ ;;
9951 esac
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_ac_ct_OTOOL="otool"
9955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9956 break 2
9957 fi
9958 done
9959 done
9960 IFS=$as_save_IFS
9961
9962 fi ;;
9963 esac
9964 fi
9965 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9966 if test -n "$ac_ct_OTOOL"; then
9967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9968 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9969 else
9970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 printf "%s\n" "no" >&6; }
9972 fi
9973
9974 if test "x$ac_ct_OTOOL" = x; then
9975 OTOOL=":"
9976 else
9977 case $cross_compiling:$ac_tool_warned in
9978 yes:)
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9981 ac_tool_warned=yes ;;
9982 esac
9983 OTOOL=$ac_ct_OTOOL
9984 fi
9985 else
9986 OTOOL="$ac_cv_prog_OTOOL"
9987 fi
9988
9989 if test -n "$ac_tool_prefix"; then
9990 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9991 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 printf %s "checking for $ac_word... " >&6; }
9994 if test ${ac_cv_prog_OTOOL64+y}
9995 then :
9996 printf %s "(cached) " >&6
9997 else case e in #(
9998 e) if test -n "$OTOOL64"; then
9999 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10000 else
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10003 do
10004 IFS=$as_save_IFS
10005 case $as_dir in #(((
10006 '') as_dir=./ ;;
10007 */) ;;
10008 *) as_dir=$as_dir/ ;;
10009 esac
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10012 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10014 break 2
10015 fi
10016 done
10017 done
10018 IFS=$as_save_IFS
10019
10020 fi ;;
10021 esac
10022 fi
10023 OTOOL64=$ac_cv_prog_OTOOL64
10024 if test -n "$OTOOL64"; then
10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10026 printf "%s\n" "$OTOOL64" >&6; }
10027 else
10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 printf "%s\n" "no" >&6; }
10030 fi
10031
10032
10033 fi
10034 if test -z "$ac_cv_prog_OTOOL64"; then
10035 ac_ct_OTOOL64=$OTOOL64
10036 # Extract the first word of "otool64", so it can be a program name with args.
10037 set dummy otool64; ac_word=$2
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 printf %s "checking for $ac_word... " >&6; }
10040 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10041 then :
10042 printf %s "(cached) " >&6
10043 else case e in #(
10044 e) if test -n "$ac_ct_OTOOL64"; then
10045 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10046 else
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10049 do
10050 IFS=$as_save_IFS
10051 case $as_dir in #(((
10052 '') as_dir=./ ;;
10053 */) ;;
10054 *) as_dir=$as_dir/ ;;
10055 esac
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10058 ac_cv_prog_ac_ct_OTOOL64="otool64"
10059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062 done
10063 done
10064 IFS=$as_save_IFS
10065
10066 fi ;;
10067 esac
10068 fi
10069 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10070 if test -n "$ac_ct_OTOOL64"; then
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10072 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10073 else
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 printf "%s\n" "no" >&6; }
10076 fi
10077
10078 if test "x$ac_ct_OTOOL64" = x; then
10079 OTOOL64=":"
10080 else
10081 case $cross_compiling:$ac_tool_warned in
10082 yes:)
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10085 ac_tool_warned=yes ;;
10086 esac
10087 OTOOL64=$ac_ct_OTOOL64
10088 fi
10089 else
10090 OTOOL64="$ac_cv_prog_OTOOL64"
10091 fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10120 printf %s "checking for -single_module linker flag... " >&6; }
10121 if test ${lt_cv_apple_cc_single_mod+y}
10122 then :
10123 printf %s "(cached) " >&6
10124 else case e in #(
10125 e) lt_cv_apple_cc_single_mod=no
10126 if test -z "$LT_MULTI_MODULE"; then
10127 # By default we will add the -single_module flag. You can override
10128 # by either setting the environment variable LT_MULTI_MODULE
10129 # non-empty at configure time, or by adding -multi_module to the
10130 # link flags.
10131 rm -rf libconftest.dylib*
10132 echo "int foo(void){return 1;}" > conftest.c
10133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10134 -dynamiclib -Wl,-single_module conftest.c" >&5
10135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10137 _lt_result=$?
10138 # If there is a non-empty error log, and "single_module"
10139 # appears in it, assume the flag caused a linker warning
10140 if test -s conftest.err && $GREP single_module conftest.err; then
10141 cat conftest.err >&5
10142 # Otherwise, if the output was created with a 0 exit code from
10143 # the compiler, it worked.
10144 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10145 lt_cv_apple_cc_single_mod=yes
10146 else
10147 cat conftest.err >&5
10148 fi
10149 rm -rf libconftest.dylib*
10150 rm -f conftest.*
10151 fi ;;
10152 esac
10153 fi
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10155 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10156
10157 # Feature test to disable chained fixups since it is not
10158 # compatible with '-undefined dynamic_lookup'
10159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10160 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10161 if test ${lt_cv_support_no_fixup_chains+y}
10162 then :
10163 printf %s "(cached) " >&6
10164 else case e in #(
10165 e) save_LDFLAGS=$LDFLAGS
10166 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10169
10170 int
10171 main (void)
10172 {
10173
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"
10179 then :
10180 lt_cv_support_no_fixup_chains=yes
10181 else case e in #(
10182 e) lt_cv_support_no_fixup_chains=no
10183 ;;
10184 esac
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LDFLAGS=$save_LDFLAGS
10189
10190 ;;
10191 esac
10192 fi
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10194 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10195
10196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10197 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10198 if test ${lt_cv_ld_exported_symbols_list+y}
10199 then :
10200 printf %s "(cached) " >&6
10201 else case e in #(
10202 e) lt_cv_ld_exported_symbols_list=no
10203 save_LDFLAGS=$LDFLAGS
10204 echo "_main" > conftest.sym
10205 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208
10209 int
10210 main (void)
10211 {
10212
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"
10218 then :
10219 lt_cv_ld_exported_symbols_list=yes
10220 else case e in #(
10221 e) lt_cv_ld_exported_symbols_list=no ;;
10222 esac
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LDFLAGS=$save_LDFLAGS
10227 ;;
10228 esac
10229 fi
10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10231 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10232
10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10234 printf %s "checking for -force_load linker flag... " >&6; }
10235 if test ${lt_cv_ld_force_load+y}
10236 then :
10237 printf %s "(cached) " >&6
10238 else case e in #(
10239 e) lt_cv_ld_force_load=no
10240 cat > conftest.c << _LT_EOF
10241 int forced_loaded() { return 2;}
10242 _LT_EOF
10243 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10244 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10245 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10246 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10247 echo "$RANLIB libconftest.a" >&5
10248 $RANLIB libconftest.a 2>&5
10249 cat > conftest.c << _LT_EOF
10250 int main(void) { return 0;}
10251 _LT_EOF
10252 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10253 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10254 _lt_result=$?
10255 if test -s conftest.err && $GREP force_load conftest.err; then
10256 cat conftest.err >&5
10257 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10258 lt_cv_ld_force_load=yes
10259 else
10260 cat conftest.err >&5
10261 fi
10262 rm -f conftest.err libconftest.a conftest conftest.c
10263 rm -rf conftest.dSYM
10264 ;;
10265 esac
10266 fi
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10268 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10269 case $host_os in
10270 rhapsody* | darwin1.[012])
10271 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10272 darwin1.*)
10273 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10274 darwin*)
10275 case $MACOSX_DEPLOYMENT_TARGET,$host in
10276 10.[012],*|,*powerpc*-darwin[5-8]*)
10277 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10278 *)
10279 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10280 if test yes = "$lt_cv_support_no_fixup_chains"; then
10281 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10282 fi
10283 ;;
10284 esac
10285 ;;
10286 esac
10287 if test yes = "$lt_cv_apple_cc_single_mod"; then
10288 _lt_dar_single_mod='$single_module'
10289 fi
10290 _lt_dar_needs_single_mod=no
10291 case $host_os in
10292 rhapsody* | darwin1.*)
10293 _lt_dar_needs_single_mod=yes ;;
10294 darwin*)
10295 # When targeting Mac OS X 10.4 (darwin 8) or later,
10296 # -single_module is the default and -multi_module is unsupported.
10297 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10298 # target any OS version that needs -single_module.
10299 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10300 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10301 _lt_dar_needs_single_mod=yes ;;
10302 esac
10303 ;;
10304 esac
10305 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10306 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10307 else
10308 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10309 fi
10310 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10311 _lt_dsymutil='~$DSYMUTIL $lib || :'
10312 else
10313 _lt_dsymutil=
10314 fi
10315 ;;
10316 esac
10317
10318 # func_munge_path_list VARIABLE PATH
10319 # -----------------------------------
10320 # VARIABLE is name of variable containing _space_ separated list of
10321 # directories to be munged by the contents of PATH, which is string
10322 # having a format:
10323 # "DIR[:DIR]:"
10324 # string "DIR[ DIR]" will be prepended to VARIABLE
10325 # ":DIR[:DIR]"
10326 # string "DIR[ DIR]" will be appended to VARIABLE
10327 # "DIRP[:DIRP]::[DIRA:]DIRA"
10328 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10329 # "DIRA[ DIRA]" will be appended to VARIABLE
10330 # "DIR[:DIR]"
10331 # VARIABLE will be replaced by "DIR[ DIR]"
10332 func_munge_path_list ()
10333 {
10334 case x$2 in
10335 x)
10336 ;;
10337 *:)
10338 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10339 ;;
10340 x:*)
10341 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10342 ;;
10343 *::*)
10344 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10345 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10346 ;;
10347 *)
10348 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10349 ;;
10350 esac
10351 }
10352
10353 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10354 "
10355 if test "x$ac_cv_header_dlfcn_h" = xyes
10356 then :
10357 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10358
10359 fi
10360
10361
10362
10363
10364
10365 # Set options
10366 # Check whether --enable-static was given.
10367 if test ${enable_static+y}
10368 then :
10369 enableval=$enable_static; p=${PACKAGE-default}
10370 case $enableval in
10371 yes) enable_static=yes ;;
10372 no) enable_static=no ;;
10373 *)
10374 enable_static=no
10375 # Look at the argument we got. We use all the common list separators.
10376 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10377 for pkg in $enableval; do
10378 IFS=$lt_save_ifs
10379 if test "X$pkg" = "X$p"; then
10380 enable_static=yes
10381 fi
10382 done
10383 IFS=$lt_save_ifs
10384 ;;
10385 esac
10386 else case e in #(
10387 e) enable_static=no ;;
10388 esac
10389 fi
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400 enable_dlopen=no
10401
10402
10403 enable_win32_dll=no
10404
10405
10406 # Check whether --enable-shared was given.
10407 if test ${enable_shared+y}
10408 then :
10409 enableval=$enable_shared; p=${PACKAGE-default}
10410 case $enableval in
10411 yes) enable_shared=yes ;;
10412 no) enable_shared=no ;;
10413 *)
10414 enable_shared=no
10415 # Look at the argument we got. We use all the common list separators.
10416 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10417 for pkg in $enableval; do
10418 IFS=$lt_save_ifs
10419 if test "X$pkg" = "X$p"; then
10420 enable_shared=yes
10421 fi
10422 done
10423 IFS=$lt_save_ifs
10424 ;;
10425 esac
10426 else case e in #(
10427 e) enable_shared=yes ;;
10428 esac
10429 fi
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440 # Check whether --enable-pic was given.
10441 if test ${enable_pic+y}
10442 then :
10443 enableval=$enable_pic; lt_p=${PACKAGE-default}
10444 case $enableval in
10445 yes|no) pic_mode=$enableval ;;
10446 *)
10447 pic_mode=default
10448 # Look at the argument we got. We use all the common list separators.
10449 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10450 for lt_pkg in $enableval; do
10451 IFS=$lt_save_ifs
10452 if test "X$lt_pkg" = "X$lt_p"; then
10453 pic_mode=yes
10454 fi
10455 done
10456 IFS=$lt_save_ifs
10457 ;;
10458 esac
10459 else case e in #(
10460 e) # Check whether --with-pic was given.
10461 if test ${with_pic+y}
10462 then :
10463 withval=$with_pic; lt_p=${PACKAGE-default}
10464 case $withval in
10465 yes|no) pic_mode=$withval ;;
10466 *)
10467 pic_mode=default
10468 # Look at the argument we got. We use all the common list separators.
10469 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10470 for lt_pkg in $withval; do
10471 IFS=$lt_save_ifs
10472 if test "X$lt_pkg" = "X$lt_p"; then
10473 pic_mode=yes
10474 fi
10475 done
10476 IFS=$lt_save_ifs
10477 ;;
10478 esac
10479 else case e in #(
10480 e) pic_mode=default ;;
10481 esac
10482 fi
10483
10484 ;;
10485 esac
10486 fi
10487
10488
10489
10490
10491
10492
10493
10494
10495 # Check whether --enable-fast-install was given.
10496 if test ${enable_fast_install+y}
10497 then :
10498 enableval=$enable_fast_install; p=${PACKAGE-default}
10499 case $enableval in
10500 yes) enable_fast_install=yes ;;
10501 no) enable_fast_install=no ;;
10502 *)
10503 enable_fast_install=no
10504 # Look at the argument we got. We use all the common list separators.
10505 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10506 for pkg in $enableval; do
10507 IFS=$lt_save_ifs
10508 if test "X$pkg" = "X$p"; then
10509 enable_fast_install=yes
10510 fi
10511 done
10512 IFS=$lt_save_ifs
10513 ;;
10514 esac
10515 else case e in #(
10516 e) enable_fast_install=yes ;;
10517 esac
10518 fi
10519
10520
10521
10522
10523
10524
10525
10526
10527 shared_archive_member_spec=
10528 case $host,$enable_shared in
10529 power*-*-aix[5-9]*,yes)
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10531 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10532 # Check whether --enable-aix-soname was given.
10533 if test ${enable_aix_soname+y}
10534 then :
10535 enableval=$enable_aix_soname; case $enableval in
10536 aix|svr4|both)
10537 ;;
10538 *)
10539 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10540 ;;
10541 esac
10542 lt_cv_with_aix_soname=$enable_aix_soname
10543 else case e in #(
10544 e) # Check whether --with-aix-soname was given.
10545 if test ${with_aix_soname+y}
10546 then :
10547 withval=$with_aix_soname; case $withval in
10548 aix|svr4|both)
10549 ;;
10550 *)
10551 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10552 ;;
10553 esac
10554 lt_cv_with_aix_soname=$with_aix_soname
10555 else case e in #(
10556 e) if test ${lt_cv_with_aix_soname+y}
10557 then :
10558 printf %s "(cached) " >&6
10559 else case e in #(
10560 e) lt_cv_with_aix_soname=aix ;;
10561 esac
10562 fi
10563 ;;
10564 esac
10565 fi
10566
10567 enable_aix_soname=$lt_cv_with_aix_soname ;;
10568 esac
10569 fi
10570
10571 with_aix_soname=$enable_aix_soname
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10573 printf "%s\n" "$with_aix_soname" >&6; }
10574 if test aix != "$with_aix_soname"; then
10575 # For the AIX way of multilib, we name the shared archive member
10576 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10577 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10578 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10579 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10580 if test 64 = "${OBJECT_MODE-32}"; then
10581 shared_archive_member_spec=shr_64
10582 else
10583 shared_archive_member_spec=shr
10584 fi
10585 fi
10586 ;;
10587 *)
10588 with_aix_soname=aix
10589 ;;
10590 esac
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601 # This can be used to rebuild libtool when needed
10602 LIBTOOL_DEPS=$ltmain
10603
10604 # Always use our own libtool.
10605 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636 test -z "$LN_S" && LN_S="ln -s"
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651 if test -n "${ZSH_VERSION+set}"; then
10652 setopt NO_GLOB_SUBST
10653 fi
10654
10655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10656 printf %s "checking for objdir... " >&6; }
10657 if test ${lt_cv_objdir+y}
10658 then :
10659 printf %s "(cached) " >&6
10660 else case e in #(
10661 e) rm -f .libs 2>/dev/null
10662 mkdir .libs 2>/dev/null
10663 if test -d .libs; then
10664 lt_cv_objdir=.libs
10665 else
10666 # MS-DOS does not allow filenames that begin with a dot.
10667 lt_cv_objdir=_libs
10668 fi
10669 rmdir .libs 2>/dev/null ;;
10670 esac
10671 fi
10672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10673 printf "%s\n" "$lt_cv_objdir" >&6; }
10674 objdir=$lt_cv_objdir
10675
10676
10677
10678
10679
10680 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10681
10682
10683
10684
10685 case $host_os in
10686 aix3*)
10687 # AIX sometimes has problems with the GCC collect2 program. For some
10688 # reason, if we set the COLLECT_NAMES environment variable, the problems
10689 # vanish in a puff of smoke.
10690 if test set != "${COLLECT_NAMES+set}"; then
10691 COLLECT_NAMES=
10692 export COLLECT_NAMES
10693 fi
10694 ;;
10695 esac
10696
10697 # Global variables:
10698 ofile=libtool
10699 can_build_shared=yes
10700
10701 # All known linkers require a '.a' archive for static linking (except MSVC and
10702 # ICC, which need '.lib').
10703 libext=a
10704
10705 with_gnu_ld=$lt_cv_prog_gnu_ld
10706
10707 old_CC=$CC
10708 old_CFLAGS=$CFLAGS
10709
10710 # Set sane defaults for various variables
10711 test -z "$CC" && CC=cc
10712 test -z "$LTCC" && LTCC=$CC
10713 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10714 test -z "$LD" && LD=ld
10715 test -z "$ac_objext" && ac_objext=o
10716
10717 func_cc_basename $compiler
10718 cc_basename=$func_cc_basename_result
10719
10720
10721 # Only perform the check for file, if the check method requires it
10722 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10723 case $deplibs_check_method in
10724 file_magic*)
10725 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10727 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10728 if test ${lt_cv_path_MAGIC_CMD+y}
10729 then :
10730 printf %s "(cached) " >&6
10731 else case e in #(
10732 e) case $MAGIC_CMD in
10733 [\\/*] | ?:[\\/]*)
10734 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10735 ;;
10736 *)
10737 lt_save_MAGIC_CMD=$MAGIC_CMD
10738 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10739 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10740 for ac_dir in $ac_dummy; do
10741 IFS=$lt_save_ifs
10742 test -z "$ac_dir" && ac_dir=.
10743 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10744 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10745 if test -n "$file_magic_test_file"; then
10746 case $deplibs_check_method in
10747 "file_magic "*)
10748 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10749 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10751 $EGREP "$file_magic_regex" > /dev/null; then
10752 :
10753 else
10754 cat <<_LT_EOF 1>&2
10755
10756 *** Warning: the command libtool uses to detect shared libraries,
10757 *** $file_magic_cmd, produces output that libtool cannot recognize.
10758 *** The result is that libtool may fail to recognize shared libraries
10759 *** as such. This will affect the creation of libtool libraries that
10760 *** depend on shared libraries, but programs linked with such libtool
10761 *** libraries will work regardless of this problem. Nevertheless, you
10762 *** may want to report the problem to your system manager and/or to
10763 *** [email protected]
10764
10765 _LT_EOF
10766 fi ;;
10767 esac
10768 fi
10769 break
10770 fi
10771 done
10772 IFS=$lt_save_ifs
10773 MAGIC_CMD=$lt_save_MAGIC_CMD
10774 ;;
10775 esac ;;
10776 esac
10777 fi
10778
10779 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10780 if test -n "$MAGIC_CMD"; then
10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10782 printf "%s\n" "$MAGIC_CMD" >&6; }
10783 else
10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 printf "%s\n" "no" >&6; }
10786 fi
10787
10788
10789
10790
10791
10792 if test -z "$lt_cv_path_MAGIC_CMD"; then
10793 if test -n "$ac_tool_prefix"; then
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10795 printf %s "checking for file... " >&6; }
10796 if test ${lt_cv_path_MAGIC_CMD+y}
10797 then :
10798 printf %s "(cached) " >&6
10799 else case e in #(
10800 e) case $MAGIC_CMD in
10801 [\\/*] | ?:[\\/]*)
10802 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10803 ;;
10804 *)
10805 lt_save_MAGIC_CMD=$MAGIC_CMD
10806 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10808 for ac_dir in $ac_dummy; do
10809 IFS=$lt_save_ifs
10810 test -z "$ac_dir" && ac_dir=.
10811 if test -f "$ac_dir/file"; then
10812 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10813 if test -n "$file_magic_test_file"; then
10814 case $deplibs_check_method in
10815 "file_magic "*)
10816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10817 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10819 $EGREP "$file_magic_regex" > /dev/null; then
10820 :
10821 else
10822 cat <<_LT_EOF 1>&2
10823
10824 *** Warning: the command libtool uses to detect shared libraries,
10825 *** $file_magic_cmd, produces output that libtool cannot recognize.
10826 *** The result is that libtool may fail to recognize shared libraries
10827 *** as such. This will affect the creation of libtool libraries that
10828 *** depend on shared libraries, but programs linked with such libtool
10829 *** libraries will work regardless of this problem. Nevertheless, you
10830 *** may want to report the problem to your system manager and/or to
10831 *** [email protected]
10832
10833 _LT_EOF
10834 fi ;;
10835 esac
10836 fi
10837 break
10838 fi
10839 done
10840 IFS=$lt_save_ifs
10841 MAGIC_CMD=$lt_save_MAGIC_CMD
10842 ;;
10843 esac ;;
10844 esac
10845 fi
10846
10847 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10848 if test -n "$MAGIC_CMD"; then
10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10850 printf "%s\n" "$MAGIC_CMD" >&6; }
10851 else
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 printf "%s\n" "no" >&6; }
10854 fi
10855
10856
10857 else
10858 MAGIC_CMD=:
10859 fi
10860 fi
10861
10862 fi
10863 ;;
10864 esac
10865
10866 # Use C for the default configuration in the libtool script
10867
10868 lt_save_CC=$CC
10869 ac_ext=c
10870 ac_cpp='$CPP $CPPFLAGS'
10871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10874
10875
10876 # Source file extension for C test sources.
10877 ac_ext=c
10878
10879 # Object file extension for compiled C test sources.
10880 objext=o
10881 objext=$objext
10882
10883 # Code to be used in simple compile tests
10884 lt_simple_compile_test_code="int some_variable = 0;"
10885
10886 # Code to be used in simple link tests
10887 lt_simple_link_test_code='int main(void){return(0);}'
10888
10889
10890
10891
10892
10893
10894
10895 # If no C compiler was specified, use CC.
10896 LTCC=${LTCC-"$CC"}
10897
10898 # If no C compiler flags were specified, use CFLAGS.
10899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10900
10901 # Allow CC to be a program name with arguments.
10902 compiler=$CC
10903
10904 # Save the default compiler, since it gets overwritten when the other
10905 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10906 compiler_DEFAULT=$CC
10907
10908 # save warnings/boilerplate of simple test code
10909 ac_outfile=conftest.$ac_objext
10910 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10911 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10912 _lt_compiler_boilerplate=`cat conftest.err`
10913 $RM conftest*
10914
10915 ac_outfile=conftest.$ac_objext
10916 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10917 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10918 _lt_linker_boilerplate=`cat conftest.err`
10919 $RM -r conftest*
10920
10921
10922 ## CAVEAT EMPTOR:
10923 ## There is no encapsulation within the following macros, do not change
10924 ## the running order or otherwise move them around unless you know exactly
10925 ## what you are doing...
10926 if test -n "$compiler"; then
10927
10928 lt_prog_compiler_no_builtin_flag=
10929
10930 if test yes = "$GCC"; then
10931 case $cc_basename in
10932 nvcc*)
10933 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10934 *)
10935 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10936 esac
10937
10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10939 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10940 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10941 then :
10942 printf %s "(cached) " >&6
10943 else case e in #(
10944 e) lt_cv_prog_compiler_rtti_exceptions=no
10945 ac_outfile=conftest.$ac_objext
10946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10947 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10948 # Insert the option either (1) after the last *FLAGS variable, or
10949 # (2) before a word containing "conftest.", or (3) at the end.
10950 # Note that $ac_compile itself does not contain backslashes and begins
10951 # with a dollar sign (not a hyphen), so the echo should work correctly.
10952 # The option is referenced via a variable to avoid confusing sed.
10953 lt_compile=`echo "$ac_compile" | $SED \
10954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10956 -e 's:$: $lt_compiler_flag:'`
10957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10958 (eval "$lt_compile" 2>conftest.err)
10959 ac_status=$?
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 if (exit $ac_status) && test -s "$ac_outfile"; then
10963 # The compiler can only warn and ignore the option if not recognized
10964 # So say no if there are warnings other than the usual output.
10965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10968 lt_cv_prog_compiler_rtti_exceptions=yes
10969 fi
10970 fi
10971 $RM conftest*
10972 ;;
10973 esac
10974 fi
10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10976 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10977
10978 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10979 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10980 else
10981 :
10982 fi
10983
10984 fi
10985
10986
10987
10988
10989
10990
10991 lt_prog_compiler_wl=
10992 lt_prog_compiler_pic=
10993 lt_prog_compiler_static=
10994
10995
10996 if test yes = "$GCC"; then
10997 lt_prog_compiler_wl='-Wl,'
10998 lt_prog_compiler_static='-static'
10999
11000 case $host_os in
11001 aix*)
11002 # All AIX code is PIC.
11003 if test ia64 = "$host_cpu"; then
11004 # AIX 5 now supports IA64 processor
11005 lt_prog_compiler_static='-Bstatic'
11006 fi
11007 lt_prog_compiler_pic='-fPIC'
11008 ;;
11009
11010 amigaos*)
11011 case $host_cpu in
11012 powerpc)
11013 # see comment about AmigaOS4 .so support
11014 lt_prog_compiler_pic='-fPIC'
11015 ;;
11016 m68k)
11017 # FIXME: we need at least 68020 code to build shared libraries, but
11018 # adding the '-m68020' flag to GCC prevents building anything better,
11019 # like '-m68040'.
11020 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11021 ;;
11022 esac
11023 ;;
11024
11025 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11026 # PIC is the default for these OSes.
11027 ;;
11028
11029 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11030 # This hack is so that the source file can tell whether it is being
11031 # built for inclusion in a dll (and should export symbols for example).
11032 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11033 # (--disable-auto-import) libraries
11034 lt_prog_compiler_pic='-DDLL_EXPORT'
11035 case $host_os in
11036 os2*)
11037 lt_prog_compiler_static='$wl-static'
11038 ;;
11039 esac
11040 ;;
11041
11042 darwin* | rhapsody*)
11043 # PIC is the default on this platform
11044 # Common symbols not allowed in MH_DYLIB files
11045 lt_prog_compiler_pic='-fno-common'
11046 ;;
11047
11048 haiku*)
11049 # PIC is the default for Haiku.
11050 # The "-static" flag exists, but is broken.
11051 lt_prog_compiler_static=
11052 ;;
11053
11054 hpux*)
11055 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11056 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11057 # sets the default TLS model and affects inlining.
11058 case $host_cpu in
11059 hppa*64*)
11060 # +Z the default
11061 ;;
11062 *)
11063 lt_prog_compiler_pic='-fPIC'
11064 ;;
11065 esac
11066 ;;
11067
11068 interix[3-9]*)
11069 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11070 # Instead, we relocate shared libraries at runtime.
11071 ;;
11072
11073 msdosdjgpp*)
11074 # Just because we use GCC doesn't mean we suddenly get shared libraries
11075 # on systems that don't support them.
11076 lt_prog_compiler_can_build_shared=no
11077 enable_shared=no
11078 ;;
11079
11080 *nto* | *qnx*)
11081 # QNX uses GNU C++, but need to define -shared option too, otherwise
11082 # it will coredump.
11083 lt_prog_compiler_pic='-fPIC -shared'
11084 ;;
11085
11086 sysv4*MP*)
11087 if test -d /usr/nec; then
11088 lt_prog_compiler_pic=-Kconform_pic
11089 fi
11090 ;;
11091
11092 *)
11093 lt_prog_compiler_pic='-fPIC'
11094 ;;
11095 esac
11096
11097 case $cc_basename in
11098 nvcc*) # Cuda Compiler Driver 2.2
11099 lt_prog_compiler_wl='-Xlinker '
11100 if test -n "$lt_prog_compiler_pic"; then
11101 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11102 fi
11103 ;;
11104 esac
11105 else
11106 # PORTME Check for flag to pass linker flags through the system compiler.
11107 case $host_os in
11108 aix*)
11109 lt_prog_compiler_wl='-Wl,'
11110 if test ia64 = "$host_cpu"; then
11111 # AIX 5 now supports IA64 processor
11112 lt_prog_compiler_static='-Bstatic'
11113 else
11114 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11115 fi
11116 ;;
11117
11118 darwin* | rhapsody*)
11119 # PIC is the default on this platform
11120 # Common symbols not allowed in MH_DYLIB files
11121 lt_prog_compiler_pic='-fno-common'
11122 case $cc_basename in
11123 nagfor*)
11124 # NAG Fortran compiler
11125 lt_prog_compiler_wl='-Wl,-Wl,,'
11126 lt_prog_compiler_pic='-PIC'
11127 lt_prog_compiler_static='-Bstatic'
11128 ;;
11129 esac
11130 ;;
11131
11132 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11133 # This hack is so that the source file can tell whether it is being
11134 # built for inclusion in a dll (and should export symbols for example).
11135 lt_prog_compiler_pic='-DDLL_EXPORT'
11136 case $host_os in
11137 os2*)
11138 lt_prog_compiler_static='$wl-static'
11139 ;;
11140 esac
11141 ;;
11142
11143 hpux9* | hpux10* | hpux11*)
11144 lt_prog_compiler_wl='-Wl,'
11145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11146 # not for PA HP-UX.
11147 case $host_cpu in
11148 hppa*64*|ia64*)
11149 # +Z the default
11150 ;;
11151 *)
11152 lt_prog_compiler_pic='+Z'
11153 ;;
11154 esac
11155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11156 lt_prog_compiler_static='$wl-a ${wl}archive'
11157 ;;
11158
11159 irix5* | irix6* | nonstopux*)
11160 lt_prog_compiler_wl='-Wl,'
11161 # PIC (with -KPIC) is the default.
11162 lt_prog_compiler_static='-non_shared'
11163 ;;
11164
11165 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11166 case $cc_basename in
11167 # old Intel for x86_64, which still supported -KPIC.
11168 ecc*)
11169 lt_prog_compiler_wl='-Wl,'
11170 lt_prog_compiler_pic='-KPIC'
11171 lt_prog_compiler_static='-static'
11172 ;;
11173 *flang* | ftn | f18* | f95*)
11174 # Flang compiler.
11175 lt_prog_compiler_wl='-Wl,'
11176 lt_prog_compiler_pic='-fPIC'
11177 lt_prog_compiler_static='-static'
11178 ;;
11179 # icc used to be incompatible with GCC.
11180 # ICC 10 doesn't accept -KPIC any more.
11181 icc* | ifort*)
11182 lt_prog_compiler_wl='-Wl,'
11183 lt_prog_compiler_pic='-fPIC'
11184 lt_prog_compiler_static='-static'
11185 ;;
11186 # Lahey Fortran 8.1.
11187 lf95*)
11188 lt_prog_compiler_wl='-Wl,'
11189 lt_prog_compiler_pic='--shared'
11190 lt_prog_compiler_static='--static'
11191 ;;
11192 nagfor*)
11193 # NAG Fortran compiler
11194 lt_prog_compiler_wl='-Wl,-Wl,,'
11195 lt_prog_compiler_pic='-PIC'
11196 lt_prog_compiler_static='-Bstatic'
11197 ;;
11198 tcc*)
11199 # Fabrice Bellard et al's Tiny C Compiler
11200 lt_prog_compiler_wl='-Wl,'
11201 lt_prog_compiler_pic='-fPIC'
11202 lt_prog_compiler_static='-static'
11203 ;;
11204 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11205 # Portland Group compilers (*not* the Pentium gcc compiler,
11206 # which looks to be a dead project)
11207 lt_prog_compiler_wl='-Wl,'
11208 lt_prog_compiler_pic='-fpic'
11209 lt_prog_compiler_static='-Bstatic'
11210 ;;
11211 ccc*)
11212 lt_prog_compiler_wl='-Wl,'
11213 # All Alpha code is PIC.
11214 lt_prog_compiler_static='-non_shared'
11215 ;;
11216 xl* | bgxl* | bgf* | mpixl*)
11217 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11218 lt_prog_compiler_wl='-Wl,'
11219 lt_prog_compiler_pic='-qpic'
11220 lt_prog_compiler_static='-qstaticlink'
11221 ;;
11222 *)
11223 case `$CC -V 2>&1 | $SED 5q` in
11224 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11225 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11226 lt_prog_compiler_pic='-KPIC'
11227 lt_prog_compiler_static='-Bstatic'
11228 lt_prog_compiler_wl=''
11229 ;;
11230 *Sun\ F* | *Sun*Fortran*)
11231 lt_prog_compiler_pic='-KPIC'
11232 lt_prog_compiler_static='-Bstatic'
11233 lt_prog_compiler_wl='-Qoption ld '
11234 ;;
11235 *Sun\ C*)
11236 # Sun C 5.9
11237 lt_prog_compiler_pic='-KPIC'
11238 lt_prog_compiler_static='-Bstatic'
11239 lt_prog_compiler_wl='-Wl,'
11240 ;;
11241 *Intel*\ [CF]*Compiler*)
11242 lt_prog_compiler_wl='-Wl,'
11243 lt_prog_compiler_pic='-fPIC'
11244 lt_prog_compiler_static='-static'
11245 ;;
11246 *Portland\ Group*)
11247 lt_prog_compiler_wl='-Wl,'
11248 lt_prog_compiler_pic='-fpic'
11249 lt_prog_compiler_static='-Bstatic'
11250 ;;
11251 esac
11252 ;;
11253 esac
11254 ;;
11255
11256 newsos6)
11257 lt_prog_compiler_pic='-KPIC'
11258 lt_prog_compiler_static='-Bstatic'
11259 ;;
11260
11261 *-mlibc)
11262 lt_prog_compiler_wl='-Wl,'
11263 lt_prog_compiler_pic='-fPIC'
11264 lt_prog_compiler_static='-static'
11265 ;;
11266
11267 *nto* | *qnx*)
11268 # QNX uses GNU C++, but need to define -shared option too, otherwise
11269 # it will coredump.
11270 lt_prog_compiler_pic='-fPIC -shared'
11271 ;;
11272
11273 osf3* | osf4* | osf5*)
11274 lt_prog_compiler_wl='-Wl,'
11275 # All OSF/1 code is PIC.
11276 lt_prog_compiler_static='-non_shared'
11277 ;;
11278
11279 rdos*)
11280 lt_prog_compiler_static='-non_shared'
11281 ;;
11282
11283 serenity*)
11284 ;;
11285
11286 solaris*)
11287 lt_prog_compiler_pic='-KPIC'
11288 lt_prog_compiler_static='-Bstatic'
11289 case $cc_basename in
11290 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11291 lt_prog_compiler_wl='-Qoption ld ';;
11292 *)
11293 lt_prog_compiler_wl='-Wl,';;
11294 esac
11295 ;;
11296
11297 sunos4*)
11298 lt_prog_compiler_wl='-Qoption ld '
11299 lt_prog_compiler_pic='-PIC'
11300 lt_prog_compiler_static='-Bstatic'
11301 ;;
11302
11303 sysv4 | sysv4.2uw2* | sysv4.3*)
11304 lt_prog_compiler_wl='-Wl,'
11305 lt_prog_compiler_pic='-KPIC'
11306 lt_prog_compiler_static='-Bstatic'
11307 ;;
11308
11309 sysv4*MP*)
11310 if test -d /usr/nec; then
11311 lt_prog_compiler_pic='-Kconform_pic'
11312 lt_prog_compiler_static='-Bstatic'
11313 fi
11314 ;;
11315
11316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11317 lt_prog_compiler_wl='-Wl,'
11318 lt_prog_compiler_pic='-KPIC'
11319 lt_prog_compiler_static='-Bstatic'
11320 ;;
11321
11322 unicos*)
11323 lt_prog_compiler_wl='-Wl,'
11324 lt_prog_compiler_can_build_shared=no
11325 ;;
11326
11327 uts4*)
11328 lt_prog_compiler_pic='-pic'
11329 lt_prog_compiler_static='-Bstatic'
11330 ;;
11331
11332 *)
11333 lt_prog_compiler_can_build_shared=no
11334 ;;
11335 esac
11336 fi
11337
11338 case $host_os in
11339 # For platforms that do not support PIC, -DPIC is meaningless:
11340 *djgpp*)
11341 lt_prog_compiler_pic=
11342 ;;
11343 *)
11344 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11345 ;;
11346 esac
11347
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11349 printf %s "checking for $compiler option to produce PIC... " >&6; }
11350 if test ${lt_cv_prog_compiler_pic+y}
11351 then :
11352 printf %s "(cached) " >&6
11353 else case e in #(
11354 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11355 esac
11356 fi
11357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11358 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11359 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11360
11361 #
11362 # Check to make sure the PIC flag actually works.
11363 #
11364 if test -n "$lt_prog_compiler_pic"; then
11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11366 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11367 if test ${lt_cv_prog_compiler_pic_works+y}
11368 then :
11369 printf %s "(cached) " >&6
11370 else case e in #(
11371 e) lt_cv_prog_compiler_pic_works=no
11372 ac_outfile=conftest.$ac_objext
11373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11374 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11375 # Insert the option either (1) after the last *FLAGS variable, or
11376 # (2) before a word containing "conftest.", or (3) at the end.
11377 # Note that $ac_compile itself does not contain backslashes and begins
11378 # with a dollar sign (not a hyphen), so the echo should work correctly.
11379 # The option is referenced via a variable to avoid confusing sed.
11380 lt_compile=`echo "$ac_compile" | $SED \
11381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11383 -e 's:$: $lt_compiler_flag:'`
11384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11385 (eval "$lt_compile" 2>conftest.err)
11386 ac_status=$?
11387 cat conftest.err >&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 if (exit $ac_status) && test -s "$ac_outfile"; then
11390 # The compiler can only warn and ignore the option if not recognized
11391 # So say no if there are warnings other than the usual output.
11392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11395 lt_cv_prog_compiler_pic_works=yes
11396 fi
11397 fi
11398 $RM conftest*
11399 ;;
11400 esac
11401 fi
11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11403 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11404
11405 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11406 case $lt_prog_compiler_pic in
11407 "" | " "*) ;;
11408 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11409 esac
11410 else
11411 lt_prog_compiler_pic=
11412 lt_prog_compiler_can_build_shared=no
11413 fi
11414
11415 fi
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427 #
11428 # Check to make sure the static flag actually works.
11429 #
11430 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11432 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11433 if test ${lt_cv_prog_compiler_static_works+y}
11434 then :
11435 printf %s "(cached) " >&6
11436 else case e in #(
11437 e) lt_cv_prog_compiler_static_works=no
11438 save_LDFLAGS=$LDFLAGS
11439 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11440 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11441 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11442 # The linker can only warn and ignore the option if not recognized
11443 # So say no if there are warnings
11444 if test -s conftest.err; then
11445 # Append any errors to the config.log.
11446 cat conftest.err 1>&5
11447 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11449 if diff conftest.exp conftest.er2 >/dev/null; then
11450 lt_cv_prog_compiler_static_works=yes
11451 fi
11452 else
11453 lt_cv_prog_compiler_static_works=yes
11454 fi
11455 fi
11456 $RM -r conftest*
11457 LDFLAGS=$save_LDFLAGS
11458 ;;
11459 esac
11460 fi
11461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11462 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11463
11464 if test yes = "$lt_cv_prog_compiler_static_works"; then
11465 :
11466 else
11467 lt_prog_compiler_static=
11468 fi
11469
11470
11471
11472
11473
11474
11475
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11477 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11478 if test ${lt_cv_prog_compiler_c_o+y}
11479 then :
11480 printf %s "(cached) " >&6
11481 else case e in #(
11482 e) lt_cv_prog_compiler_c_o=no
11483 $RM -r conftest 2>/dev/null
11484 mkdir conftest
11485 cd conftest
11486 mkdir out
11487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11488
11489 lt_compiler_flag="-o out/conftest2.$ac_objext"
11490 # Insert the option either (1) after the last *FLAGS variable, or
11491 # (2) before a word containing "conftest.", or (3) at the end.
11492 # Note that $ac_compile itself does not contain backslashes and begins
11493 # with a dollar sign (not a hyphen), so the echo should work correctly.
11494 lt_compile=`echo "$ac_compile" | $SED \
11495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11497 -e 's:$: $lt_compiler_flag:'`
11498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11499 (eval "$lt_compile" 2>out/conftest.err)
11500 ac_status=$?
11501 cat out/conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11504 then
11505 # The compiler can only warn and ignore the option if not recognized
11506 # So say no if there are warnings
11507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11510 lt_cv_prog_compiler_c_o=yes
11511 fi
11512 fi
11513 chmod u+w . 2>&5
11514 $RM conftest*
11515 # SGI C++ compiler will create directory out/ii_files/ for
11516 # template instantiation
11517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11518 $RM out/* && rmdir out
11519 cd ..
11520 $RM -r conftest
11521 $RM conftest*
11522 ;;
11523 esac
11524 fi
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11526 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11527
11528
11529
11530
11531
11532
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11534 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11535 if test ${lt_cv_prog_compiler_c_o+y}
11536 then :
11537 printf %s "(cached) " >&6
11538 else case e in #(
11539 e) lt_cv_prog_compiler_c_o=no
11540 $RM -r conftest 2>/dev/null
11541 mkdir conftest
11542 cd conftest
11543 mkdir out
11544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11545
11546 lt_compiler_flag="-o out/conftest2.$ac_objext"
11547 # Insert the option either (1) after the last *FLAGS variable, or
11548 # (2) before a word containing "conftest.", or (3) at the end.
11549 # Note that $ac_compile itself does not contain backslashes and begins
11550 # with a dollar sign (not a hyphen), so the echo should work correctly.
11551 lt_compile=`echo "$ac_compile" | $SED \
11552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11554 -e 's:$: $lt_compiler_flag:'`
11555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11556 (eval "$lt_compile" 2>out/conftest.err)
11557 ac_status=$?
11558 cat out/conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11561 then
11562 # The compiler can only warn and ignore the option if not recognized
11563 # So say no if there are warnings
11564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11567 lt_cv_prog_compiler_c_o=yes
11568 fi
11569 fi
11570 chmod u+w . 2>&5
11571 $RM conftest*
11572 # SGI C++ compiler will create directory out/ii_files/ for
11573 # template instantiation
11574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11575 $RM out/* && rmdir out
11576 cd ..
11577 $RM -r conftest
11578 $RM conftest*
11579 ;;
11580 esac
11581 fi
11582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11583 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11584
11585
11586
11587
11588 hard_links=nottested
11589 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11590 # do not overwrite the value of need_locks provided by the user
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11592 printf %s "checking if we can lock with hard links... " >&6; }
11593 hard_links=yes
11594 $RM conftest*
11595 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11596 touch conftest.a
11597 ln conftest.a conftest.b 2>&5 || hard_links=no
11598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11600 printf "%s\n" "$hard_links" >&6; }
11601 if test no = "$hard_links"; then
11602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11603 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11604 need_locks=warn
11605 fi
11606 else
11607 need_locks=no
11608 fi
11609
11610
11611
11612
11613
11614
11615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11616 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11617
11618 runpath_var=
11619 allow_undefined_flag=
11620 always_export_symbols=no
11621 archive_cmds=
11622 archive_expsym_cmds=
11623 compiler_needs_object=no
11624 enable_shared_with_static_runtimes=no
11625 export_dynamic_flag_spec=
11626 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11627 hardcode_automatic=no
11628 hardcode_direct=no
11629 hardcode_direct_absolute=no
11630 hardcode_libdir_flag_spec=
11631 hardcode_libdir_separator=
11632 hardcode_minus_L=no
11633 hardcode_shlibpath_var=unsupported
11634 inherit_rpath=no
11635 link_all_deplibs=unknown
11636 module_cmds=
11637 module_expsym_cmds=
11638 old_archive_from_new_cmds=
11639 old_archive_from_expsyms_cmds=
11640 thread_safe_flag_spec=
11641 whole_archive_flag_spec=
11642 # include_expsyms should be a list of space-separated symbols to be *always*
11643 # included in the symbol list
11644 include_expsyms=
11645 # exclude_expsyms can be an extended regexp of symbols to exclude
11646 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11647 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11648 # as well as any symbol that contains 'd'.
11649 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11650 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11651 # platforms (ab)use it in PIC code, but their linkers get confused if
11652 # the symbol is explicitly referenced. Since portable code cannot
11653 # rely on this symbol name, it's probably fine to never include it in
11654 # preloaded symbol tables.
11655 # Exclude shared library initialization/finalization symbols.
11656 extract_expsyms_cmds=
11657
11658 case $host_os in
11659 cygwin* | mingw* | windows* | pw32* | cegcc*)
11660 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11661 # When not using gcc, we currently assume that we are using
11662 # Microsoft Visual C++ or Intel C++ Compiler.
11663 if test yes != "$GCC"; then
11664 with_gnu_ld=no
11665 fi
11666 ;;
11667 interix*)
11668 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11669 with_gnu_ld=yes
11670 ;;
11671 esac
11672
11673 ld_shlibs=yes
11674
11675 # On some targets, GNU ld is compatible enough with the native linker
11676 # that we're better off using the native interface for both.
11677 lt_use_gnu_ld_interface=no
11678 if test yes = "$with_gnu_ld"; then
11679 case $host_os in
11680 aix*)
11681 # The AIX port of GNU ld has always aspired to compatibility
11682 # with the native linker. However, as the warning in the GNU ld
11683 # block says, versions before 2.19.5* couldn't really create working
11684 # shared libraries, regardless of the interface used.
11685 case `$LD -v 2>&1` in
11686 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11687 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11688 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11689 *)
11690 lt_use_gnu_ld_interface=yes
11691 ;;
11692 esac
11693 ;;
11694 *)
11695 lt_use_gnu_ld_interface=yes
11696 ;;
11697 esac
11698 fi
11699
11700 if test yes = "$lt_use_gnu_ld_interface"; then
11701 # If archive_cmds runs LD, not CC, wlarc should be empty
11702 wlarc='$wl'
11703
11704 # Set some defaults for GNU ld with shared library support. These
11705 # are reset later if shared libraries are not supported. Putting them
11706 # here allows them to be overridden if necessary.
11707 runpath_var=LD_RUN_PATH
11708 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11709 export_dynamic_flag_spec='$wl--export-dynamic'
11710 # ancient GNU ld didn't support --whole-archive et. al.
11711 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11712 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11713 else
11714 whole_archive_flag_spec=
11715 fi
11716 supports_anon_versioning=no
11717 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11718 *GNU\ gold*) supports_anon_versioning=yes ;;
11719 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11720 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11721 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11722 *\ 2.11.*) ;; # other 2.11 versions
11723 *) supports_anon_versioning=yes ;;
11724 esac
11725
11726 # See if GNU ld supports shared libraries.
11727 case $host_os in
11728 aix[3-9]*)
11729 # On AIX/PPC, the GNU linker is very broken
11730 if test ia64 != "$host_cpu"; then
11731 ld_shlibs=no
11732 cat <<_LT_EOF 1>&2
11733
11734 *** Warning: the GNU linker, at least up to release 2.19, is reported
11735 *** to be unable to reliably create shared libraries on AIX.
11736 *** Therefore, libtool is disabling shared libraries support. If you
11737 *** really care for shared libraries, you may want to install binutils
11738 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11739 *** You will then need to restart the configuration process.
11740
11741 _LT_EOF
11742 fi
11743 ;;
11744
11745 amigaos*)
11746 case $host_cpu in
11747 powerpc)
11748 # see comment about AmigaOS4 .so support
11749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11750 archive_expsym_cmds=''
11751 ;;
11752 m68k)
11753 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)'
11754 hardcode_libdir_flag_spec='-L$libdir'
11755 hardcode_minus_L=yes
11756 ;;
11757 esac
11758 ;;
11759
11760 beos*)
11761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11762 allow_undefined_flag=unsupported
11763 # Joseph Beckenbach <[email protected]> says some releases of gcc
11764 # support --undefined. This deserves some investigation. FIXME
11765 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11766 else
11767 ld_shlibs=no
11768 fi
11769 ;;
11770
11771 cygwin* | mingw* | windows* | pw32* | cegcc*)
11772 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11773 # as there is no search path for DLLs.
11774 hardcode_libdir_flag_spec='-L$libdir'
11775 export_dynamic_flag_spec='$wl--export-all-symbols'
11776 allow_undefined_flag=unsupported
11777 always_export_symbols=no
11778 enable_shared_with_static_runtimes=yes
11779 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'
11780 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11781 file_list_spec='@'
11782
11783 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11785 # If the export-symbols file already is a .def file, use it as
11786 # is; otherwise, prepend EXPORTS...
11787 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11788 cp $export_symbols $output_objdir/$soname.def;
11789 else
11790 echo EXPORTS > $output_objdir/$soname.def;
11791 cat $export_symbols >> $output_objdir/$soname.def;
11792 fi~
11793 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11794 else
11795 ld_shlibs=no
11796 fi
11797 ;;
11798
11799 haiku*)
11800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11801 link_all_deplibs=no
11802 ;;
11803
11804 os2*)
11805 hardcode_libdir_flag_spec='-L$libdir'
11806 hardcode_minus_L=yes
11807 allow_undefined_flag=unsupported
11808 shrext_cmds=.dll
11809 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11810 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11811 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11812 $ECHO EXPORTS >> $output_objdir/$libname.def~
11813 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11814 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11815 emximp -o $lib $output_objdir/$libname.def'
11816 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11817 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11818 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11819 $ECHO EXPORTS >> $output_objdir/$libname.def~
11820 prefix_cmds="$SED"~
11821 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11822 prefix_cmds="$prefix_cmds -e 1d";
11823 fi~
11824 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11825 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11826 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11827 emximp -o $lib $output_objdir/$libname.def'
11828 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11829 enable_shared_with_static_runtimes=yes
11830 file_list_spec='@'
11831 ;;
11832
11833 interix[3-9]*)
11834 hardcode_direct=no
11835 hardcode_shlibpath_var=no
11836 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11837 export_dynamic_flag_spec='$wl-E'
11838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11839 # Instead, shared libraries are loaded at an image base (0x10000000 by
11840 # default) and relocated if they conflict, which is a slow very memory
11841 # consuming and fragmenting process. To avoid this, we pick a random,
11842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11845 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'
11846 ;;
11847
11848 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11849 tmp_diet=no
11850 if test linux-dietlibc = "$host_os"; then
11851 case $cc_basename in
11852 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11853 esac
11854 fi
11855 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11856 && test no = "$tmp_diet"
11857 then
11858 tmp_addflag=' $pic_flag'
11859 tmp_sharedflag='-shared'
11860 case $cc_basename,$host_cpu in
11861 pgcc*) # Portland Group C compiler
11862 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'
11863 tmp_addflag=' $pic_flag'
11864 ;;
11865 pgf77* | pgf90* | pgf95* | pgfortran*)
11866 # Portland Group f77 and f90 compilers
11867 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'
11868 tmp_addflag=' $pic_flag -Mnomain' ;;
11869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11870 tmp_addflag=' -i_dynamic' ;;
11871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11872 tmp_addflag=' -i_dynamic -nofor_main' ;;
11873 ifc* | ifort*) # Intel Fortran compiler
11874 tmp_addflag=' -nofor_main' ;;
11875 lf95*) # Lahey Fortran 8.1
11876 whole_archive_flag_spec=
11877 tmp_sharedflag='--shared' ;;
11878 nagfor*) # NAGFOR 5.3
11879 tmp_sharedflag='-Wl,-shared' ;;
11880 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11881 tmp_sharedflag='-qmkshrobj'
11882 tmp_addflag= ;;
11883 nvcc*) # Cuda Compiler Driver 2.2
11884 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'
11885 compiler_needs_object=yes
11886 ;;
11887 esac
11888 case `$CC -V 2>&1 | $SED 5q` in
11889 *Sun\ C*) # Sun C 5.9
11890 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'
11891 compiler_needs_object=yes
11892 tmp_sharedflag='-G' ;;
11893 *Sun\ F*) # Sun Fortran 8.3
11894 tmp_sharedflag='-G' ;;
11895 esac
11896 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11897
11898 if test yes = "$supports_anon_versioning"; then
11899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11900 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11901 echo "local: *; };" >> $output_objdir/$libname.ver~
11902 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11903 fi
11904
11905 case $cc_basename in
11906 tcc*)
11907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11908 export_dynamic_flag_spec='-rdynamic'
11909 ;;
11910 xlf* | bgf* | bgxlf* | mpixlf*)
11911 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11912 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11913 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11914 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11915 if test yes = "$supports_anon_versioning"; then
11916 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11917 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11918 echo "local: *; };" >> $output_objdir/$libname.ver~
11919 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11920 fi
11921 ;;
11922 esac
11923 else
11924 ld_shlibs=no
11925 fi
11926 ;;
11927
11928 *-mlibc)
11929 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11930 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11931 ;;
11932
11933 netbsd* | netbsdelf*-gnu)
11934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11935 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11936 wlarc=
11937 else
11938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11939 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11940 fi
11941 ;;
11942
11943 solaris*)
11944 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11945 ld_shlibs=no
11946 cat <<_LT_EOF 1>&2
11947
11948 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11949 *** create shared libraries on Solaris systems. Therefore, libtool
11950 *** is disabling shared libraries support. We urge you to upgrade GNU
11951 *** binutils to release 2.9.1 or newer. Another option is to modify
11952 *** your PATH or compiler configuration so that the native linker is
11953 *** used, and then restart.
11954
11955 _LT_EOF
11956 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11957 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11958 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11959 else
11960 ld_shlibs=no
11961 fi
11962 ;;
11963
11964 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11965 case `$LD -v 2>&1` in
11966 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11967 ld_shlibs=no
11968 cat <<_LT_EOF 1>&2
11969
11970 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11971 *** reliably create shared libraries on SCO systems. Therefore, libtool
11972 *** is disabling shared libraries support. We urge you to upgrade GNU
11973 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11974 *** your PATH or compiler configuration so that the native linker is
11975 *** used, and then restart.
11976
11977 _LT_EOF
11978 ;;
11979 *)
11980 # For security reasons, it is highly recommended that you always
11981 # use absolute paths for naming shared libraries, and exclude the
11982 # DT_RUNPATH tag from executables and libraries. But doing so
11983 # requires that you compile everything twice, which is a pain.
11984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11985 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11988 else
11989 ld_shlibs=no
11990 fi
11991 ;;
11992 esac
11993 ;;
11994
11995 sunos4*)
11996 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11997 wlarc=
11998 hardcode_direct=yes
11999 hardcode_shlibpath_var=no
12000 ;;
12001
12002 *)
12003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12005 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12006 else
12007 ld_shlibs=no
12008 fi
12009 ;;
12010 esac
12011
12012 if test no = "$ld_shlibs"; then
12013 runpath_var=
12014 hardcode_libdir_flag_spec=
12015 export_dynamic_flag_spec=
12016 whole_archive_flag_spec=
12017 fi
12018 else
12019 # PORTME fill in a description of your system's linker (not GNU ld)
12020 case $host_os in
12021 aix3*)
12022 allow_undefined_flag=unsupported
12023 always_export_symbols=yes
12024 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'
12025 # Note: this linker hardcodes the directories in LIBPATH if there
12026 # are no directories specified by -L.
12027 hardcode_minus_L=yes
12028 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12029 # Neither direct hardcoding nor static linking is supported with a
12030 # broken collect2.
12031 hardcode_direct=unsupported
12032 fi
12033 ;;
12034
12035 aix[4-9]*)
12036 if test ia64 = "$host_cpu"; then
12037 # On IA64, the linker does run time linking by default, so we don't
12038 # have to do anything special.
12039 aix_use_runtimelinking=no
12040 exp_sym_flag='-Bexport'
12041 no_entry_flag=
12042 else
12043 # If we're using GNU nm, then we don't want the "-C" option.
12044 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12045 # Without the "-l" option, or with the "-B" option, AIX nm treats
12046 # weak defined symbols like other global defined symbols, whereas
12047 # GNU nm marks them as "W".
12048 # While the 'weak' keyword is ignored in the Export File, we need
12049 # it in the Import File for the 'aix-soname' feature, so we have
12050 # to replace the "-B" option with "-P" for AIX nm.
12051 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12052 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'
12053 else
12054 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'
12055 fi
12056 aix_use_runtimelinking=no
12057
12058 # Test if we are trying to use run time linking or normal
12059 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12060 # have runtime linking enabled, and use it for executables.
12061 # For shared libraries, we enable/disable runtime linking
12062 # depending on the kind of the shared library created -
12063 # when "with_aix_soname,aix_use_runtimelinking" is:
12064 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12065 # "aix,yes" lib.so shared, rtl:yes, for executables
12066 # lib.a static archive
12067 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12068 # lib.a(lib.so.V) shared, rtl:no, for executables
12069 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12070 # lib.a(lib.so.V) shared, rtl:no
12071 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12072 # lib.a static archive
12073 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12074 for ld_flag in $LDFLAGS; do
12075 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12076 aix_use_runtimelinking=yes
12077 break
12078 fi
12079 done
12080 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12081 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12082 # so we don't have lib.a shared libs to link our executables.
12083 # We have to force runtime linking in this case.
12084 aix_use_runtimelinking=yes
12085 LDFLAGS="$LDFLAGS -Wl,-brtl"
12086 fi
12087 ;;
12088 esac
12089
12090 exp_sym_flag='-bexport'
12091 no_entry_flag='-bnoentry'
12092 fi
12093
12094 # When large executables or shared objects are built, AIX ld can
12095 # have problems creating the table of contents. If linking a library
12096 # or program results in "error TOC overflow" add -mminimal-toc to
12097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12099
12100 archive_cmds=''
12101 hardcode_direct=yes
12102 hardcode_direct_absolute=yes
12103 hardcode_libdir_separator=':'
12104 link_all_deplibs=yes
12105 file_list_spec='$wl-f,'
12106 case $with_aix_soname,$aix_use_runtimelinking in
12107 aix,*) ;; # traditional, no import file
12108 svr4,* | *,yes) # use import file
12109 # The Import File defines what to hardcode.
12110 hardcode_direct=no
12111 hardcode_direct_absolute=no
12112 ;;
12113 esac
12114
12115 if test yes = "$GCC"; then
12116 case $host_os in aix4.[012]|aix4.[012].*)
12117 # We only want to do this on AIX 4.2 and lower, the check
12118 # below for broken collect2 doesn't work under 4.3+
12119 collect2name=`$CC -print-prog-name=collect2`
12120 if test -f "$collect2name" &&
12121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12122 then
12123 # We have reworked collect2
12124 :
12125 else
12126 # We have old collect2
12127 hardcode_direct=unsupported
12128 # It fails to find uninstalled libraries when the uninstalled
12129 # path is not listed in the libpath. Setting hardcode_minus_L
12130 # to unsupported forces relinking
12131 hardcode_minus_L=yes
12132 hardcode_libdir_flag_spec='-L$libdir'
12133 hardcode_libdir_separator=
12134 fi
12135 ;;
12136 esac
12137 shared_flag='-shared'
12138 if test yes = "$aix_use_runtimelinking"; then
12139 shared_flag="$shared_flag "'$wl-G'
12140 fi
12141 # Need to ensure runtime linking is disabled for the traditional
12142 # shared library, or the linker may eventually find shared libraries
12143 # /with/ Import File - we do not want to mix them.
12144 shared_flag_aix='-shared'
12145 shared_flag_svr4='-shared $wl-G'
12146 else
12147 # not using gcc
12148 if test ia64 = "$host_cpu"; then
12149 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12150 # chokes on -Wl,-G. The following line is correct:
12151 shared_flag='-G'
12152 else
12153 if test yes = "$aix_use_runtimelinking"; then
12154 shared_flag='$wl-G'
12155 else
12156 shared_flag='$wl-bM:SRE'
12157 fi
12158 shared_flag_aix='$wl-bM:SRE'
12159 shared_flag_svr4='$wl-G'
12160 fi
12161 fi
12162
12163 export_dynamic_flag_spec='$wl-bexpall'
12164 # It seems that -bexpall does not export symbols beginning with
12165 # underscore (_), so it is better to generate a list of symbols to export.
12166 always_export_symbols=yes
12167 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12168 # Warning - without using the other runtime loading flags (-brtl),
12169 # -berok will link without error, but may produce a broken library.
12170 allow_undefined_flag='-berok'
12171 # Determine the default libpath from the value encoded in an
12172 # empty executable.
12173 if test set = "${lt_cv_aix_libpath+set}"; then
12174 aix_libpath=$lt_cv_aix_libpath
12175 else
12176 if test ${lt_cv_aix_libpath_+y}
12177 then :
12178 printf %s "(cached) " >&6
12179 else case e in #(
12180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182
12183 int
12184 main (void)
12185 {
12186
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"
12192 then :
12193
12194 lt_aix_libpath_sed='
12195 /Import File Strings/,/^$/ {
12196 /^0/ {
12197 s/^0 *\([^ ]*\) *$/\1/
12198 p
12199 }
12200 }'
12201 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12202 # Check for a 64-bit object if we didn't find anything.
12203 if test -z "$lt_cv_aix_libpath_"; then
12204 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12205 fi
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12208 conftest$ac_exeext conftest.$ac_ext
12209 if test -z "$lt_cv_aix_libpath_"; then
12210 lt_cv_aix_libpath_=/usr/lib:/lib
12211 fi
12212 ;;
12213 esac
12214 fi
12215
12216 aix_libpath=$lt_cv_aix_libpath_
12217 fi
12218
12219 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12220 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
12221 else
12222 if test ia64 = "$host_cpu"; then
12223 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12224 allow_undefined_flag="-z nodefs"
12225 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"
12226 else
12227 # Determine the default libpath from the value encoded in an
12228 # empty executable.
12229 if test set = "${lt_cv_aix_libpath+set}"; then
12230 aix_libpath=$lt_cv_aix_libpath
12231 else
12232 if test ${lt_cv_aix_libpath_+y}
12233 then :
12234 printf %s "(cached) " >&6
12235 else case e in #(
12236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238
12239 int
12240 main (void)
12241 {
12242
12243 ;
12244 return 0;
12245 }
12246 _ACEOF
12247 if ac_fn_c_try_link "$LINENO"
12248 then :
12249
12250 lt_aix_libpath_sed='
12251 /Import File Strings/,/^$/ {
12252 /^0/ {
12253 s/^0 *\([^ ]*\) *$/\1/
12254 p
12255 }
12256 }'
12257 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12258 # Check for a 64-bit object if we didn't find anything.
12259 if test -z "$lt_cv_aix_libpath_"; then
12260 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12261 fi
12262 fi
12263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12264 conftest$ac_exeext conftest.$ac_ext
12265 if test -z "$lt_cv_aix_libpath_"; then
12266 lt_cv_aix_libpath_=/usr/lib:/lib
12267 fi
12268 ;;
12269 esac
12270 fi
12271
12272 aix_libpath=$lt_cv_aix_libpath_
12273 fi
12274
12275 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12276 # Warning - without using the other run time loading flags,
12277 # -berok will link without error, but may produce a broken library.
12278 no_undefined_flag=' $wl-bernotok'
12279 allow_undefined_flag=' $wl-berok'
12280 if test yes = "$with_gnu_ld"; then
12281 # We only use this code for GNU lds that support --whole-archive.
12282 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12283 else
12284 # Exported symbols can be pulled into shared objects from archives
12285 whole_archive_flag_spec='$convenience'
12286 fi
12287 archive_cmds_need_lc=yes
12288 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12289 # -brtl affects multiple linker settings, -berok does not and is overridden later
12290 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12291 if test svr4 != "$with_aix_soname"; then
12292 # This is similar to how AIX traditionally builds its shared libraries.
12293 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'
12294 fi
12295 if test aix != "$with_aix_soname"; then
12296 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'
12297 else
12298 # used by -dlpreopen to get the symbols
12299 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12300 fi
12301 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12302 fi
12303 fi
12304 ;;
12305
12306 amigaos*)
12307 case $host_cpu in
12308 powerpc)
12309 # see comment about AmigaOS4 .so support
12310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12311 archive_expsym_cmds=''
12312 ;;
12313 m68k)
12314 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)'
12315 hardcode_libdir_flag_spec='-L$libdir'
12316 hardcode_minus_L=yes
12317 ;;
12318 esac
12319 ;;
12320
12321 bsdi[45]*)
12322 export_dynamic_flag_spec=-rdynamic
12323 ;;
12324
12325 cygwin* | mingw* | windows* | pw32* | cegcc*)
12326 # When not using gcc, we currently assume that we are using
12327 # Microsoft Visual C++ or Intel C++ Compiler.
12328 # hardcode_libdir_flag_spec is actually meaningless, as there is
12329 # no search path for DLLs.
12330 case $cc_basename in
12331 cl* | icl*)
12332 # Native MSVC or ICC
12333 hardcode_libdir_flag_spec=' '
12334 allow_undefined_flag=unsupported
12335 always_export_symbols=yes
12336 file_list_spec='@'
12337 # Tell ltmain to make .lib files, not .a files.
12338 libext=lib
12339 # Tell ltmain to make .dll files, not .so files.
12340 shrext_cmds=.dll
12341 # FIXME: Setting linknames here is a bad hack.
12342 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12343 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12344 cp "$export_symbols" "$output_objdir/$soname.def";
12345 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12346 else
12347 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12348 fi~
12349 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12350 linknames='
12351 # The linker will not automatically build a static lib if we build a DLL.
12352 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12353 enable_shared_with_static_runtimes=yes
12354 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12356 # Don't use ranlib
12357 old_postinstall_cmds='chmod 644 $oldlib'
12358 postlink_cmds='lt_outputfile="@OUTPUT@"~
12359 lt_tool_outputfile="@TOOL_OUTPUT@"~
12360 case $lt_outputfile in
12361 *.exe|*.EXE) ;;
12362 *)
12363 lt_outputfile=$lt_outputfile.exe
12364 lt_tool_outputfile=$lt_tool_outputfile.exe
12365 ;;
12366 esac~
12367 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12368 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12369 $RM "$lt_outputfile.manifest";
12370 fi'
12371 ;;
12372 *)
12373 # Assume MSVC and ICC wrapper
12374 hardcode_libdir_flag_spec=' '
12375 allow_undefined_flag=unsupported
12376 # Tell ltmain to make .lib files, not .a files.
12377 libext=lib
12378 # Tell ltmain to make .dll files, not .so files.
12379 shrext_cmds=.dll
12380 # FIXME: Setting linknames here is a bad hack.
12381 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12382 # The linker will automatically build a .lib file if we build a DLL.
12383 old_archive_from_new_cmds='true'
12384 # FIXME: Should let the user specify the lib program.
12385 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12386 enable_shared_with_static_runtimes=yes
12387 ;;
12388 esac
12389 ;;
12390
12391 darwin* | rhapsody*)
12392
12393
12394 archive_cmds_need_lc=no
12395 hardcode_direct=no
12396 hardcode_automatic=yes
12397 hardcode_shlibpath_var=unsupported
12398 if test yes = "$lt_cv_ld_force_load"; then
12399 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\"`'
12400
12401 else
12402 whole_archive_flag_spec=''
12403 fi
12404 link_all_deplibs=yes
12405 allow_undefined_flag=$_lt_dar_allow_undefined
12406 case $cc_basename in
12407 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12408 *) _lt_dar_can_shared=$GCC ;;
12409 esac
12410 if test yes = "$_lt_dar_can_shared"; then
12411 output_verbose_link_cmd=func_echo_all
12412 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12413 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12414 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"
12415 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"
12416
12417 else
12418 ld_shlibs=no
12419 fi
12420
12421 ;;
12422
12423 dgux*)
12424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12425 hardcode_libdir_flag_spec='-L$libdir'
12426 hardcode_shlibpath_var=no
12427 ;;
12428
12429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12430 # support. Future versions do this automatically, but an explicit c++rt0.o
12431 # does not break anything, and helps significantly (at the cost of a little
12432 # extra space).
12433 freebsd2.2*)
12434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12435 hardcode_libdir_flag_spec='-R$libdir'
12436 hardcode_direct=yes
12437 hardcode_shlibpath_var=no
12438 ;;
12439
12440 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12441 freebsd2.*)
12442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12443 hardcode_direct=yes
12444 hardcode_minus_L=yes
12445 hardcode_shlibpath_var=no
12446 ;;
12447
12448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12449 freebsd* | dragonfly* | midnightbsd*)
12450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12451 hardcode_libdir_flag_spec='-R$libdir'
12452 hardcode_direct=yes
12453 hardcode_shlibpath_var=no
12454 ;;
12455
12456 hpux9*)
12457 if test yes = "$GCC"; then
12458 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'
12459 else
12460 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'
12461 fi
12462 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12463 hardcode_libdir_separator=:
12464 hardcode_direct=yes
12465
12466 # hardcode_minus_L: Not really in the search PATH,
12467 # but as the default location of the library.
12468 hardcode_minus_L=yes
12469 export_dynamic_flag_spec='$wl-E'
12470 ;;
12471
12472 hpux10*)
12473 if test yes,no = "$GCC,$with_gnu_ld"; then
12474 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12475 else
12476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12477 fi
12478 if test no = "$with_gnu_ld"; then
12479 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12480 hardcode_libdir_separator=:
12481 hardcode_direct=yes
12482 hardcode_direct_absolute=yes
12483 export_dynamic_flag_spec='$wl-E'
12484 # hardcode_minus_L: Not really in the search PATH,
12485 # but as the default location of the library.
12486 hardcode_minus_L=yes
12487 fi
12488 ;;
12489
12490 hpux11*)
12491 if test yes,no = "$GCC,$with_gnu_ld"; then
12492 case $host_cpu in
12493 hppa*64*)
12494 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12495 ;;
12496 ia64*)
12497 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12498 ;;
12499 *)
12500 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12501 ;;
12502 esac
12503 else
12504 case $host_cpu in
12505 hppa*64*)
12506 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12507 ;;
12508 ia64*)
12509 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12510 ;;
12511 *)
12512
12513 # Older versions of the 11.00 compiler do not understand -b yet
12514 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12516 printf %s "checking if $CC understands -b... " >&6; }
12517 if test ${lt_cv_prog_compiler__b+y}
12518 then :
12519 printf %s "(cached) " >&6
12520 else case e in #(
12521 e) lt_cv_prog_compiler__b=no
12522 save_LDFLAGS=$LDFLAGS
12523 LDFLAGS="$LDFLAGS -b"
12524 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12526 # The linker can only warn and ignore the option if not recognized
12527 # So say no if there are warnings
12528 if test -s conftest.err; then
12529 # Append any errors to the config.log.
12530 cat conftest.err 1>&5
12531 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12533 if diff conftest.exp conftest.er2 >/dev/null; then
12534 lt_cv_prog_compiler__b=yes
12535 fi
12536 else
12537 lt_cv_prog_compiler__b=yes
12538 fi
12539 fi
12540 $RM -r conftest*
12541 LDFLAGS=$save_LDFLAGS
12542 ;;
12543 esac
12544 fi
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12546 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12547
12548 if test yes = "$lt_cv_prog_compiler__b"; then
12549 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12550 else
12551 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12552 fi
12553
12554 ;;
12555 esac
12556 fi
12557 if test no = "$with_gnu_ld"; then
12558 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12559 hardcode_libdir_separator=:
12560
12561 case $host_cpu in
12562 hppa*64*|ia64*)
12563 hardcode_direct=no
12564 hardcode_shlibpath_var=no
12565 ;;
12566 *)
12567 hardcode_direct=yes
12568 hardcode_direct_absolute=yes
12569 export_dynamic_flag_spec='$wl-E'
12570
12571 # hardcode_minus_L: Not really in the search PATH,
12572 # but as the default location of the library.
12573 hardcode_minus_L=yes
12574 ;;
12575 esac
12576 fi
12577 ;;
12578
12579 irix5* | irix6* | nonstopux*)
12580 if test yes = "$GCC"; then
12581 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'
12582 # Try to use the -exported_symbol ld option, if it does not
12583 # work, assume that -exports_file does not work either and
12584 # implicitly export all symbols.
12585 # This should be the same for all languages, so no per-tag cache variable.
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12587 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12588 if test ${lt_cv_irix_exported_symbol+y}
12589 then :
12590 printf %s "(cached) " >&6
12591 else case e in #(
12592 e) save_LDFLAGS=$LDFLAGS
12593 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 int foo (void) { return 0; }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"
12599 then :
12600 lt_cv_irix_exported_symbol=yes
12601 else case e in #(
12602 e) lt_cv_irix_exported_symbol=no ;;
12603 esac
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12606 conftest$ac_exeext conftest.$ac_ext
12607 LDFLAGS=$save_LDFLAGS ;;
12608 esac
12609 fi
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12611 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12612 if test yes = "$lt_cv_irix_exported_symbol"; then
12613 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'
12614 fi
12615 else
12616 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'
12617 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'
12618 fi
12619 archive_cmds_need_lc='no'
12620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12621 hardcode_libdir_separator=:
12622 inherit_rpath=yes
12623 link_all_deplibs=yes
12624 ;;
12625
12626 linux*)
12627 case $cc_basename in
12628 tcc*)
12629 # Fabrice Bellard et al's Tiny C Compiler
12630 ld_shlibs=yes
12631 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12633 ;;
12634 esac
12635 ;;
12636
12637 *-mlibc)
12638 ;;
12639
12640 netbsd* | netbsdelf*-gnu)
12641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12643 else
12644 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12645 fi
12646 hardcode_libdir_flag_spec='-R$libdir'
12647 hardcode_direct=yes
12648 hardcode_shlibpath_var=no
12649 ;;
12650
12651 newsos6)
12652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12653 hardcode_direct=yes
12654 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12655 hardcode_libdir_separator=:
12656 hardcode_shlibpath_var=no
12657 ;;
12658
12659 *nto* | *qnx*)
12660 ;;
12661
12662 openbsd*)
12663 if test -f /usr/libexec/ld.so; then
12664 hardcode_direct=yes
12665 hardcode_shlibpath_var=no
12666 hardcode_direct_absolute=yes
12667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12669 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12670 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12671 export_dynamic_flag_spec='$wl-E'
12672 else
12673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12674 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12675 fi
12676 else
12677 ld_shlibs=no
12678 fi
12679 ;;
12680
12681 os2*)
12682 hardcode_libdir_flag_spec='-L$libdir'
12683 hardcode_minus_L=yes
12684 allow_undefined_flag=unsupported
12685 shrext_cmds=.dll
12686 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12687 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12688 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12689 $ECHO EXPORTS >> $output_objdir/$libname.def~
12690 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12691 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12692 emximp -o $lib $output_objdir/$libname.def'
12693 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12694 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12695 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12696 $ECHO EXPORTS >> $output_objdir/$libname.def~
12697 prefix_cmds="$SED"~
12698 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12699 prefix_cmds="$prefix_cmds -e 1d";
12700 fi~
12701 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12702 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12703 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12704 emximp -o $lib $output_objdir/$libname.def'
12705 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12706 enable_shared_with_static_runtimes=yes
12707 file_list_spec='@'
12708 ;;
12709
12710 osf3*)
12711 if test yes = "$GCC"; then
12712 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12713 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'
12714 else
12715 allow_undefined_flag=' -expect_unresolved \*'
12716 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'
12717 fi
12718 archive_cmds_need_lc='no'
12719 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12720 hardcode_libdir_separator=:
12721 ;;
12722
12723 osf4* | osf5*) # as osf3* with the addition of -msym flag
12724 if test yes = "$GCC"; then
12725 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12726 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'
12727 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12728 else
12729 allow_undefined_flag=' -expect_unresolved \*'
12730 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'
12731 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~
12732 $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'
12733
12734 # Both c and cxx compiler support -rpath directly
12735 hardcode_libdir_flag_spec='-rpath $libdir'
12736 fi
12737 archive_cmds_need_lc='no'
12738 hardcode_libdir_separator=:
12739 ;;
12740
12741 serenity*)
12742 ;;
12743
12744 solaris*)
12745 no_undefined_flag=' -z defs'
12746 if test yes = "$GCC"; then
12747 wlarc='$wl'
12748 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12749 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12750 $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'
12751 else
12752 case `$CC -V 2>&1` in
12753 *"Compilers 5.0"*)
12754 wlarc=''
12755 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12757 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12758 ;;
12759 *)
12760 wlarc='$wl'
12761 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12762 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12763 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12764 ;;
12765 esac
12766 fi
12767 hardcode_libdir_flag_spec='-R$libdir'
12768 hardcode_shlibpath_var=no
12769 case $host_os in
12770 solaris2.[0-5] | solaris2.[0-5].*) ;;
12771 *)
12772 # The compiler driver will combine and reorder linker options,
12773 # but understands '-z linker_flag'. GCC discards it without '$wl',
12774 # but is careful enough not to reorder.
12775 # Supported since Solaris 2.6 (maybe 2.5.1?)
12776 if test yes = "$GCC"; then
12777 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12778 else
12779 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12780 fi
12781 ;;
12782 esac
12783 link_all_deplibs=yes
12784 ;;
12785
12786 sunos4*)
12787 if test sequent = "$host_vendor"; then
12788 # Use $CC to link under sequent, because it throws in some extra .o
12789 # files that make .init and .fini sections work.
12790 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12791 else
12792 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12793 fi
12794 hardcode_libdir_flag_spec='-L$libdir'
12795 hardcode_direct=yes
12796 hardcode_minus_L=yes
12797 hardcode_shlibpath_var=no
12798 ;;
12799
12800 sysv4)
12801 case $host_vendor in
12802 sni)
12803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12804 hardcode_direct=yes # is this really true???
12805 ;;
12806 siemens)
12807 ## LD is ld it makes a PLAMLIB
12808 ## CC just makes a GrossModule.
12809 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12810 reload_cmds='$CC -r -o $output$reload_objs'
12811 hardcode_direct=no
12812 ;;
12813 motorola)
12814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12815 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12816 ;;
12817 esac
12818 runpath_var='LD_RUN_PATH'
12819 hardcode_shlibpath_var=no
12820 ;;
12821
12822 sysv4.3*)
12823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12824 hardcode_shlibpath_var=no
12825 export_dynamic_flag_spec='-Bexport'
12826 ;;
12827
12828 sysv4*MP*)
12829 if test -d /usr/nec; then
12830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12831 hardcode_shlibpath_var=no
12832 runpath_var=LD_RUN_PATH
12833 hardcode_runpath_var=yes
12834 ld_shlibs=yes
12835 fi
12836 ;;
12837
12838 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12839 no_undefined_flag='$wl-z,text'
12840 archive_cmds_need_lc=no
12841 hardcode_shlibpath_var=no
12842 runpath_var='LD_RUN_PATH'
12843
12844 if test yes = "$GCC"; then
12845 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12846 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12847 else
12848 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12849 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12850 fi
12851 ;;
12852
12853 sysv5* | sco3.2v5* | sco5v6*)
12854 # Note: We CANNOT use -z defs as we might desire, because we do not
12855 # link with -lc, and that would cause any symbols used from libc to
12856 # always be unresolved, which means just about no library would
12857 # ever link correctly. If we're not using GNU ld we use -z text
12858 # though, which does catch some bad symbols but isn't as heavy-handed
12859 # as -z defs.
12860 no_undefined_flag='$wl-z,text'
12861 allow_undefined_flag='$wl-z,nodefs'
12862 archive_cmds_need_lc=no
12863 hardcode_shlibpath_var=no
12864 hardcode_libdir_flag_spec='$wl-R,$libdir'
12865 hardcode_libdir_separator=':'
12866 link_all_deplibs=yes
12867 export_dynamic_flag_spec='$wl-Bexport'
12868 runpath_var='LD_RUN_PATH'
12869
12870 if test yes = "$GCC"; then
12871 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12872 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12873 else
12874 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12875 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12876 fi
12877 ;;
12878
12879 uts4*)
12880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12881 hardcode_libdir_flag_spec='-L$libdir'
12882 hardcode_shlibpath_var=no
12883 ;;
12884
12885 *)
12886 ld_shlibs=no
12887 ;;
12888 esac
12889
12890 if test sni = "$host_vendor"; then
12891 case $host in
12892 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12893 export_dynamic_flag_spec='$wl-Blargedynsym'
12894 ;;
12895 esac
12896 fi
12897 fi
12898
12899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12900 printf "%s\n" "$ld_shlibs" >&6; }
12901 test no = "$ld_shlibs" && can_build_shared=no
12902
12903 with_gnu_ld=$with_gnu_ld
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919 #
12920 # Do we need to explicitly link libc?
12921 #
12922 case "x$archive_cmds_need_lc" in
12923 x|xyes)
12924 # Assume -lc should be added
12925 archive_cmds_need_lc=yes
12926
12927 if test yes,yes = "$GCC,$enable_shared"; then
12928 case $archive_cmds in
12929 *'~'*)
12930 # FIXME: we may have to deal with multi-command sequences.
12931 ;;
12932 '$CC '*)
12933 # Test whether the compiler implicitly links with -lc since on some
12934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12935 # to ld, don't add -lc before -lgcc.
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12937 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12938 if test ${lt_cv_archive_cmds_need_lc+y}
12939 then :
12940 printf %s "(cached) " >&6
12941 else case e in #(
12942 e) $RM conftest*
12943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12944
12945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12946 (eval $ac_compile) 2>&5
12947 ac_status=$?
12948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; } 2>conftest.err; then
12950 soname=conftest
12951 lib=conftest
12952 libobjs=conftest.$ac_objext
12953 deplibs=
12954 wl=$lt_prog_compiler_wl
12955 pic_flag=$lt_prog_compiler_pic
12956 compiler_flags=-v
12957 linker_flags=-v
12958 verstring=
12959 output_objdir=.
12960 libname=conftest
12961 lt_save_allow_undefined_flag=$allow_undefined_flag
12962 allow_undefined_flag=
12963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12964 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12965 ac_status=$?
12966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12967 test $ac_status = 0; }
12968 then
12969 lt_cv_archive_cmds_need_lc=no
12970 else
12971 lt_cv_archive_cmds_need_lc=yes
12972 fi
12973 allow_undefined_flag=$lt_save_allow_undefined_flag
12974 else
12975 cat conftest.err 1>&5
12976 fi
12977 $RM conftest*
12978 ;;
12979 esac
12980 fi
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12982 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12983 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12984 ;;
12985 esac
12986 fi
12987 ;;
12988 esac
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
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
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13142 printf %s "checking dynamic linker characteristics... " >&6; }
13143
13144 if test yes = "$GCC"; then
13145 case $host_os in
13146 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13147 *) lt_awk_arg='/^libraries:/' ;;
13148 esac
13149 case $host_os in
13150 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13151 *) lt_sed_strip_eq='s|=/|/|g' ;;
13152 esac
13153 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13154 case $lt_search_path_spec in
13155 *\;*)
13156 # if the path contains ";" then we assume it to be the separator
13157 # otherwise default to the standard path separator (i.e. ":") - it is
13158 # assumed that no part of a normal pathname contains ";" but that should
13159 # okay in the real world where ";" in dirpaths is itself problematic.
13160 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13161 ;;
13162 *)
13163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13164 ;;
13165 esac
13166 # Ok, now we have the path, separated by spaces, we can step through it
13167 # and add multilib dir if necessary...
13168 lt_tmp_lt_search_path_spec=
13169 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13170 # ...but if some path component already ends with the multilib dir we assume
13171 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13172 case "$lt_multi_os_dir; $lt_search_path_spec " in
13173 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13174 lt_multi_os_dir=
13175 ;;
13176 esac
13177 for lt_sys_path in $lt_search_path_spec; do
13178 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13180 elif test -n "$lt_multi_os_dir"; then
13181 test -d "$lt_sys_path" && \
13182 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13183 fi
13184 done
13185 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13186 BEGIN {RS = " "; FS = "/|\n";} {
13187 lt_foo = "";
13188 lt_count = 0;
13189 for (lt_i = NF; lt_i > 0; lt_i--) {
13190 if ($lt_i != "" && $lt_i != ".") {
13191 if ($lt_i == "..") {
13192 lt_count++;
13193 } else {
13194 if (lt_count == 0) {
13195 lt_foo = "/" $lt_i lt_foo;
13196 } else {
13197 lt_count--;
13198 }
13199 }
13200 }
13201 }
13202 if (lt_foo != "") { lt_freq[lt_foo]++; }
13203 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13204 }'`
13205 # AWK program above erroneously prepends '/' to C:/dos/paths
13206 # for these hosts.
13207 case $host_os in
13208 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13209 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13210 esac
13211 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13212 else
13213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13214 fi
13215 library_names_spec=
13216 libname_spec='lib$name'
13217 soname_spec=
13218 shrext_cmds=.so
13219 postinstall_cmds=
13220 postuninstall_cmds=
13221 finish_cmds=
13222 finish_eval=
13223 shlibpath_var=
13224 shlibpath_overrides_runpath=unknown
13225 version_type=none
13226 dynamic_linker="$host_os ld.so"
13227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13228 need_lib_prefix=unknown
13229 hardcode_into_libs=no
13230
13231 # when you set need_version to no, make sure it does not cause -set_version
13232 # flags to be left without arguments
13233 need_version=unknown
13234
13235
13236
13237 case $host_os in
13238 aix3*)
13239 version_type=linux # correct to gnu/linux during the next big refactor
13240 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13241 shlibpath_var=LIBPATH
13242
13243 # AIX 3 has no versioning support, so we append a major version to the name.
13244 soname_spec='$libname$release$shared_ext$major'
13245 ;;
13246
13247 aix[4-9]*)
13248 version_type=linux # correct to gnu/linux during the next big refactor
13249 need_lib_prefix=no
13250 need_version=no
13251 hardcode_into_libs=yes
13252 if test ia64 = "$host_cpu"; then
13253 # AIX 5 supports IA64
13254 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13255 shlibpath_var=LD_LIBRARY_PATH
13256 else
13257 # With GCC up to 2.95.x, collect2 would create an import file
13258 # for dependence libraries. The import file would start with
13259 # the line '#! .'. This would cause the generated library to
13260 # depend on '.', always an invalid library. This was fixed in
13261 # development snapshots of GCC prior to 3.0.
13262 case $host_os in
13263 aix4 | aix4.[01] | aix4.[01].*)
13264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13265 echo ' yes '
13266 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13267 :
13268 else
13269 can_build_shared=no
13270 fi
13271 ;;
13272 esac
13273 # Using Import Files as archive members, it is possible to support
13274 # filename-based versioning of shared library archives on AIX. While
13275 # this would work for both with and without runtime linking, it will
13276 # prevent static linking of such archives. So we do filename-based
13277 # shared library versioning with .so extension only, which is used
13278 # when both runtime linking and shared linking is enabled.
13279 # Unfortunately, runtime linking may impact performance, so we do
13280 # not want this to be the default eventually. Also, we use the
13281 # versioned .so libs for executables only if there is the -brtl
13282 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13283 # To allow for filename-based versioning support, we need to create
13284 # libNAME.so.V as an archive file, containing:
13285 # *) an Import File, referring to the versioned filename of the
13286 # archive as well as the shared archive member, telling the
13287 # bitwidth (32 or 64) of that shared object, and providing the
13288 # list of exported symbols of that shared object, eventually
13289 # decorated with the 'weak' keyword
13290 # *) the shared object with the F_LOADONLY flag set, to really avoid
13291 # it being seen by the linker.
13292 # At run time we better use the real file rather than another symlink,
13293 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13294
13295 case $with_aix_soname,$aix_use_runtimelinking in
13296 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13297 # soname into executable. Probably we can add versioning support to
13298 # collect2, so additional links can be useful in future.
13299 aix,yes) # traditional libtool
13300 dynamic_linker='AIX unversionable lib.so'
13301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13302 # instead of lib<name>.a to let people know that these are not
13303 # typical AIX shared libraries.
13304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13305 ;;
13306 aix,no) # traditional AIX only
13307 dynamic_linker='AIX lib.a(lib.so.V)'
13308 # We preserve .a as extension for shared libraries through AIX4.2
13309 # and later when we are not doing run time linking.
13310 library_names_spec='$libname$release.a $libname.a'
13311 soname_spec='$libname$release$shared_ext$major'
13312 ;;
13313 svr4,*) # full svr4 only
13314 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13315 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13316 # We do not specify a path in Import Files, so LIBPATH fires.
13317 shlibpath_overrides_runpath=yes
13318 ;;
13319 *,yes) # both, prefer svr4
13320 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13321 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13322 # unpreferred sharedlib libNAME.a needs extra handling
13323 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"'
13324 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"'
13325 # We do not specify a path in Import Files, so LIBPATH fires.
13326 shlibpath_overrides_runpath=yes
13327 ;;
13328 *,no) # both, prefer aix
13329 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13330 library_names_spec='$libname$release.a $libname.a'
13331 soname_spec='$libname$release$shared_ext$major'
13332 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13333 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)'
13334 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"'
13335 ;;
13336 esac
13337 shlibpath_var=LIBPATH
13338 fi
13339 ;;
13340
13341 amigaos*)
13342 case $host_cpu in
13343 powerpc)
13344 # Since July 2007 AmigaOS4 officially supports .so libraries.
13345 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13347 ;;
13348 m68k)
13349 library_names_spec='$libname.ixlibrary $libname.a'
13350 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13351 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'
13352 ;;
13353 esac
13354 ;;
13355
13356 beos*)
13357 library_names_spec='$libname$shared_ext'
13358 dynamic_linker="$host_os ld.so"
13359 shlibpath_var=LIBRARY_PATH
13360 ;;
13361
13362 bsdi[45]*)
13363 version_type=linux # correct to gnu/linux during the next big refactor
13364 need_version=no
13365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13366 soname_spec='$libname$release$shared_ext$major'
13367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13371 # the default ld.so.conf also contains /usr/contrib/lib and
13372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13373 # libtool to hard-code these into programs
13374 ;;
13375
13376 cygwin* | mingw* | windows* | pw32* | cegcc*)
13377 version_type=windows
13378 shrext_cmds=.dll
13379 need_version=no
13380 need_lib_prefix=no
13381
13382 case $GCC,$cc_basename in
13383 yes,*)
13384 # gcc
13385 library_names_spec='$libname.dll.a'
13386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13387 # If user builds GCC with multilib enabled,
13388 # it should just install on $(libdir)
13389 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13390 if test xyes = x"$multilib"; then
13391 postinstall_cmds='base_file=`basename \$file`~
13392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13393 dldir=$destdir/`dirname \$dlpath`~
13394 $install_prog $dir/$dlname $destdir/$dlname~
13395 chmod a+x $destdir/$dlname~
13396 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13397 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13398 fi'
13399 else
13400 postinstall_cmds='base_file=`basename \$file`~
13401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13402 dldir=$destdir/`dirname \$dlpath`~
13403 test -d \$dldir || mkdir -p \$dldir~
13404 $install_prog $dir/$dlname \$dldir/$dlname~
13405 chmod a+x \$dldir/$dlname~
13406 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13407 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13408 fi'
13409 fi
13410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13411 dlpath=$dir/\$dldll~
13412 $RM \$dlpath'
13413 shlibpath_overrides_runpath=yes
13414
13415 case $host_os in
13416 cygwin*)
13417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13418 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13419
13420 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13421 ;;
13422 mingw* | windows* | cegcc*)
13423 # MinGW DLLs use traditional 'lib' prefix
13424 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13425 ;;
13426 pw32*)
13427 # pw32 DLLs use 'pw' prefix rather than 'lib'
13428 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13429 ;;
13430 esac
13431 dynamic_linker='Win32 ld.exe'
13432 ;;
13433
13434 *,cl* | *,icl*)
13435 # Native MSVC or ICC
13436 libname_spec='$name'
13437 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13438 library_names_spec='$libname.dll.lib'
13439
13440 case $build_os in
13441 mingw* | windows*)
13442 sys_lib_search_path_spec=
13443 lt_save_ifs=$IFS
13444 IFS=';'
13445 for lt_path in $LIB
13446 do
13447 IFS=$lt_save_ifs
13448 # Let DOS variable expansion print the short 8.3 style file name.
13449 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13450 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13451 done
13452 IFS=$lt_save_ifs
13453 # Convert to MSYS style.
13454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13455 ;;
13456 cygwin*)
13457 # Convert to unix form, then to dos form, then back to unix form
13458 # but this time dos style (no spaces!) so that the unix form looks
13459 # like /cygdrive/c/PROGRA~1:/cygdr...
13460 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13461 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13462 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13463 ;;
13464 *)
13465 sys_lib_search_path_spec=$LIB
13466 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13467 # It is most probably a Windows format PATH.
13468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13469 else
13470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13471 fi
13472 # FIXME: find the short name or the path components, as spaces are
13473 # common. (e.g. "Program Files" -> "PROGRA~1")
13474 ;;
13475 esac
13476
13477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13478 postinstall_cmds='base_file=`basename \$file`~
13479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13480 dldir=$destdir/`dirname \$dlpath`~
13481 test -d \$dldir || mkdir -p \$dldir~
13482 $install_prog $dir/$dlname \$dldir/$dlname'
13483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13484 dlpath=$dir/\$dldll~
13485 $RM \$dlpath'
13486 shlibpath_overrides_runpath=yes
13487 dynamic_linker='Win32 link.exe'
13488 ;;
13489
13490 *)
13491 # Assume MSVC and ICC wrapper
13492 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13493 dynamic_linker='Win32 ld.exe'
13494 ;;
13495 esac
13496 # FIXME: first we should search . and the directory the executable is in
13497 shlibpath_var=PATH
13498 ;;
13499
13500 darwin* | rhapsody*)
13501 dynamic_linker="$host_os dyld"
13502 version_type=darwin
13503 need_lib_prefix=no
13504 need_version=no
13505 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13506 soname_spec='$libname$release$major$shared_ext'
13507 shlibpath_overrides_runpath=yes
13508 shlibpath_var=DYLD_LIBRARY_PATH
13509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13510
13511 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13512 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13513 ;;
13514
13515 dgux*)
13516 version_type=linux # correct to gnu/linux during the next big refactor
13517 need_lib_prefix=no
13518 need_version=no
13519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13520 soname_spec='$libname$release$shared_ext$major'
13521 shlibpath_var=LD_LIBRARY_PATH
13522 ;;
13523
13524 freebsd* | dragonfly* | midnightbsd*)
13525 # DragonFly does not have aout. When/if they implement a new
13526 # versioning mechanism, adjust this.
13527 if test -x /usr/bin/objformat; then
13528 objformat=`/usr/bin/objformat`
13529 else
13530 case $host_os in
13531 freebsd[23].*) objformat=aout ;;
13532 *) objformat=elf ;;
13533 esac
13534 fi
13535 version_type=freebsd-$objformat
13536 case $version_type in
13537 freebsd-elf*)
13538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13539 soname_spec='$libname$release$shared_ext$major'
13540 need_version=no
13541 need_lib_prefix=no
13542 ;;
13543 freebsd-*)
13544 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13545 need_version=yes
13546 ;;
13547 esac
13548 case $host_cpu in
13549 powerpc64)
13550 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13551 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 int test_pointer_size[sizeof (void *) - 5];
13555
13556 _ACEOF
13557 if ac_fn_c_try_compile "$LINENO"
13558 then :
13559 shlibpath_var=LD_LIBRARY_PATH
13560 else case e in #(
13561 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13562 esac
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13565 ;;
13566 *)
13567 shlibpath_var=LD_LIBRARY_PATH
13568 ;;
13569 esac
13570 case $host_os in
13571 freebsd2.*)
13572 shlibpath_overrides_runpath=yes
13573 ;;
13574 freebsd3.[01]* | freebsdelf3.[01]*)
13575 shlibpath_overrides_runpath=yes
13576 hardcode_into_libs=yes
13577 ;;
13578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13580 shlibpath_overrides_runpath=no
13581 hardcode_into_libs=yes
13582 ;;
13583 *) # from 4.6 on, and DragonFly
13584 shlibpath_overrides_runpath=yes
13585 hardcode_into_libs=yes
13586 ;;
13587 esac
13588 ;;
13589
13590 haiku*)
13591 version_type=linux # correct to gnu/linux during the next big refactor
13592 need_lib_prefix=no
13593 need_version=no
13594 dynamic_linker="$host_os runtime_loader"
13595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13596 soname_spec='$libname$release$shared_ext$major'
13597 shlibpath_var=LIBRARY_PATH
13598 shlibpath_overrides_runpath=no
13599 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13600 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13601 hardcode_into_libs=no
13602 ;;
13603
13604 hpux9* | hpux10* | hpux11*)
13605 # Give a soname corresponding to the major version so that dld.sl refuses to
13606 # link against other versions.
13607 version_type=sunos
13608 need_lib_prefix=no
13609 need_version=no
13610 case $host_cpu in
13611 ia64*)
13612 shrext_cmds='.so'
13613 hardcode_into_libs=yes
13614 dynamic_linker="$host_os dld.so"
13615 shlibpath_var=LD_LIBRARY_PATH
13616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13618 soname_spec='$libname$release$shared_ext$major'
13619 if test 32 = "$HPUX_IA64_MODE"; then
13620 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13621 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13622 else
13623 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13624 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13625 fi
13626 ;;
13627 hppa*64*)
13628 shrext_cmds='.sl'
13629 hardcode_into_libs=yes
13630 dynamic_linker="$host_os dld.sl"
13631 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13634 soname_spec='$libname$release$shared_ext$major'
13635 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13637 ;;
13638 *)
13639 shrext_cmds='.sl'
13640 dynamic_linker="$host_os dld.sl"
13641 shlibpath_var=SHLIB_PATH
13642 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13644 soname_spec='$libname$release$shared_ext$major'
13645 ;;
13646 esac
13647 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13648 postinstall_cmds='chmod 555 $lib'
13649 # or fails outright, so override atomically:
13650 install_override_mode=555
13651 ;;
13652
13653 interix[3-9]*)
13654 version_type=linux # correct to gnu/linux during the next big refactor
13655 need_lib_prefix=no
13656 need_version=no
13657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13658 soname_spec='$libname$release$shared_ext$major'
13659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13660 shlibpath_var=LD_LIBRARY_PATH
13661 shlibpath_overrides_runpath=no
13662 hardcode_into_libs=yes
13663 ;;
13664
13665 irix5* | irix6* | nonstopux*)
13666 case $host_os in
13667 nonstopux*) version_type=nonstopux ;;
13668 *)
13669 if test yes = "$lt_cv_prog_gnu_ld"; then
13670 version_type=linux # correct to gnu/linux during the next big refactor
13671 else
13672 version_type=irix
13673 fi ;;
13674 esac
13675 need_lib_prefix=no
13676 need_version=no
13677 soname_spec='$libname$release$shared_ext$major'
13678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13679 case $host_os in
13680 irix5* | nonstopux*)
13681 libsuff= shlibsuff=
13682 ;;
13683 *)
13684 case $LD in # libtool.m4 will add one of these switches to LD
13685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13686 libsuff= shlibsuff= libmagic=32-bit;;
13687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13688 libsuff=32 shlibsuff=N32 libmagic=N32;;
13689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13691 *) libsuff= shlibsuff= libmagic=never-match;;
13692 esac
13693 ;;
13694 esac
13695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13696 shlibpath_overrides_runpath=no
13697 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13698 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13699 hardcode_into_libs=yes
13700 ;;
13701
13702 # No shared lib support for Linux oldld, aout, or coff.
13703 linux*oldld* | linux*aout* | linux*coff*)
13704 dynamic_linker=no
13705 ;;
13706
13707 linux*android*)
13708 version_type=none # Android doesn't support versioned libraries.
13709 need_lib_prefix=no
13710 need_version=no
13711 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13712 soname_spec='$libname$release$shared_ext'
13713 finish_cmds=
13714 shlibpath_var=LD_LIBRARY_PATH
13715 shlibpath_overrides_runpath=yes
13716
13717 # This implies no fast_install, which is unacceptable.
13718 # Some rework will be needed to allow for fast_install
13719 # before this can be enabled.
13720 hardcode_into_libs=yes
13721
13722 dynamic_linker='Android linker'
13723 # -rpath works at least for libraries that are not overridden by
13724 # libraries installed in system locations.
13725 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13726 ;;
13727
13728 # This must be glibc/ELF.
13729 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13730 version_type=linux # correct to gnu/linux during the next big refactor
13731 need_lib_prefix=no
13732 need_version=no
13733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13734 soname_spec='$libname$release$shared_ext$major'
13735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=no
13738
13739 # Some binutils ld are patched to set DT_RUNPATH
13740 if test ${lt_cv_shlibpath_overrides_runpath+y}
13741 then :
13742 printf %s "(cached) " >&6
13743 else case e in #(
13744 e) lt_cv_shlibpath_overrides_runpath=no
13745 save_LDFLAGS=$LDFLAGS
13746 save_libdir=$libdir
13747 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13748 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751
13752 int
13753 main (void)
13754 {
13755
13756 ;
13757 return 0;
13758 }
13759 _ACEOF
13760 if ac_fn_c_try_link "$LINENO"
13761 then :
13762 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13763 then :
13764 lt_cv_shlibpath_overrides_runpath=yes
13765 fi
13766 fi
13767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13768 conftest$ac_exeext conftest.$ac_ext
13769 LDFLAGS=$save_LDFLAGS
13770 libdir=$save_libdir
13771 ;;
13772 esac
13773 fi
13774
13775 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13776
13777 # This implies no fast_install, which is unacceptable.
13778 # Some rework will be needed to allow for fast_install
13779 # before this can be enabled.
13780 hardcode_into_libs=yes
13781
13782 # Add ABI-specific directories to the system library path.
13783 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13784
13785 # Ideally, we could use ldconfig to report *all* directories which are
13786 # searched for libraries, however this is still not possible. Aside from not
13787 # being certain /sbin/ldconfig is available, command
13788 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13789 # even though it is searched at run-time. Try to do the best guess by
13790 # appending ld.so.conf contents (and includes) to the search path.
13791 if test -f /etc/ld.so.conf; then
13792 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' ' '`
13793 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13794 fi
13795
13796 # We used to test for /lib/ld.so.1 and disable shared libraries on
13797 # powerpc, because MkLinux only supported shared libraries with the
13798 # GNU dynamic linker. Since this was broken with cross compilers,
13799 # most powerpc-linux boxes support dynamic linking these days and
13800 # people can always --disable-shared, the test was removed, and we
13801 # assume the GNU/Linux dynamic linker is in use.
13802 dynamic_linker='GNU/Linux ld.so'
13803 ;;
13804
13805 netbsdelf*-gnu)
13806 version_type=linux
13807 need_lib_prefix=no
13808 need_version=no
13809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13810 soname_spec='$libname$release$shared_ext$major'
13811 shlibpath_var=LD_LIBRARY_PATH
13812 shlibpath_overrides_runpath=no
13813 hardcode_into_libs=yes
13814 dynamic_linker='NetBSD ld.elf_so'
13815 ;;
13816
13817 netbsd*)
13818 version_type=sunos
13819 need_lib_prefix=no
13820 need_version=no
13821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13822 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13824 dynamic_linker='NetBSD (a.out) ld.so'
13825 else
13826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13827 soname_spec='$libname$release$shared_ext$major'
13828 dynamic_linker='NetBSD ld.elf_so'
13829 fi
13830 shlibpath_var=LD_LIBRARY_PATH
13831 shlibpath_overrides_runpath=yes
13832 hardcode_into_libs=yes
13833 ;;
13834
13835 *-mlibc)
13836 version_type=linux # correct to gnu/linux during the next big refactor
13837 need_lib_prefix=no
13838 need_version=no
13839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13840 soname_spec='$libname$release$shared_ext$major'
13841 dynamic_linker='mlibc ld.so'
13842 shlibpath_var=LD_LIBRARY_PATH
13843 shlibpath_overrides_runpath=no
13844 hardcode_into_libs=yes
13845 ;;
13846
13847 newsos6)
13848 version_type=linux # correct to gnu/linux during the next big refactor
13849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13850 shlibpath_var=LD_LIBRARY_PATH
13851 shlibpath_overrides_runpath=yes
13852 ;;
13853
13854 *nto* | *qnx*)
13855 version_type=qnx
13856 need_lib_prefix=no
13857 need_version=no
13858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13859 soname_spec='$libname$release$shared_ext$major'
13860 shlibpath_var=LD_LIBRARY_PATH
13861 shlibpath_overrides_runpath=no
13862 hardcode_into_libs=yes
13863 dynamic_linker='ldqnx.so'
13864 ;;
13865
13866 openbsd*)
13867 version_type=sunos
13868 sys_lib_dlsearch_path_spec=/usr/lib
13869 need_lib_prefix=no
13870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13871 need_version=no
13872 else
13873 need_version=yes
13874 fi
13875 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13877 shlibpath_var=LD_LIBRARY_PATH
13878 shlibpath_overrides_runpath=yes
13879 ;;
13880
13881 os2*)
13882 libname_spec='$name'
13883 version_type=windows
13884 shrext_cmds=.dll
13885 need_version=no
13886 need_lib_prefix=no
13887 # OS/2 can only load a DLL with a base name of 8 characters or less.
13888 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13889 v=$($ECHO $release$versuffix | tr -d .-);
13890 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13891 $ECHO $n$v`$shared_ext'
13892 library_names_spec='${libname}_dll.$libext'
13893 dynamic_linker='OS/2 ld.exe'
13894 shlibpath_var=BEGINLIBPATH
13895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13897 postinstall_cmds='base_file=`basename \$file`~
13898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13899 dldir=$destdir/`dirname \$dlpath`~
13900 test -d \$dldir || mkdir -p \$dldir~
13901 $install_prog $dir/$dlname \$dldir/$dlname~
13902 chmod a+x \$dldir/$dlname~
13903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13905 fi'
13906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13907 dlpath=$dir/\$dldll~
13908 $RM \$dlpath'
13909 ;;
13910
13911 osf3* | osf4* | osf5*)
13912 version_type=osf
13913 need_lib_prefix=no
13914 need_version=no
13915 soname_spec='$libname$release$shared_ext$major'
13916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13920 ;;
13921
13922 rdos*)
13923 dynamic_linker=no
13924 ;;
13925
13926 serenity*)
13927 version_type=linux # correct to gnu/linux during the next big refactor
13928 need_lib_prefix=no
13929 need_version=no
13930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13931 soname_spec='$libname$release$shared_ext$major'
13932 shlibpath_var=LD_LIBRARY_PATH
13933 shlibpath_overrides_runpath=no
13934 dynamic_linker='SerenityOS LibELF'
13935 ;;
13936
13937 solaris*)
13938 version_type=linux # correct to gnu/linux during the next big refactor
13939 need_lib_prefix=no
13940 need_version=no
13941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13942 soname_spec='$libname$release$shared_ext$major'
13943 shlibpath_var=LD_LIBRARY_PATH
13944 shlibpath_overrides_runpath=yes
13945 hardcode_into_libs=yes
13946 # ldd complains unless libraries are executable
13947 postinstall_cmds='chmod +x $lib'
13948 ;;
13949
13950 sunos4*)
13951 version_type=sunos
13952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13954 shlibpath_var=LD_LIBRARY_PATH
13955 shlibpath_overrides_runpath=yes
13956 if test yes = "$with_gnu_ld"; then
13957 need_lib_prefix=no
13958 fi
13959 need_version=yes
13960 ;;
13961
13962 sysv4 | sysv4.3*)
13963 version_type=linux # correct to gnu/linux during the next big refactor
13964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13965 soname_spec='$libname$release$shared_ext$major'
13966 shlibpath_var=LD_LIBRARY_PATH
13967 case $host_vendor in
13968 sni)
13969 shlibpath_overrides_runpath=no
13970 need_lib_prefix=no
13971 runpath_var=LD_RUN_PATH
13972 ;;
13973 siemens)
13974 need_lib_prefix=no
13975 ;;
13976 motorola)
13977 need_lib_prefix=no
13978 need_version=no
13979 shlibpath_overrides_runpath=no
13980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13981 ;;
13982 esac
13983 ;;
13984
13985 sysv4*MP*)
13986 if test -d /usr/nec; then
13987 version_type=linux # correct to gnu/linux during the next big refactor
13988 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13989 soname_spec='$libname$shared_ext.$major'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 fi
13992 ;;
13993
13994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13995 version_type=sco
13996 need_lib_prefix=no
13997 need_version=no
13998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13999 soname_spec='$libname$release$shared_ext$major'
14000 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes
14002 hardcode_into_libs=yes
14003 if test yes = "$with_gnu_ld"; then
14004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14005 else
14006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14007 case $host_os in
14008 sco3.2v5*)
14009 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14010 ;;
14011 esac
14012 fi
14013 sys_lib_dlsearch_path_spec='/usr/lib'
14014 ;;
14015
14016 tpf*)
14017 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14018 version_type=linux # correct to gnu/linux during the next big refactor
14019 need_lib_prefix=no
14020 need_version=no
14021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14022 shlibpath_var=LD_LIBRARY_PATH
14023 shlibpath_overrides_runpath=no
14024 hardcode_into_libs=yes
14025 ;;
14026
14027 uts4*)
14028 version_type=linux # correct to gnu/linux during the next big refactor
14029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14030 soname_spec='$libname$release$shared_ext$major'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 ;;
14033
14034 emscripten*)
14035 version_type=none
14036 need_lib_prefix=no
14037 need_version=no
14038 library_names_spec='$libname$release$shared_ext'
14039 soname_spec='$libname$release$shared_ext'
14040 finish_cmds=
14041 dynamic_linker="Emscripten linker"
14042 lt_prog_compiler_wl=
14043 lt_prog_compiler_pic=
14044 lt_prog_compiler_static=
14045
14046
14047 if test yes = "$GCC"; then
14048 lt_prog_compiler_wl='-Wl,'
14049 lt_prog_compiler_static='-static'
14050
14051 case $host_os in
14052 aix*)
14053 # All AIX code is PIC.
14054 if test ia64 = "$host_cpu"; then
14055 # AIX 5 now supports IA64 processor
14056 lt_prog_compiler_static='-Bstatic'
14057 fi
14058 lt_prog_compiler_pic='-fPIC'
14059 ;;
14060
14061 amigaos*)
14062 case $host_cpu in
14063 powerpc)
14064 # see comment about AmigaOS4 .so support
14065 lt_prog_compiler_pic='-fPIC'
14066 ;;
14067 m68k)
14068 # FIXME: we need at least 68020 code to build shared libraries, but
14069 # adding the '-m68020' flag to GCC prevents building anything better,
14070 # like '-m68040'.
14071 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14072 ;;
14073 esac
14074 ;;
14075
14076 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14077 # PIC is the default for these OSes.
14078 ;;
14079
14080 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14081 # This hack is so that the source file can tell whether it is being
14082 # built for inclusion in a dll (and should export symbols for example).
14083 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14084 # (--disable-auto-import) libraries
14085 lt_prog_compiler_pic='-DDLL_EXPORT'
14086 case $host_os in
14087 os2*)
14088 lt_prog_compiler_static='$wl-static'
14089 ;;
14090 esac
14091 ;;
14092
14093 darwin* | rhapsody*)
14094 # PIC is the default on this platform
14095 # Common symbols not allowed in MH_DYLIB files
14096 lt_prog_compiler_pic='-fno-common'
14097 ;;
14098
14099 haiku*)
14100 # PIC is the default for Haiku.
14101 # The "-static" flag exists, but is broken.
14102 lt_prog_compiler_static=
14103 ;;
14104
14105 hpux*)
14106 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14107 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14108 # sets the default TLS model and affects inlining.
14109 case $host_cpu in
14110 hppa*64*)
14111 # +Z the default
14112 ;;
14113 *)
14114 lt_prog_compiler_pic='-fPIC'
14115 ;;
14116 esac
14117 ;;
14118
14119 interix[3-9]*)
14120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14121 # Instead, we relocate shared libraries at runtime.
14122 ;;
14123
14124 msdosdjgpp*)
14125 # Just because we use GCC doesn't mean we suddenly get shared libraries
14126 # on systems that don't support them.
14127 lt_prog_compiler_can_build_shared=no
14128 enable_shared=no
14129 ;;
14130
14131 *nto* | *qnx*)
14132 # QNX uses GNU C++, but need to define -shared option too, otherwise
14133 # it will coredump.
14134 lt_prog_compiler_pic='-fPIC -shared'
14135 ;;
14136
14137 sysv4*MP*)
14138 if test -d /usr/nec; then
14139 lt_prog_compiler_pic=-Kconform_pic
14140 fi
14141 ;;
14142
14143 *)
14144 lt_prog_compiler_pic='-fPIC'
14145 ;;
14146 esac
14147
14148 case $cc_basename in
14149 nvcc*) # Cuda Compiler Driver 2.2
14150 lt_prog_compiler_wl='-Xlinker '
14151 if test -n "$lt_prog_compiler_pic"; then
14152 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14153 fi
14154 ;;
14155 esac
14156 else
14157 # PORTME Check for flag to pass linker flags through the system compiler.
14158 case $host_os in
14159 aix*)
14160 lt_prog_compiler_wl='-Wl,'
14161 if test ia64 = "$host_cpu"; then
14162 # AIX 5 now supports IA64 processor
14163 lt_prog_compiler_static='-Bstatic'
14164 else
14165 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14166 fi
14167 ;;
14168
14169 darwin* | rhapsody*)
14170 # PIC is the default on this platform
14171 # Common symbols not allowed in MH_DYLIB files
14172 lt_prog_compiler_pic='-fno-common'
14173 case $cc_basename in
14174 nagfor*)
14175 # NAG Fortran compiler
14176 lt_prog_compiler_wl='-Wl,-Wl,,'
14177 lt_prog_compiler_pic='-PIC'
14178 lt_prog_compiler_static='-Bstatic'
14179 ;;
14180 esac
14181 ;;
14182
14183 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14184 # This hack is so that the source file can tell whether it is being
14185 # built for inclusion in a dll (and should export symbols for example).
14186 lt_prog_compiler_pic='-DDLL_EXPORT'
14187 case $host_os in
14188 os2*)
14189 lt_prog_compiler_static='$wl-static'
14190 ;;
14191 esac
14192 ;;
14193
14194 hpux9* | hpux10* | hpux11*)
14195 lt_prog_compiler_wl='-Wl,'
14196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14197 # not for PA HP-UX.
14198 case $host_cpu in
14199 hppa*64*|ia64*)
14200 # +Z the default
14201 ;;
14202 *)
14203 lt_prog_compiler_pic='+Z'
14204 ;;
14205 esac
14206 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14207 lt_prog_compiler_static='$wl-a ${wl}archive'
14208 ;;
14209
14210 irix5* | irix6* | nonstopux*)
14211 lt_prog_compiler_wl='-Wl,'
14212 # PIC (with -KPIC) is the default.
14213 lt_prog_compiler_static='-non_shared'
14214 ;;
14215
14216 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14217 case $cc_basename in
14218 # old Intel for x86_64, which still supported -KPIC.
14219 ecc*)
14220 lt_prog_compiler_wl='-Wl,'
14221 lt_prog_compiler_pic='-KPIC'
14222 lt_prog_compiler_static='-static'
14223 ;;
14224 *flang* | ftn | f18* | f95*)
14225 # Flang compiler.
14226 lt_prog_compiler_wl='-Wl,'
14227 lt_prog_compiler_pic='-fPIC'
14228 lt_prog_compiler_static='-static'
14229 ;;
14230 # icc used to be incompatible with GCC.
14231 # ICC 10 doesn't accept -KPIC any more.
14232 icc* | ifort*)
14233 lt_prog_compiler_wl='-Wl,'
14234 lt_prog_compiler_pic='-fPIC'
14235 lt_prog_compiler_static='-static'
14236 ;;
14237 # Lahey Fortran 8.1.
14238 lf95*)
14239 lt_prog_compiler_wl='-Wl,'
14240 lt_prog_compiler_pic='--shared'
14241 lt_prog_compiler_static='--static'
14242 ;;
14243 nagfor*)
14244 # NAG Fortran compiler
14245 lt_prog_compiler_wl='-Wl,-Wl,,'
14246 lt_prog_compiler_pic='-PIC'
14247 lt_prog_compiler_static='-Bstatic'
14248 ;;
14249 tcc*)
14250 # Fabrice Bellard et al's Tiny C Compiler
14251 lt_prog_compiler_wl='-Wl,'
14252 lt_prog_compiler_pic='-fPIC'
14253 lt_prog_compiler_static='-static'
14254 ;;
14255 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14256 # Portland Group compilers (*not* the Pentium gcc compiler,
14257 # which looks to be a dead project)
14258 lt_prog_compiler_wl='-Wl,'
14259 lt_prog_compiler_pic='-fpic'
14260 lt_prog_compiler_static='-Bstatic'
14261 ;;
14262 ccc*)
14263 lt_prog_compiler_wl='-Wl,'
14264 # All Alpha code is PIC.
14265 lt_prog_compiler_static='-non_shared'
14266 ;;
14267 xl* | bgxl* | bgf* | mpixl*)
14268 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14269 lt_prog_compiler_wl='-Wl,'
14270 lt_prog_compiler_pic='-qpic'
14271 lt_prog_compiler_static='-qstaticlink'
14272 ;;
14273 *)
14274 case `$CC -V 2>&1 | $SED 5q` in
14275 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14276 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14277 lt_prog_compiler_pic='-KPIC'
14278 lt_prog_compiler_static='-Bstatic'
14279 lt_prog_compiler_wl=''
14280 ;;
14281 *Sun\ F* | *Sun*Fortran*)
14282 lt_prog_compiler_pic='-KPIC'
14283 lt_prog_compiler_static='-Bstatic'
14284 lt_prog_compiler_wl='-Qoption ld '
14285 ;;
14286 *Sun\ C*)
14287 # Sun C 5.9
14288 lt_prog_compiler_pic='-KPIC'
14289 lt_prog_compiler_static='-Bstatic'
14290 lt_prog_compiler_wl='-Wl,'
14291 ;;
14292 *Intel*\ [CF]*Compiler*)
14293 lt_prog_compiler_wl='-Wl,'
14294 lt_prog_compiler_pic='-fPIC'
14295 lt_prog_compiler_static='-static'
14296 ;;
14297 *Portland\ Group*)
14298 lt_prog_compiler_wl='-Wl,'
14299 lt_prog_compiler_pic='-fpic'
14300 lt_prog_compiler_static='-Bstatic'
14301 ;;
14302 esac
14303 ;;
14304 esac
14305 ;;
14306
14307 newsos6)
14308 lt_prog_compiler_pic='-KPIC'
14309 lt_prog_compiler_static='-Bstatic'
14310 ;;
14311
14312 *-mlibc)
14313 lt_prog_compiler_wl='-Wl,'
14314 lt_prog_compiler_pic='-fPIC'
14315 lt_prog_compiler_static='-static'
14316 ;;
14317
14318 *nto* | *qnx*)
14319 # QNX uses GNU C++, but need to define -shared option too, otherwise
14320 # it will coredump.
14321 lt_prog_compiler_pic='-fPIC -shared'
14322 ;;
14323
14324 osf3* | osf4* | osf5*)
14325 lt_prog_compiler_wl='-Wl,'
14326 # All OSF/1 code is PIC.
14327 lt_prog_compiler_static='-non_shared'
14328 ;;
14329
14330 rdos*)
14331 lt_prog_compiler_static='-non_shared'
14332 ;;
14333
14334 serenity*)
14335 ;;
14336
14337 solaris*)
14338 lt_prog_compiler_pic='-KPIC'
14339 lt_prog_compiler_static='-Bstatic'
14340 case $cc_basename in
14341 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14342 lt_prog_compiler_wl='-Qoption ld ';;
14343 *)
14344 lt_prog_compiler_wl='-Wl,';;
14345 esac
14346 ;;
14347
14348 sunos4*)
14349 lt_prog_compiler_wl='-Qoption ld '
14350 lt_prog_compiler_pic='-PIC'
14351 lt_prog_compiler_static='-Bstatic'
14352 ;;
14353
14354 sysv4 | sysv4.2uw2* | sysv4.3*)
14355 lt_prog_compiler_wl='-Wl,'
14356 lt_prog_compiler_pic='-KPIC'
14357 lt_prog_compiler_static='-Bstatic'
14358 ;;
14359
14360 sysv4*MP*)
14361 if test -d /usr/nec; then
14362 lt_prog_compiler_pic='-Kconform_pic'
14363 lt_prog_compiler_static='-Bstatic'
14364 fi
14365 ;;
14366
14367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14368 lt_prog_compiler_wl='-Wl,'
14369 lt_prog_compiler_pic='-KPIC'
14370 lt_prog_compiler_static='-Bstatic'
14371 ;;
14372
14373 unicos*)
14374 lt_prog_compiler_wl='-Wl,'
14375 lt_prog_compiler_can_build_shared=no
14376 ;;
14377
14378 uts4*)
14379 lt_prog_compiler_pic='-pic'
14380 lt_prog_compiler_static='-Bstatic'
14381 ;;
14382
14383 *)
14384 lt_prog_compiler_can_build_shared=no
14385 ;;
14386 esac
14387 fi
14388
14389 case $host_os in
14390 # For platforms that do not support PIC, -DPIC is meaningless:
14391 *djgpp*)
14392 lt_prog_compiler_pic=
14393 ;;
14394 *)
14395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14396 ;;
14397 esac
14398
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14400 printf %s "checking for $compiler option to produce PIC... " >&6; }
14401 if test ${lt_cv_prog_compiler_pic+y}
14402 then :
14403 printf %s "(cached) " >&6
14404 else case e in #(
14405 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14406 esac
14407 fi
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14409 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14410 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14411
14412 #
14413 # Check to make sure the PIC flag actually works.
14414 #
14415 if test -n "$lt_prog_compiler_pic"; then
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14417 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14418 if test ${lt_cv_prog_compiler_pic_works+y}
14419 then :
14420 printf %s "(cached) " >&6
14421 else case e in #(
14422 e) lt_cv_prog_compiler_pic_works=no
14423 ac_outfile=conftest.$ac_objext
14424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14425 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14426 # Insert the option either (1) after the last *FLAGS variable, or
14427 # (2) before a word containing "conftest.", or (3) at the end.
14428 # Note that $ac_compile itself does not contain backslashes and begins
14429 # with a dollar sign (not a hyphen), so the echo should work correctly.
14430 # The option is referenced via a variable to avoid confusing sed.
14431 lt_compile=`echo "$ac_compile" | $SED \
14432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14434 -e 's:$: $lt_compiler_flag:'`
14435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14436 (eval "$lt_compile" 2>conftest.err)
14437 ac_status=$?
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 if (exit $ac_status) && test -s "$ac_outfile"; then
14441 # The compiler can only warn and ignore the option if not recognized
14442 # So say no if there are warnings other than the usual output.
14443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14446 lt_cv_prog_compiler_pic_works=yes
14447 fi
14448 fi
14449 $RM conftest*
14450 ;;
14451 esac
14452 fi
14453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14454 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14455
14456 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14457 case $lt_prog_compiler_pic in
14458 "" | " "*) ;;
14459 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14460 esac
14461 else
14462 lt_prog_compiler_pic=
14463 lt_prog_compiler_can_build_shared=no
14464 fi
14465
14466 fi
14467
14468
14469
14470
14471
14472 #
14473 # Check to make sure the static flag actually works.
14474 #
14475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14477 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14478 if test ${lt_cv_prog_compiler_static_works+y}
14479 then :
14480 printf %s "(cached) " >&6
14481 else case e in #(
14482 e) lt_cv_prog_compiler_static_works=no
14483 save_LDFLAGS=$LDFLAGS
14484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14487 # The linker can only warn and ignore the option if not recognized
14488 # So say no if there are warnings
14489 if test -s conftest.err; then
14490 # Append any errors to the config.log.
14491 cat conftest.err 1>&5
14492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14494 if diff conftest.exp conftest.er2 >/dev/null; then
14495 lt_cv_prog_compiler_static_works=yes
14496 fi
14497 else
14498 lt_cv_prog_compiler_static_works=yes
14499 fi
14500 fi
14501 $RM -r conftest*
14502 LDFLAGS=$save_LDFLAGS
14503 ;;
14504 esac
14505 fi
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14507 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14508
14509 if test yes = "$lt_cv_prog_compiler_static_works"; then
14510 :
14511 else
14512 lt_prog_compiler_static=
14513 fi
14514
14515
14516
14517 ='-fPIC'
14518 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14519 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'
14520 archive_cmds_need_lc=no
14521 no_undefined_flag=
14522 ;;
14523
14524 *)
14525 dynamic_linker=no
14526 ;;
14527 esac
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14529 printf "%s\n" "$dynamic_linker" >&6; }
14530 test no = "$dynamic_linker" && can_build_shared=no
14531
14532 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14533 if test yes = "$GCC"; then
14534 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14535 fi
14536
14537 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14538 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14539 fi
14540
14541 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14542 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14543 fi
14544
14545 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14546 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14547
14548 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14549 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14550
14551 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14552 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14651 printf %s "checking how to hardcode library paths into programs... " >&6; }
14652 hardcode_action=
14653 if test -n "$hardcode_libdir_flag_spec" ||
14654 test -n "$runpath_var" ||
14655 test yes = "$hardcode_automatic"; then
14656
14657 # We can hardcode non-existent directories.
14658 if test no != "$hardcode_direct" &&
14659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14660 # have to relink, otherwise we might link with an installed library
14661 # when we should be linking with a yet-to-be-installed one
14662 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14663 test no != "$hardcode_minus_L"; then
14664 # Linking always hardcodes the temporary library directory.
14665 hardcode_action=relink
14666 else
14667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14668 hardcode_action=immediate
14669 fi
14670 else
14671 # We cannot hardcode anything, or else we can only hardcode existing
14672 # directories.
14673 hardcode_action=unsupported
14674 fi
14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14676 printf "%s\n" "$hardcode_action" >&6; }
14677
14678 if test relink = "$hardcode_action" ||
14679 test yes = "$inherit_rpath"; then
14680 # Fast installation is not supported
14681 enable_fast_install=no
14682 elif test yes = "$shlibpath_overrides_runpath" ||
14683 test no = "$enable_shared"; then
14684 # Fast installation is not necessary
14685 enable_fast_install=needless
14686 fi
14687
14688
14689
14690
14691
14692
14693 if test yes != "$enable_dlopen"; then
14694 enable_dlopen=unknown
14695 enable_dlopen_self=unknown
14696 enable_dlopen_self_static=unknown
14697 else
14698 lt_cv_dlopen=no
14699 lt_cv_dlopen_libs=
14700
14701 case $host_os in
14702 beos*)
14703 lt_cv_dlopen=load_add_on
14704 lt_cv_dlopen_libs=
14705 lt_cv_dlopen_self=yes
14706 ;;
14707
14708 mingw* | windows* | pw32* | cegcc*)
14709 lt_cv_dlopen=LoadLibrary
14710 lt_cv_dlopen_libs=
14711 ;;
14712
14713 cygwin*)
14714 lt_cv_dlopen=dlopen
14715 lt_cv_dlopen_libs=
14716 ;;
14717
14718 darwin*)
14719 # if libdl is installed we need to link against it
14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14721 printf %s "checking for dlopen in -ldl... " >&6; }
14722 if test ${ac_cv_lib_dl_dlopen+y}
14723 then :
14724 printf %s "(cached) " >&6
14725 else case e in #(
14726 e) ac_check_lib_save_LIBS=$LIBS
14727 LIBS="-ldl $LIBS"
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14730
14731 /* Override any GCC internal prototype to avoid an error.
14732 Use char because int might match the return type of a GCC
14733 builtin and then its argument prototype would still apply.
14734 The 'extern "C"' is for builds by C++ compilers;
14735 although this is not generally supported in C code supporting it here
14736 has little cost and some practical benefit (sr 110532). */
14737 #ifdef __cplusplus
14738 extern "C"
14739 #endif
14740 char dlopen (void);
14741 int
14742 main (void)
14743 {
14744 return dlopen ();
14745 ;
14746 return 0;
14747 }
14748 _ACEOF
14749 if ac_fn_c_try_link "$LINENO"
14750 then :
14751 ac_cv_lib_dl_dlopen=yes
14752 else case e in #(
14753 e) ac_cv_lib_dl_dlopen=no ;;
14754 esac
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14757 conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS ;;
14759 esac
14760 fi
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14762 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14763 if test "x$ac_cv_lib_dl_dlopen" = xyes
14764 then :
14765 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14766 else case e in #(
14767 e)
14768 lt_cv_dlopen=dyld
14769 lt_cv_dlopen_libs=
14770 lt_cv_dlopen_self=yes
14771 ;;
14772 esac
14773 fi
14774
14775 ;;
14776
14777 tpf*)
14778 # Don't try to run any link tests for TPF. We know it's impossible
14779 # because TPF is a cross-compiler, and we know how we open DSOs.
14780 lt_cv_dlopen=dlopen
14781 lt_cv_dlopen_libs=
14782 lt_cv_dlopen_self=no
14783 ;;
14784
14785 *)
14786 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14787 if test "x$ac_cv_func_shl_load" = xyes
14788 then :
14789 lt_cv_dlopen=shl_load
14790 else case e in #(
14791 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14792 printf %s "checking for shl_load in -ldld... " >&6; }
14793 if test ${ac_cv_lib_dld_shl_load+y}
14794 then :
14795 printf %s "(cached) " >&6
14796 else case e in #(
14797 e) ac_check_lib_save_LIBS=$LIBS
14798 LIBS="-ldld $LIBS"
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14801
14802 /* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply.
14805 The 'extern "C"' is for builds by C++ compilers;
14806 although this is not generally supported in C code supporting it here
14807 has little cost and some practical benefit (sr 110532). */
14808 #ifdef __cplusplus
14809 extern "C"
14810 #endif
14811 char shl_load (void);
14812 int
14813 main (void)
14814 {
14815 return shl_load ();
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_c_try_link "$LINENO"
14821 then :
14822 ac_cv_lib_dld_shl_load=yes
14823 else case e in #(
14824 e) ac_cv_lib_dld_shl_load=no ;;
14825 esac
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS ;;
14830 esac
14831 fi
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14833 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14834 if test "x$ac_cv_lib_dld_shl_load" = xyes
14835 then :
14836 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14837 else case e in #(
14838 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14839 if test "x$ac_cv_func_dlopen" = xyes
14840 then :
14841 lt_cv_dlopen=dlopen
14842 else case e in #(
14843 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14844 printf %s "checking for dlopen in -ldl... " >&6; }
14845 if test ${ac_cv_lib_dl_dlopen+y}
14846 then :
14847 printf %s "(cached) " >&6
14848 else case e in #(
14849 e) ac_check_lib_save_LIBS=$LIBS
14850 LIBS="-ldl $LIBS"
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853
14854 /* Override any GCC internal prototype to avoid an error.
14855 Use char because int might match the return type of a GCC
14856 builtin and then its argument prototype would still apply.
14857 The 'extern "C"' is for builds by C++ compilers;
14858 although this is not generally supported in C code supporting it here
14859 has little cost and some practical benefit (sr 110532). */
14860 #ifdef __cplusplus
14861 extern "C"
14862 #endif
14863 char dlopen (void);
14864 int
14865 main (void)
14866 {
14867 return dlopen ();
14868 ;
14869 return 0;
14870 }
14871 _ACEOF
14872 if ac_fn_c_try_link "$LINENO"
14873 then :
14874 ac_cv_lib_dl_dlopen=yes
14875 else case e in #(
14876 e) ac_cv_lib_dl_dlopen=no ;;
14877 esac
14878 fi
14879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14880 conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS ;;
14882 esac
14883 fi
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14885 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14886 if test "x$ac_cv_lib_dl_dlopen" = xyes
14887 then :
14888 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14889 else case e in #(
14890 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14891 printf %s "checking for dlopen in -lsvld... " >&6; }
14892 if test ${ac_cv_lib_svld_dlopen+y}
14893 then :
14894 printf %s "(cached) " >&6
14895 else case e in #(
14896 e) ac_check_lib_save_LIBS=$LIBS
14897 LIBS="-lsvld $LIBS"
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14900
14901 /* Override any GCC internal prototype to avoid an error.
14902 Use char because int might match the return type of a GCC
14903 builtin and then its argument prototype would still apply.
14904 The 'extern "C"' is for builds by C++ compilers;
14905 although this is not generally supported in C code supporting it here
14906 has little cost and some practical benefit (sr 110532). */
14907 #ifdef __cplusplus
14908 extern "C"
14909 #endif
14910 char dlopen (void);
14911 int
14912 main (void)
14913 {
14914 return dlopen ();
14915 ;
14916 return 0;
14917 }
14918 _ACEOF
14919 if ac_fn_c_try_link "$LINENO"
14920 then :
14921 ac_cv_lib_svld_dlopen=yes
14922 else case e in #(
14923 e) ac_cv_lib_svld_dlopen=no ;;
14924 esac
14925 fi
14926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14927 conftest$ac_exeext conftest.$ac_ext
14928 LIBS=$ac_check_lib_save_LIBS ;;
14929 esac
14930 fi
14931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14932 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14933 if test "x$ac_cv_lib_svld_dlopen" = xyes
14934 then :
14935 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14936 else case e in #(
14937 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14938 printf %s "checking for dld_link in -ldld... " >&6; }
14939 if test ${ac_cv_lib_dld_dld_link+y}
14940 then :
14941 printf %s "(cached) " >&6
14942 else case e in #(
14943 e) ac_check_lib_save_LIBS=$LIBS
14944 LIBS="-ldld $LIBS"
14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h. */
14947
14948 /* Override any GCC internal prototype to avoid an error.
14949 Use char because int might match the return type of a GCC
14950 builtin and then its argument prototype would still apply.
14951 The 'extern "C"' is for builds by C++ compilers;
14952 although this is not generally supported in C code supporting it here
14953 has little cost and some practical benefit (sr 110532). */
14954 #ifdef __cplusplus
14955 extern "C"
14956 #endif
14957 char dld_link (void);
14958 int
14959 main (void)
14960 {
14961 return dld_link ();
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 if ac_fn_c_try_link "$LINENO"
14967 then :
14968 ac_cv_lib_dld_dld_link=yes
14969 else case e in #(
14970 e) ac_cv_lib_dld_dld_link=no ;;
14971 esac
14972 fi
14973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14974 conftest$ac_exeext conftest.$ac_ext
14975 LIBS=$ac_check_lib_save_LIBS ;;
14976 esac
14977 fi
14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14979 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14980 if test "x$ac_cv_lib_dld_dld_link" = xyes
14981 then :
14982 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14983 fi
14984
14985 ;;
14986 esac
14987 fi
14988
14989 ;;
14990 esac
14991 fi
14992
14993 ;;
14994 esac
14995 fi
14996
14997 ;;
14998 esac
14999 fi
15000
15001 ;;
15002 esac
15003 fi
15004
15005 ;;
15006 esac
15007
15008 if test no = "$lt_cv_dlopen"; then
15009 enable_dlopen=no
15010 else
15011 enable_dlopen=yes
15012 fi
15013
15014 case $lt_cv_dlopen in
15015 dlopen)
15016 save_CPPFLAGS=$CPPFLAGS
15017 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15018
15019 save_LDFLAGS=$LDFLAGS
15020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15021
15022 save_LIBS=$LIBS
15023 LIBS="$lt_cv_dlopen_libs $LIBS"
15024
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15026 printf %s "checking whether a program can dlopen itself... " >&6; }
15027 if test ${lt_cv_dlopen_self+y}
15028 then :
15029 printf %s "(cached) " >&6
15030 else case e in #(
15031 e) if test yes = "$cross_compiling"; then :
15032 lt_cv_dlopen_self=cross
15033 else
15034 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15035 lt_status=$lt_dlunknown
15036 cat > conftest.$ac_ext <<_LT_EOF
15037 #line $LINENO "configure"
15038 #include "confdefs.h"
15039
15040 #if HAVE_DLFCN_H
15041 #include <dlfcn.h>
15042 #endif
15043
15044 #include <stdio.h>
15045
15046 #ifdef RTLD_GLOBAL
15047 # define LT_DLGLOBAL RTLD_GLOBAL
15048 #else
15049 # ifdef DL_GLOBAL
15050 # define LT_DLGLOBAL DL_GLOBAL
15051 # else
15052 # define LT_DLGLOBAL 0
15053 # endif
15054 #endif
15055
15056 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15057 find out it does not work in some platform. */
15058 #ifndef LT_DLLAZY_OR_NOW
15059 # ifdef RTLD_LAZY
15060 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15061 # else
15062 # ifdef DL_LAZY
15063 # define LT_DLLAZY_OR_NOW DL_LAZY
15064 # else
15065 # ifdef RTLD_NOW
15066 # define LT_DLLAZY_OR_NOW RTLD_NOW
15067 # else
15068 # ifdef DL_NOW
15069 # define LT_DLLAZY_OR_NOW DL_NOW
15070 # else
15071 # define LT_DLLAZY_OR_NOW 0
15072 # endif
15073 # endif
15074 # endif
15075 # endif
15076 #endif
15077
15078 /* When -fvisibility=hidden is used, assume the code has been annotated
15079 correspondingly for the symbols needed. */
15080 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15081 int fnord (void) __attribute__((visibility("default")));
15082 #endif
15083
15084 int fnord (void) { return 42; }
15085 int main (void)
15086 {
15087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15088 int status = $lt_dlunknown;
15089
15090 if (self)
15091 {
15092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15093 else
15094 {
15095 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15096 else puts (dlerror ());
15097 }
15098 /* dlclose (self); */
15099 }
15100 else
15101 puts (dlerror ());
15102
15103 return status;
15104 }
15105 _LT_EOF
15106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15107 (eval $ac_link) 2>&5
15108 ac_status=$?
15109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15110 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15111 (./conftest; exit; ) >&5 2>/dev/null
15112 lt_status=$?
15113 case x$lt_status in
15114 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15115 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15116 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15117 esac
15118 else :
15119 # compilation failed
15120 lt_cv_dlopen_self=no
15121 fi
15122 fi
15123 rm -fr conftest*
15124
15125 ;;
15126 esac
15127 fi
15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15129 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15130
15131 if test yes = "$lt_cv_dlopen_self"; then
15132 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15134 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15135 if test ${lt_cv_dlopen_self_static+y}
15136 then :
15137 printf %s "(cached) " >&6
15138 else case e in #(
15139 e) if test yes = "$cross_compiling"; then :
15140 lt_cv_dlopen_self_static=cross
15141 else
15142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15143 lt_status=$lt_dlunknown
15144 cat > conftest.$ac_ext <<_LT_EOF
15145 #line $LINENO "configure"
15146 #include "confdefs.h"
15147
15148 #if HAVE_DLFCN_H
15149 #include <dlfcn.h>
15150 #endif
15151
15152 #include <stdio.h>
15153
15154 #ifdef RTLD_GLOBAL
15155 # define LT_DLGLOBAL RTLD_GLOBAL
15156 #else
15157 # ifdef DL_GLOBAL
15158 # define LT_DLGLOBAL DL_GLOBAL
15159 # else
15160 # define LT_DLGLOBAL 0
15161 # endif
15162 #endif
15163
15164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15165 find out it does not work in some platform. */
15166 #ifndef LT_DLLAZY_OR_NOW
15167 # ifdef RTLD_LAZY
15168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15169 # else
15170 # ifdef DL_LAZY
15171 # define LT_DLLAZY_OR_NOW DL_LAZY
15172 # else
15173 # ifdef RTLD_NOW
15174 # define LT_DLLAZY_OR_NOW RTLD_NOW
15175 # else
15176 # ifdef DL_NOW
15177 # define LT_DLLAZY_OR_NOW DL_NOW
15178 # else
15179 # define LT_DLLAZY_OR_NOW 0
15180 # endif
15181 # endif
15182 # endif
15183 # endif
15184 #endif
15185
15186 /* When -fvisibility=hidden is used, assume the code has been annotated
15187 correspondingly for the symbols needed. */
15188 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15189 int fnord (void) __attribute__((visibility("default")));
15190 #endif
15191
15192 int fnord (void) { return 42; }
15193 int main (void)
15194 {
15195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15196 int status = $lt_dlunknown;
15197
15198 if (self)
15199 {
15200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15201 else
15202 {
15203 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15204 else puts (dlerror ());
15205 }
15206 /* dlclose (self); */
15207 }
15208 else
15209 puts (dlerror ());
15210
15211 return status;
15212 }
15213 _LT_EOF
15214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15215 (eval $ac_link) 2>&5
15216 ac_status=$?
15217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15218 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15219 (./conftest; exit; ) >&5 2>/dev/null
15220 lt_status=$?
15221 case x$lt_status in
15222 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15223 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15224 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15225 esac
15226 else :
15227 # compilation failed
15228 lt_cv_dlopen_self_static=no
15229 fi
15230 fi
15231 rm -fr conftest*
15232
15233 ;;
15234 esac
15235 fi
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15237 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15238 fi
15239
15240 CPPFLAGS=$save_CPPFLAGS
15241 LDFLAGS=$save_LDFLAGS
15242 LIBS=$save_LIBS
15243 ;;
15244 esac
15245
15246 case $lt_cv_dlopen_self in
15247 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15248 *) enable_dlopen_self=unknown ;;
15249 esac
15250
15251 case $lt_cv_dlopen_self_static in
15252 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15253 *) enable_dlopen_self_static=unknown ;;
15254 esac
15255 fi
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273 striplib=
15274 old_striplib=
15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15276 printf %s "checking whether stripping libraries is possible... " >&6; }
15277 if test -z "$STRIP"; then
15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 printf "%s\n" "no" >&6; }
15280 else
15281 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15282 old_striplib="$STRIP --strip-debug"
15283 striplib="$STRIP --strip-unneeded"
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15285 printf "%s\n" "yes" >&6; }
15286 else
15287 case $host_os in
15288 darwin*)
15289 # FIXME - insert some real tests, host_os isn't really good enough
15290 striplib="$STRIP -x"
15291 old_striplib="$STRIP -S"
15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15293 printf "%s\n" "yes" >&6; }
15294 ;;
15295 freebsd*)
15296 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15297 old_striplib="$STRIP --strip-debug"
15298 striplib="$STRIP --strip-unneeded"
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15300 printf "%s\n" "yes" >&6; }
15301 else
15302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15303 printf "%s\n" "no" >&6; }
15304 fi
15305 ;;
15306 *)
15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 printf "%s\n" "no" >&6; }
15309 ;;
15310 esac
15311 fi
15312 fi
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325 # Report what library types will actually be built
15326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15327 printf %s "checking if libtool supports shared libraries... " >&6; }
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15329 printf "%s\n" "$can_build_shared" >&6; }
15330
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15332 printf %s "checking whether to build shared libraries... " >&6; }
15333 test no = "$can_build_shared" && enable_shared=no
15334
15335 # On AIX, shared libraries and static libraries use the same namespace, and
15336 # are all built from PIC.
15337 case $host_os in
15338 aix3*)
15339 test yes = "$enable_shared" && enable_static=no
15340 if test -n "$RANLIB"; then
15341 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15342 postinstall_cmds='$RANLIB $lib'
15343 fi
15344 ;;
15345
15346 aix[4-9]*)
15347 if test ia64 != "$host_cpu"; then
15348 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15349 yes,aix,yes) ;; # shared object as lib.so file only
15350 yes,svr4,*) ;; # shared object as lib.so archive member only
15351 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15352 esac
15353 fi
15354 ;;
15355 esac
15356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15357 printf "%s\n" "$enable_shared" >&6; }
15358
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15360 printf %s "checking whether to build static libraries... " >&6; }
15361 # Make sure either enable_shared or enable_static is yes.
15362 test yes = "$enable_shared" || enable_static=yes
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15364 printf "%s\n" "$enable_static" >&6; }
15365
15366
15367
15368
15369 fi
15370 ac_ext=c
15371 ac_cpp='$CPP $CPPFLAGS'
15372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15375
15376 CC=$lt_save_CC
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392 ac_config_commands="$ac_config_commands libtool"
15393
15394
15395
15396
15397 # Only expand once:
15398
15399
15400
15401 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15402 if test "x$ac_cv_header_fcntl_h" = xyes
15403 then :
15404 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15405
15406 fi
15407 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
15408 if test "x$ac_cv_header_paths_h" = xyes
15409 then :
15410 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
15411
15412 fi
15413 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
15414 if test "x$ac_cv_header_sys_ioctl_h" = xyes
15415 then :
15416 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
15417
15418 fi
15419 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15420 if test "x$ac_cv_header_sys_time_h" = xyes
15421 then :
15422 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
15423
15424 fi
15425 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15426 if test "x$ac_cv_header_syslog_h" = xyes
15427 then :
15428 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
15429
15430 fi
15431 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15432 if test "x$ac_cv_header_unistd_h" = xyes
15433 then :
15434 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15435
15436 fi
15437
15438
15439 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15440 if test "x$ac_cv_type_mode_t" = xyes
15441 then :
15442
15443 else case e in #(
15444 e)
15445 printf "%s\n" "#define mode_t int" >>confdefs.h
15446 ;;
15447 esac
15448 fi
15449
15450
15451 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
15452 "
15453 if test "x$ac_cv_type_pid_t" = xyes
15454 then :
15455
15456 else case e in #(
15457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h. */
15459
15460 #if defined _WIN64 && !defined __CYGWIN__
15461 LLP64
15462 #endif
15463
15464 int
15465 main (void)
15466 {
15467
15468 ;
15469 return 0;
15470 }
15471
15472 _ACEOF
15473 if ac_fn_c_try_compile "$LINENO"
15474 then :
15475 ac_pid_type='int'
15476 else case e in #(
15477 e) ac_pid_type='__int64' ;;
15478 esac
15479 fi
15480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15481
15482 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
15483
15484 ;;
15485 esac
15486 fi
15487
15488
15489
15490
15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15492 printf %s "checking for working memcmp... " >&6; }
15493 if test ${ac_cv_func_memcmp_working+y}
15494 then :
15495 printf %s "(cached) " >&6
15496 else case e in #(
15497 e) if test "$cross_compiling" = yes
15498 then :
15499 ac_cv_func_memcmp_working=no
15500 else case e in #(
15501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 int
15505 main (void)
15506 {
15507
15508 /* Some versions of memcmp are not 8-bit clean. */
15509 char c0 = '\100', c1 = '\200', c2 = '\201';
15510 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15511 return 1;
15512
15513 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15514 or more and with at least one buffer not starting on a 4-byte boundary.
15515 William Lewis provided this test program. */
15516 {
15517 char foo[21];
15518 char bar[21];
15519 int i;
15520 for (i = 0; i < 4; i++)
15521 {
15522 char *a = foo + i;
15523 char *b = bar + i;
15524 strcpy (a, "--------01111111");
15525 strcpy (b, "--------10000000");
15526 if (memcmp (a, b, 16) >= 0)
15527 return 1;
15528 }
15529 return 0;
15530 }
15531
15532 ;
15533 return 0;
15534 }
15535 _ACEOF
15536 if ac_fn_c_try_run "$LINENO"
15537 then :
15538 ac_cv_func_memcmp_working=yes
15539 else case e in #(
15540 e) ac_cv_func_memcmp_working=no ;;
15541 esac
15542 fi
15543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15544 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15545 esac
15546 fi
15547 ;;
15548 esac
15549 fi
15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15551 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
15552 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15553 *" memcmp.$ac_objext "* ) ;;
15554 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15555 ;;
15556 esac
15557
15558
15559 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
15560 if test "x$ac_cv_func_select" = xyes
15561 then :
15562 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
15563
15564 fi
15565 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15566 if test "x$ac_cv_func_socket" = xyes
15567 then :
15568 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
15569
15570 fi
15571 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
15572 if test "x$ac_cv_func_uname" = xyes
15573 then :
15574 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
15575
15576 fi
15577
15578
15579
15580
15581 NM_GIT_SHA=
15582 if test """" != "no-config-h" ; then
15583
15584 printf "%s\n" "#define NM_GIT_SHA \"$NM_GIT_SHA\"" >>confdefs.h
15585
15586 fi
15587
15588
15589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15590 printf %s "checking for library containing dlopen... " >&6; }
15591 if test ${ac_cv_search_dlopen+y}
15592 then :
15593 printf %s "(cached) " >&6
15594 else case e in #(
15595 e) ac_func_search_save_LIBS=$LIBS
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598
15599 /* Override any GCC internal prototype to avoid an error.
15600 Use char because int might match the return type of a GCC
15601 builtin and then its argument prototype would still apply.
15602 The 'extern "C"' is for builds by C++ compilers;
15603 although this is not generally supported in C code supporting it here
15604 has little cost and some practical benefit (sr 110532). */
15605 #ifdef __cplusplus
15606 extern "C"
15607 #endif
15608 char dlopen (void);
15609 int
15610 main (void)
15611 {
15612 return dlopen ();
15613 ;
15614 return 0;
15615 }
15616 _ACEOF
15617 for ac_lib in '' dl dld
15618 do
15619 if test -z "$ac_lib"; then
15620 ac_res="none required"
15621 else
15622 ac_res=-l$ac_lib
15623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15624 fi
15625 if ac_fn_c_try_link "$LINENO"
15626 then :
15627 ac_cv_search_dlopen=$ac_res
15628 fi
15629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15630 conftest$ac_exeext
15631 if test ${ac_cv_search_dlopen+y}
15632 then :
15633 break
15634 fi
15635 done
15636 if test ${ac_cv_search_dlopen+y}
15637 then :
15638
15639 else case e in #(
15640 e) ac_cv_search_dlopen=no ;;
15641 esac
15642 fi
15643 rm conftest.$ac_ext
15644 LIBS=$ac_func_search_save_LIBS ;;
15645 esac
15646 fi
15647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15648 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
15649 ac_res=$ac_cv_search_dlopen
15650 if test "$ac_res" != no
15651 then :
15652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15653
15654 else case e in #(
15655 e) ac_cv_search_dlopen= ;;
15656 esac
15657 fi
15658
15659 DL_LIBS="$ac_cv_search_dlopen"
15660
15661
15662 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
15663 if test -n "$ac_macro_dir"; then
15664 ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
15665 fi
15666
15667
15668
15669 # Check whether --with-gnome was given.
15670 if test ${with_gnome+y}
15671 then :
15672 withval=$with_gnome;
15673 else case e in #(
15674 e) with_gnome_specified=no ;;
15675 esac
15676 fi
15677
15678
15679 # Check whether --with-gtk4 was given.
15680 if test ${with_gtk4+y}
15681 then :
15682 withval=$with_gtk4;
15683 else case e in #(
15684 e) with_gtk4_specified=no ;;
15685 esac
15686 fi
15687
15688 if test "$with_gnome" != no; then
15689 with_gnome=yes
15690 fi
15691 if test "$with_gtk4_specified" == no; then
15692 with_gtk4=no
15693 fi
15694 if test "$with_gtk4" != yes; then
15695 with_gtk4=no
15696 fi
15697 if test "$with_gnome" != no; then
15698 WITH_GNOME_TRUE=
15699 WITH_GNOME_FALSE='#'
15700 else
15701 WITH_GNOME_TRUE='#'
15702 WITH_GNOME_FALSE=
15703 fi
15704
15705 if test "$with_gtk4" != no; then
15706 WITH_GTK4_TRUE=
15707 WITH_GTK4_FALSE='#'
15708 else
15709 WITH_GTK4_TRUE='#'
15710 WITH_GTK4_FALSE=
15711 fi
15712
15713
15714 # Check whether --enable-absolute-paths was given.
15715 if test ${enable_absolute_paths+y}
15716 then :
15717 enableval=$enable_absolute_paths;
15718 fi
15719
15720
15721 GETTEXT_PACKAGE=NetworkManager-openvpn
15722
15723
15724 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
15725
15726
15727
15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15729 printf %s "checking whether NLS is requested... " >&6; }
15730 # Check whether --enable-nls was given.
15731 if test ${enable_nls+y}
15732 then :
15733 enableval=$enable_nls; USE_NLS=$enableval
15734 else case e in #(
15735 e) USE_NLS=yes ;;
15736 esac
15737 fi
15738
15739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15740 printf "%s\n" "$USE_NLS" >&6; }
15741
15742
15743
15744
15745 GETTEXT_MACRO_VERSION=0.22
15746
15747
15748
15749
15750 # Prepare PATH_SEPARATOR.
15751 # The user is always right.
15752 if test "${PATH_SEPARATOR+set}" != set; then
15753 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15754 # contains only /bin. Note that ksh looks also at the FPATH variable,
15755 # so we have to set that as well for the test.
15756 PATH_SEPARATOR=:
15757 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15758 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15759 || PATH_SEPARATOR=';'
15760 }
15761 fi
15762
15763 # Find out how to test for executable files. Don't use a zero-byte file,
15764 # as systems may use methods other than mode bits to determine executability.
15765 cat >conf$$.file <<_ASEOF
15766 #! /bin/sh
15767 exit 0
15768 _ASEOF
15769 chmod +x conf$$.file
15770 if test -x conf$$.file >/dev/null 2>&1; then
15771 ac_executable_p="test -x"
15772 else
15773 ac_executable_p="test -f"
15774 fi
15775 rm -f conf$$.file
15776
15777 # Extract the first word of "msgfmt", so it can be a program name with args.
15778 set dummy msgfmt; ac_word=$2
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15780 printf %s "checking for $ac_word... " >&6; }
15781 if test ${ac_cv_path_MSGFMT+y}
15782 then :
15783 printf %s "(cached) " >&6
15784 else case e in #(
15785 e) case "$MSGFMT" in
15786 [\\/]* | ?:[\\/]*)
15787 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15788 ;;
15789 *)
15790 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
15791 for ac_dir in $PATH; do
15792 IFS="$gt_saved_IFS"
15793 test -z "$ac_dir" && ac_dir=.
15794 for ac_exec_ext in '' $ac_executable_extensions; do
15795 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15796 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15797 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15798 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15799 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15800 break 2
15801 fi
15802 fi
15803 done
15804 done
15805 IFS="$gt_saved_IFS"
15806 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15807 ;;
15808 esac ;;
15809 esac
15810 fi
15811 MSGFMT="$ac_cv_path_MSGFMT"
15812 if test "$MSGFMT" != ":"; then
15813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15814 printf "%s\n" "$MSGFMT" >&6; }
15815 else
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15817 printf "%s\n" "no" >&6; }
15818 fi
15819
15820 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15821 set dummy gmsgfmt; ac_word=$2
15822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15823 printf %s "checking for $ac_word... " >&6; }
15824 if test ${ac_cv_path_GMSGFMT+y}
15825 then :
15826 printf %s "(cached) " >&6
15827 else case e in #(
15828 e) case $GMSGFMT in
15829 [\\/]* | ?:[\\/]*)
15830 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15831 ;;
15832 *)
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15835 do
15836 IFS=$as_save_IFS
15837 case $as_dir in #(((
15838 '') as_dir=./ ;;
15839 */) ;;
15840 *) as_dir=$as_dir/ ;;
15841 esac
15842 for ac_exec_ext in '' $ac_executable_extensions; do
15843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15844 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
15845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15846 break 2
15847 fi
15848 done
15849 done
15850 IFS=$as_save_IFS
15851
15852 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15853 ;;
15854 esac ;;
15855 esac
15856 fi
15857 GMSGFMT=$ac_cv_path_GMSGFMT
15858 if test -n "$GMSGFMT"; then
15859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15860 printf "%s\n" "$GMSGFMT" >&6; }
15861 else
15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863 printf "%s\n" "no" >&6; }
15864 fi
15865
15866
15867
15868 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15869 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15870 *) GMSGFMT_015=$GMSGFMT ;;
15871 esac
15872
15873
15874
15875 # Prepare PATH_SEPARATOR.
15876 # The user is always right.
15877 if test "${PATH_SEPARATOR+set}" != set; then
15878 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15879 # contains only /bin. Note that ksh looks also at the FPATH variable,
15880 # so we have to set that as well for the test.
15881 PATH_SEPARATOR=:
15882 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15883 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15884 || PATH_SEPARATOR=';'
15885 }
15886 fi
15887
15888 # Find out how to test for executable files. Don't use a zero-byte file,
15889 # as systems may use methods other than mode bits to determine executability.
15890 cat >conf$$.file <<_ASEOF
15891 #! /bin/sh
15892 exit 0
15893 _ASEOF
15894 chmod +x conf$$.file
15895 if test -x conf$$.file >/dev/null 2>&1; then
15896 ac_executable_p="test -x"
15897 else
15898 ac_executable_p="test -f"
15899 fi
15900 rm -f conf$$.file
15901
15902 # Extract the first word of "xgettext", so it can be a program name with args.
15903 set dummy xgettext; ac_word=$2
15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15905 printf %s "checking for $ac_word... " >&6; }
15906 if test ${ac_cv_path_XGETTEXT+y}
15907 then :
15908 printf %s "(cached) " >&6
15909 else case e in #(
15910 e) case "$XGETTEXT" in
15911 [\\/]* | ?:[\\/]*)
15912 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15913 ;;
15914 *)
15915 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
15916 for ac_dir in $PATH; do
15917 IFS="$gt_saved_IFS"
15918 test -z "$ac_dir" && ac_dir=.
15919 for ac_exec_ext in '' $ac_executable_extensions; do
15920 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15921 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15922 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15923 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15924 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15925 break 2
15926 fi
15927 fi
15928 done
15929 done
15930 IFS="$gt_saved_IFS"
15931 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15932 ;;
15933 esac ;;
15934 esac
15935 fi
15936 XGETTEXT="$ac_cv_path_XGETTEXT"
15937 if test "$XGETTEXT" != ":"; then
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15939 printf "%s\n" "$XGETTEXT" >&6; }
15940 else
15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942 printf "%s\n" "no" >&6; }
15943 fi
15944
15945 rm -f messages.po
15946
15947 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15948 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15949 *) XGETTEXT_015=$XGETTEXT ;;
15950 esac
15951
15952
15953
15954 # Prepare PATH_SEPARATOR.
15955 # The user is always right.
15956 if test "${PATH_SEPARATOR+set}" != set; then
15957 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15958 # contains only /bin. Note that ksh looks also at the FPATH variable,
15959 # so we have to set that as well for the test.
15960 PATH_SEPARATOR=:
15961 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15962 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15963 || PATH_SEPARATOR=';'
15964 }
15965 fi
15966
15967 # Find out how to test for executable files. Don't use a zero-byte file,
15968 # as systems may use methods other than mode bits to determine executability.
15969 cat >conf$$.file <<_ASEOF
15970 #! /bin/sh
15971 exit 0
15972 _ASEOF
15973 chmod +x conf$$.file
15974 if test -x conf$$.file >/dev/null 2>&1; then
15975 ac_executable_p="test -x"
15976 else
15977 ac_executable_p="test -f"
15978 fi
15979 rm -f conf$$.file
15980
15981 # Extract the first word of "msgmerge", so it can be a program name with args.
15982 set dummy msgmerge; ac_word=$2
15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15984 printf %s "checking for $ac_word... " >&6; }
15985 if test ${ac_cv_path_MSGMERGE+y}
15986 then :
15987 printf %s "(cached) " >&6
15988 else case e in #(
15989 e) case "$MSGMERGE" in
15990 [\\/]* | ?:[\\/]*)
15991 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15992 ;;
15993 *)
15994 gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
15995 for ac_dir in $PATH; do
15996 IFS="$gt_saved_IFS"
15997 test -z "$ac_dir" && ac_dir=.
15998 for ac_exec_ext in '' $ac_executable_extensions; do
15999 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16000 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16001 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16002 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16003 break 2
16004 fi
16005 fi
16006 done
16007 done
16008 IFS="$gt_saved_IFS"
16009 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16010 ;;
16011 esac ;;
16012 esac
16013 fi
16014 MSGMERGE="$ac_cv_path_MSGMERGE"
16015 if test "$MSGMERGE" != ":"; then
16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16017 printf "%s\n" "$MSGMERGE" >&6; }
16018 else
16019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 printf "%s\n" "no" >&6; }
16021 fi
16022
16023
16024 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
16025 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
16026 else
16027 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
16028 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
16029 else
16030 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
16031 fi
16032 fi
16033
16034
16035 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16036
16037
16038 ac_config_commands="$ac_config_commands po-directories"
16039
16040
16041
16042 if test "X$prefix" = "XNONE"; then
16043 acl_final_prefix="$ac_default_prefix"
16044 else
16045 acl_final_prefix="$prefix"
16046 fi
16047 if test "X$exec_prefix" = "XNONE"; then
16048 acl_final_exec_prefix='${prefix}'
16049 else
16050 acl_final_exec_prefix="$exec_prefix"
16051 fi
16052 acl_saved_prefix="$prefix"
16053 prefix="$acl_final_prefix"
16054 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16055 prefix="$acl_saved_prefix"
16056
16057
16058
16059 # Check whether --with-gnu-ld was given.
16060 if test ${with_gnu_ld+y}
16061 then :
16062 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16063 else case e in #(
16064 e) with_gnu_ld=no ;;
16065 esac
16066 fi
16067
16068 # Prepare PATH_SEPARATOR.
16069 # The user is always right.
16070 if test "${PATH_SEPARATOR+set}" != set; then
16071 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16072 # contains only /bin. Note that ksh looks also at the FPATH variable,
16073 # so we have to set that as well for the test.
16074 PATH_SEPARATOR=:
16075 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16076 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16077 || PATH_SEPARATOR=';'
16078 }
16079 fi
16080
16081 if test -n "$LD"; then
16082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
16083 printf %s "checking for ld... " >&6; }
16084 elif test "$GCC" = yes; then
16085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16086 printf %s "checking for ld used by $CC... " >&6; }
16087 elif test "$with_gnu_ld" = yes; then
16088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16089 printf %s "checking for GNU ld... " >&6; }
16090 else
16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16092 printf %s "checking for non-GNU ld... " >&6; }
16093 fi
16094 if test -n "$LD"; then
16095 # Let the user override the test with a path.
16096 :
16097 else
16098 if test ${acl_cv_path_LD+y}
16099 then :
16100 printf %s "(cached) " >&6
16101 else case e in #(
16102 e)
16103 acl_cv_path_LD= # Final result of this test
16104 ac_prog=ld # Program to search in $PATH
16105 if test "$GCC" = yes; then
16106 # Check if gcc -print-prog-name=ld gives a path.
16107 case $host in
16108 *-*-mingw* | windows*)
16109 # gcc leaves a trailing carriage return which upsets mingw
16110 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16111 *)
16112 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
16113 esac
16114 case $acl_output in
16115 # Accept absolute paths.
16116 [\\/]* | ?:[\\/]*)
16117 re_direlt='/[^/][^/]*/\.\./'
16118 # Canonicalize the pathname of ld
16119 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
16120 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
16121 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
16122 done
16123 # Got the pathname. No search in PATH is needed.
16124 acl_cv_path_LD="$acl_output"
16125 ac_prog=
16126 ;;
16127 "")
16128 # If it fails, then pretend we aren't using GCC.
16129 ;;
16130 *)
16131 # If it is relative, then search for the first ld in PATH.
16132 with_gnu_ld=unknown
16133 ;;
16134 esac
16135 fi
16136 if test -n "$ac_prog"; then
16137 # Search for $ac_prog in $PATH.
16138 acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
16139 for ac_dir in $PATH; do
16140 IFS="$acl_saved_IFS"
16141 test -z "$ac_dir" && ac_dir=.
16142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16143 acl_cv_path_LD="$ac_dir/$ac_prog"
16144 # Check to see if the program is GNU ld. I'd rather use --version,
16145 # but apparently some variants of GNU ld only accept -v.
16146 # Break only if it was the GNU/non-GNU ld that we prefer.
16147 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16148 *GNU* | *'with BFD'*)
16149 test "$with_gnu_ld" != no && break
16150 ;;
16151 *)
16152 test "$with_gnu_ld" != yes && break
16153 ;;
16154 esac
16155 fi
16156 done
16157 IFS="$acl_saved_IFS"
16158 fi
16159 case $host in
16160 *-*-aix*)
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 #if defined __powerpc64__ || defined __LP64__
16164 int ok;
16165 #else
16166 error fail
16167 #endif
16168
16169 _ACEOF
16170 if ac_fn_c_try_compile "$LINENO"
16171 then :
16172 # The compiler produces 64-bit code. Add option '-b64' so that the
16173 # linker groks 64-bit object files.
16174 case "$acl_cv_path_LD " in
16175 *" -b64 "*) ;;
16176 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
16177 esac
16178
16179 fi
16180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16181 ;;
16182 sparc64-*-netbsd*)
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185 #if defined __sparcv9 || defined __arch64__
16186 int ok;
16187 #else
16188 error fail
16189 #endif
16190
16191 _ACEOF
16192 if ac_fn_c_try_compile "$LINENO"
16193 then :
16194
16195 else case e in #(
16196 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
16197 # so that the linker groks 32-bit object files.
16198 case "$acl_cv_path_LD " in
16199 *" -m elf32_sparc "*) ;;
16200 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
16201 esac
16202 ;;
16203 esac
16204 fi
16205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16206 ;;
16207 esac
16208 ;;
16209 esac
16210 fi
16211
16212 LD="$acl_cv_path_LD"
16213 fi
16214 if test -n "$LD"; then
16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16216 printf "%s\n" "$LD" >&6; }
16217 else
16218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 printf "%s\n" "no" >&6; }
16220 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16221 fi
16222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16223 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16224 if test ${acl_cv_prog_gnu_ld+y}
16225 then :
16226 printf %s "(cached) " >&6
16227 else case e in #(
16228 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16229 case `$LD -v 2>&1 </dev/null` in
16230 *GNU* | *'with BFD'*)
16231 acl_cv_prog_gnu_ld=yes
16232 ;;
16233 *)
16234 acl_cv_prog_gnu_ld=no
16235 ;;
16236 esac ;;
16237 esac
16238 fi
16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16240 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
16241 with_gnu_ld=$acl_cv_prog_gnu_ld
16242
16243
16244
16245
16246
16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16248 printf %s "checking for shared library run path origin... " >&6; }
16249 if test ${acl_cv_rpath+y}
16250 then :
16251 printf %s "(cached) " >&6
16252 else case e in #(
16253 e)
16254 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16255 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16256 . ./conftest.sh
16257 rm -f ./conftest.sh
16258 acl_cv_rpath=done
16259 ;;
16260 esac
16261 fi
16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16263 printf "%s\n" "$acl_cv_rpath" >&6; }
16264 wl="$acl_cv_wl"
16265 acl_libext="$acl_cv_libext"
16266 acl_shlibext="$acl_cv_shlibext"
16267 acl_libname_spec="$acl_cv_libname_spec"
16268 acl_library_names_spec="$acl_cv_library_names_spec"
16269 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16270 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16271 acl_hardcode_direct="$acl_cv_hardcode_direct"
16272 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16273 # Check whether --enable-rpath was given.
16274 if test ${enable_rpath+y}
16275 then :
16276 enableval=$enable_rpath; :
16277 else case e in #(
16278 e) enable_rpath=yes ;;
16279 esac
16280 fi
16281
16282
16283
16284
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
16286 printf %s "checking 32-bit host C ABI... " >&6; }
16287 if test ${gl_cv_host_cpu_c_abi_32bit+y}
16288 then :
16289 printf %s "(cached) " >&6
16290 else case e in #(
16291 e) case "$host_cpu" in
16292
16293 # CPUs that only support a 32-bit ABI.
16294 arc \
16295 | bfin \
16296 | cris* \
16297 | csky \
16298 | epiphany \
16299 | ft32 \
16300 | h8300 \
16301 | m68k \
16302 | microblaze | microblazeel \
16303 | nds32 | nds32le | nds32be \
16304 | nios2 | nios2eb | nios2el \
16305 | or1k* \
16306 | or32 \
16307 | sh | sh1234 | sh1234elb \
16308 | tic6x \
16309 | xtensa* )
16310 gl_cv_host_cpu_c_abi_32bit=yes
16311 ;;
16312
16313 # CPUs that only support a 64-bit ABI.
16314 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
16315 | mmix )
16316 gl_cv_host_cpu_c_abi_32bit=no
16317 ;;
16318
16319 *)
16320 if test -n "$gl_cv_host_cpu_c_abi"; then
16321 case "$gl_cv_host_cpu_c_abi" in
16322 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
16323 gl_cv_host_cpu_c_abi_32bit=yes ;;
16324 x86_64 | alpha | arm64 | aarch64c | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
16325 gl_cv_host_cpu_c_abi_32bit=no ;;
16326 *)
16327 gl_cv_host_cpu_c_abi_32bit=unknown ;;
16328 esac
16329 else
16330 gl_cv_host_cpu_c_abi_32bit=unknown
16331 fi
16332 if test $gl_cv_host_cpu_c_abi_32bit = unknown; then
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16335 int test_pointer_size[sizeof (void *) - 5];
16336
16337 _ACEOF
16338 if ac_fn_c_try_compile "$LINENO"
16339 then :
16340 gl_cv_host_cpu_c_abi_32bit=no
16341 else case e in #(
16342 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
16343 esac
16344 fi
16345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16346 fi
16347 ;;
16348 esac
16349 ;;
16350 esac
16351 fi
16352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
16353 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
16354
16355 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
16356
16357 ac_ext=c
16358 ac_cpp='$CPP $CPPFLAGS'
16359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16363 printf %s "checking how to run the C preprocessor... " >&6; }
16364 # On Suns, sometimes $CPP names a directory.
16365 if test -n "$CPP" && test -d "$CPP"; then
16366 CPP=
16367 fi
16368 if test -z "$CPP"; then
16369 if test ${ac_cv_prog_CPP+y}
16370 then :
16371 printf %s "(cached) " >&6
16372 else case e in #(
16373 e) # Double quotes because $CC needs to be expanded
16374 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
16375 do
16376 ac_preproc_ok=false
16377 for ac_c_preproc_warn_flag in '' yes
16378 do
16379 # Use a header file that comes with gcc, so configuring glibc
16380 # with a fresh cross-compiler works.
16381 # On the NeXT, cc -E runs the code through the compiler's parser,
16382 # not just through cpp. "Syntax error" is here to catch this case.
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 #include <limits.h>
16386 Syntax error
16387 _ACEOF
16388 if ac_fn_c_try_cpp "$LINENO"
16389 then :
16390
16391 else case e in #(
16392 e) # Broken: fails on valid input.
16393 continue ;;
16394 esac
16395 fi
16396 rm -f conftest.err conftest.i conftest.$ac_ext
16397
16398 # OK, works on sane cases. Now check whether nonexistent headers
16399 # can be detected and how.
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h. */
16402 #include <ac_nonexistent.h>
16403 _ACEOF
16404 if ac_fn_c_try_cpp "$LINENO"
16405 then :
16406 # Broken: success on invalid input.
16407 continue
16408 else case e in #(
16409 e) # Passes both tests.
16410 ac_preproc_ok=:
16411 break ;;
16412 esac
16413 fi
16414 rm -f conftest.err conftest.i conftest.$ac_ext
16415
16416 done
16417 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16418 rm -f conftest.i conftest.err conftest.$ac_ext
16419 if $ac_preproc_ok
16420 then :
16421 break
16422 fi
16423
16424 done
16425 ac_cv_prog_CPP=$CPP
16426 ;;
16427 esac
16428 fi
16429 CPP=$ac_cv_prog_CPP
16430 else
16431 ac_cv_prog_CPP=$CPP
16432 fi
16433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16434 printf "%s\n" "$CPP" >&6; }
16435 ac_preproc_ok=false
16436 for ac_c_preproc_warn_flag in '' yes
16437 do
16438 # Use a header file that comes with gcc, so configuring glibc
16439 # with a fresh cross-compiler works.
16440 # On the NeXT, cc -E runs the code through the compiler's parser,
16441 # not just through cpp. "Syntax error" is here to catch this case.
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16444 #include <limits.h>
16445 Syntax error
16446 _ACEOF
16447 if ac_fn_c_try_cpp "$LINENO"
16448 then :
16449
16450 else case e in #(
16451 e) # Broken: fails on valid input.
16452 continue ;;
16453 esac
16454 fi
16455 rm -f conftest.err conftest.i conftest.$ac_ext
16456
16457 # OK, works on sane cases. Now check whether nonexistent headers
16458 # can be detected and how.
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 #include <ac_nonexistent.h>
16462 _ACEOF
16463 if ac_fn_c_try_cpp "$LINENO"
16464 then :
16465 # Broken: success on invalid input.
16466 continue
16467 else case e in #(
16468 e) # Passes both tests.
16469 ac_preproc_ok=:
16470 break ;;
16471 esac
16472 fi
16473 rm -f conftest.err conftest.i conftest.$ac_ext
16474
16475 done
16476 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16477 rm -f conftest.i conftest.err conftest.$ac_ext
16478 if $ac_preproc_ok
16479 then :
16480
16481 else case e in #(
16482 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16483 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16484 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16485 See 'config.log' for more details" "$LINENO" 5; } ;;
16486 esac
16487 fi
16488
16489 ac_ext=c
16490 ac_cpp='$CPP $CPPFLAGS'
16491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16494
16495
16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
16497 printf %s "checking for egrep -e... " >&6; }
16498 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
16499 then :
16500 printf %s "(cached) " >&6
16501 else case e in #(
16502 e) if test -z "$EGREP_TRADITIONAL"; then
16503 ac_path_EGREP_TRADITIONAL_found=false
16504 # Loop through the user's path and test for each of PROGNAME-LIST
16505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16507 do
16508 IFS=$as_save_IFS
16509 case $as_dir in #(((
16510 '') as_dir=./ ;;
16511 */) ;;
16512 *) as_dir=$as_dir/ ;;
16513 esac
16514 for ac_prog in grep ggrep
16515 do
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
16518 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
16519 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
16520 # Check for GNU $ac_path_EGREP_TRADITIONAL
16521 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
16522 *GNU*)
16523 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
16524 #(
16525 *)
16526 ac_count=0
16527 printf %s 0123456789 >"conftest.in"
16528 while :
16529 do
16530 cat "conftest.in" "conftest.in" >"conftest.tmp"
16531 mv "conftest.tmp" "conftest.in"
16532 cp "conftest.in" "conftest.nl"
16533 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
16534 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16536 as_fn_arith $ac_count + 1 && ac_count=$as_val
16537 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
16538 # Best one so far, save it but keep looking for a better one
16539 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
16540 ac_path_EGREP_TRADITIONAL_max=$ac_count
16541 fi
16542 # 10*(2^10) chars as input seems more than enough
16543 test $ac_count -gt 10 && break
16544 done
16545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16546 esac
16547
16548 $ac_path_EGREP_TRADITIONAL_found && break 3
16549 done
16550 done
16551 done
16552 IFS=$as_save_IFS
16553 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16554 :
16555 fi
16556 else
16557 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16558 fi
16559
16560 if test "$ac_cv_path_EGREP_TRADITIONAL"
16561 then :
16562 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
16563 else case e in #(
16564 e) if test -z "$EGREP_TRADITIONAL"; then
16565 ac_path_EGREP_TRADITIONAL_found=false
16566 # Loop through the user's path and test for each of PROGNAME-LIST
16567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16569 do
16570 IFS=$as_save_IFS
16571 case $as_dir in #(((
16572 '') as_dir=./ ;;
16573 */) ;;
16574 *) as_dir=$as_dir/ ;;
16575 esac
16576 for ac_prog in egrep
16577 do
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
16580 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
16581 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
16582 # Check for GNU $ac_path_EGREP_TRADITIONAL
16583 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
16584 *GNU*)
16585 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
16586 #(
16587 *)
16588 ac_count=0
16589 printf %s 0123456789 >"conftest.in"
16590 while :
16591 do
16592 cat "conftest.in" "conftest.in" >"conftest.tmp"
16593 mv "conftest.tmp" "conftest.in"
16594 cp "conftest.in" "conftest.nl"
16595 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
16596 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16598 as_fn_arith $ac_count + 1 && ac_count=$as_val
16599 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
16600 # Best one so far, save it but keep looking for a better one
16601 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
16602 ac_path_EGREP_TRADITIONAL_max=$ac_count
16603 fi
16604 # 10*(2^10) chars as input seems more than enough
16605 test $ac_count -gt 10 && break
16606 done
16607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16608 esac
16609
16610 $ac_path_EGREP_TRADITIONAL_found && break 3
16611 done
16612 done
16613 done
16614 IFS=$as_save_IFS
16615 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16616 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16617 fi
16618 else
16619 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16620 fi
16621 ;;
16622 esac
16623 fi ;;
16624 esac
16625 fi
16626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
16627 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
16628 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
16629
16630
16631
16632
16633
16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
16635 printf %s "checking for ELF binary format... " >&6; }
16636 if test ${gl_cv_elf+y}
16637 then :
16638 printf %s "(cached) " >&6
16639 else case e in #(
16640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16642 #if defined __ELF__ || (defined __linux__ && (defined __EDG__ || defined __SUNPRO_C))
16643 Extensible Linking Format
16644 #endif
16645
16646 _ACEOF
16647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16648 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
16649 then :
16650 gl_cv_elf=yes
16651 else case e in #(
16652 e) gl_cv_elf=no ;;
16653 esac
16654 fi
16655 rm -rf conftest*
16656
16657 ;;
16658 esac
16659 fi
16660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
16661 printf "%s\n" "$gl_cv_elf" >&6; }
16662 if test $gl_cv_elf = yes; then
16663 # Extract the ELF class of a file (5th byte) in decimal.
16664 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
16665 if od -A x < /dev/null >/dev/null 2>/dev/null; then
16666 # Use POSIX od.
16667 func_elfclass ()
16668 {
16669 od -A n -t d1 -j 4 -N 1
16670 }
16671 else
16672 # Use BSD hexdump.
16673 func_elfclass ()
16674 {
16675 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
16676 echo
16677 }
16678 fi
16679 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
16680 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
16681 # not 1 or 2.
16682 case $HOST_CPU_C_ABI_32BIT in
16683 yes)
16684 # 32-bit ABI.
16685 acl_is_expected_elfclass ()
16686 {
16687 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
16688 }
16689 ;;
16690 no)
16691 # 64-bit ABI.
16692 acl_is_expected_elfclass ()
16693 {
16694 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
16695 }
16696 ;;
16697 *)
16698 # Unknown.
16699 acl_is_expected_elfclass ()
16700 {
16701 :
16702 }
16703 ;;
16704 esac
16705 else
16706 acl_is_expected_elfclass ()
16707 {
16708 :
16709 }
16710 fi
16711
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
16713 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
16714 if test ${acl_cv_libdirstems+y}
16715 then :
16716 printf %s "(cached) " >&6
16717 else case e in #(
16718 e) acl_libdirstem=lib
16719 acl_libdirstem2=
16720 acl_libdirstem3=
16721 case "$host_os" in
16722 solaris*)
16723 if test $HOST_CPU_C_ABI_32BIT = no; then
16724 acl_libdirstem2=lib/64
16725 case "$host_cpu" in
16726 sparc*) acl_libdirstem3=lib/sparcv9 ;;
16727 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
16728 esac
16729 fi
16730 ;;
16731 netbsd*)
16732 if test $HOST_CPU_C_ABI_32BIT != no; then
16733 case "$host_cpu" in
16734 sparc*) acl_libdirstem2=lib/sparc ;;
16735 esac
16736 fi
16737 ;;
16738 *)
16739 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
16740 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16741 if test $HOST_CPU_C_ABI_32BIT != no; then
16742 # 32-bit or unknown ABI.
16743 if test -d /usr/lib32; then
16744 acl_libdirstem2=lib32
16745 fi
16746 fi
16747 if test $HOST_CPU_C_ABI_32BIT != yes; then
16748 # 64-bit or unknown ABI.
16749 if test -d /usr/lib64; then
16750 acl_libdirstem3=lib64
16751 fi
16752 fi
16753 if test -n "$searchpath"; then
16754 acl_saved_IFS="${IFS= }"; IFS=":"
16755 for searchdir in $searchpath; do
16756 if test -d "$searchdir"; then
16757 case "$searchdir" in
16758 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
16759 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
16760 */../ | */.. )
16761 # Better ignore directories of this form. They are misleading.
16762 ;;
16763 *) searchdir=`cd "$searchdir" && pwd`
16764 case "$searchdir" in
16765 */lib32 ) acl_libdirstem2=lib32 ;;
16766 */lib64 ) acl_libdirstem3=lib64 ;;
16767 esac ;;
16768 esac
16769 fi
16770 done
16771 IFS="$acl_saved_IFS"
16772 if test $HOST_CPU_C_ABI_32BIT = yes; then
16773 # 32-bit ABI.
16774 acl_libdirstem3=
16775 fi
16776 if test $HOST_CPU_C_ABI_32BIT = no; then
16777 # 64-bit ABI.
16778 acl_libdirstem2=
16779 fi
16780 fi
16781 ;;
16782 esac
16783 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16784 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
16785 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
16786 ;;
16787 esac
16788 fi
16789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
16790 printf "%s\n" "$acl_cv_libdirstems" >&6; }
16791 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
16792 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
16793 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805 use_additional=yes
16806
16807 acl_saved_prefix="$prefix"
16808 prefix="$acl_final_prefix"
16809 acl_saved_exec_prefix="$exec_prefix"
16810 exec_prefix="$acl_final_exec_prefix"
16811
16812 eval additional_includedir=\"$includedir\"
16813 eval additional_libdir=\"$libdir\"
16814 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16815 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16816
16817 exec_prefix="$acl_saved_exec_prefix"
16818 prefix="$acl_saved_prefix"
16819
16820
16821 # Check whether --with-libiconv-prefix was given.
16822 if test ${with_libiconv_prefix+y}
16823 then :
16824 withval=$with_libiconv_prefix;
16825 if test "X$withval" = "Xno"; then
16826 use_additional=no
16827 else
16828 if test "X$withval" = "X"; then
16829
16830 acl_saved_prefix="$prefix"
16831 prefix="$acl_final_prefix"
16832 acl_saved_exec_prefix="$exec_prefix"
16833 exec_prefix="$acl_final_exec_prefix"
16834
16835 eval additional_includedir=\"$includedir\"
16836 eval additional_libdir=\"$libdir\"
16837 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16838 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16839
16840 exec_prefix="$acl_saved_exec_prefix"
16841 prefix="$acl_saved_prefix"
16842
16843 else
16844 additional_includedir="$withval/include"
16845 additional_libdir="$withval/$acl_libdirstem"
16846 additional_libdir2="$withval/$acl_libdirstem2"
16847 additional_libdir3="$withval/$acl_libdirstem3"
16848 fi
16849 fi
16850
16851 fi
16852
16853 if test "X$additional_libdir2" = "X$additional_libdir"; then
16854 additional_libdir2=
16855 fi
16856 if test "X$additional_libdir3" = "X$additional_libdir"; then
16857 additional_libdir3=
16858 fi
16859 LIBICONV=
16860 LTLIBICONV=
16861 INCICONV=
16862 LIBICONV_PREFIX=
16863 HAVE_LIBICONV=
16864 rpathdirs=
16865 ltrpathdirs=
16866 names_already_handled=
16867 names_next_round='iconv '
16868 while test -n "$names_next_round"; do
16869 names_this_round="$names_next_round"
16870 names_next_round=
16871 for name in $names_this_round; do
16872 already_handled=
16873 for n in $names_already_handled; do
16874 if test "$n" = "$name"; then
16875 already_handled=yes
16876 break
16877 fi
16878 done
16879 if test -z "$already_handled"; then
16880 names_already_handled="$names_already_handled $name"
16881 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16882 eval value=\"\$HAVE_LIB$uppername\"
16883 if test -n "$value"; then
16884 if test "$value" = yes; then
16885 eval value=\"\$LIB$uppername\"
16886 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16887 eval value=\"\$LTLIB$uppername\"
16888 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16889 else
16890 :
16891 fi
16892 else
16893 found_dir=
16894 found_la=
16895 found_so=
16896 found_a=
16897 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16898 if test -n "$acl_shlibext"; then
16899 shrext=".$acl_shlibext" # typically: shrext=.so
16900 else
16901 shrext=
16902 fi
16903 if test $use_additional = yes; then
16904 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
16905 if test "X$found_dir" = "X"; then
16906 eval dir=\$$additional_libdir_variable
16907 if test -n "$dir"; then
16908 if test -n "$acl_shlibext"; then
16909 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16910 found_dir="$dir"
16911 found_so="$dir/$libname$shrext"
16912 else
16913 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16914 ver=`(cd "$dir" && \
16915 for f in "$libname$shrext".*; do echo "$f"; done \
16916 | sed -e "s,^$libname$shrext\\\\.,," \
16917 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16918 | sed 1q ) 2>/dev/null`
16919 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16920 found_dir="$dir"
16921 found_so="$dir/$libname$shrext.$ver"
16922 fi
16923 else
16924 eval library_names=\"$acl_library_names_spec\"
16925 for f in $library_names; do
16926 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16927 found_dir="$dir"
16928 found_so="$dir/$f"
16929 break
16930 fi
16931 done
16932 fi
16933 fi
16934 fi
16935 if test "X$found_dir" = "X"; then
16936 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16937 found_dir="$dir"
16938 found_a="$dir/$libname.$acl_libext"
16939 fi
16940 fi
16941 if test "X$found_dir" != "X"; then
16942 if test -f "$dir/$libname.la"; then
16943 found_la="$dir/$libname.la"
16944 fi
16945 fi
16946 fi
16947 fi
16948 done
16949 fi
16950 if test "X$found_dir" = "X"; then
16951 for x in $LDFLAGS $LTLIBICONV; do
16952
16953 acl_saved_prefix="$prefix"
16954 prefix="$acl_final_prefix"
16955 acl_saved_exec_prefix="$exec_prefix"
16956 exec_prefix="$acl_final_exec_prefix"
16957 eval x=\"$x\"
16958 exec_prefix="$acl_saved_exec_prefix"
16959 prefix="$acl_saved_prefix"
16960
16961 case "$x" in
16962 -L*)
16963 dir=`echo "X$x" | sed -e 's/^X-L//'`
16964 if test -n "$acl_shlibext"; then
16965 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16966 found_dir="$dir"
16967 found_so="$dir/$libname$shrext"
16968 else
16969 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16970 ver=`(cd "$dir" && \
16971 for f in "$libname$shrext".*; do echo "$f"; done \
16972 | sed -e "s,^$libname$shrext\\\\.,," \
16973 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16974 | sed 1q ) 2>/dev/null`
16975 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16976 found_dir="$dir"
16977 found_so="$dir/$libname$shrext.$ver"
16978 fi
16979 else
16980 eval library_names=\"$acl_library_names_spec\"
16981 for f in $library_names; do
16982 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16983 found_dir="$dir"
16984 found_so="$dir/$f"
16985 break
16986 fi
16987 done
16988 fi
16989 fi
16990 fi
16991 if test "X$found_dir" = "X"; then
16992 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16993 found_dir="$dir"
16994 found_a="$dir/$libname.$acl_libext"
16995 fi
16996 fi
16997 if test "X$found_dir" != "X"; then
16998 if test -f "$dir/$libname.la"; then
16999 found_la="$dir/$libname.la"
17000 fi
17001 fi
17002 ;;
17003 esac
17004 if test "X$found_dir" != "X"; then
17005 break
17006 fi
17007 done
17008 fi
17009 if test "X$found_dir" != "X"; then
17010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17011 if test "X$found_so" != "X"; then
17012 if test "$enable_rpath" = no \
17013 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17014 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
17015 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
17016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17017 else
17018 haveit=
17019 for x in $ltrpathdirs; do
17020 if test "X$x" = "X$found_dir"; then
17021 haveit=yes
17022 break
17023 fi
17024 done
17025 if test -z "$haveit"; then
17026 ltrpathdirs="$ltrpathdirs $found_dir"
17027 fi
17028 if test "$acl_hardcode_direct" = yes; then
17029 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030 else
17031 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17032 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17033 haveit=
17034 for x in $rpathdirs; do
17035 if test "X$x" = "X$found_dir"; then
17036 haveit=yes
17037 break
17038 fi
17039 done
17040 if test -z "$haveit"; then
17041 rpathdirs="$rpathdirs $found_dir"
17042 fi
17043 else
17044 haveit=
17045 for x in $LDFLAGS $LIBICONV; do
17046
17047 acl_saved_prefix="$prefix"
17048 prefix="$acl_final_prefix"
17049 acl_saved_exec_prefix="$exec_prefix"
17050 exec_prefix="$acl_final_exec_prefix"
17051 eval x=\"$x\"
17052 exec_prefix="$acl_saved_exec_prefix"
17053 prefix="$acl_saved_prefix"
17054
17055 if test "X$x" = "X-L$found_dir"; then
17056 haveit=yes
17057 break
17058 fi
17059 done
17060 if test -z "$haveit"; then
17061 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17062 fi
17063 if test "$acl_hardcode_minus_L" != no; then
17064 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17065 else
17066 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17067 fi
17068 fi
17069 fi
17070 fi
17071 else
17072 if test "X$found_a" != "X"; then
17073 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17074 else
17075 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17076 fi
17077 fi
17078 additional_includedir=
17079 case "$found_dir" in
17080 */$acl_libdirstem | */$acl_libdirstem/)
17081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17082 if test "$name" = 'iconv'; then
17083 LIBICONV_PREFIX="$basedir"
17084 fi
17085 additional_includedir="$basedir/include"
17086 ;;
17087 */$acl_libdirstem2 | */$acl_libdirstem2/)
17088 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17089 if test "$name" = 'iconv'; then
17090 LIBICONV_PREFIX="$basedir"
17091 fi
17092 additional_includedir="$basedir/include"
17093 ;;
17094 */$acl_libdirstem3 | */$acl_libdirstem3/)
17095 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
17096 if test "$name" = 'iconv'; then
17097 LIBICONV_PREFIX="$basedir"
17098 fi
17099 additional_includedir="$basedir/include"
17100 ;;
17101 esac
17102 if test "X$additional_includedir" != "X"; then
17103 if test "X$additional_includedir" != "X/usr/include"; then
17104 haveit=
17105 if test "X$additional_includedir" = "X/usr/local/include"; then
17106 if test -n "$GCC"; then
17107 case $host_os in
17108 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17109 esac
17110 fi
17111 fi
17112 if test -z "$haveit"; then
17113 for x in $CPPFLAGS $INCICONV; do
17114
17115 acl_saved_prefix="$prefix"
17116 prefix="$acl_final_prefix"
17117 acl_saved_exec_prefix="$exec_prefix"
17118 exec_prefix="$acl_final_exec_prefix"
17119 eval x=\"$x\"
17120 exec_prefix="$acl_saved_exec_prefix"
17121 prefix="$acl_saved_prefix"
17122
17123 if test "X$x" = "X-I$additional_includedir"; then
17124 haveit=yes
17125 break
17126 fi
17127 done
17128 if test -z "$haveit"; then
17129 if test -d "$additional_includedir"; then
17130 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17131 fi
17132 fi
17133 fi
17134 fi
17135 fi
17136 if test -n "$found_la"; then
17137 saved_libdir="$libdir"
17138 case "$found_la" in
17139 */* | *\\*) . "$found_la" ;;
17140 *) . "./$found_la" ;;
17141 esac
17142 libdir="$saved_libdir"
17143 for dep in $dependency_libs; do
17144 case "$dep" in
17145 -L*)
17146 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17147 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
17148 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
17149 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
17150 haveit=
17151 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
17152 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
17153 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
17154 if test -n "$GCC"; then
17155 case $host_os in
17156 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17157 esac
17158 fi
17159 fi
17160 if test -z "$haveit"; then
17161 haveit=
17162 for x in $LDFLAGS $LIBICONV; do
17163
17164 acl_saved_prefix="$prefix"
17165 prefix="$acl_final_prefix"
17166 acl_saved_exec_prefix="$exec_prefix"
17167 exec_prefix="$acl_final_exec_prefix"
17168 eval x=\"$x\"
17169 exec_prefix="$acl_saved_exec_prefix"
17170 prefix="$acl_saved_prefix"
17171
17172 if test "X$x" = "X-L$dependency_libdir"; then
17173 haveit=yes
17174 break
17175 fi
17176 done
17177 if test -z "$haveit"; then
17178 if test -d "$dependency_libdir"; then
17179 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
17180 fi
17181 fi
17182 haveit=
17183 for x in $LDFLAGS $LTLIBICONV; do
17184
17185 acl_saved_prefix="$prefix"
17186 prefix="$acl_final_prefix"
17187 acl_saved_exec_prefix="$exec_prefix"
17188 exec_prefix="$acl_final_exec_prefix"
17189 eval x=\"$x\"
17190 exec_prefix="$acl_saved_exec_prefix"
17191 prefix="$acl_saved_prefix"
17192
17193 if test "X$x" = "X-L$dependency_libdir"; then
17194 haveit=yes
17195 break
17196 fi
17197 done
17198 if test -z "$haveit"; then
17199 if test -d "$dependency_libdir"; then
17200 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
17201 fi
17202 fi
17203 fi
17204 fi
17205 ;;
17206 -R*)
17207 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17208 if test "$enable_rpath" != no; then
17209 haveit=
17210 for x in $rpathdirs; do
17211 if test "X$x" = "X$dir"; then
17212 haveit=yes
17213 break
17214 fi
17215 done
17216 if test -z "$haveit"; then
17217 rpathdirs="$rpathdirs $dir"
17218 fi
17219 haveit=
17220 for x in $ltrpathdirs; do
17221 if test "X$x" = "X$dir"; then
17222 haveit=yes
17223 break
17224 fi
17225 done
17226 if test -z "$haveit"; then
17227 ltrpathdirs="$ltrpathdirs $dir"
17228 fi
17229 fi
17230 ;;
17231 -l*)
17232 dep=`echo "X$dep" | sed -e 's/^X-l//'`
17233 if test "X$dep" != Xc \
17234 || case $host_os in
17235 linux* | gnu* | k*bsd*-gnu) false ;;
17236 *) true ;;
17237 esac; then
17238 names_next_round="$names_next_round $dep"
17239 fi
17240 ;;
17241 *.la)
17242 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17243 ;;
17244 *)
17245 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17246 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17247 ;;
17248 esac
17249 done
17250 fi
17251 else
17252 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17254 fi
17255 fi
17256 fi
17257 done
17258 done
17259 if test "X$rpathdirs" != "X"; then
17260 if test -n "$acl_hardcode_libdir_separator"; then
17261 alldirs=
17262 for found_dir in $rpathdirs; do
17263 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17264 done
17265 acl_saved_libdir="$libdir"
17266 libdir="$alldirs"
17267 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17268 libdir="$acl_saved_libdir"
17269 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17270 else
17271 for found_dir in $rpathdirs; do
17272 acl_saved_libdir="$libdir"
17273 libdir="$found_dir"
17274 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17275 libdir="$acl_saved_libdir"
17276 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17277 done
17278 fi
17279 fi
17280 if test "X$ltrpathdirs" != "X"; then
17281 for found_dir in $ltrpathdirs; do
17282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17283 done
17284 fi
17285
17286
17287
17288
17289
17290
17291
17292 gl_sed_double_backslashes='s/\\/\\\\/g'
17293 gl_sed_escape_doublequotes='s/"/\\"/g'
17294 gl_sed_escape_for_make_1="s,\\([ \"&'();<>\\\\\`|]\\),\\\\\\1,g"
17295 gl_sed_escape_for_make_2='s,\$,\\$$,g'
17296 case `echo r | tr -d '\r'` in
17297 '') gl_tr_cr='\015' ;;
17298 *) gl_tr_cr='\r' ;;
17299 esac
17300
17301
17302 gl_saved_prefix="${prefix}"
17303 gl_saved_datarootdir="${datarootdir}"
17304 gl_saved_localedir="${localedir}"
17305 if test "X$prefix" = "XNONE"; then
17306 prefix="$ac_default_prefix"
17307 fi
17308 eval datarootdir="$datarootdir"
17309 eval localedir="$localedir"
17310
17311
17312
17313
17314
17315 gl_final_localedir="$localedir"
17316 case "$build_os" in
17317 cygwin*)
17318 case "$host_os" in
17319 mingw* | windows*)
17320 gl_final_localedir=`cygpath -w "$gl_final_localedir"` ;;
17321 esac
17322 ;;
17323 esac
17324 localedir_c=`printf '%s\n' "$gl_final_localedir" | sed -e "$gl_sed_double_backslashes" -e "$gl_sed_escape_doublequotes" | tr -d "$gl_tr_cr"`
17325 localedir_c='"'"$localedir_c"'"'
17326
17327
17328 localedir_c_make=`printf '%s\n' "$localedir_c" | sed -e "$gl_sed_escape_for_make_1" -e "$gl_sed_escape_for_make_2" | tr -d "$gl_tr_cr"`
17329 if test "$localedir_c_make" = '\"'"${gl_final_localedir}"'\"'; then
17330 localedir_c_make='\"$(localedir)\"'
17331 fi
17332
17333
17334 localedir="${gl_saved_localedir}"
17335 datarootdir="${gl_saved_datarootdir}"
17336 prefix="${gl_saved_prefix}"
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17361 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
17362 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
17363 then :
17364 printf %s "(cached) " >&6
17365 else case e in #(
17366 e) gt_saved_LIBS="$LIBS"
17367 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369 /* end confdefs.h. */
17370 #include <CoreFoundation/CFPreferences.h>
17371 int
17372 main (void)
17373 {
17374 CFPreferencesCopyAppValue(NULL, NULL)
17375 ;
17376 return 0;
17377 }
17378 _ACEOF
17379 if ac_fn_c_try_link "$LINENO"
17380 then :
17381 gt_cv_func_CFPreferencesCopyAppValue=yes
17382 else case e in #(
17383 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
17384 esac
17385 fi
17386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17387 conftest$ac_exeext conftest.$ac_ext
17388 LIBS="$gt_saved_LIBS" ;;
17389 esac
17390 fi
17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17392 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17393 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17394
17395 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17396
17397 fi
17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17399 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17400 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
17401 then :
17402 printf %s "(cached) " >&6
17403 else case e in #(
17404 e) gt_saved_LIBS="$LIBS"
17405 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17408 #include <CoreFoundation/CFLocale.h>
17409 int
17410 main (void)
17411 {
17412 CFLocaleCopyPreferredLanguages();
17413 ;
17414 return 0;
17415 }
17416 _ACEOF
17417 if ac_fn_c_try_link "$LINENO"
17418 then :
17419 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17420 else case e in #(
17421 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
17422 esac
17423 fi
17424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17425 conftest$ac_exeext conftest.$ac_ext
17426 LIBS="$gt_saved_LIBS" ;;
17427 esac
17428 fi
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17430 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17431 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17432
17433 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17434
17435 fi
17436 INTL_MACOSX_LIBS=
17437 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17438 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17439 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17440 fi
17441
17442
17443
17444
17445
17446
17447 LIBINTL=
17448 LTLIBINTL=
17449 POSUB=
17450
17451 case " $gt_needs " in
17452 *" need-formatstring-macros "*) gt_api_version=3 ;;
17453 *" need-ngettext "*) gt_api_version=2 ;;
17454 *) gt_api_version=1 ;;
17455 esac
17456 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17457 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17458
17459 if test "$USE_NLS" = "yes"; then
17460 gt_use_preinstalled_gnugettext=no
17461
17462
17463 if test $gt_api_version -ge 3; then
17464 gt_revision_test_code='
17465 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17466 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17467 #endif
17468 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17469 '
17470 else
17471 gt_revision_test_code=
17472 fi
17473 if test $gt_api_version -ge 2; then
17474 gt_expression_test_code=' + * ngettext ("", "", 0)'
17475 else
17476 gt_expression_test_code=
17477 fi
17478
17479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17480 printf %s "checking for GNU gettext in libc... " >&6; }
17481 if eval test \${$gt_func_gnugettext_libc+y}
17482 then :
17483 printf %s "(cached) " >&6
17484 else case e in #(
17485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487
17488 #include <libintl.h>
17489 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17490 extern int _nl_msg_cat_cntr;
17491 extern int *_nl_domain_bindings;
17492 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17493 #else
17494 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17495 #endif
17496 $gt_revision_test_code
17497
17498 int
17499 main (void)
17500 {
17501
17502 bindtextdomain ("", "");
17503 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17504
17505 ;
17506 return 0;
17507 }
17508 _ACEOF
17509 if ac_fn_c_try_link "$LINENO"
17510 then :
17511 eval "$gt_func_gnugettext_libc=yes"
17512 else case e in #(
17513 e) eval "$gt_func_gnugettext_libc=no" ;;
17514 esac
17515 fi
17516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17517 conftest$ac_exeext conftest.$ac_ext ;;
17518 esac
17519 fi
17520 eval ac_res=\$$gt_func_gnugettext_libc
17521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17522 printf "%s\n" "$ac_res" >&6; }
17523
17524 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17525
17526
17527
17528
17529
17530 gl_saved_CPPFLAGS="$CPPFLAGS"
17531
17532 for element in $INCICONV; do
17533 haveit=
17534 for x in $CPPFLAGS; do
17535
17536 acl_saved_prefix="$prefix"
17537 prefix="$acl_final_prefix"
17538 acl_saved_exec_prefix="$exec_prefix"
17539 exec_prefix="$acl_final_exec_prefix"
17540 eval x=\"$x\"
17541 exec_prefix="$acl_saved_exec_prefix"
17542 prefix="$acl_saved_prefix"
17543
17544 if test "X$x" = "X$element"; then
17545 haveit=yes
17546 break
17547 fi
17548 done
17549 if test -z "$haveit"; then
17550 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17551 fi
17552 done
17553
17554
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17556 printf %s "checking for iconv... " >&6; }
17557 if test ${am_cv_func_iconv+y}
17558 then :
17559 printf %s "(cached) " >&6
17560 else case e in #(
17561 e)
17562 am_cv_func_iconv="no, consider installing GNU libiconv"
17563 am_cv_lib_iconv=no
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17566
17567 #include <stdlib.h>
17568 #include <iconv.h>
17569
17570 int
17571 main (void)
17572 {
17573 iconv_t cd = iconv_open("","");
17574 iconv(cd,NULL,NULL,NULL,NULL);
17575 iconv_close(cd);
17576 ;
17577 return 0;
17578 }
17579 _ACEOF
17580 if ac_fn_c_try_link "$LINENO"
17581 then :
17582 am_cv_func_iconv=yes
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17585 conftest$ac_exeext conftest.$ac_ext
17586 if test "$am_cv_func_iconv" != yes; then
17587 gl_saved_LIBS="$LIBS"
17588 LIBS="$LIBS $LIBICONV"
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591
17592 #include <stdlib.h>
17593 #include <iconv.h>
17594
17595 int
17596 main (void)
17597 {
17598 iconv_t cd = iconv_open("","");
17599 iconv(cd,NULL,NULL,NULL,NULL);
17600 iconv_close(cd);
17601 ;
17602 return 0;
17603 }
17604 _ACEOF
17605 if ac_fn_c_try_link "$LINENO"
17606 then :
17607 am_cv_lib_iconv=yes
17608 am_cv_func_iconv=yes
17609 fi
17610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17611 conftest$ac_exeext conftest.$ac_ext
17612 LIBS="$gl_saved_LIBS"
17613 fi
17614 ;;
17615 esac
17616 fi
17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17618 printf "%s\n" "$am_cv_func_iconv" >&6; }
17619 if test "$am_cv_func_iconv" = yes; then
17620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17621 printf %s "checking for working iconv... " >&6; }
17622 if test ${am_cv_func_iconv_works+y}
17623 then :
17624 printf %s "(cached) " >&6
17625 else case e in #(
17626 e)
17627 gl_saved_LIBS="$LIBS"
17628 if test $am_cv_lib_iconv = yes; then
17629 LIBS="$LIBS $LIBICONV"
17630 fi
17631 am_cv_func_iconv_works=no
17632 for ac_iconv_const in '' 'const'; do
17633 if test "$cross_compiling" = yes
17634 then :
17635 case "$host_os" in
17636 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17637 *) am_cv_func_iconv_works="guessing yes" ;;
17638 esac
17639 else case e in #(
17640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h. */
17642
17643 #include <iconv.h>
17644 #include <string.h>
17645
17646 #ifndef ICONV_CONST
17647 # define ICONV_CONST $ac_iconv_const
17648 #endif
17649
17650 int
17651 main (void)
17652 {
17653 int result = 0;
17654 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17655 successful returns. This is even documented in
17656 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17657 {
17658 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17659 if (cd_utf8_to_88591 != (iconv_t)(-1))
17660 {
17661 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17662 char buf[10];
17663 ICONV_CONST char *inptr = input;
17664 size_t inbytesleft = strlen (input);
17665 char *outptr = buf;
17666 size_t outbytesleft = sizeof (buf);
17667 size_t res = iconv (cd_utf8_to_88591,
17668 &inptr, &inbytesleft,
17669 &outptr, &outbytesleft);
17670 if (res == 0)
17671 result |= 1;
17672 iconv_close (cd_utf8_to_88591);
17673 }
17674 }
17675 /* Test against macOS 14.4 bug: Failures are not distinguishable from
17676 successful returns.
17677 POSIX:2018 says: "The iconv() function shall ... return the number of
17678 non-identical conversions performed."
17679 But here, the conversion always does transliteration (the suffixes
17680 "//TRANSLIT" and "//IGNORE" have no effect, nor does iconvctl()) and
17681 does not report when it does a non-identical conversion. */
17682 {
17683 iconv_t cd_utf8_to_88591 = iconv_open ("ISO-8859-1", "UTF-8");
17684 if (cd_utf8_to_88591 != (iconv_t)(-1))
17685 {
17686 static ICONV_CONST char input[] = "\305\202"; /* LATIN SMALL LETTER L WITH STROKE */
17687 char buf[10];
17688 ICONV_CONST char *inptr = input;
17689 size_t inbytesleft = strlen (input);
17690 char *outptr = buf;
17691 size_t outbytesleft = sizeof (buf);
17692 size_t res = iconv (cd_utf8_to_88591,
17693 &inptr, &inbytesleft,
17694 &outptr, &outbytesleft);
17695 /* Here:
17696 With glibc, GNU libiconv (including macOS up to 13): res == (size_t)-1, errno == EILSEQ.
17697 With musl libc, NetBSD 10, Solaris 11: res == 1.
17698 With macOS 14.4: res == 0, output is "l". */
17699 if (res == 0)
17700 result |= 2;
17701 iconv_close (cd_utf8_to_88591);
17702 }
17703 }
17704 /* Test against Solaris 10 bug: Failures are not distinguishable from
17705 successful returns. */
17706 {
17707 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17708 if (cd_ascii_to_88591 != (iconv_t)(-1))
17709 {
17710 static ICONV_CONST char input[] = "\263";
17711 char buf[10];
17712 ICONV_CONST char *inptr = input;
17713 size_t inbytesleft = strlen (input);
17714 char *outptr = buf;
17715 size_t outbytesleft = sizeof (buf);
17716 size_t res = iconv (cd_ascii_to_88591,
17717 &inptr, &inbytesleft,
17718 &outptr, &outbytesleft);
17719 if (res == 0)
17720 result |= 4;
17721 iconv_close (cd_ascii_to_88591);
17722 }
17723 }
17724 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17725 {
17726 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17727 if (cd_88591_to_utf8 != (iconv_t)(-1))
17728 {
17729 static ICONV_CONST char input[] = "\304";
17730 static char buf[2] = { (char)0xDE, (char)0xAD };
17731 ICONV_CONST char *inptr = input;
17732 size_t inbytesleft = 1;
17733 char *outptr = buf;
17734 size_t outbytesleft = 1;
17735 size_t res = iconv (cd_88591_to_utf8,
17736 &inptr, &inbytesleft,
17737 &outptr, &outbytesleft);
17738 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17739 result |= 8;
17740 iconv_close (cd_88591_to_utf8);
17741 }
17742 }
17743 #if 0 /* This bug could be worked around by the caller. */
17744 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17745 {
17746 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17747 if (cd_88591_to_utf8 != (iconv_t)(-1))
17748 {
17749 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17750 char buf[50];
17751 ICONV_CONST char *inptr = input;
17752 size_t inbytesleft = strlen (input);
17753 char *outptr = buf;
17754 size_t outbytesleft = sizeof (buf);
17755 size_t res = iconv (cd_88591_to_utf8,
17756 &inptr, &inbytesleft,
17757 &outptr, &outbytesleft);
17758 if ((int)res > 0)
17759 result |= 16;
17760 iconv_close (cd_88591_to_utf8);
17761 }
17762 }
17763 #endif
17764 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17765 provided. */
17766 {
17767 /* Try standardized names. */
17768 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17769 /* Try IRIX, OSF/1 names. */
17770 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17771 /* Try AIX names. */
17772 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17773 /* Try HP-UX names. */
17774 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17775 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17776 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17777 result |= 32;
17778 if (cd1 != (iconv_t)(-1))
17779 iconv_close (cd1);
17780 if (cd2 != (iconv_t)(-1))
17781 iconv_close (cd2);
17782 if (cd3 != (iconv_t)(-1))
17783 iconv_close (cd3);
17784 if (cd4 != (iconv_t)(-1))
17785 iconv_close (cd4);
17786 }
17787 return result;
17788
17789 ;
17790 return 0;
17791 }
17792 _ACEOF
17793 if ac_fn_c_try_run "$LINENO"
17794 then :
17795 am_cv_func_iconv_works=yes
17796 fi
17797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17798 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17799 esac
17800 fi
17801
17802 test "$am_cv_func_iconv_works" = no || break
17803 done
17804 LIBS="$gl_saved_LIBS"
17805 ;;
17806 esac
17807 fi
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17809 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
17810 case "$am_cv_func_iconv_works" in
17811 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17812 *) am_func_iconv=yes ;;
17813 esac
17814 else
17815 am_func_iconv=no am_cv_lib_iconv=no
17816 fi
17817 if test "$am_func_iconv" = yes; then
17818
17819 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17820
17821 fi
17822 if test "$am_cv_lib_iconv" = yes; then
17823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17824 printf %s "checking how to link with libiconv... " >&6; }
17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17826 printf "%s\n" "$LIBICONV" >&6; }
17827 else
17828 CPPFLAGS="$gl_saved_CPPFLAGS"
17829 LIBICONV=
17830 LTLIBICONV=
17831 fi
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842 use_additional=yes
17843
17844 acl_saved_prefix="$prefix"
17845 prefix="$acl_final_prefix"
17846 acl_saved_exec_prefix="$exec_prefix"
17847 exec_prefix="$acl_final_exec_prefix"
17848
17849 eval additional_includedir=\"$includedir\"
17850 eval additional_libdir=\"$libdir\"
17851 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17852 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17853
17854 exec_prefix="$acl_saved_exec_prefix"
17855 prefix="$acl_saved_prefix"
17856
17857
17858 # Check whether --with-libintl-prefix was given.
17859 if test ${with_libintl_prefix+y}
17860 then :
17861 withval=$with_libintl_prefix;
17862 if test "X$withval" = "Xno"; then
17863 use_additional=no
17864 else
17865 if test "X$withval" = "X"; then
17866
17867 acl_saved_prefix="$prefix"
17868 prefix="$acl_final_prefix"
17869 acl_saved_exec_prefix="$exec_prefix"
17870 exec_prefix="$acl_final_exec_prefix"
17871
17872 eval additional_includedir=\"$includedir\"
17873 eval additional_libdir=\"$libdir\"
17874 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17875 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17876
17877 exec_prefix="$acl_saved_exec_prefix"
17878 prefix="$acl_saved_prefix"
17879
17880 else
17881 additional_includedir="$withval/include"
17882 additional_libdir="$withval/$acl_libdirstem"
17883 additional_libdir2="$withval/$acl_libdirstem2"
17884 additional_libdir3="$withval/$acl_libdirstem3"
17885 fi
17886 fi
17887
17888 fi
17889
17890 if test "X$additional_libdir2" = "X$additional_libdir"; then
17891 additional_libdir2=
17892 fi
17893 if test "X$additional_libdir3" = "X$additional_libdir"; then
17894 additional_libdir3=
17895 fi
17896 LIBINTL=
17897 LTLIBINTL=
17898 INCINTL=
17899 LIBINTL_PREFIX=
17900 HAVE_LIBINTL=
17901 rpathdirs=
17902 ltrpathdirs=
17903 names_already_handled=
17904 names_next_round='intl '
17905 while test -n "$names_next_round"; do
17906 names_this_round="$names_next_round"
17907 names_next_round=
17908 for name in $names_this_round; do
17909 already_handled=
17910 for n in $names_already_handled; do
17911 if test "$n" = "$name"; then
17912 already_handled=yes
17913 break
17914 fi
17915 done
17916 if test -z "$already_handled"; then
17917 names_already_handled="$names_already_handled $name"
17918 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17919 eval value=\"\$HAVE_LIB$uppername\"
17920 if test -n "$value"; then
17921 if test "$value" = yes; then
17922 eval value=\"\$LIB$uppername\"
17923 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17924 eval value=\"\$LTLIB$uppername\"
17925 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17926 else
17927 :
17928 fi
17929 else
17930 found_dir=
17931 found_la=
17932 found_so=
17933 found_a=
17934 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17935 if test -n "$acl_shlibext"; then
17936 shrext=".$acl_shlibext" # typically: shrext=.so
17937 else
17938 shrext=
17939 fi
17940 if test $use_additional = yes; then
17941 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
17942 if test "X$found_dir" = "X"; then
17943 eval dir=\$$additional_libdir_variable
17944 if test -n "$dir"; then
17945 if test -n "$acl_shlibext"; then
17946 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17947 found_dir="$dir"
17948 found_so="$dir/$libname$shrext"
17949 else
17950 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17951 ver=`(cd "$dir" && \
17952 for f in "$libname$shrext".*; do echo "$f"; done \
17953 | sed -e "s,^$libname$shrext\\\\.,," \
17954 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17955 | sed 1q ) 2>/dev/null`
17956 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17957 found_dir="$dir"
17958 found_so="$dir/$libname$shrext.$ver"
17959 fi
17960 else
17961 eval library_names=\"$acl_library_names_spec\"
17962 for f in $library_names; do
17963 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17964 found_dir="$dir"
17965 found_so="$dir/$f"
17966 break
17967 fi
17968 done
17969 fi
17970 fi
17971 fi
17972 if test "X$found_dir" = "X"; then
17973 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17974 found_dir="$dir"
17975 found_a="$dir/$libname.$acl_libext"
17976 fi
17977 fi
17978 if test "X$found_dir" != "X"; then
17979 if test -f "$dir/$libname.la"; then
17980 found_la="$dir/$libname.la"
17981 fi
17982 fi
17983 fi
17984 fi
17985 done
17986 fi
17987 if test "X$found_dir" = "X"; then
17988 for x in $LDFLAGS $LTLIBINTL; do
17989
17990 acl_saved_prefix="$prefix"
17991 prefix="$acl_final_prefix"
17992 acl_saved_exec_prefix="$exec_prefix"
17993 exec_prefix="$acl_final_exec_prefix"
17994 eval x=\"$x\"
17995 exec_prefix="$acl_saved_exec_prefix"
17996 prefix="$acl_saved_prefix"
17997
17998 case "$x" in
17999 -L*)
18000 dir=`echo "X$x" | sed -e 's/^X-L//'`
18001 if test -n "$acl_shlibext"; then
18002 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18003 found_dir="$dir"
18004 found_so="$dir/$libname$shrext"
18005 else
18006 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18007 ver=`(cd "$dir" && \
18008 for f in "$libname$shrext".*; do echo "$f"; done \
18009 | sed -e "s,^$libname$shrext\\\\.,," \
18010 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18011 | sed 1q ) 2>/dev/null`
18012 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18013 found_dir="$dir"
18014 found_so="$dir/$libname$shrext.$ver"
18015 fi
18016 else
18017 eval library_names=\"$acl_library_names_spec\"
18018 for f in $library_names; do
18019 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18020 found_dir="$dir"
18021 found_so="$dir/$f"
18022 break
18023 fi
18024 done
18025 fi
18026 fi
18027 fi
18028 if test "X$found_dir" = "X"; then
18029 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18030 found_dir="$dir"
18031 found_a="$dir/$libname.$acl_libext"
18032 fi
18033 fi
18034 if test "X$found_dir" != "X"; then
18035 if test -f "$dir/$libname.la"; then
18036 found_la="$dir/$libname.la"
18037 fi
18038 fi
18039 ;;
18040 esac
18041 if test "X$found_dir" != "X"; then
18042 break
18043 fi
18044 done
18045 fi
18046 if test "X$found_dir" != "X"; then
18047 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18048 if test "X$found_so" != "X"; then
18049 if test "$enable_rpath" = no \
18050 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18051 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
18052 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
18053 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18054 else
18055 haveit=
18056 for x in $ltrpathdirs; do
18057 if test "X$x" = "X$found_dir"; then
18058 haveit=yes
18059 break
18060 fi
18061 done
18062 if test -z "$haveit"; then
18063 ltrpathdirs="$ltrpathdirs $found_dir"
18064 fi
18065 if test "$acl_hardcode_direct" = yes; then
18066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18067 else
18068 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18069 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18070 haveit=
18071 for x in $rpathdirs; do
18072 if test "X$x" = "X$found_dir"; then
18073 haveit=yes
18074 break
18075 fi
18076 done
18077 if test -z "$haveit"; then
18078 rpathdirs="$rpathdirs $found_dir"
18079 fi
18080 else
18081 haveit=
18082 for x in $LDFLAGS $LIBINTL; do
18083
18084 acl_saved_prefix="$prefix"
18085 prefix="$acl_final_prefix"
18086 acl_saved_exec_prefix="$exec_prefix"
18087 exec_prefix="$acl_final_exec_prefix"
18088 eval x=\"$x\"
18089 exec_prefix="$acl_saved_exec_prefix"
18090 prefix="$acl_saved_prefix"
18091
18092 if test "X$x" = "X-L$found_dir"; then
18093 haveit=yes
18094 break
18095 fi
18096 done
18097 if test -z "$haveit"; then
18098 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18099 fi
18100 if test "$acl_hardcode_minus_L" != no; then
18101 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18102 else
18103 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18104 fi
18105 fi
18106 fi
18107 fi
18108 else
18109 if test "X$found_a" != "X"; then
18110 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18111 else
18112 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18113 fi
18114 fi
18115 additional_includedir=
18116 case "$found_dir" in
18117 */$acl_libdirstem | */$acl_libdirstem/)
18118 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18119 if test "$name" = 'intl'; then
18120 LIBINTL_PREFIX="$basedir"
18121 fi
18122 additional_includedir="$basedir/include"
18123 ;;
18124 */$acl_libdirstem2 | */$acl_libdirstem2/)
18125 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18126 if test "$name" = 'intl'; then
18127 LIBINTL_PREFIX="$basedir"
18128 fi
18129 additional_includedir="$basedir/include"
18130 ;;
18131 */$acl_libdirstem3 | */$acl_libdirstem3/)
18132 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
18133 if test "$name" = 'intl'; then
18134 LIBINTL_PREFIX="$basedir"
18135 fi
18136 additional_includedir="$basedir/include"
18137 ;;
18138 esac
18139 if test "X$additional_includedir" != "X"; then
18140 if test "X$additional_includedir" != "X/usr/include"; then
18141 haveit=
18142 if test "X$additional_includedir" = "X/usr/local/include"; then
18143 if test -n "$GCC"; then
18144 case $host_os in
18145 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18146 esac
18147 fi
18148 fi
18149 if test -z "$haveit"; then
18150 for x in $CPPFLAGS $INCINTL; do
18151
18152 acl_saved_prefix="$prefix"
18153 prefix="$acl_final_prefix"
18154 acl_saved_exec_prefix="$exec_prefix"
18155 exec_prefix="$acl_final_exec_prefix"
18156 eval x=\"$x\"
18157 exec_prefix="$acl_saved_exec_prefix"
18158 prefix="$acl_saved_prefix"
18159
18160 if test "X$x" = "X-I$additional_includedir"; then
18161 haveit=yes
18162 break
18163 fi
18164 done
18165 if test -z "$haveit"; then
18166 if test -d "$additional_includedir"; then
18167 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18168 fi
18169 fi
18170 fi
18171 fi
18172 fi
18173 if test -n "$found_la"; then
18174 saved_libdir="$libdir"
18175 case "$found_la" in
18176 */* | *\\*) . "$found_la" ;;
18177 *) . "./$found_la" ;;
18178 esac
18179 libdir="$saved_libdir"
18180 for dep in $dependency_libs; do
18181 case "$dep" in
18182 -L*)
18183 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18184 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
18185 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
18186 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
18187 haveit=
18188 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
18189 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
18190 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
18191 if test -n "$GCC"; then
18192 case $host_os in
18193 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18194 esac
18195 fi
18196 fi
18197 if test -z "$haveit"; then
18198 haveit=
18199 for x in $LDFLAGS $LIBINTL; do
18200
18201 acl_saved_prefix="$prefix"
18202 prefix="$acl_final_prefix"
18203 acl_saved_exec_prefix="$exec_prefix"
18204 exec_prefix="$acl_final_exec_prefix"
18205 eval x=\"$x\"
18206 exec_prefix="$acl_saved_exec_prefix"
18207 prefix="$acl_saved_prefix"
18208
18209 if test "X$x" = "X-L$dependency_libdir"; then
18210 haveit=yes
18211 break
18212 fi
18213 done
18214 if test -z "$haveit"; then
18215 if test -d "$dependency_libdir"; then
18216 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
18217 fi
18218 fi
18219 haveit=
18220 for x in $LDFLAGS $LTLIBINTL; do
18221
18222 acl_saved_prefix="$prefix"
18223 prefix="$acl_final_prefix"
18224 acl_saved_exec_prefix="$exec_prefix"
18225 exec_prefix="$acl_final_exec_prefix"
18226 eval x=\"$x\"
18227 exec_prefix="$acl_saved_exec_prefix"
18228 prefix="$acl_saved_prefix"
18229
18230 if test "X$x" = "X-L$dependency_libdir"; then
18231 haveit=yes
18232 break
18233 fi
18234 done
18235 if test -z "$haveit"; then
18236 if test -d "$dependency_libdir"; then
18237 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
18238 fi
18239 fi
18240 fi
18241 fi
18242 ;;
18243 -R*)
18244 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18245 if test "$enable_rpath" != no; then
18246 haveit=
18247 for x in $rpathdirs; do
18248 if test "X$x" = "X$dir"; then
18249 haveit=yes
18250 break
18251 fi
18252 done
18253 if test -z "$haveit"; then
18254 rpathdirs="$rpathdirs $dir"
18255 fi
18256 haveit=
18257 for x in $ltrpathdirs; do
18258 if test "X$x" = "X$dir"; then
18259 haveit=yes
18260 break
18261 fi
18262 done
18263 if test -z "$haveit"; then
18264 ltrpathdirs="$ltrpathdirs $dir"
18265 fi
18266 fi
18267 ;;
18268 -l*)
18269 dep=`echo "X$dep" | sed -e 's/^X-l//'`
18270 if test "X$dep" != Xc \
18271 || case $host_os in
18272 linux* | gnu* | k*bsd*-gnu) false ;;
18273 *) true ;;
18274 esac; then
18275 names_next_round="$names_next_round $dep"
18276 fi
18277 ;;
18278 *.la)
18279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18280 ;;
18281 *)
18282 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18283 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18284 ;;
18285 esac
18286 done
18287 fi
18288 else
18289 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18290 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18291 fi
18292 fi
18293 fi
18294 done
18295 done
18296 if test "X$rpathdirs" != "X"; then
18297 if test -n "$acl_hardcode_libdir_separator"; then
18298 alldirs=
18299 for found_dir in $rpathdirs; do
18300 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18301 done
18302 acl_saved_libdir="$libdir"
18303 libdir="$alldirs"
18304 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18305 libdir="$acl_saved_libdir"
18306 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18307 else
18308 for found_dir in $rpathdirs; do
18309 acl_saved_libdir="$libdir"
18310 libdir="$found_dir"
18311 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18312 libdir="$acl_saved_libdir"
18313 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18314 done
18315 fi
18316 fi
18317 if test "X$ltrpathdirs" != "X"; then
18318 for found_dir in $ltrpathdirs; do
18319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18320 done
18321 fi
18322
18323
18324
18325
18326
18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18328 printf %s "checking for GNU gettext in libintl... " >&6; }
18329 if eval test \${$gt_func_gnugettext_libintl+y}
18330 then :
18331 printf %s "(cached) " >&6
18332 else case e in #(
18333 e) gt_saved_CPPFLAGS="$CPPFLAGS"
18334 CPPFLAGS="$CPPFLAGS $INCINTL"
18335 gt_saved_LIBS="$LIBS"
18336 LIBS="$LIBS $LIBINTL"
18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338 /* end confdefs.h. */
18339
18340 #include <libintl.h>
18341 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18342 extern int _nl_msg_cat_cntr;
18343 extern
18344 #ifdef __cplusplus
18345 "C"
18346 #endif
18347 const char *_nl_expand_alias (const char *);
18348 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
18349 #else
18350 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18351 #endif
18352 $gt_revision_test_code
18353
18354 int
18355 main (void)
18356 {
18357
18358 bindtextdomain ("", "");
18359 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18360
18361 ;
18362 return 0;
18363 }
18364 _ACEOF
18365 if ac_fn_c_try_link "$LINENO"
18366 then :
18367 eval "$gt_func_gnugettext_libintl=yes"
18368 else case e in #(
18369 e) eval "$gt_func_gnugettext_libintl=no" ;;
18370 esac
18371 fi
18372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18373 conftest$ac_exeext conftest.$ac_ext
18374 gt_LIBINTL_EXTRA="$INTL_MACOSX_LIBS"
18375
18376 case "$host_os" in
18377 aix*) gt_LIBINTL_EXTRA="-lpthread" ;;
18378 esac
18379 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } \
18380 && { test -n "$LIBICONV" || test -n "$gt_LIBINTL_EXTRA"; }; then
18381 LIBS="$LIBS $LIBICONV $gt_LIBINTL_EXTRA"
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18384
18385 #include <libintl.h>
18386 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18387 extern int _nl_msg_cat_cntr;
18388 extern
18389 #ifdef __cplusplus
18390 "C"
18391 #endif
18392 const char *_nl_expand_alias (const char *);
18393 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
18394 #else
18395 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18396 #endif
18397 $gt_revision_test_code
18398
18399 int
18400 main (void)
18401 {
18402
18403 bindtextdomain ("", "");
18404 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18405
18406 ;
18407 return 0;
18408 }
18409 _ACEOF
18410 if ac_fn_c_try_link "$LINENO"
18411 then :
18412 LIBINTL="$LIBINTL $LIBICONV $gt_LIBINTL_EXTRA"
18413 LTLIBINTL="$LTLIBINTL $LTLIBICONV $gt_LIBINTL_EXTRA"
18414 eval "$gt_func_gnugettext_libintl=yes"
18415
18416 fi
18417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18418 conftest$ac_exeext conftest.$ac_ext
18419 fi
18420 CPPFLAGS="$gt_saved_CPPFLAGS"
18421 LIBS="$gt_saved_LIBS" ;;
18422 esac
18423 fi
18424 eval ac_res=\$$gt_func_gnugettext_libintl
18425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18426 printf "%s\n" "$ac_res" >&6; }
18427 fi
18428
18429 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18430 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18431 && test "$PACKAGE" != gettext-runtime \
18432 && test "$PACKAGE" != gettext-tools \
18433 && test "$PACKAGE" != libintl; }; then
18434 gt_use_preinstalled_gnugettext=yes
18435 else
18436 LIBINTL=
18437 LTLIBINTL=
18438 INCINTL=
18439 fi
18440
18441
18442
18443 if test -n "$INTL_MACOSX_LIBS"; then
18444 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18445 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18446 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18447 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18448 fi
18449 fi
18450
18451 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18452 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18453
18454 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
18455
18456 else
18457 USE_NLS=no
18458 fi
18459 fi
18460
18461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18462 printf %s "checking whether to use NLS... " >&6; }
18463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18464 printf "%s\n" "$USE_NLS" >&6; }
18465 if test "$USE_NLS" = "yes"; then
18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18467 printf %s "checking where the gettext function comes from... " >&6; }
18468 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18469 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18470 gt_source="external libintl"
18471 else
18472 gt_source="libc"
18473 fi
18474 else
18475 gt_source="included intl directory"
18476 fi
18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18478 printf "%s\n" "$gt_source" >&6; }
18479 fi
18480
18481 if test "$USE_NLS" = "yes"; then
18482
18483 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18484 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18486 printf %s "checking how to link with libintl... " >&6; }
18487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18488 printf "%s\n" "$LIBINTL" >&6; }
18489
18490 for element in $INCINTL; do
18491 haveit=
18492 for x in $CPPFLAGS; do
18493
18494 acl_saved_prefix="$prefix"
18495 prefix="$acl_final_prefix"
18496 acl_saved_exec_prefix="$exec_prefix"
18497 exec_prefix="$acl_final_exec_prefix"
18498 eval x=\"$x\"
18499 exec_prefix="$acl_saved_exec_prefix"
18500 prefix="$acl_saved_prefix"
18501
18502 if test "X$x" = "X$element"; then
18503 haveit=yes
18504 break
18505 fi
18506 done
18507 if test -z "$haveit"; then
18508 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18509 fi
18510 done
18511
18512 fi
18513
18514
18515 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
18516
18517
18518 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
18519
18520 fi
18521
18522 POSUB=po
18523 fi
18524
18525
18526
18527
18528 INTLLIBS="$LIBINTL"
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538 # Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18550 if test -n "$ac_tool_prefix"; then
18551 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18552 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18554 printf %s "checking for $ac_word... " >&6; }
18555 if test ${ac_cv_path_PKG_CONFIG+y}
18556 then :
18557 printf %s "(cached) " >&6
18558 else case e in #(
18559 e) case $PKG_CONFIG in
18560 [\\/]* | ?:[\\/]*)
18561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18562 ;;
18563 *)
18564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18565 for as_dir in $PATH
18566 do
18567 IFS=$as_save_IFS
18568 case $as_dir in #(((
18569 '') as_dir=./ ;;
18570 */) ;;
18571 *) as_dir=$as_dir/ ;;
18572 esac
18573 for ac_exec_ext in '' $ac_executable_extensions; do
18574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18575 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18577 break 2
18578 fi
18579 done
18580 done
18581 IFS=$as_save_IFS
18582
18583 ;;
18584 esac ;;
18585 esac
18586 fi
18587 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18588 if test -n "$PKG_CONFIG"; then
18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18590 printf "%s\n" "$PKG_CONFIG" >&6; }
18591 else
18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 printf "%s\n" "no" >&6; }
18594 fi
18595
18596
18597 fi
18598 if test -z "$ac_cv_path_PKG_CONFIG"; then
18599 ac_pt_PKG_CONFIG=$PKG_CONFIG
18600 # Extract the first word of "pkg-config", so it can be a program name with args.
18601 set dummy pkg-config; ac_word=$2
18602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18603 printf %s "checking for $ac_word... " >&6; }
18604 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18605 then :
18606 printf %s "(cached) " >&6
18607 else case e in #(
18608 e) case $ac_pt_PKG_CONFIG in
18609 [\\/]* | ?:[\\/]*)
18610 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18611 ;;
18612 *)
18613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614 for as_dir in $PATH
18615 do
18616 IFS=$as_save_IFS
18617 case $as_dir in #(((
18618 '') as_dir=./ ;;
18619 */) ;;
18620 *) as_dir=$as_dir/ ;;
18621 esac
18622 for ac_exec_ext in '' $ac_executable_extensions; do
18623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18624 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18626 break 2
18627 fi
18628 done
18629 done
18630 IFS=$as_save_IFS
18631
18632 ;;
18633 esac ;;
18634 esac
18635 fi
18636 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18637 if test -n "$ac_pt_PKG_CONFIG"; then
18638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18639 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18640 else
18641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 printf "%s\n" "no" >&6; }
18643 fi
18644
18645 if test "x$ac_pt_PKG_CONFIG" = x; then
18646 PKG_CONFIG=""
18647 else
18648 case $cross_compiling:$ac_tool_warned in
18649 yes:)
18650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18651 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18652 ac_tool_warned=yes ;;
18653 esac
18654 PKG_CONFIG=$ac_pt_PKG_CONFIG
18655 fi
18656 else
18657 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18658 fi
18659
18660 fi
18661 if test -n "$PKG_CONFIG"; then
18662 _pkg_min_version=0.9.0
18663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18664 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18665 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18667 printf "%s\n" "yes" >&6; }
18668 else
18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18670 printf "%s\n" "no" >&6; }
18671 PKG_CONFIG=""
18672 fi
18673 fi
18674 if test -z "$PKG_CONFIG"; then
18675 as_fn_error $? "pkg-config not found" "$LINENO" 5
18676 fi
18677
18678 pkg_failed=no
18679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0 glib-2.0 >= 2.34" >&5
18680 printf %s "checking for gmodule-2.0 glib-2.0 >= 2.34... " >&6; }
18681
18682 if test -n "$GLIB_CFLAGS"; then
18683 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
18684 elif test -n "$PKG_CONFIG"; then
18685 if test -n "$PKG_CONFIG" && \
18686 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 glib-2.0 >= 2.34\""; } >&5
18687 ($PKG_CONFIG --exists --print-errors "gmodule-2.0 glib-2.0 >= 2.34") 2>&5
18688 ac_status=$?
18689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18690 test $ac_status = 0; }; then
18691 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0 glib-2.0 >= 2.34" 2>/dev/null`
18692 test "x$?" != "x0" && pkg_failed=yes
18693 else
18694 pkg_failed=yes
18695 fi
18696 else
18697 pkg_failed=untried
18698 fi
18699 if test -n "$GLIB_LIBS"; then
18700 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
18701 elif test -n "$PKG_CONFIG"; then
18702 if test -n "$PKG_CONFIG" && \
18703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 glib-2.0 >= 2.34\""; } >&5
18704 ($PKG_CONFIG --exists --print-errors "gmodule-2.0 glib-2.0 >= 2.34") 2>&5
18705 ac_status=$?
18706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18707 test $ac_status = 0; }; then
18708 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "gmodule-2.0 glib-2.0 >= 2.34" 2>/dev/null`
18709 test "x$?" != "x0" && pkg_failed=yes
18710 else
18711 pkg_failed=yes
18712 fi
18713 else
18714 pkg_failed=untried
18715 fi
18716
18717
18718
18719 if test $pkg_failed = yes; then
18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 printf "%s\n" "no" >&6; }
18722
18723 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18724 _pkg_short_errors_supported=yes
18725 else
18726 _pkg_short_errors_supported=no
18727 fi
18728 if test $_pkg_short_errors_supported = yes; then
18729 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0 glib-2.0 >= 2.34" 2>&1`
18730 else
18731 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0 glib-2.0 >= 2.34" 2>&1`
18732 fi
18733 # Put the nasty error message in config.log where it belongs
18734 echo "$GLIB_PKG_ERRORS" >&5
18735
18736 as_fn_error $? "Package requirements (gmodule-2.0 glib-2.0 >= 2.34) were not met:
18737
18738 $GLIB_PKG_ERRORS
18739
18740 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18741 installed software in a non-standard prefix.
18742
18743 Alternatively, you may set the environment variables GLIB_CFLAGS
18744 and GLIB_LIBS to avoid the need to call pkg-config.
18745 See the pkg-config man page for more details." "$LINENO" 5
18746 elif test $pkg_failed = untried; then
18747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18748 printf "%s\n" "no" >&6; }
18749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18750 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18751 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18752 is in your PATH or set the PKG_CONFIG environment variable to the full
18753 path to pkg-config.
18754
18755 Alternatively, you may set the environment variables GLIB_CFLAGS
18756 and GLIB_LIBS to avoid the need to call pkg-config.
18757 See the pkg-config man page for more details.
18758
18759 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18760 See 'config.log' for more details" "$LINENO" 5; }
18761 else
18762 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
18763 GLIB_LIBS=$pkg_cv_GLIB_LIBS
18764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18765 printf "%s\n" "yes" >&6; }
18766
18767 fi
18768 GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_34"
18769 GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_34"
18770
18771 if test x"$with_gnome" != xno || test x"$with_gtk4" != xno; then
18772
18773 pkg_failed=no
18774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsecret-1 >= 0.18" >&5
18775 printf %s "checking for libsecret-1 >= 0.18... " >&6; }
18776
18777 if test -n "$LIBSECRET_CFLAGS"; then
18778 pkg_cv_LIBSECRET_CFLAGS="$LIBSECRET_CFLAGS"
18779 elif test -n "$PKG_CONFIG"; then
18780 if test -n "$PKG_CONFIG" && \
18781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1 >= 0.18\""; } >&5
18782 ($PKG_CONFIG --exists --print-errors "libsecret-1 >= 0.18") 2>&5
18783 ac_status=$?
18784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18785 test $ac_status = 0; }; then
18786 pkg_cv_LIBSECRET_CFLAGS=`$PKG_CONFIG --cflags "libsecret-1 >= 0.18" 2>/dev/null`
18787 test "x$?" != "x0" && pkg_failed=yes
18788 else
18789 pkg_failed=yes
18790 fi
18791 else
18792 pkg_failed=untried
18793 fi
18794 if test -n "$LIBSECRET_LIBS"; then
18795 pkg_cv_LIBSECRET_LIBS="$LIBSECRET_LIBS"
18796 elif test -n "$PKG_CONFIG"; then
18797 if test -n "$PKG_CONFIG" && \
18798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1 >= 0.18\""; } >&5
18799 ($PKG_CONFIG --exists --print-errors "libsecret-1 >= 0.18") 2>&5
18800 ac_status=$?
18801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }; then
18803 pkg_cv_LIBSECRET_LIBS=`$PKG_CONFIG --libs "libsecret-1 >= 0.18" 2>/dev/null`
18804 test "x$?" != "x0" && pkg_failed=yes
18805 else
18806 pkg_failed=yes
18807 fi
18808 else
18809 pkg_failed=untried
18810 fi
18811
18812
18813
18814 if test $pkg_failed = yes; then
18815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 printf "%s\n" "no" >&6; }
18817
18818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18819 _pkg_short_errors_supported=yes
18820 else
18821 _pkg_short_errors_supported=no
18822 fi
18823 if test $_pkg_short_errors_supported = yes; then
18824 LIBSECRET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsecret-1 >= 0.18" 2>&1`
18825 else
18826 LIBSECRET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsecret-1 >= 0.18" 2>&1`
18827 fi
18828 # Put the nasty error message in config.log where it belongs
18829 echo "$LIBSECRET_PKG_ERRORS" >&5
18830
18831 as_fn_error $? "Package requirements (libsecret-1 >= 0.18) were not met:
18832
18833 $LIBSECRET_PKG_ERRORS
18834
18835 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18836 installed software in a non-standard prefix.
18837
18838 Alternatively, you may set the environment variables LIBSECRET_CFLAGS
18839 and LIBSECRET_LIBS to avoid the need to call pkg-config.
18840 See the pkg-config man page for more details." "$LINENO" 5
18841 elif test $pkg_failed = untried; then
18842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18843 printf "%s\n" "no" >&6; }
18844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18845 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18846 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18847 is in your PATH or set the PKG_CONFIG environment variable to the full
18848 path to pkg-config.
18849
18850 Alternatively, you may set the environment variables LIBSECRET_CFLAGS
18851 and LIBSECRET_LIBS to avoid the need to call pkg-config.
18852 See the pkg-config man page for more details.
18853
18854 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18855 See 'config.log' for more details" "$LINENO" 5; }
18856 else
18857 LIBSECRET_CFLAGS=$pkg_cv_LIBSECRET_CFLAGS
18858 LIBSECRET_LIBS=$pkg_cv_LIBSECRET_LIBS
18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18860 printf "%s\n" "yes" >&6; }
18861
18862 fi
18863 fi
18864
18865 if test x"$with_gnome" != xno; then
18866
18867 pkg_failed=no
18868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0 >= 3.4" >&5
18869 printf %s "checking for gtk+-3.0 >= 3.4... " >&6; }
18870
18871 if test -n "$GTK_CFLAGS"; then
18872 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18873 elif test -n "$PKG_CONFIG"; then
18874 if test -n "$PKG_CONFIG" && \
18875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
18876 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
18877 ac_status=$?
18878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18879 test $ac_status = 0; }; then
18880 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.4" 2>/dev/null`
18881 test "x$?" != "x0" && pkg_failed=yes
18882 else
18883 pkg_failed=yes
18884 fi
18885 else
18886 pkg_failed=untried
18887 fi
18888 if test -n "$GTK_LIBS"; then
18889 pkg_cv_GTK_LIBS="$GTK_LIBS"
18890 elif test -n "$PKG_CONFIG"; then
18891 if test -n "$PKG_CONFIG" && \
18892 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
18893 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
18894 ac_status=$?
18895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18896 test $ac_status = 0; }; then
18897 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.4" 2>/dev/null`
18898 test "x$?" != "x0" && pkg_failed=yes
18899 else
18900 pkg_failed=yes
18901 fi
18902 else
18903 pkg_failed=untried
18904 fi
18905
18906
18907
18908 if test $pkg_failed = yes; then
18909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18910 printf "%s\n" "no" >&6; }
18911
18912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18913 _pkg_short_errors_supported=yes
18914 else
18915 _pkg_short_errors_supported=no
18916 fi
18917 if test $_pkg_short_errors_supported = yes; then
18918 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.4" 2>&1`
18919 else
18920 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.4" 2>&1`
18921 fi
18922 # Put the nasty error message in config.log where it belongs
18923 echo "$GTK_PKG_ERRORS" >&5
18924
18925 as_fn_error $? "Package requirements (gtk+-3.0 >= 3.4) were not met:
18926
18927 $GTK_PKG_ERRORS
18928
18929 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18930 installed software in a non-standard prefix.
18931
18932 Alternatively, you may set the environment variables GTK_CFLAGS
18933 and GTK_LIBS to avoid the need to call pkg-config.
18934 See the pkg-config man page for more details." "$LINENO" 5
18935 elif test $pkg_failed = untried; then
18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18937 printf "%s\n" "no" >&6; }
18938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18939 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18940 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18941 is in your PATH or set the PKG_CONFIG environment variable to the full
18942 path to pkg-config.
18943
18944 Alternatively, you may set the environment variables GTK_CFLAGS
18945 and GTK_LIBS to avoid the need to call pkg-config.
18946 See the pkg-config man page for more details.
18947
18948 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18949 See 'config.log' for more details" "$LINENO" 5; }
18950 else
18951 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18952 GTK_LIBS=$pkg_cv_GTK_LIBS
18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18954 printf "%s\n" "yes" >&6; }
18955
18956 fi
18957 GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4"
18958 GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4"
18959
18960 pkg_failed=no
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnma >= 1.8.0" >&5
18962 printf %s "checking for libnma >= 1.8.0... " >&6; }
18963
18964 if test -n "$LIBNMA_CFLAGS"; then
18965 pkg_cv_LIBNMA_CFLAGS="$LIBNMA_CFLAGS"
18966 elif test -n "$PKG_CONFIG"; then
18967 if test -n "$PKG_CONFIG" && \
18968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma >= 1.8.0\""; } >&5
18969 ($PKG_CONFIG --exists --print-errors "libnma >= 1.8.0") 2>&5
18970 ac_status=$?
18971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18972 test $ac_status = 0; }; then
18973 pkg_cv_LIBNMA_CFLAGS=`$PKG_CONFIG --cflags "libnma >= 1.8.0" 2>/dev/null`
18974 test "x$?" != "x0" && pkg_failed=yes
18975 else
18976 pkg_failed=yes
18977 fi
18978 else
18979 pkg_failed=untried
18980 fi
18981 if test -n "$LIBNMA_LIBS"; then
18982 pkg_cv_LIBNMA_LIBS="$LIBNMA_LIBS"
18983 elif test -n "$PKG_CONFIG"; then
18984 if test -n "$PKG_CONFIG" && \
18985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma >= 1.8.0\""; } >&5
18986 ($PKG_CONFIG --exists --print-errors "libnma >= 1.8.0") 2>&5
18987 ac_status=$?
18988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18989 test $ac_status = 0; }; then
18990 pkg_cv_LIBNMA_LIBS=`$PKG_CONFIG --libs "libnma >= 1.8.0" 2>/dev/null`
18991 test "x$?" != "x0" && pkg_failed=yes
18992 else
18993 pkg_failed=yes
18994 fi
18995 else
18996 pkg_failed=untried
18997 fi
18998
18999
19000
19001 if test $pkg_failed = yes; then
19002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003 printf "%s\n" "no" >&6; }
19004
19005 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19006 _pkg_short_errors_supported=yes
19007 else
19008 _pkg_short_errors_supported=no
19009 fi
19010 if test $_pkg_short_errors_supported = yes; then
19011 LIBNMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnma >= 1.8.0" 2>&1`
19012 else
19013 LIBNMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnma >= 1.8.0" 2>&1`
19014 fi
19015 # Put the nasty error message in config.log where it belongs
19016 echo "$LIBNMA_PKG_ERRORS" >&5
19017
19018 as_fn_error $? "Package requirements (libnma >= 1.8.0) were not met:
19019
19020 $LIBNMA_PKG_ERRORS
19021
19022 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19023 installed software in a non-standard prefix.
19024
19025 Alternatively, you may set the environment variables LIBNMA_CFLAGS
19026 and LIBNMA_LIBS to avoid the need to call pkg-config.
19027 See the pkg-config man page for more details." "$LINENO" 5
19028 elif test $pkg_failed = untried; then
19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19030 printf "%s\n" "no" >&6; }
19031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19032 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19033 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19034 is in your PATH or set the PKG_CONFIG environment variable to the full
19035 path to pkg-config.
19036
19037 Alternatively, you may set the environment variables LIBNMA_CFLAGS
19038 and LIBNMA_LIBS to avoid the need to call pkg-config.
19039 See the pkg-config man page for more details.
19040
19041 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19042 See 'config.log' for more details" "$LINENO" 5; }
19043 else
19044 LIBNMA_CFLAGS=$pkg_cv_LIBNMA_CFLAGS
19045 LIBNMA_LIBS=$pkg_cv_LIBNMA_LIBS
19046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19047 printf "%s\n" "yes" >&6; }
19048
19049 fi
19050 fi
19051
19052 if test x"$with_gtk4" != xno; then
19053
19054 pkg_failed=no
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk4 >= 4.0" >&5
19056 printf %s "checking for gtk4 >= 4.0... " >&6; }
19057
19058 if test -n "$GTK4_CFLAGS"; then
19059 pkg_cv_GTK4_CFLAGS="$GTK4_CFLAGS"
19060 elif test -n "$PKG_CONFIG"; then
19061 if test -n "$PKG_CONFIG" && \
19062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4 >= 4.0\""; } >&5
19063 ($PKG_CONFIG --exists --print-errors "gtk4 >= 4.0") 2>&5
19064 ac_status=$?
19065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19066 test $ac_status = 0; }; then
19067 pkg_cv_GTK4_CFLAGS=`$PKG_CONFIG --cflags "gtk4 >= 4.0" 2>/dev/null`
19068 test "x$?" != "x0" && pkg_failed=yes
19069 else
19070 pkg_failed=yes
19071 fi
19072 else
19073 pkg_failed=untried
19074 fi
19075 if test -n "$GTK4_LIBS"; then
19076 pkg_cv_GTK4_LIBS="$GTK4_LIBS"
19077 elif test -n "$PKG_CONFIG"; then
19078 if test -n "$PKG_CONFIG" && \
19079 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4 >= 4.0\""; } >&5
19080 ($PKG_CONFIG --exists --print-errors "gtk4 >= 4.0") 2>&5
19081 ac_status=$?
19082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19083 test $ac_status = 0; }; then
19084 pkg_cv_GTK4_LIBS=`$PKG_CONFIG --libs "gtk4 >= 4.0" 2>/dev/null`
19085 test "x$?" != "x0" && pkg_failed=yes
19086 else
19087 pkg_failed=yes
19088 fi
19089 else
19090 pkg_failed=untried
19091 fi
19092
19093
19094
19095 if test $pkg_failed = yes; then
19096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19097 printf "%s\n" "no" >&6; }
19098
19099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19100 _pkg_short_errors_supported=yes
19101 else
19102 _pkg_short_errors_supported=no
19103 fi
19104 if test $_pkg_short_errors_supported = yes; then
19105 GTK4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk4 >= 4.0" 2>&1`
19106 else
19107 GTK4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk4 >= 4.0" 2>&1`
19108 fi
19109 # Put the nasty error message in config.log where it belongs
19110 echo "$GTK4_PKG_ERRORS" >&5
19111
19112 as_fn_error $? "Package requirements (gtk4 >= 4.0) were not met:
19113
19114 $GTK4_PKG_ERRORS
19115
19116 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19117 installed software in a non-standard prefix.
19118
19119 Alternatively, you may set the environment variables GTK4_CFLAGS
19120 and GTK4_LIBS to avoid the need to call pkg-config.
19121 See the pkg-config man page for more details." "$LINENO" 5
19122 elif test $pkg_failed = untried; then
19123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124 printf "%s\n" "no" >&6; }
19125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19126 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19127 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19128 is in your PATH or set the PKG_CONFIG environment variable to the full
19129 path to pkg-config.
19130
19131 Alternatively, you may set the environment variables GTK4_CFLAGS
19132 and GTK4_LIBS to avoid the need to call pkg-config.
19133 See the pkg-config man page for more details.
19134
19135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19136 See 'config.log' for more details" "$LINENO" 5; }
19137 else
19138 GTK4_CFLAGS=$pkg_cv_GTK4_CFLAGS
19139 GTK4_LIBS=$pkg_cv_GTK4_LIBS
19140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19141 printf "%s\n" "yes" >&6; }
19142
19143 fi
19144 GTK4_CFLAGS="$GTK4_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_4_0"
19145 GTK4_CFLAGS="$GTK4_CFLAGS -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_4_0"
19146
19147 pkg_failed=no
19148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnma-gtk4 >= 1.8.33" >&5
19149 printf %s "checking for libnma-gtk4 >= 1.8.33... " >&6; }
19150
19151 if test -n "$LIBNMA_GTK4_CFLAGS"; then
19152 pkg_cv_LIBNMA_GTK4_CFLAGS="$LIBNMA_GTK4_CFLAGS"
19153 elif test -n "$PKG_CONFIG"; then
19154 if test -n "$PKG_CONFIG" && \
19155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma-gtk4 >= 1.8.33\""; } >&5
19156 ($PKG_CONFIG --exists --print-errors "libnma-gtk4 >= 1.8.33") 2>&5
19157 ac_status=$?
19158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19159 test $ac_status = 0; }; then
19160 pkg_cv_LIBNMA_GTK4_CFLAGS=`$PKG_CONFIG --cflags "libnma-gtk4 >= 1.8.33" 2>/dev/null`
19161 test "x$?" != "x0" && pkg_failed=yes
19162 else
19163 pkg_failed=yes
19164 fi
19165 else
19166 pkg_failed=untried
19167 fi
19168 if test -n "$LIBNMA_GTK4_LIBS"; then
19169 pkg_cv_LIBNMA_GTK4_LIBS="$LIBNMA_GTK4_LIBS"
19170 elif test -n "$PKG_CONFIG"; then
19171 if test -n "$PKG_CONFIG" && \
19172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma-gtk4 >= 1.8.33\""; } >&5
19173 ($PKG_CONFIG --exists --print-errors "libnma-gtk4 >= 1.8.33") 2>&5
19174 ac_status=$?
19175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19176 test $ac_status = 0; }; then
19177 pkg_cv_LIBNMA_GTK4_LIBS=`$PKG_CONFIG --libs "libnma-gtk4 >= 1.8.33" 2>/dev/null`
19178 test "x$?" != "x0" && pkg_failed=yes
19179 else
19180 pkg_failed=yes
19181 fi
19182 else
19183 pkg_failed=untried
19184 fi
19185
19186
19187
19188 if test $pkg_failed = yes; then
19189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19190 printf "%s\n" "no" >&6; }
19191
19192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19193 _pkg_short_errors_supported=yes
19194 else
19195 _pkg_short_errors_supported=no
19196 fi
19197 if test $_pkg_short_errors_supported = yes; then
19198 LIBNMA_GTK4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnma-gtk4 >= 1.8.33" 2>&1`
19199 else
19200 LIBNMA_GTK4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnma-gtk4 >= 1.8.33" 2>&1`
19201 fi
19202 # Put the nasty error message in config.log where it belongs
19203 echo "$LIBNMA_GTK4_PKG_ERRORS" >&5
19204
19205 as_fn_error $? "Package requirements (libnma-gtk4 >= 1.8.33) were not met:
19206
19207 $LIBNMA_GTK4_PKG_ERRORS
19208
19209 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19210 installed software in a non-standard prefix.
19211
19212 Alternatively, you may set the environment variables LIBNMA_GTK4_CFLAGS
19213 and LIBNMA_GTK4_LIBS to avoid the need to call pkg-config.
19214 See the pkg-config man page for more details." "$LINENO" 5
19215 elif test $pkg_failed = untried; then
19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 printf "%s\n" "no" >&6; }
19218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19219 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19220 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19221 is in your PATH or set the PKG_CONFIG environment variable to the full
19222 path to pkg-config.
19223
19224 Alternatively, you may set the environment variables LIBNMA_GTK4_CFLAGS
19225 and LIBNMA_GTK4_LIBS to avoid the need to call pkg-config.
19226 See the pkg-config man page for more details.
19227
19228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19229 See 'config.log' for more details" "$LINENO" 5; }
19230 else
19231 LIBNMA_GTK4_CFLAGS=$pkg_cv_LIBNMA_GTK4_CFLAGS
19232 LIBNMA_GTK4_LIBS=$pkg_cv_LIBNMA_GTK4_LIBS
19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19234 printf "%s\n" "yes" >&6; }
19235
19236 fi
19237 fi
19238
19239
19240 pkg_failed=no
19241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnm >= 1.52.2" >&5
19242 printf %s "checking for libnm >= 1.52.2... " >&6; }
19243
19244 if test -n "$LIBNM_CFLAGS"; then
19245 pkg_cv_LIBNM_CFLAGS="$LIBNM_CFLAGS"
19246 elif test -n "$PKG_CONFIG"; then
19247 if test -n "$PKG_CONFIG" && \
19248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.52.2\""; } >&5
19249 ($PKG_CONFIG --exists --print-errors "libnm >= 1.52.2") 2>&5
19250 ac_status=$?
19251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252 test $ac_status = 0; }; then
19253 pkg_cv_LIBNM_CFLAGS=`$PKG_CONFIG --cflags "libnm >= 1.52.2" 2>/dev/null`
19254 test "x$?" != "x0" && pkg_failed=yes
19255 else
19256 pkg_failed=yes
19257 fi
19258 else
19259 pkg_failed=untried
19260 fi
19261 if test -n "$LIBNM_LIBS"; then
19262 pkg_cv_LIBNM_LIBS="$LIBNM_LIBS"
19263 elif test -n "$PKG_CONFIG"; then
19264 if test -n "$PKG_CONFIG" && \
19265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.52.2\""; } >&5
19266 ($PKG_CONFIG --exists --print-errors "libnm >= 1.52.2") 2>&5
19267 ac_status=$?
19268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19269 test $ac_status = 0; }; then
19270 pkg_cv_LIBNM_LIBS=`$PKG_CONFIG --libs "libnm >= 1.52.2" 2>/dev/null`
19271 test "x$?" != "x0" && pkg_failed=yes
19272 else
19273 pkg_failed=yes
19274 fi
19275 else
19276 pkg_failed=untried
19277 fi
19278
19279
19280
19281 if test $pkg_failed = yes; then
19282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283 printf "%s\n" "no" >&6; }
19284
19285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19286 _pkg_short_errors_supported=yes
19287 else
19288 _pkg_short_errors_supported=no
19289 fi
19290 if test $_pkg_short_errors_supported = yes; then
19291 LIBNM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnm >= 1.52.2" 2>&1`
19292 else
19293 LIBNM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnm >= 1.52.2" 2>&1`
19294 fi
19295 # Put the nasty error message in config.log where it belongs
19296 echo "$LIBNM_PKG_ERRORS" >&5
19297
19298 as_fn_error $? "Package requirements (libnm >= 1.52.2) were not met:
19299
19300 $LIBNM_PKG_ERRORS
19301
19302 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19303 installed software in a non-standard prefix.
19304
19305 Alternatively, you may set the environment variables LIBNM_CFLAGS
19306 and LIBNM_LIBS to avoid the need to call pkg-config.
19307 See the pkg-config man page for more details." "$LINENO" 5
19308 elif test $pkg_failed = untried; then
19309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19310 printf "%s\n" "no" >&6; }
19311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19312 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19313 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19314 is in your PATH or set the PKG_CONFIG environment variable to the full
19315 path to pkg-config.
19316
19317 Alternatively, you may set the environment variables LIBNM_CFLAGS
19318 and LIBNM_LIBS to avoid the need to call pkg-config.
19319 See the pkg-config man page for more details.
19320
19321 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19322 See 'config.log' for more details" "$LINENO" 5; }
19323 else
19324 LIBNM_CFLAGS=$pkg_cv_LIBNM_CFLAGS
19325 LIBNM_LIBS=$pkg_cv_LIBNM_LIBS
19326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327 printf "%s\n" "yes" >&6; }
19328
19329 fi
19330
19331 NM_VPN_SERVICE_DIR=`$PKG_CONFIG --define-variable prefix='\${prefix}' --variable vpnservicedir libnm`
19332
19333
19334 # Check whether --enable-more-warnings was given.
19335 if test ${enable_more_warnings+y}
19336 then :
19337 enableval=$enable_more_warnings; set_more_warnings="$enableval"
19338 else case e in #(
19339 e) set_more_warnings=yes ;;
19340 esac
19341 fi
19342
19343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for more warnings" >&5
19344 printf %s "checking for more warnings... " >&6; }
19345 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19347 printf "%s\n" "yes" >&6; }
19348
19349 CFLAGS_SAVED="$CFLAGS"
19350 CFLAGS="$CFLAGS -Qunused-arguments"
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19353
19354 _ACEOF
19355 if ac_fn_c_try_compile "$LINENO"
19356 then :
19357
19358 else case e in #(
19359 e) CFLAGS="$CFLAGS_SAVED" ;;
19360 esac
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19363 unset CFLAGS_SAVED
19364
19365
19366
19367 CFLAGS_SAVED="$CFLAGS"
19368 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunknown-warning-option"
19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunknown-warning-option works as expected" >&5
19370 printf %s "checking whether -Wunknown-warning-option works as expected... " >&6; }
19371
19372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19373 /* end confdefs.h. */
19374
19375 _ACEOF
19376 if ac_fn_c_try_compile "$LINENO"
19377 then :
19378
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19381
19382 _ACEOF
19383 if ac_fn_c_try_compile "$LINENO"
19384 then :
19385
19386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19387 printf "%s\n" "yes" >&6; }
19388 CFLAGS="$CFLAGS_SAVED"
19389 CFLAGS="$CFLAGS -Wunknown-warning-option"
19390
19391 else case e in #(
19392 e)
19393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19394 printf "%s\n" "no" >&6; }
19395 CFLAGS="$CFLAGS_SAVED"
19396 CFLAGS="$CFLAGS -Wno-unknown-warning-option"
19397 ;;
19398 esac
19399 fi
19400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19401
19402 else case e in #(
19403 e)
19404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19405 printf "%s\n" "not supported" >&6; }
19406 CFLAGS="$CFLAGS_SAVED"
19407 ;;
19408 esac
19409 fi
19410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19411
19412
19413
19414 CFLAGS_MORE_WARNINGS="-Wall -std=gnu99"
19415
19416 if test "x$set_more_warnings" = xerror; then
19417 CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS -Werror"
19418 fi
19419
19420 for option in \
19421 -Wextra \
19422 -Wdeclaration-after-statement \
19423 -Wfloat-equal \
19424 -Wformat-nonliteral \
19425 -Wformat-security \
19426 -Wimplicit-fallthrough \
19427 -Wimplicit-function-declaration \
19428 -Winit-self \
19429 -Wlogical-op \
19430 -Wmissing-declarations \
19431 -Wmissing-include-dirs \
19432 -Wmissing-prototypes \
19433 -Wpointer-arith \
19434 -Wshadow \
19435 -Wshift-negative-value \
19436 -Wstrict-prototypes \
19437 -Wundef \
19438 -Wno-duplicate-decl-specifier \
19439 -Wno-format-truncation \
19440 -Wno-format-y2k \
19441 -Wno-missing-field-initializers \
19442 -Wno-pragmas \
19443 -Wno-sign-compare \
19444 -Wno-unused-but-set-variable \
19445 -Wno-unused-parameter \
19446 ; do
19447
19448 CFLAGS_SAVED="$CFLAGS"
19449 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror $(printf '%s' "$option" | sed 's/^-Wno-/-W/')"
19450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $(printf '%s' \"$option\" | sed 's/^-Wno-/-W/') works as expected" >&5
19451 printf %s "checking whether $(printf '%s' \"$option\" | sed 's/^-Wno-/-W/') works as expected... " >&6; }
19452
19453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19454 /* end confdefs.h. */
19455
19456 _ACEOF
19457 if ac_fn_c_try_compile "$LINENO"
19458 then :
19459
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462
19463 _ACEOF
19464 if ac_fn_c_try_compile "$LINENO"
19465 then :
19466
19467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19468 printf "%s\n" "yes" >&6; }
19469 CFLAGS="$CFLAGS_SAVED"
19470 CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS $option"
19471
19472 else case e in #(
19473 e)
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19475 printf "%s\n" "no" >&6; }
19476 CFLAGS="$CFLAGS_SAVED"
19477
19478 ;;
19479 esac
19480 fi
19481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19482
19483 else case e in #(
19484 e)
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19486 printf "%s\n" "not supported" >&6; }
19487 CFLAGS="$CFLAGS_SAVED"
19488 ;;
19489 esac
19490 fi
19491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19492
19493 done
19494 unset option
19495
19496
19497
19498
19499 CFLAGS_SAVED="$CFLAGS"
19500 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunknown-attributes"
19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunknown-attributes works as expected" >&5
19502 printf %s "checking whether -Wunknown-attributes works as expected... " >&6; }
19503
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506
19507 _ACEOF
19508 if ac_fn_c_try_compile "$LINENO"
19509 then :
19510
19511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19512 /* end confdefs.h. */
19513 #include <glib.h>
19514 _ACEOF
19515 if ac_fn_c_try_compile "$LINENO"
19516 then :
19517
19518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19519 printf "%s\n" "yes" >&6; }
19520 CFLAGS="$CFLAGS_SAVED"
19521 CFLAGS="$CFLAGS -Wunknown-attributes"
19522
19523 else case e in #(
19524 e)
19525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19526 printf "%s\n" "no" >&6; }
19527 CFLAGS="$CFLAGS_SAVED"
19528 CFLAGS="$CFLAGS -Wno-unknown-attributes"
19529 ;;
19530 esac
19531 fi
19532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19533
19534 else case e in #(
19535 e)
19536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19537 printf "%s\n" "not supported" >&6; }
19538 CFLAGS="$CFLAGS_SAVED"
19539 ;;
19540 esac
19541 fi
19542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19543
19544
19545
19546
19547
19548 CFLAGS_SAVED="$CFLAGS"
19549 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wtypedef-redefinition"
19550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wtypedef-redefinition works as expected" >&5
19551 printf %s "checking whether -Wtypedef-redefinition works as expected... " >&6; }
19552
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19555
19556 _ACEOF
19557 if ac_fn_c_try_compile "$LINENO"
19558 then :
19559
19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561 /* end confdefs.h. */
19562 #include <gio/gio.h>
19563 _ACEOF
19564 if ac_fn_c_try_compile "$LINENO"
19565 then :
19566
19567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19568 printf "%s\n" "yes" >&6; }
19569 CFLAGS="$CFLAGS_SAVED"
19570 CFLAGS="$CFLAGS -Wtypedef-redefinition"
19571
19572 else case e in #(
19573 e)
19574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19575 printf "%s\n" "no" >&6; }
19576 CFLAGS="$CFLAGS_SAVED"
19577 CFLAGS="$CFLAGS -Wno-typedef-redefinition"
19578 ;;
19579 esac
19580 fi
19581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19582
19583 else case e in #(
19584 e)
19585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19586 printf "%s\n" "not supported" >&6; }
19587 CFLAGS="$CFLAGS_SAVED"
19588 ;;
19589 esac
19590 fi
19591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19592
19593
19594
19595
19596
19597 CFLAGS_SAVED="$CFLAGS"
19598 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Warray-bounds"
19599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Warray-bounds works as expected" >&5
19600 printf %s "checking whether -Warray-bounds works as expected... " >&6; }
19601
19602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603 /* end confdefs.h. */
19604
19605 _ACEOF
19606 if ac_fn_c_try_compile "$LINENO"
19607 then :
19608
19609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h. */
19611 #include <string.h>
19612 void f () { strcmp ("something", "0"); }
19613
19614 _ACEOF
19615 if ac_fn_c_try_compile "$LINENO"
19616 then :
19617
19618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19619 printf "%s\n" "yes" >&6; }
19620 CFLAGS="$CFLAGS_SAVED"
19621 CFLAGS="$CFLAGS -Warray-bounds"
19622
19623 else case e in #(
19624 e)
19625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19626 printf "%s\n" "no" >&6; }
19627 CFLAGS="$CFLAGS_SAVED"
19628 CFLAGS="$CFLAGS -Wno-array-bounds"
19629 ;;
19630 esac
19631 fi
19632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19633
19634 else case e in #(
19635 e)
19636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19637 printf "%s\n" "not supported" >&6; }
19638 CFLAGS="$CFLAGS_SAVED"
19639 ;;
19640 esac
19641 fi
19642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19643
19644
19645
19646
19647
19648 CFLAGS_SAVED="$CFLAGS"
19649 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wparentheses-equality"
19650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wparentheses-equality works as expected" >&5
19651 printf %s "checking whether -Wparentheses-equality works as expected... " >&6; }
19652
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19655
19656 _ACEOF
19657 if ac_fn_c_try_compile "$LINENO"
19658 then :
19659
19660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h. */
19662 #include <sys/wait.h>
19663 void f () { if (WIFCONTINUED(0)) return; }
19664
19665 _ACEOF
19666 if ac_fn_c_try_compile "$LINENO"
19667 then :
19668
19669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19670 printf "%s\n" "yes" >&6; }
19671 CFLAGS="$CFLAGS_SAVED"
19672 CFLAGS="$CFLAGS -Wparentheses-equality"
19673
19674 else case e in #(
19675 e)
19676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19677 printf "%s\n" "no" >&6; }
19678 CFLAGS="$CFLAGS_SAVED"
19679 CFLAGS="$CFLAGS -Wno-parentheses-equality"
19680 ;;
19681 esac
19682 fi
19683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19684
19685 else case e in #(
19686 e)
19687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19688 printf "%s\n" "not supported" >&6; }
19689 CFLAGS="$CFLAGS_SAVED"
19690 ;;
19691 esac
19692 fi
19693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19694
19695
19696
19697
19698
19699 CFLAGS_SAVED="$CFLAGS"
19700 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunused-value"
19701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-value works as expected" >&5
19702 printf %s "checking whether -Wunused-value works as expected... " >&6; }
19703
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19706
19707 _ACEOF
19708 if ac_fn_c_try_compile "$LINENO"
19709 then :
19710
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19713 #define yolo ({ (666 + 666); })
19714 int f () { int i = yolo; yolo; return i; }
19715
19716 _ACEOF
19717 if ac_fn_c_try_compile "$LINENO"
19718 then :
19719
19720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19721 printf "%s\n" "yes" >&6; }
19722 CFLAGS="$CFLAGS_SAVED"
19723 CFLAGS="$CFLAGS -Wunused-value"
19724
19725 else case e in #(
19726 e)
19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19728 printf "%s\n" "no" >&6; }
19729 CFLAGS="$CFLAGS_SAVED"
19730 CFLAGS="$CFLAGS -Wno-unused-value"
19731 ;;
19732 esac
19733 fi
19734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19735
19736 else case e in #(
19737 e)
19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19739 printf "%s\n" "not supported" >&6; }
19740 CFLAGS="$CFLAGS_SAVED"
19741 ;;
19742 esac
19743 fi
19744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19745
19746
19747
19748
19749
19750 CFLAGS_SAVED="$CFLAGS"
19751 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wmissing-braces"
19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-braces works as expected" >&5
19753 printf %s "checking whether -Wmissing-braces works as expected... " >&6; }
19754
19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19756 /* end confdefs.h. */
19757
19758 _ACEOF
19759 if ac_fn_c_try_compile "$LINENO"
19760 then :
19761
19762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19763 /* end confdefs.h. */
19764 union { int a[1]; int b[2]; } c = { 0 }
19765
19766 _ACEOF
19767 if ac_fn_c_try_compile "$LINENO"
19768 then :
19769
19770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19771 printf "%s\n" "yes" >&6; }
19772 CFLAGS="$CFLAGS_SAVED"
19773 CFLAGS="$CFLAGS -Wmissing-braces"
19774
19775 else case e in #(
19776 e)
19777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19778 printf "%s\n" "no" >&6; }
19779 CFLAGS="$CFLAGS_SAVED"
19780 CFLAGS="$CFLAGS -Wno-missing-braces"
19781 ;;
19782 esac
19783 fi
19784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19785
19786 else case e in #(
19787 e)
19788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19789 printf "%s\n" "not supported" >&6; }
19790 CFLAGS="$CFLAGS_SAVED"
19791 ;;
19792 esac
19793 fi
19794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19795
19796
19797
19798 CFLAGS="$CFLAGS_MORE_WARNINGS $CFLAGS"
19799 else
19800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19801 printf "%s\n" "no" >&6; }
19802 fi
19803
19804 # Check whether --enable-lto was given.
19805 if test ${enable_lto+y}
19806 then :
19807 enableval=$enable_lto;
19808 fi
19809
19810 if (test "${enable_lto}" = "yes"); then
19811
19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag -flto in envvar CFLAGS" >&5
19813 printf %s "checking if $CC supports flag -flto in envvar CFLAGS... " >&6; }
19814 if test ${cc_cv_CFLAGS__flto+y}
19815 then :
19816 printf %s "(cached) " >&6
19817 else case e in #(
19818 e) eval "cc_save_CFLAGS='${CFLAGS}'"
19819 eval "CFLAGS='${cc_save_CFLAGS} -Werror `echo "-flto" | sed 's/^-Wno-/-W/'`'"
19820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h. */
19822 int main(void) { return 0; }
19823 _ACEOF
19824 if ac_fn_c_try_link "$LINENO"
19825 then :
19826 eval "cc_cv_CFLAGS__flto='yes'"
19827 else case e in #(
19828 e) eval "cc_cv_CFLAGS__flto='no'" ;;
19829 esac
19830 fi
19831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19832 conftest$ac_exeext conftest.$ac_ext
19833 eval "CFLAGS='$cc_save_CFLAGS'" ;;
19834 esac
19835 fi
19836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_CFLAGS__flto" >&5
19837 printf "%s\n" "$cc_cv_CFLAGS__flto" >&6; }
19838
19839 if eval test x$cc_cv_CFLAGS__flto = xyes
19840 then :
19841 eval "lto_flags='${lto_flags} -flto'"
19842 fi
19843
19844 if (test -n "${lto_flags}"); then
19845 CFLAGS="-flto $CFLAGS"
19846 else
19847 as_fn_error $? "Link Time Optimization -flto is not supported." "$LINENO" 5
19848 fi
19849 else
19850 enable_lto='no'
19851 fi
19852
19853 # Check whether --enable-ld-gc was given.
19854 if test ${enable_ld_gc+y}
19855 then :
19856 enableval=$enable_ld_gc;
19857 fi
19858
19859 if (test "${enable_ld_gc}" != "no"); then
19860
19861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag -fdata-sections -ffunction-sections -Wl,--gc-sections in envvar CFLAGS" >&5
19862 printf %s "checking if $CC supports flag -fdata-sections -ffunction-sections -Wl,--gc-sections in envvar CFLAGS... " >&6; }
19863 if test ${cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections+y}
19864 then :
19865 printf %s "(cached) " >&6
19866 else case e in #(
19867 e) eval "cc_save_CFLAGS='${CFLAGS}'"
19868 eval "CFLAGS='${cc_save_CFLAGS} -Werror `echo "-fdata-sections -ffunction-sections -Wl,--gc-sections" | sed 's/^-Wno-/-W/'`'"
19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h. */
19871 int main(void) { return 0; }
19872 _ACEOF
19873 if ac_fn_c_try_link "$LINENO"
19874 then :
19875 eval "cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections='yes'"
19876 else case e in #(
19877 e) eval "cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections='no'" ;;
19878 esac
19879 fi
19880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19881 conftest$ac_exeext conftest.$ac_ext
19882 eval "CFLAGS='$cc_save_CFLAGS'" ;;
19883 esac
19884 fi
19885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections" >&5
19886 printf "%s\n" "$cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections" >&6; }
19887
19888 if eval test x$cc_cv_CFLAGS__fdata_sections__ffunction_sections__Wl___gc_sections = xyes
19889 then :
19890 eval "ld_gc_flags='${ld_gc_flags} -fdata-sections -ffunction-sections -Wl,--gc-sections'"
19891 fi
19892
19893 if (test -n "${ld_gc_flags}"); then
19894 enable_ld_gc="yes"
19895 CFLAGS="$ld_gc_flags $CFLAGS"
19896 else
19897 if (test "${enable_ld_gc}" = "yes"); then
19898 as_fn_error $? "Unused symbol eviction requested but not supported." "$LINENO" 5
19899 else
19900 enable_ld_gc="no"
19901 fi
19902 fi
19903 fi
19904
19905
19906 NM_PLUGIN_DIR="$libdir/NetworkManager"
19907
19908 if test x"$enable_absolute_paths" == x"yes"; then
19909 NM_PLUGIN_DIR_NAME_FILE="$NM_PLUGIN_DIR/"
19910 else
19911 enable_absolute_paths=no
19912 NM_PLUGIN_DIR_NAME_FILE=""
19913 fi
19914
19915
19916
19917 # Check whether --with-dist-version was given.
19918 if test ${with_dist_version+y}
19919 then :
19920 withval=$with_dist_version; ac_distver=$withval
19921 else case e in #(
19922 e) ac_distver="" ;;
19923 esac
19924 fi
19925
19926 if ! test x"$ac_distver" = x""; then
19927
19928 printf "%s\n" "#define DIST_VERSION \"$ac_distver\"" >>confdefs.h
19929
19930 fi
19931
19932 ac_config_files="$ac_config_files Makefile po/Makefile.in"
19933
19934 cat >confcache <<\_ACEOF
19935 # This file is a shell script that caches the results of configure
19936 # tests run on this system so they can be shared between configure
19937 # scripts and configure runs, see configure's option --config-cache.
19938 # It is not useful on other systems. If it contains results you don't
19939 # want to keep, you may remove or edit it.
19940 #
19941 # config.status only pays attention to the cache file if you give it
19942 # the --recheck option to rerun configure.
19943 #
19944 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
19945 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
19946 # following values.
19947
19948 _ACEOF
19949
19950 # The following way of writing the cache mishandles newlines in values,
19951 # but we know of no workaround that is simple, portable, and efficient.
19952 # So, we kill variables containing newlines.
19953 # Ultrix sh set writes to stderr and can't be redirected directly,
19954 # and sets the high bit in the cache file unless we assign to the vars.
19955 (
19956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19957 eval ac_val=\$$ac_var
19958 case $ac_val in #(
19959 *${as_nl}*)
19960 case $ac_var in #(
19961 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19962 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19963 esac
19964 case $ac_var in #(
19965 _ | IFS | as_nl) ;; #(
19966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19967 *) { eval $ac_var=; unset $ac_var;} ;;
19968 esac ;;
19969 esac
19970 done
19971
19972 (set) 2>&1 |
19973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19974 *${as_nl}ac_space=\ *)
19975 # 'set' does not quote correctly, so add quotes: double-quote
19976 # substitution turns \\\\ into \\, and sed turns \\ into \.
19977 sed -n \
19978 "s/'/'\\\\''/g;
19979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19980 ;; #(
19981 *)
19982 # 'set' quotes correctly as required by POSIX, so do not add quotes.
19983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19984 ;;
19985 esac |
19986 sort
19987 ) |
19988 sed '
19989 /^ac_cv_env_/b end
19990 t clear
19991 :clear
19992 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19993 t end
19994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19995 :end' >>confcache
19996 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19997 if test -w "$cache_file"; then
19998 if test "x$cache_file" != "x/dev/null"; then
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20000 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20001 if test ! -f "$cache_file" || test -h "$cache_file"; then
20002 cat confcache >"$cache_file"
20003 else
20004 case $cache_file in #(
20005 */* | ?:*)
20006 mv -f confcache "$cache_file"$$ &&
20007 mv -f "$cache_file"$$ "$cache_file" ;; #(
20008 *)
20009 mv -f confcache "$cache_file" ;;
20010 esac
20011 fi
20012 fi
20013 else
20014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20015 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20016 fi
20017 fi
20018 rm -f confcache
20019
20020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20021 # Let make expand exec_prefix.
20022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20023
20024 DEFS=-DHAVE_CONFIG_H
20025
20026 ac_libobjs=
20027 ac_ltlibobjs=
20028 U=
20029 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20030 # 1. Remove the extension, and $U if already installed.
20031 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20032 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20033 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20034 # will be set to the directory where LIBOBJS objects are built.
20035 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20036 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20037 done
20038 LIBOBJS=$ac_libobjs
20039
20040 LTLIBOBJS=$ac_ltlibobjs
20041
20042
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20044 printf %s "checking that generated files are newer than configure... " >&6; }
20045 if test -n "$am_sleep_pid"; then
20046 # Hide warnings about reused PIDs.
20047 wait $am_sleep_pid 2>/dev/null
20048 fi
20049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20050 printf "%s\n" "done" >&6; }
20051 case $enable_silent_rules in # (((
20052 yes) AM_DEFAULT_VERBOSITY=0;;
20053 no) AM_DEFAULT_VERBOSITY=1;;
20054 esac
20055 if test $am_cv_make_support_nested_variables = yes; then
20056 AM_V='$(V)'
20057 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20058 else
20059 AM_V=$AM_DEFAULT_VERBOSITY
20060 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20061 fi
20062
20063 if test -n "$EXEEXT"; then
20064 am__EXEEXT_TRUE=
20065 am__EXEEXT_FALSE='#'
20066 else
20067 am__EXEEXT_TRUE='#'
20068 am__EXEEXT_FALSE=
20069 fi
20070
20071 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20072 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20074 fi
20075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20076 as_fn_error $? "conditional \"AMDEP\" was never defined.
20077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20078 fi
20079 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20080 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20082 fi
20083 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20084 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20086 fi
20087 if test -z "${WITH_GNOME_TRUE}" && test -z "${WITH_GNOME_FALSE}"; then
20088 as_fn_error $? "conditional \"WITH_GNOME\" was never defined.
20089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20090 fi
20091 if test -z "${WITH_GTK4_TRUE}" && test -z "${WITH_GTK4_FALSE}"; then
20092 as_fn_error $? "conditional \"WITH_GTK4\" was never defined.
20093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20094 fi
20095
20096 : "${CONFIG_STATUS=./config.status}"
20097 ac_write_fail=0
20098 ac_clean_files_save=$ac_clean_files
20099 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20101 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20102 as_write_fail=0
20103 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20104 #! $SHELL
20105 # Generated by $as_me.
20106 # Run this file to recreate the current configuration.
20107 # Compiler output produced by configure, useful for debugging
20108 # configure, is in config.log if it exists.
20109
20110 debug=false
20111 ac_cs_recheck=false
20112 ac_cs_silent=false
20113
20114 SHELL=\${CONFIG_SHELL-$SHELL}
20115 export SHELL
20116 _ASEOF
20117 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20118 ## -------------------- ##
20119 ## M4sh Initialization. ##
20120 ## -------------------- ##
20121
20122 # Be more Bourne compatible
20123 DUALCASE=1; export DUALCASE # for MKS sh
20124 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20125 then :
20126 emulate sh
20127 NULLCMD=:
20128 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20129 # is contrary to our usage. Disable this feature.
20130 alias -g '${1+"$@"}'='"$@"'
20131 setopt NO_GLOB_SUBST
20132 else case e in #(
20133 e) case `(set -o) 2>/dev/null` in #(
20134 *posix*) :
20135 set -o posix ;; #(
20136 *) :
20137 ;;
20138 esac ;;
20139 esac
20140 fi
20141
20142
20143
20144 # Reset variables that may have inherited troublesome values from
20145 # the environment.
20146
20147 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20148 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20149 # side effect of setting IFS to empty, thus disabling word splitting.)
20150 # Quoting is to prevent editors from complaining about space-tab.
20151 as_nl='
20152 '
20153 export as_nl
20154 IFS=" "" $as_nl"
20155
20156 PS1='$ '
20157 PS2='> '
20158 PS4='+ '
20159
20160 # Ensure predictable behavior from utilities with locale-dependent output.
20161 LC_ALL=C
20162 export LC_ALL
20163 LANGUAGE=C
20164 export LANGUAGE
20165
20166 # We cannot yet rely on "unset" to work, but we need these variables
20167 # to be unset--not just set to an empty or harmless value--now, to
20168 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20169 # also avoids known problems related to "unset" and subshell syntax
20170 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20171 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20172 do eval test \${$as_var+y} \
20173 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20174 done
20175
20176 # Ensure that fds 0, 1, and 2 are open.
20177 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20178 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20179 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20180
20181 # The user is always right.
20182 if ${PATH_SEPARATOR+false} :; then
20183 PATH_SEPARATOR=:
20184 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20185 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20186 PATH_SEPARATOR=';'
20187 }
20188 fi
20189
20190
20191 # Find who we are. Look in the path if we contain no directory separator.
20192 as_myself=
20193 case $0 in #((
20194 *[\\/]* ) as_myself=$0 ;;
20195 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20196 for as_dir in $PATH
20197 do
20198 IFS=$as_save_IFS
20199 case $as_dir in #(((
20200 '') as_dir=./ ;;
20201 */) ;;
20202 *) as_dir=$as_dir/ ;;
20203 esac
20204 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20205 done
20206 IFS=$as_save_IFS
20207
20208 ;;
20209 esac
20210 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20211 # in which case we are not to be found in the path.
20212 if test "x$as_myself" = x; then
20213 as_myself=$0
20214 fi
20215 if test ! -f "$as_myself"; then
20216 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20217 exit 1
20218 fi
20219
20220
20221
20222 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20223 # ----------------------------------------
20224 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20225 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20226 # script with STATUS, using 1 if that was 0.
20227 as_fn_error ()
20228 {
20229 as_status=$1; test $as_status -eq 0 && as_status=1
20230 if test "$4"; then
20231 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20233 fi
20234 printf "%s\n" "$as_me: error: $2" >&2
20235 as_fn_exit $as_status
20236 } # as_fn_error
20237
20238
20239 # as_fn_set_status STATUS
20240 # -----------------------
20241 # Set $? to STATUS, without forking.
20242 as_fn_set_status ()
20243 {
20244 return $1
20245 } # as_fn_set_status
20246
20247 # as_fn_exit STATUS
20248 # -----------------
20249 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20250 as_fn_exit ()
20251 {
20252 set +e
20253 as_fn_set_status $1
20254 exit $1
20255 } # as_fn_exit
20256
20257 # as_fn_unset VAR
20258 # ---------------
20259 # Portably unset VAR.
20260 as_fn_unset ()
20261 {
20262 { eval $1=; unset $1;}
20263 }
20264 as_unset=as_fn_unset
20265
20266 # as_fn_append VAR VALUE
20267 # ----------------------
20268 # Append the text in VALUE to the end of the definition contained in VAR. Take
20269 # advantage of any shell optimizations that allow amortized linear growth over
20270 # repeated appends, instead of the typical quadratic growth present in naive
20271 # implementations.
20272 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20273 then :
20274 eval 'as_fn_append ()
20275 {
20276 eval $1+=\$2
20277 }'
20278 else case e in #(
20279 e) as_fn_append ()
20280 {
20281 eval $1=\$$1\$2
20282 } ;;
20283 esac
20284 fi # as_fn_append
20285
20286 # as_fn_arith ARG...
20287 # ------------------
20288 # Perform arithmetic evaluation on the ARGs, and store the result in the
20289 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20290 # must be portable across $(()) and expr.
20291 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20292 then :
20293 eval 'as_fn_arith ()
20294 {
20295 as_val=$(( $* ))
20296 }'
20297 else case e in #(
20298 e) as_fn_arith ()
20299 {
20300 as_val=`expr "$@" || test $? -eq 1`
20301 } ;;
20302 esac
20303 fi # as_fn_arith
20304
20305
20306 if expr a : '\(a\)' >/dev/null 2>&1 &&
20307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20308 as_expr=expr
20309 else
20310 as_expr=false
20311 fi
20312
20313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20314 as_basename=basename
20315 else
20316 as_basename=false
20317 fi
20318
20319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20320 as_dirname=dirname
20321 else
20322 as_dirname=false
20323 fi
20324
20325 as_me=`$as_basename -- "$0" ||
20326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20327 X"$0" : 'X\(//\)$' \| \
20328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20329 printf "%s\n" X/"$0" |
20330 sed '/^.*\/\([^/][^/]*\)\/*$/{
20331 s//\1/
20332 q
20333 }
20334 /^X\/\(\/\/\)$/{
20335 s//\1/
20336 q
20337 }
20338 /^X\/\(\/\).*/{
20339 s//\1/
20340 q
20341 }
20342 s/.*/./; q'`
20343
20344 # Avoid depending upon Character Ranges.
20345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20348 as_cr_digits='0123456789'
20349 as_cr_alnum=$as_cr_Letters$as_cr_digits
20350
20351
20352 # Determine whether it's possible to make 'echo' print without a newline.
20353 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20354 # for compatibility with existing Makefiles.
20355 ECHO_C= ECHO_N= ECHO_T=
20356 case `echo -n x` in #(((((
20357 -n*)
20358 case `echo 'xy\c'` in
20359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20360 xy) ECHO_C='\c';;
20361 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20362 ECHO_T=' ';;
20363 esac;;
20364 *)
20365 ECHO_N='-n';;
20366 esac
20367
20368 # For backward compatibility with old third-party macros, we provide
20369 # the shell variables $as_echo and $as_echo_n. New code should use
20370 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20371 as_echo='printf %s\n'
20372 as_echo_n='printf %s'
20373
20374 rm -f conf$$ conf$$.exe conf$$.file
20375 if test -d conf$$.dir; then
20376 rm -f conf$$.dir/conf$$.file
20377 else
20378 rm -f conf$$.dir
20379 mkdir conf$$.dir 2>/dev/null
20380 fi
20381 if (echo >conf$$.file) 2>/dev/null; then
20382 if ln -s conf$$.file conf$$ 2>/dev/null; then
20383 as_ln_s='ln -s'
20384 # ... but there are two gotchas:
20385 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20386 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20387 # In both cases, we have to default to 'cp -pR'.
20388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20389 as_ln_s='cp -pR'
20390 elif ln conf$$.file conf$$ 2>/dev/null; then
20391 as_ln_s=ln
20392 else
20393 as_ln_s='cp -pR'
20394 fi
20395 else
20396 as_ln_s='cp -pR'
20397 fi
20398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20399 rmdir conf$$.dir 2>/dev/null
20400
20401
20402 # as_fn_mkdir_p
20403 # -------------
20404 # Create "$as_dir" as a directory, including parents if necessary.
20405 as_fn_mkdir_p ()
20406 {
20407
20408 case $as_dir in #(
20409 -*) as_dir=./$as_dir;;
20410 esac
20411 test -d "$as_dir" || eval $as_mkdir_p || {
20412 as_dirs=
20413 while :; do
20414 case $as_dir in #(
20415 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20416 *) as_qdir=$as_dir;;
20417 esac
20418 as_dirs="'$as_qdir' $as_dirs"
20419 as_dir=`$as_dirname -- "$as_dir" ||
20420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20421 X"$as_dir" : 'X\(//\)[^/]' \| \
20422 X"$as_dir" : 'X\(//\)$' \| \
20423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20424 printf "%s\n" X"$as_dir" |
20425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20426 s//\1/
20427 q
20428 }
20429 /^X\(\/\/\)[^/].*/{
20430 s//\1/
20431 q
20432 }
20433 /^X\(\/\/\)$/{
20434 s//\1/
20435 q
20436 }
20437 /^X\(\/\).*/{
20438 s//\1/
20439 q
20440 }
20441 s/.*/./; q'`
20442 test -d "$as_dir" && break
20443 done
20444 test -z "$as_dirs" || eval "mkdir $as_dirs"
20445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20446
20447
20448 } # as_fn_mkdir_p
20449 if mkdir -p . 2>/dev/null; then
20450 as_mkdir_p='mkdir -p "$as_dir"'
20451 else
20452 test -d ./-p && rmdir ./-p
20453 as_mkdir_p=false
20454 fi
20455
20456
20457 # as_fn_executable_p FILE
20458 # -----------------------
20459 # Test if FILE is an executable regular file.
20460 as_fn_executable_p ()
20461 {
20462 test -f "$1" && test -x "$1"
20463 } # as_fn_executable_p
20464 as_test_x='test -x'
20465 as_executable_p=as_fn_executable_p
20466
20467 # Sed expression to map a string onto a valid CPP name.
20468 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20469 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20470
20471 # Sed expression to map a string onto a valid variable name.
20472 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20473 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20474
20475
20476 exec 6>&1
20477 ## ----------------------------------- ##
20478 ## Main body of $CONFIG_STATUS script. ##
20479 ## ----------------------------------- ##
20480 _ASEOF
20481 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20482
20483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20484 # Save the log message, to keep $0 and so on meaningful, and to
20485 # report actual input values of CONFIG_FILES etc. instead of their
20486 # values after options handling.
20487 ac_log="
20488 This file was extended by NetworkManager-openvpn $as_me 1.12.5, which was
20489 generated by GNU Autoconf 2.72. Invocation command line was
20490
20491 CONFIG_FILES = $CONFIG_FILES
20492 CONFIG_HEADERS = $CONFIG_HEADERS
20493 CONFIG_LINKS = $CONFIG_LINKS
20494 CONFIG_COMMANDS = $CONFIG_COMMANDS
20495 $ $0 $@
20496
20497 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20498 "
20499
20500 _ACEOF
20501
20502 case $ac_config_files in *"
20503 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20504 esac
20505
20506 case $ac_config_headers in *"
20507 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20508 esac
20509
20510
20511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20512 # Files that config.status was made for.
20513 config_files="$ac_config_files"
20514 config_headers="$ac_config_headers"
20515 config_commands="$ac_config_commands"
20516
20517 _ACEOF
20518
20519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20520 ac_cs_usage="\
20521 '$as_me' instantiates files and other configuration actions
20522 from templates according to the current configuration. Unless the files
20523 and actions are specified as TAGs, all are instantiated by default.
20524
20525 Usage: $0 [OPTION]... [TAG]...
20526
20527 -h, --help print this help, then exit
20528 -V, --version print version number and configuration settings, then exit
20529 --config print configuration, then exit
20530 -q, --quiet, --silent
20531 do not print progress messages
20532 -d, --debug don't remove temporary files
20533 --recheck update $as_me by reconfiguring in the same conditions
20534 --file=FILE[:TEMPLATE]
20535 instantiate the configuration file FILE
20536 --header=FILE[:TEMPLATE]
20537 instantiate the configuration header FILE
20538
20539 Configuration files:
20540 $config_files
20541
20542 Configuration headers:
20543 $config_headers
20544
20545 Configuration commands:
20546 $config_commands
20547
20548 Report bugs to <https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/issues>."
20549
20550 _ACEOF
20551 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20552 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20554 ac_cs_config='$ac_cs_config_escaped'
20555 ac_cs_version="\\
20556 NetworkManager-openvpn config.status 1.12.5
20557 configured by $0, generated by GNU Autoconf 2.72,
20558 with options \\"\$ac_cs_config\\"
20559
20560 Copyright (C) 2023 Free Software Foundation, Inc.
20561 This config.status script is free software; the Free Software Foundation
20562 gives unlimited permission to copy, distribute and modify it."
20563
20564 ac_pwd='$ac_pwd'
20565 srcdir='$srcdir'
20566 INSTALL='$INSTALL'
20567 MKDIR_P='$MKDIR_P'
20568 AWK='$AWK'
20569 test -n "\$AWK" || AWK=awk
20570 _ACEOF
20571
20572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20573 # The default lists apply if the user does not specify any file.
20574 ac_need_defaults=:
20575 while test $# != 0
20576 do
20577 case $1 in
20578 --*=?*)
20579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20581 ac_shift=:
20582 ;;
20583 --*=)
20584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20585 ac_optarg=
20586 ac_shift=:
20587 ;;
20588 *)
20589 ac_option=$1
20590 ac_optarg=$2
20591 ac_shift=shift
20592 ;;
20593 esac
20594
20595 case $ac_option in
20596 # Handling of the options.
20597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20598 ac_cs_recheck=: ;;
20599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20600 printf "%s\n" "$ac_cs_version"; exit ;;
20601 --config | --confi | --conf | --con | --co | --c )
20602 printf "%s\n" "$ac_cs_config"; exit ;;
20603 --debug | --debu | --deb | --de | --d | -d )
20604 debug=: ;;
20605 --file | --fil | --fi | --f )
20606 $ac_shift
20607 case $ac_optarg in
20608 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20609 '') as_fn_error $? "missing file argument" ;;
20610 esac
20611 as_fn_append CONFIG_FILES " '$ac_optarg'"
20612 ac_need_defaults=false;;
20613 --header | --heade | --head | --hea )
20614 $ac_shift
20615 case $ac_optarg in
20616 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20617 esac
20618 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20619 ac_need_defaults=false;;
20620 --he | --h)
20621 # Conflict between --help and --header
20622 as_fn_error $? "ambiguous option: '$1'
20623 Try '$0 --help' for more information.";;
20624 --help | --hel | -h )
20625 printf "%s\n" "$ac_cs_usage"; exit ;;
20626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20628 ac_cs_silent=: ;;
20629
20630 # This is an error.
20631 -*) as_fn_error $? "unrecognized option: '$1'
20632 Try '$0 --help' for more information." ;;
20633
20634 *) as_fn_append ac_config_targets " $1"
20635 ac_need_defaults=false ;;
20636
20637 esac
20638 shift
20639 done
20640
20641 ac_configure_extra_args=
20642
20643 if $ac_cs_silent; then
20644 exec 6>/dev/null
20645 ac_configure_extra_args="$ac_configure_extra_args --silent"
20646 fi
20647
20648 _ACEOF
20649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20650 if \$ac_cs_recheck; then
20651 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20652 shift
20653 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20654 CONFIG_SHELL='$SHELL'
20655 export CONFIG_SHELL
20656 exec "\$@"
20657 fi
20658
20659 _ACEOF
20660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20661 exec 5>>config.log
20662 {
20663 echo
20664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20665 ## Running $as_me. ##
20666 _ASBOX
20667 printf "%s\n" "$ac_log"
20668 } >&5
20669
20670 _ACEOF
20671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20672 #
20673 # INIT-COMMANDS
20674 #
20675 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20676
20677
20678 # The HP-UX ksh and POSIX shell print the target directory to stdout
20679 # if CDPATH is set.
20680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20681
20682 sed_quote_subst='$sed_quote_subst'
20683 double_quote_subst='$double_quote_subst'
20684 delay_variable_subst='$delay_variable_subst'
20685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20687 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20688 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20689 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20690 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20691 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20692 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20693 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20694 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20695 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20696 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20697 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20698 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20699 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20700 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20701 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20702 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20703 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20704 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20705 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20706 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20707 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20708 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20709 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20710 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20711 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20712 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20713 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20714 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20715 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20716 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20717 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20718 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20719 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20720 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20721 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20722 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20723 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20724 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20725 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20726 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20727 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20728 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20729 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20730 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20731 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20732 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20733 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20734 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20735 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20736 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20737 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20738 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20739 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20740 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20741 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20742 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20743 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20744 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20745 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"`'
20746 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20747 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20748 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20749 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20750 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20751 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20752 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20753 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20754 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20755 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20756 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20757 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20758 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20759 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20760 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20761 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20762 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20763 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20764 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20765 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20766 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20767 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20768 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20769 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20770 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20771 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20772 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20773 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20774 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20775 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20776 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20777 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20778 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20779 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20780 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20781 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20782 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20783 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20784 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20785 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20786 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20787 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20788 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20789 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20790 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20791 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20792 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20793 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20794 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20795 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20796 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20797 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20798 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20799 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20800 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20801 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20802 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20803 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20804 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20805 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20806 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20807 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20808 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20809 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20810 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20811 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20812 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20813 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20814 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20815 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20816 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20817 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20818 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20819 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20820 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20821 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20822
20823 LTCC='$LTCC'
20824 LTCFLAGS='$LTCFLAGS'
20825 compiler='$compiler_DEFAULT'
20826
20827 # A function that is used when there is no print builtin or printf.
20828 func_fallback_echo ()
20829 {
20830 eval 'cat <<_LTECHO_EOF
20831 \$1
20832 _LTECHO_EOF'
20833 }
20834
20835 # Quote evaled strings.
20836 for var in SHELL \
20837 ECHO \
20838 PATH_SEPARATOR \
20839 SED \
20840 GREP \
20841 EGREP \
20842 FGREP \
20843 LD \
20844 NM \
20845 LN_S \
20846 lt_SP2NL \
20847 lt_NL2SP \
20848 reload_flag \
20849 FILECMD \
20850 OBJDUMP \
20851 deplibs_check_method \
20852 file_magic_cmd \
20853 file_magic_glob \
20854 want_nocaseglob \
20855 DLLTOOL \
20856 sharedlib_from_linklib_cmd \
20857 AR \
20858 archiver_list_spec \
20859 STRIP \
20860 RANLIB \
20861 CC \
20862 CFLAGS \
20863 compiler \
20864 lt_cv_sys_global_symbol_pipe \
20865 lt_cv_sys_global_symbol_to_cdecl \
20866 lt_cv_sys_global_symbol_to_import \
20867 lt_cv_sys_global_symbol_to_c_name_address \
20868 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20869 lt_cv_nm_interface \
20870 nm_file_list_spec \
20871 lt_cv_truncate_bin \
20872 lt_prog_compiler_no_builtin_flag \
20873 lt_prog_compiler_pic \
20874 lt_prog_compiler_wl \
20875 lt_prog_compiler_static \
20876 lt_cv_prog_compiler_c_o \
20877 need_locks \
20878 MANIFEST_TOOL \
20879 DSYMUTIL \
20880 NMEDIT \
20881 LIPO \
20882 OTOOL \
20883 OTOOL64 \
20884 shrext_cmds \
20885 export_dynamic_flag_spec \
20886 whole_archive_flag_spec \
20887 compiler_needs_object \
20888 with_gnu_ld \
20889 allow_undefined_flag \
20890 no_undefined_flag \
20891 hardcode_libdir_flag_spec \
20892 hardcode_libdir_separator \
20893 exclude_expsyms \
20894 include_expsyms \
20895 file_list_spec \
20896 variables_saved_for_relink \
20897 libname_spec \
20898 library_names_spec \
20899 soname_spec \
20900 install_override_mode \
20901 finish_eval \
20902 old_striplib \
20903 striplib; do
20904 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20905 *[\\\\\\\`\\"\\\$]*)
20906 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20907 ;;
20908 *)
20909 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20910 ;;
20911 esac
20912 done
20913
20914 # Double-quote double-evaled strings.
20915 for var in reload_cmds \
20916 old_postinstall_cmds \
20917 old_postuninstall_cmds \
20918 old_archive_cmds \
20919 extract_expsyms_cmds \
20920 old_archive_from_new_cmds \
20921 old_archive_from_expsyms_cmds \
20922 archive_cmds \
20923 archive_expsym_cmds \
20924 module_cmds \
20925 module_expsym_cmds \
20926 export_symbols_cmds \
20927 prelink_cmds \
20928 postlink_cmds \
20929 postinstall_cmds \
20930 postuninstall_cmds \
20931 finish_cmds \
20932 sys_lib_search_path_spec \
20933 configure_time_dlsearch_path \
20934 configure_time_lt_sys_library_path; do
20935 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20936 *[\\\\\\\`\\"\\\$]*)
20937 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20938 ;;
20939 *)
20940 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20941 ;;
20942 esac
20943 done
20944
20945 ac_aux_dir='$ac_aux_dir'
20946
20947 # See if we are running on zsh, and set the options that allow our
20948 # commands through without removal of \ escapes INIT.
20949 if test -n "\${ZSH_VERSION+set}"; then
20950 setopt NO_GLOB_SUBST
20951 fi
20952
20953
20954 PACKAGE='$PACKAGE'
20955 VERSION='$VERSION'
20956 RM='$RM'
20957 ofile='$ofile'
20958
20959
20960
20961 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20962 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
20963 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
20964 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20965 LINGUAS="${LINGUAS-%UNSET%}"
20966
20967
20968 _ACEOF
20969
20970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20971
20972 # Handling of arguments.
20973 for ac_config_target in $ac_config_targets
20974 do
20975 case $ac_config_target in
20976 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20977 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20978 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20979 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20980 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20981 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20982
20983 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
20984 esac
20985 done
20986
20987
20988 # If the user did not use the arguments to specify the items to instantiate,
20989 # then the envvar interface is used. Set only those that are not.
20990 # We use the long form for the default assignment because of an extremely
20991 # bizarre bug on SunOS 4.1.3.
20992 if $ac_need_defaults; then
20993 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20994 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20995 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20996 fi
20997
20998 # Have a temporary directory for convenience. Make it in the build tree
20999 # simply because there is no reason against having it here, and in addition,
21000 # creating and moving files from /tmp can sometimes cause problems.
21001 # Hook for its removal unless debugging.
21002 # Note that there is a small window in which the directory will not be cleaned:
21003 # after its creation but before its name has been assigned to '$tmp'.
21004 $debug ||
21005 {
21006 tmp= ac_tmp=
21007 trap 'exit_status=$?
21008 : "${ac_tmp:=$tmp}"
21009 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21010 ' 0
21011 trap 'as_fn_exit 1' 1 2 13 15
21012 }
21013 # Create a (secure) tmp directory for tmp files.
21014
21015 {
21016 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21017 test -d "$tmp"
21018 } ||
21019 {
21020 tmp=./conf$$-$RANDOM
21021 (umask 077 && mkdir "$tmp")
21022 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21023 ac_tmp=$tmp
21024
21025 # Set up the scripts for CONFIG_FILES section.
21026 # No need to generate them if there are no CONFIG_FILES.
21027 # This happens for instance with './config.status config.h'.
21028 if test -n "$CONFIG_FILES"; then
21029
21030
21031 ac_cr=`echo X | tr X '\015'`
21032 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21033 # But we know of no other shell where ac_cr would be empty at this
21034 # point, so we can use a bashism as a fallback.
21035 if test "x$ac_cr" = x; then
21036 eval ac_cr=\$\'\\r\'
21037 fi
21038 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21039 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21040 ac_cs_awk_cr='\\r'
21041 else
21042 ac_cs_awk_cr=$ac_cr
21043 fi
21044
21045 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21046 _ACEOF
21047
21048
21049 {
21050 echo "cat >conf$$subs.awk <<_ACEOF" &&
21051 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21052 echo "_ACEOF"
21053 } >conf$$subs.sh ||
21054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21055 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21056 ac_delim='%!_!# '
21057 for ac_last_try in false false false false false :; do
21058 . ./conf$$subs.sh ||
21059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21060
21061 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21062 if test $ac_delim_n = $ac_delim_num; then
21063 break
21064 elif $ac_last_try; then
21065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21066 else
21067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21068 fi
21069 done
21070 rm -f conf$$subs.sh
21071
21072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21073 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21074 _ACEOF
21075 sed -n '
21076 h
21077 s/^/S["/; s/!.*/"]=/
21078 p
21079 g
21080 s/^[^!]*!//
21081 :repl
21082 t repl
21083 s/'"$ac_delim"'$//
21084 t delim
21085 :nl
21086 h
21087 s/\(.\{148\}\)..*/\1/
21088 t more1
21089 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21090 p
21091 n
21092 b repl
21093 :more1
21094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21095 p
21096 g
21097 s/.\{148\}//
21098 t nl
21099 :delim
21100 h
21101 s/\(.\{148\}\)..*/\1/
21102 t more2
21103 s/["\\]/\\&/g; s/^/"/; s/$/"/
21104 p
21105 b
21106 :more2
21107 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21108 p
21109 g
21110 s/.\{148\}//
21111 t delim
21112 ' <conf$$subs.awk | sed '
21113 /^[^""]/{
21114 N
21115 s/\n//
21116 }
21117 ' >>$CONFIG_STATUS || ac_write_fail=1
21118 rm -f conf$$subs.awk
21119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21120 _ACAWK
21121 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21122 for (key in S) S_is_set[key] = 1
21123 FS = ""
21124
21125 }
21126 {
21127 line = $ 0
21128 nfields = split(line, field, "@")
21129 substed = 0
21130 len = length(field[1])
21131 for (i = 2; i < nfields; i++) {
21132 key = field[i]
21133 keylen = length(key)
21134 if (S_is_set[key]) {
21135 value = S[key]
21136 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21137 len += length(value) + length(field[++i])
21138 substed = 1
21139 } else
21140 len += 1 + keylen
21141 }
21142
21143 print line
21144 }
21145
21146 _ACAWK
21147 _ACEOF
21148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21149 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21150 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21151 else
21152 cat
21153 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21154 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21155 _ACEOF
21156
21157 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21158 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21159 # trailing colons and then remove the whole line if VPATH becomes empty
21160 # (actually we leave an empty line to preserve line numbers).
21161 if test "x$srcdir" = x.; then
21162 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21163 h
21164 s///
21165 s/^/:/
21166 s/[ ]*$/:/
21167 s/:\$(srcdir):/:/g
21168 s/:\${srcdir}:/:/g
21169 s/:@srcdir@:/:/g
21170 s/^:*//
21171 s/:*$//
21172 x
21173 s/\(=[ ]*\).*/\1/
21174 G
21175 s/\n//
21176 s/^[^=]*=[ ]*$//
21177 }'
21178 fi
21179
21180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21181 fi # test -n "$CONFIG_FILES"
21182
21183 # Set up the scripts for CONFIG_HEADERS section.
21184 # No need to generate them if there are no CONFIG_HEADERS.
21185 # This happens for instance with './config.status Makefile'.
21186 if test -n "$CONFIG_HEADERS"; then
21187 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21188 BEGIN {
21189 _ACEOF
21190
21191 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21192 # here-document in config.status, that substitutes the proper values into
21193 # config.h.in to produce config.h.
21194
21195 # Create a delimiter string that does not exist in confdefs.h, to ease
21196 # handling of long lines.
21197 ac_delim='%!_!# '
21198 for ac_last_try in false false :; do
21199 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21200 if test -z "$ac_tt"; then
21201 break
21202 elif $ac_last_try; then
21203 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21204 else
21205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21206 fi
21207 done
21208
21209 # For the awk script, D is an array of macro values keyed by name,
21210 # likewise P contains macro parameters if any. Preserve backslash
21211 # newline sequences.
21212
21213 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21214 sed -n '
21215 s/.\{148\}/&'"$ac_delim"'/g
21216 t rset
21217 :rset
21218 s/^[ ]*#[ ]*define[ ][ ]*/ /
21219 t def
21220 d
21221 :def
21222 s/\\$//
21223 t bsnl
21224 s/["\\]/\\&/g
21225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21226 D["\1"]=" \3"/p
21227 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21228 d
21229 :bsnl
21230 s/["\\]/\\&/g
21231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21232 D["\1"]=" \3\\\\\\n"\\/p
21233 t cont
21234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21235 t cont
21236 d
21237 :cont
21238 n
21239 s/.\{148\}/&'"$ac_delim"'/g
21240 t clear
21241 :clear
21242 s/\\$//
21243 t bsnlc
21244 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21245 d
21246 :bsnlc
21247 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21248 b cont
21249 ' <confdefs.h | sed '
21250 s/'"$ac_delim"'/"\\\
21251 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21252
21253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21254 for (key in D) D_is_set[key] = 1
21255 FS = ""
21256 }
21257 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21258 line = \$ 0
21259 split(line, arg, " ")
21260 if (arg[1] == "#") {
21261 defundef = arg[2]
21262 mac1 = arg[3]
21263 } else {
21264 defundef = substr(arg[1], 2)
21265 mac1 = arg[2]
21266 }
21267 split(mac1, mac2, "(") #)
21268 macro = mac2[1]
21269 prefix = substr(line, 1, index(line, defundef) - 1)
21270 if (D_is_set[macro]) {
21271 # Preserve the white space surrounding the "#".
21272 print prefix "define", macro P[macro] D[macro]
21273 next
21274 } else {
21275 # Replace #undef with comments. This is necessary, for example,
21276 # in the case of _POSIX_SOURCE, which is predefined and required
21277 # on some systems where configure will not decide to define it.
21278 if (defundef == "undef") {
21279 print "/*", prefix defundef, macro, "*/"
21280 next
21281 }
21282 }
21283 }
21284 { print }
21285 _ACAWK
21286 _ACEOF
21287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21288 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21289 fi # test -n "$CONFIG_HEADERS"
21290
21291
21292 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21293 shift
21294 for ac_tag
21295 do
21296 case $ac_tag in
21297 :[FHLC]) ac_mode=$ac_tag; continue;;
21298 esac
21299 case $ac_mode$ac_tag in
21300 :[FHL]*:*);;
21301 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21302 :[FH]-) ac_tag=-:-;;
21303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21304 esac
21305 ac_save_IFS=$IFS
21306 IFS=:
21307 set x $ac_tag
21308 IFS=$ac_save_IFS
21309 shift
21310 ac_file=$1
21311 shift
21312
21313 case $ac_mode in
21314 :L) ac_source=$1;;
21315 :[FH])
21316 ac_file_inputs=
21317 for ac_f
21318 do
21319 case $ac_f in
21320 -) ac_f="$ac_tmp/stdin";;
21321 *) # Look for the file first in the build tree, then in the source tree
21322 # (if the path is not absolute). The absolute path cannot be DOS-style,
21323 # because $ac_f cannot contain ':'.
21324 test -f "$ac_f" ||
21325 case $ac_f in
21326 [\\/$]*) false;;
21327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21328 esac ||
21329 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21330 esac
21331 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21332 as_fn_append ac_file_inputs " '$ac_f'"
21333 done
21334
21335 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21336 # use $as_me), people would be surprised to read:
21337 # /* config.h. Generated by config.status. */
21338 configure_input='Generated from '`
21339 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21340 `' by configure.'
21341 if test x"$ac_file" != x-; then
21342 configure_input="$ac_file. $configure_input"
21343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21344 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21345 fi
21346 # Neutralize special characters interpreted by sed in replacement strings.
21347 case $configure_input in #(
21348 *\&* | *\|* | *\\* )
21349 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21350 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21351 *) ac_sed_conf_input=$configure_input;;
21352 esac
21353
21354 case $ac_tag in
21355 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21357 esac
21358 ;;
21359 esac
21360
21361 ac_dir=`$as_dirname -- "$ac_file" ||
21362 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21363 X"$ac_file" : 'X\(//\)[^/]' \| \
21364 X"$ac_file" : 'X\(//\)$' \| \
21365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21366 printf "%s\n" X"$ac_file" |
21367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21368 s//\1/
21369 q
21370 }
21371 /^X\(\/\/\)[^/].*/{
21372 s//\1/
21373 q
21374 }
21375 /^X\(\/\/\)$/{
21376 s//\1/
21377 q
21378 }
21379 /^X\(\/\).*/{
21380 s//\1/
21381 q
21382 }
21383 s/.*/./; q'`
21384 as_dir="$ac_dir"; as_fn_mkdir_p
21385 ac_builddir=.
21386
21387 case "$ac_dir" in
21388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21389 *)
21390 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21391 # A ".." for each directory in $ac_dir_suffix.
21392 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21393 case $ac_top_builddir_sub in
21394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21396 esac ;;
21397 esac
21398 ac_abs_top_builddir=$ac_pwd
21399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21400 # for backward compatibility:
21401 ac_top_builddir=$ac_top_build_prefix
21402
21403 case $srcdir in
21404 .) # We are building in place.
21405 ac_srcdir=.
21406 ac_top_srcdir=$ac_top_builddir_sub
21407 ac_abs_top_srcdir=$ac_pwd ;;
21408 [\\/]* | ?:[\\/]* ) # Absolute name.
21409 ac_srcdir=$srcdir$ac_dir_suffix;
21410 ac_top_srcdir=$srcdir
21411 ac_abs_top_srcdir=$srcdir ;;
21412 *) # Relative name.
21413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21414 ac_top_srcdir=$ac_top_build_prefix$srcdir
21415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21416 esac
21417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21418
21419
21420 case $ac_mode in
21421 :F)
21422 #
21423 # CONFIG_FILE
21424 #
21425
21426 case $INSTALL in
21427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21428 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21429 esac
21430 ac_MKDIR_P=$MKDIR_P
21431 case $MKDIR_P in
21432 [\\/$]* | ?:[\\/]* ) ;;
21433 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21434 esac
21435 _ACEOF
21436
21437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21438 # If the template does not know about datarootdir, expand it.
21439 # FIXME: This hack should be removed a few years after 2.60.
21440 ac_datarootdir_hack=; ac_datarootdir_seen=
21441 ac_sed_dataroot='
21442 /datarootdir/ {
21443 p
21444 q
21445 }
21446 /@datadir@/p
21447 /@docdir@/p
21448 /@infodir@/p
21449 /@localedir@/p
21450 /@mandir@/p'
21451 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21452 *datarootdir*) ac_datarootdir_seen=yes;;
21453 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21455 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21456 _ACEOF
21457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21458 ac_datarootdir_hack='
21459 s&@datadir@&$datadir&g
21460 s&@docdir@&$docdir&g
21461 s&@infodir@&$infodir&g
21462 s&@localedir@&$localedir&g
21463 s&@mandir@&$mandir&g
21464 s&\\\${datarootdir}&$datarootdir&g' ;;
21465 esac
21466 _ACEOF
21467
21468 # Neutralize VPATH when '$srcdir' = '.'.
21469 # Shell code in configure.ac might set extrasub.
21470 # FIXME: do we really want to maintain this feature?
21471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21472 ac_sed_extra="$ac_vpsub
21473 $extrasub
21474 _ACEOF
21475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21476 :t
21477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21478 s|@configure_input@|$ac_sed_conf_input|;t t
21479 s&@top_builddir@&$ac_top_builddir_sub&;t t
21480 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21481 s&@srcdir@&$ac_srcdir&;t t
21482 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21483 s&@top_srcdir@&$ac_top_srcdir&;t t
21484 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21485 s&@builddir@&$ac_builddir&;t t
21486 s&@abs_builddir@&$ac_abs_builddir&;t t
21487 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21488 s&@INSTALL@&$ac_INSTALL&;t t
21489 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21490 $ac_datarootdir_hack
21491 "
21492 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21493 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21494
21495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21496 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21498 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21500 which seems to be undefined. Please make sure it is defined" >&5
21501 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21502 which seems to be undefined. Please make sure it is defined" >&2;}
21503
21504 rm -f "$ac_tmp/stdin"
21505 case $ac_file in
21506 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21507 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21508 esac \
21509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21510 ;;
21511 :H)
21512 #
21513 # CONFIG_HEADER
21514 #
21515 if test x"$ac_file" != x-; then
21516 {
21517 printf "%s\n" "/* $configure_input */" >&1 \
21518 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21519 } >"$ac_tmp/config.h" \
21520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21521 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21523 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21524 else
21525 rm -f "$ac_file"
21526 mv "$ac_tmp/config.h" "$ac_file" \
21527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21528 fi
21529 else
21530 printf "%s\n" "/* $configure_input */" >&1 \
21531 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21532 || as_fn_error $? "could not create -" "$LINENO" 5
21533 fi
21534 # Compute "$ac_file"'s index in $config_headers.
21535 _am_arg="$ac_file"
21536 _am_stamp_count=1
21537 for _am_header in $config_headers :; do
21538 case $_am_header in
21539 $_am_arg | $_am_arg:* )
21540 break ;;
21541 * )
21542 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21543 esac
21544 done
21545 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21546 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21547 X"$_am_arg" : 'X\(//\)[^/]' \| \
21548 X"$_am_arg" : 'X\(//\)$' \| \
21549 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21550 printf "%s\n" X"$_am_arg" |
21551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21552 s//\1/
21553 q
21554 }
21555 /^X\(\/\/\)[^/].*/{
21556 s//\1/
21557 q
21558 }
21559 /^X\(\/\/\)$/{
21560 s//\1/
21561 q
21562 }
21563 /^X\(\/\).*/{
21564 s//\1/
21565 q
21566 }
21567 s/.*/./; q'`/stamp-h$_am_stamp_count
21568 ;;
21569
21570 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21571 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21572 ;;
21573 esac
21574
21575
21576 case $ac_file$ac_mode in
21577 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21578 # Older Autoconf quotes --file arguments for eval, but not when files
21579 # are listed without --file. Let's play safe and only enable the eval
21580 # if we detect the quoting.
21581 # TODO: see whether this extra hack can be removed once we start
21582 # requiring Autoconf 2.70 or later.
21583 case $CONFIG_FILES in #(
21584 *\'*) :
21585 eval set x "$CONFIG_FILES" ;; #(
21586 *) :
21587 set x $CONFIG_FILES ;; #(
21588 *) :
21589 ;;
21590 esac
21591 shift
21592 # Used to flag and report bootstrapping failures.
21593 am_rc=0
21594 for am_mf
21595 do
21596 # Strip MF so we end up with the name of the file.
21597 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21598 # Check whether this is an Automake generated Makefile which includes
21599 # dependency-tracking related rules and includes.
21600 # Grep'ing the whole file directly is not great: AIX grep has a line
21601 # limit of 2048, but all sed's we know have understand at least 4000.
21602 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21603 || continue
21604 am_dirpart=`$as_dirname -- "$am_mf" ||
21605 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21606 X"$am_mf" : 'X\(//\)[^/]' \| \
21607 X"$am_mf" : 'X\(//\)$' \| \
21608 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21609 printf "%s\n" X"$am_mf" |
21610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21611 s//\1/
21612 q
21613 }
21614 /^X\(\/\/\)[^/].*/{
21615 s//\1/
21616 q
21617 }
21618 /^X\(\/\/\)$/{
21619 s//\1/
21620 q
21621 }
21622 /^X\(\/\).*/{
21623 s//\1/
21624 q
21625 }
21626 s/.*/./; q'`
21627 am_filepart=`$as_basename -- "$am_mf" ||
21628 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21629 X"$am_mf" : 'X\(//\)$' \| \
21630 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21631 printf "%s\n" X/"$am_mf" |
21632 sed '/^.*\/\([^/][^/]*\)\/*$/{
21633 s//\1/
21634 q
21635 }
21636 /^X\/\(\/\/\)$/{
21637 s//\1/
21638 q
21639 }
21640 /^X\/\(\/\).*/{
21641 s//\1/
21642 q
21643 }
21644 s/.*/./; q'`
21645 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21646 && sed -e '/# am--include-marker/d' "$am_filepart" \
21647 | $MAKE -f - am--depfiles" >&5
21648 (cd "$am_dirpart" \
21649 && sed -e '/# am--include-marker/d' "$am_filepart" \
21650 | $MAKE -f - am--depfiles) >&5 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } || am_rc=$?
21654 done
21655 if test $am_rc -ne 0; then
21656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21657 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21658 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21659 for automatic dependency tracking. If GNU make was not used, consider
21660 re-running the configure script with MAKE=\"gmake\" (or whatever is
21661 necessary). You can also try re-running configure with the
21662 '--disable-dependency-tracking' option to at least be able to build
21663 the package (albeit without support for automatic dependency tracking).
21664 See 'config.log' for more details" "$LINENO" 5; }
21665 fi
21666 { am_dirpart=; unset am_dirpart;}
21667 { am_filepart=; unset am_filepart;}
21668 { am_mf=; unset am_mf;}
21669 { am_rc=; unset am_rc;}
21670 rm -f conftest-deps.mk
21671 }
21672 ;;
21673 "libtool":C)
21674
21675 # See if we are running on zsh, and set the options that allow our
21676 # commands through without removal of \ escapes.
21677 if test -n "${ZSH_VERSION+set}"; then
21678 setopt NO_GLOB_SUBST
21679 fi
21680
21681 cfgfile=${ofile}T
21682 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21683 $RM "$cfgfile"
21684
21685 cat <<_LT_EOF >> "$cfgfile"
21686 #! $SHELL
21687 # Generated automatically by $as_me ($PACKAGE) $VERSION
21688 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21689
21690 # Provide generalized library-building support services.
21691 # Written by Gordon Matzigkeit, 1996
21692
21693 # Copyright (C) 2024 Free Software Foundation, Inc.
21694 # This is free software; see the source for copying conditions. There is NO
21695 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21696
21697 # GNU Libtool is free software; you can redistribute it and/or modify
21698 # it under the terms of the GNU General Public License as published by
21699 # the Free Software Foundation; either version 2 of the License, or
21700 # (at your option) any later version.
21701 #
21702 # As a special exception to the GNU General Public License, if you
21703 # distribute this file as part of a program or library that is built
21704 # using GNU Libtool, you may include this file under the same
21705 # distribution terms that you use for the rest of that program.
21706 #
21707 # GNU Libtool is distributed in the hope that it will be useful, but
21708 # WITHOUT ANY WARRANTY; without even the implied warranty of
21709 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21710 # GNU General Public License for more details.
21711 #
21712 # You should have received a copy of the GNU General Public License
21713 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21714
21715
21716 # The names of the tagged configurations supported by this script.
21717 available_tags=''
21718
21719 # Configured defaults for sys_lib_dlsearch_path munging.
21720 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21721
21722 # ### BEGIN LIBTOOL CONFIG
21723
21724 # Which release of libtool.m4 was used?
21725 macro_version=$macro_version
21726 macro_revision=$macro_revision
21727
21728 # Whether or not to build static libraries.
21729 build_old_libs=$enable_static
21730
21731 # Whether or not to build shared libraries.
21732 build_libtool_libs=$enable_shared
21733
21734 # What type of objects to build.
21735 pic_mode=$pic_mode
21736
21737 # Whether or not to optimize for fast installation.
21738 fast_install=$enable_fast_install
21739
21740 # Shared archive member basename,for filename based shared library versioning on AIX.
21741 shared_archive_member_spec=$shared_archive_member_spec
21742
21743 # Shell to use when invoking shell scripts.
21744 SHELL=$lt_SHELL
21745
21746 # An echo program that protects backslashes.
21747 ECHO=$lt_ECHO
21748
21749 # The PATH separator for the build system.
21750 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21751
21752 # The host system.
21753 host_alias=$host_alias
21754 host=$host
21755 host_os=$host_os
21756
21757 # The build system.
21758 build_alias=$build_alias
21759 build=$build
21760 build_os=$build_os
21761
21762 # A sed program that does not truncate output.
21763 SED=$lt_SED
21764
21765 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21766 Xsed="\$SED -e 1s/^X//"
21767
21768 # A grep program that handles long lines.
21769 GREP=$lt_GREP
21770
21771 # An ERE matcher.
21772 EGREP=$lt_EGREP
21773
21774 # A literal string matcher.
21775 FGREP=$lt_FGREP
21776
21777 # A BSD- or MS-compatible name lister.
21778 NM=$lt_NM
21779
21780 # Whether we need soft or hard links.
21781 LN_S=$lt_LN_S
21782
21783 # What is the maximum length of a command?
21784 max_cmd_len=$max_cmd_len
21785
21786 # Object file suffix (normally "o").
21787 objext=$ac_objext
21788
21789 # Executable file suffix (normally "").
21790 exeext=$exeext
21791
21792 # whether the shell understands "unset".
21793 lt_unset=$lt_unset
21794
21795 # turn spaces into newlines.
21796 SP2NL=$lt_lt_SP2NL
21797
21798 # turn newlines into spaces.
21799 NL2SP=$lt_lt_NL2SP
21800
21801 # convert \$build file names to \$host format.
21802 to_host_file_cmd=$lt_cv_to_host_file_cmd
21803
21804 # convert \$build files to toolchain format.
21805 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21806
21807 # A file(cmd) program that detects file types.
21808 FILECMD=$lt_FILECMD
21809
21810 # An object symbol dumper.
21811 OBJDUMP=$lt_OBJDUMP
21812
21813 # Method to check whether dependent libraries are shared objects.
21814 deplibs_check_method=$lt_deplibs_check_method
21815
21816 # Command to use when deplibs_check_method = "file_magic".
21817 file_magic_cmd=$lt_file_magic_cmd
21818
21819 # How to find potential files when deplibs_check_method = "file_magic".
21820 file_magic_glob=$lt_file_magic_glob
21821
21822 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21823 want_nocaseglob=$lt_want_nocaseglob
21824
21825 # DLL creation program.
21826 DLLTOOL=$lt_DLLTOOL
21827
21828 # Command to associate shared and link libraries.
21829 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21830
21831 # The archiver.
21832 AR=$lt_AR
21833
21834 # Flags to create an archive (by configure).
21835 lt_ar_flags=$lt_ar_flags
21836
21837 # Flags to create an archive.
21838 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21839
21840 # How to feed a file listing to the archiver.
21841 archiver_list_spec=$lt_archiver_list_spec
21842
21843 # A symbol stripping program.
21844 STRIP=$lt_STRIP
21845
21846 # Commands used to install an old-style archive.
21847 RANLIB=$lt_RANLIB
21848 old_postinstall_cmds=$lt_old_postinstall_cmds
21849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21850
21851 # Whether to use a lock for old archive extraction.
21852 lock_old_archive_extraction=$lock_old_archive_extraction
21853
21854 # A C compiler.
21855 LTCC=$lt_CC
21856
21857 # LTCC compiler flags.
21858 LTCFLAGS=$lt_CFLAGS
21859
21860 # Take the output of nm and produce a listing of raw symbols and C names.
21861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21862
21863 # Transform the output of nm in a proper C declaration.
21864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21865
21866 # Transform the output of nm into a list of symbols to manually relocate.
21867 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21868
21869 # Transform the output of nm in a C name address pair.
21870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21871
21872 # Transform the output of nm in a C name address pair when lib prefix is needed.
21873 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21874
21875 # The name lister interface.
21876 nm_interface=$lt_lt_cv_nm_interface
21877
21878 # Specify filename containing input files for \$NM.
21879 nm_file_list_spec=$lt_nm_file_list_spec
21880
21881 # The root where to search for dependent libraries,and where our libraries should be installed.
21882 lt_sysroot=$lt_sysroot
21883
21884 # Command to truncate a binary pipe.
21885 lt_truncate_bin=$lt_lt_cv_truncate_bin
21886
21887 # The name of the directory that contains temporary libtool files.
21888 objdir=$objdir
21889
21890 # Used to examine libraries when file_magic_cmd begins with "file".
21891 MAGIC_CMD=$MAGIC_CMD
21892
21893 # Must we lock files when doing compilation?
21894 need_locks=$lt_need_locks
21895
21896 # Manifest tool.
21897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21898
21899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21900 DSYMUTIL=$lt_DSYMUTIL
21901
21902 # Tool to change global to local symbols on Mac OS X.
21903 NMEDIT=$lt_NMEDIT
21904
21905 # Tool to manipulate fat objects and archives on Mac OS X.
21906 LIPO=$lt_LIPO
21907
21908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21909 OTOOL=$lt_OTOOL
21910
21911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21912 OTOOL64=$lt_OTOOL64
21913
21914 # Old archive suffix (normally "a").
21915 libext=$libext
21916
21917 # Shared library suffix (normally ".so").
21918 shrext_cmds=$lt_shrext_cmds
21919
21920 # The commands to extract the exported symbol list from a shared archive.
21921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21922
21923 # Variables whose values should be saved in libtool wrapper scripts and
21924 # restored at link time.
21925 variables_saved_for_relink=$lt_variables_saved_for_relink
21926
21927 # Do we need the "lib" prefix for modules?
21928 need_lib_prefix=$need_lib_prefix
21929
21930 # Do we need a version for libraries?
21931 need_version=$need_version
21932
21933 # Library versioning type.
21934 version_type=$version_type
21935
21936 # Shared library runtime path variable.
21937 runpath_var=$runpath_var
21938
21939 # Shared library path variable.
21940 shlibpath_var=$shlibpath_var
21941
21942 # Is shlibpath searched before the hard-coded library search path?
21943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21944
21945 # Format of library name prefix.
21946 libname_spec=$lt_libname_spec
21947
21948 # List of archive names. First name is the real one, the rest are links.
21949 # The last name is the one that the linker finds with -lNAME
21950 library_names_spec=$lt_library_names_spec
21951
21952 # The coded name of the library, if different from the real name.
21953 soname_spec=$lt_soname_spec
21954
21955 # Permission mode override for installation of shared libraries.
21956 install_override_mode=$lt_install_override_mode
21957
21958 # Command to use after installation of a shared archive.
21959 postinstall_cmds=$lt_postinstall_cmds
21960
21961 # Command to use after uninstallation of a shared archive.
21962 postuninstall_cmds=$lt_postuninstall_cmds
21963
21964 # Commands used to finish a libtool library installation in a directory.
21965 finish_cmds=$lt_finish_cmds
21966
21967 # As "finish_cmds", except a single script fragment to be evaled but
21968 # not shown.
21969 finish_eval=$lt_finish_eval
21970
21971 # Whether we should hardcode library paths into libraries.
21972 hardcode_into_libs=$hardcode_into_libs
21973
21974 # Compile-time system search path for libraries.
21975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21976
21977 # Detected run-time system search path for libraries.
21978 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21979
21980 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21981 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21982
21983 # Whether dlopen is supported.
21984 dlopen_support=$enable_dlopen
21985
21986 # Whether dlopen of programs is supported.
21987 dlopen_self=$enable_dlopen_self
21988
21989 # Whether dlopen of statically linked programs is supported.
21990 dlopen_self_static=$enable_dlopen_self_static
21991
21992 # Commands to strip libraries.
21993 old_striplib=$lt_old_striplib
21994 striplib=$lt_striplib
21995
21996
21997 # The linker used to build libraries.
21998 LD=$lt_LD
21999
22000 # How to create reloadable object files.
22001 reload_flag=$lt_reload_flag
22002 reload_cmds=$lt_reload_cmds
22003
22004 # Commands used to build an old-style archive.
22005 old_archive_cmds=$lt_old_archive_cmds
22006
22007 # A language specific compiler.
22008 CC=$lt_compiler
22009
22010 # Is the compiler the GNU compiler?
22011 with_gcc=$GCC
22012
22013 # Compiler flag to turn off builtin functions.
22014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22015
22016 # Additional compiler flags for building library objects.
22017 pic_flag=$lt_lt_prog_compiler_pic
22018
22019 # How to pass a linker flag through the compiler.
22020 wl=$lt_lt_prog_compiler_wl
22021
22022 # Compiler flag to prevent dynamic linking.
22023 link_static_flag=$lt_lt_prog_compiler_static
22024
22025 # Does compiler simultaneously support -c and -o options?
22026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22027
22028 # Whether or not to add -lc for building shared libraries.
22029 build_libtool_need_lc=$archive_cmds_need_lc
22030
22031 # Whether or not to disallow shared libs when runtime libs are static.
22032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22033
22034 # Compiler flag to allow reflexive dlopens.
22035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22036
22037 # Compiler flag to generate shared objects directly from archives.
22038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22039
22040 # Whether the compiler copes with passing no objects directly.
22041 compiler_needs_object=$lt_compiler_needs_object
22042
22043 # Create an old-style archive from a shared archive.
22044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22045
22046 # Create a temporary old-style archive to link instead of a shared archive.
22047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22048
22049 # Commands used to build a shared archive.
22050 archive_cmds=$lt_archive_cmds
22051 archive_expsym_cmds=$lt_archive_expsym_cmds
22052
22053 # Commands used to build a loadable module if different from building
22054 # a shared archive.
22055 module_cmds=$lt_module_cmds
22056 module_expsym_cmds=$lt_module_expsym_cmds
22057
22058 # Whether we are building with GNU ld or not.
22059 with_gnu_ld=$lt_with_gnu_ld
22060
22061 # Flag that allows shared libraries with undefined symbols to be built.
22062 allow_undefined_flag=$lt_allow_undefined_flag
22063
22064 # Flag that enforces no undefined symbols.
22065 no_undefined_flag=$lt_no_undefined_flag
22066
22067 # Flag to hardcode \$libdir into a binary during linking.
22068 # This must work even if \$libdir does not exist
22069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22070
22071 # Whether we need a single "-rpath" flag with a separated argument.
22072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22073
22074 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22075 # DIR into the resulting binary.
22076 hardcode_direct=$hardcode_direct
22077
22078 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22079 # DIR into the resulting binary and the resulting library dependency is
22080 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22081 # library is relocated.
22082 hardcode_direct_absolute=$hardcode_direct_absolute
22083
22084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22085 # into the resulting binary.
22086 hardcode_minus_L=$hardcode_minus_L
22087
22088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22089 # into the resulting binary.
22090 hardcode_shlibpath_var=$hardcode_shlibpath_var
22091
22092 # Set to "yes" if building a shared library automatically hardcodes DIR
22093 # into the library and all subsequent libraries and executables linked
22094 # against it.
22095 hardcode_automatic=$hardcode_automatic
22096
22097 # Set to yes if linker adds runtime paths of dependent libraries
22098 # to runtime path list.
22099 inherit_rpath=$inherit_rpath
22100
22101 # Whether libtool must link a program against all its dependency libraries.
22102 link_all_deplibs=$link_all_deplibs
22103
22104 # Set to "yes" if exported symbols are required.
22105 always_export_symbols=$always_export_symbols
22106
22107 # The commands to list exported symbols.
22108 export_symbols_cmds=$lt_export_symbols_cmds
22109
22110 # Symbols that should not be listed in the preloaded symbols.
22111 exclude_expsyms=$lt_exclude_expsyms
22112
22113 # Symbols that must always be exported.
22114 include_expsyms=$lt_include_expsyms
22115
22116 # Commands necessary for linking programs (against libraries) with templates.
22117 prelink_cmds=$lt_prelink_cmds
22118
22119 # Commands necessary for finishing linking programs.
22120 postlink_cmds=$lt_postlink_cmds
22121
22122 # Specify filename containing input files.
22123 file_list_spec=$lt_file_list_spec
22124
22125 # How to hardcode a shared library path into an executable.
22126 hardcode_action=$hardcode_action
22127
22128 # ### END LIBTOOL CONFIG
22129
22130 _LT_EOF
22131
22132 cat <<'_LT_EOF' >> "$cfgfile"
22133
22134 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22135
22136 # func_munge_path_list VARIABLE PATH
22137 # -----------------------------------
22138 # VARIABLE is name of variable containing _space_ separated list of
22139 # directories to be munged by the contents of PATH, which is string
22140 # having a format:
22141 # "DIR[:DIR]:"
22142 # string "DIR[ DIR]" will be prepended to VARIABLE
22143 # ":DIR[:DIR]"
22144 # string "DIR[ DIR]" will be appended to VARIABLE
22145 # "DIRP[:DIRP]::[DIRA:]DIRA"
22146 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22147 # "DIRA[ DIRA]" will be appended to VARIABLE
22148 # "DIR[:DIR]"
22149 # VARIABLE will be replaced by "DIR[ DIR]"
22150 func_munge_path_list ()
22151 {
22152 case x$2 in
22153 x)
22154 ;;
22155 *:)
22156 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22157 ;;
22158 x:*)
22159 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22160 ;;
22161 *::*)
22162 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22163 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22164 ;;
22165 *)
22166 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22167 ;;
22168 esac
22169 }
22170
22171
22172 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22173 func_cc_basename ()
22174 {
22175 for cc_temp in $*""; do
22176 case $cc_temp in
22177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22179 \-*) ;;
22180 *) break;;
22181 esac
22182 done
22183 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22184 }
22185
22186
22187 # ### END FUNCTIONS SHARED WITH CONFIGURE
22188
22189 _LT_EOF
22190
22191 case $host_os in
22192 aix3*)
22193 cat <<\_LT_EOF >> "$cfgfile"
22194 # AIX sometimes has problems with the GCC collect2 program. For some
22195 # reason, if we set the COLLECT_NAMES environment variable, the problems
22196 # vanish in a puff of smoke.
22197 if test set != "${COLLECT_NAMES+set}"; then
22198 COLLECT_NAMES=
22199 export COLLECT_NAMES
22200 fi
22201 _LT_EOF
22202 ;;
22203 esac
22204
22205
22206
22207 ltmain=$ac_aux_dir/ltmain.sh
22208
22209
22210 # We use sed instead of cat because bash on DJGPP gets confused if
22211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22212 # text mode, it properly converts lines to CR/LF. This bash problem
22213 # is reportedly fixed, but why not run on old versions too?
22214 $SED '$q' "$ltmain" >> "$cfgfile" \
22215 || (rm -f "$cfgfile"; exit 1)
22216
22217 mv -f "$cfgfile" "$ofile" ||
22218 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22219 chmod +x "$ofile"
22220
22221 ;;
22222 "po-directories":C)
22223 for ac_file in $CONFIG_FILES; do
22224 # Support "outfile[:infile[:infile...]]"
22225 case "$ac_file" in
22226 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22227 esac
22228 # PO directories have a Makefile.in generated from Makefile.in.in.
22229 case "$ac_file" in */Makefile.in)
22230 # Adjust a relative srcdir.
22231 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22232 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22233 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22234 # In autoconf-2.13 it is called $ac_given_srcdir.
22235 # In autoconf-2.50 it is called $srcdir.
22236 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22237 case "$ac_given_srcdir" in
22238 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22239 /*) top_srcdir="$ac_given_srcdir" ;;
22240 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22241 esac
22242 # Treat a directory as a PO directory if and only if it has a
22243 # POTFILES.in file. This allows packages to have multiple PO
22244 # directories under different names or in different locations.
22245 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22246 rm -f "$ac_dir/POTFILES"
22247 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22248 gt_tab=`printf '\t'`
22249 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22250 POMAKEFILEDEPS="POTFILES.in"
22251 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22252 # on $ac_dir but don't depend on user-specified configuration
22253 # parameters.
22254 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22255 # The LINGUAS file contains the set of available languages.
22256 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22257 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22258 fi
22259 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22260 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22261 else
22262 # The set of available languages was given in configure.in.
22263 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
22264 fi
22265 # Compute POFILES
22266 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22267 # Compute UPDATEPOFILES
22268 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22269 # Compute DUMMYPOFILES
22270 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22271 # Compute GMOFILES
22272 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22273 case "$ac_given_srcdir" in
22274 .) srcdirpre= ;;
22275 *) srcdirpre='$(srcdir)/' ;;
22276 esac
22277 POFILES=
22278 UPDATEPOFILES=
22279 DUMMYPOFILES=
22280 GMOFILES=
22281 for lang in $ALL_LINGUAS; do
22282 POFILES="$POFILES $srcdirpre$lang.po"
22283 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22284 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22285 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22286 done
22287 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22288 # environment variable.
22289 INST_LINGUAS=
22290 if test -n "$ALL_LINGUAS"; then
22291 for presentlang in $ALL_LINGUAS; do
22292 useit=no
22293 if test "%UNSET%" != "$LINGUAS"; then
22294 desiredlanguages="$LINGUAS"
22295 else
22296 desiredlanguages="$ALL_LINGUAS"
22297 fi
22298 for desiredlang in $desiredlanguages; do
22299 # Use the presentlang catalog if desiredlang is
22300 # a. equal to presentlang, or
22301 # b. a variant of presentlang (because in this case,
22302 # presentlang can be used as a fallback for messages
22303 # which are not translated in the desiredlang catalog).
22304 case "$desiredlang" in
22305 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
22306 useit=yes
22307 ;;
22308 esac
22309 done
22310 if test $useit = yes; then
22311 INST_LINGUAS="$INST_LINGUAS $presentlang"
22312 fi
22313 done
22314 fi
22315 CATALOGS=
22316 if test -n "$INST_LINGUAS"; then
22317 for lang in $INST_LINGUAS; do
22318 CATALOGS="$CATALOGS $lang.gmo"
22319 done
22320 fi
22321 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22322 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22323 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22324 if test -f "$f"; then
22325 case "$f" in
22326 *.orig | *.bak | *~) ;;
22327 *) cat "$f" >> "$ac_dir/Makefile" ;;
22328 esac
22329 fi
22330 done
22331 fi
22332 ;;
22333 esac
22334 done ;;
22335
22336 esac
22337 done # for ac_tag
22338
22339
22340 as_fn_exit 0
22341 _ACEOF
22342 ac_clean_files=$ac_clean_files_save
22343
22344 test $ac_write_fail = 0 ||
22345 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22346
22347
22348 # configure is writing to config.log, and then calls config.status.
22349 # config.status does its own redirection, appending to config.log.
22350 # Unfortunately, on DOS this fails, as config.log is still kept open
22351 # by configure, so config.status won't be able to write to it; its
22352 # output is simply discarded. So we exec the FD to /dev/null,
22353 # effectively closing config.log, so it can be properly (re)opened and
22354 # appended to by config.status. When coming back to configure, we
22355 # need to make the FD available again.
22356 if test "$no_create" != yes; then
22357 ac_cs_success=:
22358 ac_config_status_args=
22359 test "$silent" = yes &&
22360 ac_config_status_args="$ac_config_status_args --quiet"
22361 exec 5>/dev/null
22362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22363 exec 5>>config.log
22364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22365 # would make configure fail if this is the last instruction.
22366 $ac_cs_success || as_fn_exit 1
22367 fi
22368 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22370 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22371 fi
22372
22373
22374 echo ""
22375 echo "Build configuration: "
22376 echo " --with-dist-version=$ac_distver"
22377 echo " --with-gnome=$with_gnome"
22378 echo " --with-gtk4=$with_gtk4"
22379 echo " --enable-absolute-paths=$enable_absolute_paths"
22380 echo " --enable-more-warnings=$set_more_warnings"
22381 echo " --enable-lto=$enable_lto"
22382 echo " --enable-ld-gc=$enable_ld_gc"
22383 echo ""
22384