Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for NetworkManager-pptp 1.2.12.
4 #
5 # Report bugs to <https://gitlab.gnome.org/GNOME/NetworkManager-pptp/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || 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 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://gitlab.gnome.org/GNOME/NetworkManager-pptp/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='NetworkManager-pptp'
624 PACKAGE_TARNAME='NetworkManager-pptp'
625 PACKAGE_VERSION='1.2.12'
626 PACKAGE_STRING='NetworkManager-pptp 1.2.12'
627 PACKAGE_BUGREPORT='https://gitlab.gnome.org/GNOME/NetworkManager-pptp/issues'
628 PACKAGE_URL=''
629
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 gt_needs=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 NM_PLUGIN_DIR_NAME_FILE
667 NM_PLUGIN_DIR
668 NM_VPN_SERVICE_DIR
669 LIBNM_LIBS
670 LIBNM_CFLAGS
671 LIBNMA_GTK4_LIBS
672 LIBNMA_GTK4_CFLAGS
673 GTK4_LIBS
674 GTK4_CFLAGS
675 LIBSECRET_LIBS
676 LIBSECRET_CFLAGS
677 LIBNMA_LIBS
678 LIBNMA_CFLAGS
679 GTK_LIBS
680 GTK_CFLAGS
681 GLIB_LIBS
682 GLIB_CFLAGS
683 POSUB
684 LTLIBINTL
685 LIBINTL
686 INTLLIBS
687 LTLIBICONV
688 LIBICONV
689 INTL_MACOSX_LIBS
690 XGETTEXT_EXTRA_OPTIONS
691 MSGMERGE_FOR_MSGFMT_OPTION
692 MSGMERGE
693 XGETTEXT_015
694 XGETTEXT
695 GMSGFMT_015
696 GMSGFMT
697 MSGFMT
698 GETTEXT_MACRO_VERSION
699 USE_NLS
700 GETTEXT_PACKAGE
701 WITH_GTK4_FALSE
702 WITH_GTK4_TRUE
703 WITH_GNOME_FALSE
704 WITH_GNOME_TRUE
705 DL_LIBS
706 LIBOBJS
707 PPPD_PLUGIN_DIR
708 has_find
709 has_file
710 PKG_CONFIG_LIBDIR
711 PKG_CONFIG_PATH
712 PKG_CONFIG
713 GLIB_COMPILE_RESOURCES
714 LT_SYS_LIBRARY_PATH
715 OTOOL64
716 OTOOL
717 LIPO
718 NMEDIT
719 DSYMUTIL
720 MANIFEST_TOOL
721 RANLIB
722 ac_ct_AR
723 AR
724 DLLTOOL
725 OBJDUMP
726 FILECMD
727 LN_S
728 NM
729 ac_ct_DUMPBIN
730 DUMPBIN
731 LD
732 FGREP
733 SED
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 LIBTOOL
743 EGREP
744 GREP
745 CPP
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 am__nodep
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__include
754 DEPDIR
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 MAINT
763 MAINTAINER_MODE_FALSE
764 MAINTAINER_MODE_TRUE
765 AM_BACKSLASH
766 AM_DEFAULT_VERBOSITY
767 AM_DEFAULT_V
768 AM_V
769 CSCOPE
770 ETAGS
771 CTAGS
772 am__untar
773 am__tar
774 AMTAR
775 am__leading_dot
776 SET_MAKE
777 AWK
778 mkdir_p
779 MKDIR_P
780 INSTALL_STRIP_PROGRAM
781 STRIP
782 install_sh
783 MAKEINFO
784 AUTOHEADER
785 AUTOMAKE
786 AUTOCONF
787 ACLOCAL
788 VERSION
789 PACKAGE
790 CYGPATH_W
791 am__isrc
792 INSTALL_DATA
793 INSTALL_SCRIPT
794 INSTALL_PROGRAM
795 target_alias
796 host_alias
797 build_alias
798 LIBS
799 ECHO_T
800 ECHO_N
801 ECHO_C
802 DEFS
803 mandir
804 localedir
805 libdir
806 psdir
807 pdfdir
808 dvidir
809 htmldir
810 infodir
811 docdir
812 oldincludedir
813 includedir
814 runstatedir
815 localstatedir
816 sharedstatedir
817 sysconfdir
818 datadir
819 datarootdir
820 libexecdir
821 sbindir
822 bindir
823 program_transform_name
824 prefix
825 exec_prefix
826 PACKAGE_URL
827 PACKAGE_BUGREPORT
828 PACKAGE_STRING
829 PACKAGE_VERSION
830 PACKAGE_TARNAME
831 PACKAGE_NAME
832 PATH_SEPARATOR
833 SHELL
834 am__quote'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_silent_rules
839 enable_maintainer_mode
840 enable_dependency_tracking
841 enable_static
842 enable_shared
843 with_pic
844 enable_fast_install
845 with_aix_soname
846 with_gnu_ld
847 with_sysroot
848 enable_libtool_lock
849 with_pppd_plugin_dir
850 with_gnome
851 with_gtk4
852 enable_absolute_paths
853 enable_nls
854 enable_rpath
855 with_libiconv_prefix
856 with_libintl_prefix
857 enable_more_warnings
858 with_dist_version
859 '
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
863 CC
864 CFLAGS
865 LDFLAGS
866 LIBS
867 CPPFLAGS
868 CPP
869 LT_SYS_LIBRARY_PATH
870 PKG_CONFIG
871 PKG_CONFIG_PATH
872 PKG_CONFIG_LIBDIR
873 GLIB_CFLAGS
874 GLIB_LIBS
875 GTK_CFLAGS
876 GTK_LIBS
877 LIBNMA_CFLAGS
878 LIBNMA_LIBS
879 LIBSECRET_CFLAGS
880 LIBSECRET_LIBS
881 GTK4_CFLAGS
882 GTK4_LIBS
883 LIBNMA_GTK4_CFLAGS
884 LIBNMA_GTK4_LIBS
885 LIBNM_CFLAGS
886 LIBNM_LIBS'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 runstatedir='${localstatedir}/run'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
945 ac_prev=
946 continue
947 fi
948
949 case $ac_option in
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *=) ac_optarg= ;;
952 *) ac_optarg=yes ;;
953 esac
954
955 case $ac_dashdash$ac_option in
956 --)
957 ac_dashdash=yes ;;
958
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
963
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
968
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
975
976 --config-cache | -C)
977 cache_file=config.cache ;;
978
979 -datadir | --datadir | --datadi | --datad)
980 ac_prev=datadir ;;
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
983
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
990
991 -disable-* | --disable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: \`$ac_useropt'"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1016
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1052
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1057
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1087
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1161
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -runstatedir | --runstatedir | --runstatedi | --runstated \
1177 | --runstate | --runstat | --runsta | --runst | --runs \
1178 | --run | --ru | --r)
1179 ac_prev=runstatedir ;;
1180 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1181 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1182 | --run=* | --ru=* | --r=*)
1183 runstatedir=$ac_optarg ;;
1184
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1190
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1201
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1206
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1211
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1218
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1223
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1226
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1229
1230 -with-* | --with-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: \`$ac_useropt'"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=\$ac_optarg ;;
1245
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error $? "invalid package name: \`$ac_useropt'"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1254 *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=no ;;
1261
1262 --x)
1263 # Obsolete; use --with-x.
1264 with_x=yes ;;
1265
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1272
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1279
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1282 ;;
1283
1284 *=*)
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290 esac
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1293
1294 *)
1295 # FIXME: should be removed in autoconf 3.0.
1296 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1300 ;;
1301
1302 esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $? "missing argument to $ac_option"
1308 fi
1309
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1312 no) ;;
1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 esac
1316 fi
1317
1318 # Check all directory arguments for consistency.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir runstatedir
1323 do
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1326 case $ac_val in
1327 */ )
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1330 esac
1331 # Be sure to have absolute directory names.
1332 case $ac_val in
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335 esac
1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1338
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1345
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1352 fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $? "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 printf "%s\n" X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410 pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures NetworkManager-pptp 1.2.12 to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root
1485 [DATAROOTDIR/doc/NetworkManager-pptp]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498
1499 System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 _ACEOF
1503 fi
1504
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of NetworkManager-pptp 1.2.12:";;
1508 esac
1509 cat <<\_ACEOF
1510
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-silent-rules less verbose build output (undo: "make V=1")
1516 --disable-silent-rules verbose build output (undo: "make V=0")
1517 --enable-maintainer-mode
1518 enable make rules and dependencies not useful (and
1519 sometimes confusing) to the casual installer
1520 --enable-dependency-tracking
1521 do not reject slow dependency extractors
1522 --disable-dependency-tracking
1523 speeds up one-time build
1524 --enable-static[=PKGS] build static libraries [default=no]
1525 --enable-shared[=PKGS] build shared libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --enable-absolute-paths Use absolute paths to in .name files. Useful for
1530 development. (default is no)
1531 --disable-nls do not use Native Language Support
1532 --disable-rpath do not hardcode runtime library paths
1533 --enable-more-warnings Possible values: no/yes/error
1534
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1539 both]
1540 --with-aix-soname=aix|svr4|both
1541 shared library versioning (aka "SONAME") variant to
1542 provide on AIX, [default=aix].
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1544 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1545 compiler's sysroot if not specified).
1546 --with-pppd-plugin-dir=DIR
1547 path to the pppd plugins directory
1548 --without-gnome Build NetworkManager-pptp without GNOME support,
1549 e.g. vpn service only
1550 --with-gtk4 Build NetworkManager-pptp with libnma-gtk4 support
1551 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1552 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1553 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1554 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1555 --without-libintl-prefix don't search for libintl in includedir and libdir
1556 --with-dist-version=<dist-version>
1557 Define the custom version (like distribution package
1558 name and revision)
1559
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CPP C preprocessor
1569 LT_SYS_LIBRARY_PATH
1570 User-defined run-time library search path.
1571 PKG_CONFIG path to pkg-config utility
1572 PKG_CONFIG_PATH
1573 directories to add to pkg-config's search path
1574 PKG_CONFIG_LIBDIR
1575 path overriding pkg-config's built-in search path
1576 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1577 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1578 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1579 GTK_LIBS linker flags for GTK, overriding pkg-config
1580 LIBNMA_CFLAGS
1581 C compiler flags for LIBNMA, overriding pkg-config
1582 LIBNMA_LIBS linker flags for LIBNMA, overriding pkg-config
1583 LIBSECRET_CFLAGS
1584 C compiler flags for LIBSECRET, overriding pkg-config
1585 LIBSECRET_LIBS
1586 linker flags for LIBSECRET, overriding pkg-config
1587 GTK4_CFLAGS C compiler flags for GTK4, overriding pkg-config
1588 GTK4_LIBS linker flags for GTK4, overriding pkg-config
1589 LIBNMA_GTK4_CFLAGS
1590 C compiler flags for LIBNMA_GTK4, overriding pkg-config
1591 LIBNMA_GTK4_LIBS
1592 linker flags for LIBNMA_GTK4, overriding pkg-config
1593 LIBNM_CFLAGS
1594 C compiler flags for LIBNM, overriding pkg-config
1595 LIBNM_LIBS linker flags for LIBNM, overriding pkg-config
1596
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1599
1600 Report bugs to <https://gitlab.gnome.org/GNOME/NetworkManager-pptp/issues>.
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for configure.gnu first; this name is used for a wrapper for
1647 # Metaconfig's "Configure" on case-insensitive file systems.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 NetworkManager-pptp configure 1.2.12
1665 generated by GNU Autoconf 2.71
1666
1667 Copyright (C) 2021 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1677
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest.beam
1685 if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 printf "%s\n" "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext
1704 then :
1705 ac_retval=0
1706 else $as_nop
1707 printf "%s\n" "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_compile
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1727 then :
1728 printf %s "(cached) " >&6
1729 else $as_nop
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 $4
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"
1736 then :
1737 eval "$3=yes"
1738 else $as_nop
1739 eval "$3=no"
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1742 fi
1743 eval ac_res=\$$3
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 printf "%s\n" "$ac_res" >&6; }
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748 } # ac_fn_c_check_header_compile
1749
1750 # ac_fn_c_try_cpp LINENO
1751 # ----------------------
1752 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_cpp ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { { ac_try="$ac_cpp conftest.$ac_ext"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 printf "%s\n" "$ac_try_echo"; } >&5
1763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } > conftest.i && {
1772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 }
1775 then :
1776 ac_retval=0
1777 else $as_nop
1778 printf "%s\n" "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782 fi
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_cpp
1787
1788 # ac_fn_c_try_link LINENO
1789 # -----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_link ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 printf "%s\n" "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 test -x conftest$ac_exeext
1816 }
1817 then :
1818 ac_retval=0
1819 else $as_nop
1820 printf "%s\n" "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824 fi
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_link
1834
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 printf %s "checking for $2... " >&6; }
1843 if eval test \${$3+y}
1844 then :
1845 printf %s "(cached) " >&6
1846 else $as_nop
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below. */
1855
1856 #include <limits.h>
1857 #undef $2
1858
1859 /* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1862 #ifdef __cplusplus
1863 extern "C"
1864 #endif
1865 char $2 ();
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined __stub_$2 || defined __stub___$2
1870 choke me
1871 #endif
1872
1873 int
1874 main (void)
1875 {
1876 return $2 ();
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_link "$LINENO"
1882 then :
1883 eval "$3=yes"
1884 else $as_nop
1885 eval "$3=no"
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1888 conftest$ac_exeext conftest.$ac_ext
1889 fi
1890 eval ac_res=\$$3
1891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 printf "%s\n" "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_func
1896
1897 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1898 # -------------------------------------------
1899 # Tests whether TYPE exists after having included INCLUDES, setting cache
1900 # variable VAR accordingly.
1901 ac_fn_c_check_type ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 printf %s "checking for $2... " >&6; }
1906 if eval test \${$3+y}
1907 then :
1908 printf %s "(cached) " >&6
1909 else $as_nop
1910 eval "$3=no"
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 int
1915 main (void)
1916 {
1917 if (sizeof ($2))
1918 return 0;
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"
1924 then :
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 $4
1928 int
1929 main (void)
1930 {
1931 if (sizeof (($2)))
1932 return 0;
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"
1938 then :
1939
1940 else $as_nop
1941 eval "$3=yes"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946 fi
1947 eval ac_res=\$$3
1948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 printf "%s\n" "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_type
1953
1954 # ac_fn_c_try_run LINENO
1955 # ----------------------
1956 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1957 # executables *can* be run.
1958 ac_fn_c_try_run ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_link"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 printf "%s\n" "$ac_try_echo"; } >&5
1968 (eval "$ac_link") 2>&5
1969 ac_status=$?
1970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1972 { { case "(($ac_try" in
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 printf "%s\n" "$ac_try_echo"; } >&5
1978 (eval "$ac_try") 2>&5
1979 ac_status=$?
1980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; }; }
1982 then :
1983 ac_retval=0
1984 else $as_nop
1985 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1986 printf "%s\n" "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=$ac_status
1990 fi
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1994
1995 } # ac_fn_c_try_run
1996 ac_configure_args_raw=
1997 for ac_arg
1998 do
1999 case $ac_arg in
2000 *\'*)
2001 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2002 esac
2003 as_fn_append ac_configure_args_raw " '$ac_arg'"
2004 done
2005
2006 case $ac_configure_args_raw in
2007 *$as_nl*)
2008 ac_safe_unquote= ;;
2009 *)
2010 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2011 ac_unsafe_a="$ac_unsafe_z#~"
2012 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2013 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2014 esac
2015
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2019
2020 It was created by NetworkManager-pptp $as_me 1.2.12, which was
2021 generated by GNU Autoconf 2.71. Invocation command line was
2022
2023 $ $0$ac_configure_args_raw
2024
2025 _ACEOF
2026 exec 5>>config.log
2027 {
2028 cat <<_ASUNAME
2029 ## --------- ##
2030 ## Platform. ##
2031 ## --------- ##
2032
2033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038
2039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2041
2042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2049
2050 _ASUNAME
2051
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055 IFS=$as_save_IFS
2056 case $as_dir in #(((
2057 '') as_dir=./ ;;
2058 */) ;;
2059 *) as_dir=$as_dir/ ;;
2060 esac
2061 printf "%s\n" "PATH: $as_dir"
2062 done
2063 IFS=$as_save_IFS
2064
2065 } >&5
2066
2067 cat >&5 <<_ACEOF
2068
2069
2070 ## ----------- ##
2071 ## Core tests. ##
2072 ## ----------- ##
2073
2074 _ACEOF
2075
2076
2077 # Keep a trace of the command line.
2078 # Strip out --no-create and --no-recursion so they do not pile up.
2079 # Strip out --silent because we don't want to record it for future runs.
2080 # Also quote any args containing shell meta-characters.
2081 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_configure_args=
2083 ac_configure_args0=
2084 ac_configure_args1=
2085 ac_must_keep_next=false
2086 for ac_pass in 1 2
2087 do
2088 for ac_arg
2089 do
2090 case $ac_arg in
2091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093 | -silent | --silent | --silen | --sile | --sil)
2094 continue ;;
2095 *\'*)
2096 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097 esac
2098 case $ac_pass in
2099 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2100 2)
2101 as_fn_append ac_configure_args1 " '$ac_arg'"
2102 if test $ac_must_keep_next = true; then
2103 ac_must_keep_next=false # Got value, back to normal.
2104 else
2105 case $ac_arg in
2106 *=* | --config-cache | -C | -disable-* | --disable-* \
2107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109 | -with-* | --with-* | -without-* | --without-* | --x)
2110 case "$ac_configure_args0 " in
2111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112 esac
2113 ;;
2114 -* ) ac_must_keep_next=true ;;
2115 esac
2116 fi
2117 as_fn_append ac_configure_args " '$ac_arg'"
2118 ;;
2119 esac
2120 done
2121 done
2122 { ac_configure_args0=; unset ac_configure_args0;}
2123 { ac_configure_args1=; unset ac_configure_args1;}
2124
2125 # When interrupted or exit'd, cleanup temporary files, and complete
2126 # config.log. We remove comments because anyway the quotes in there
2127 # would cause problems or look ugly.
2128 # WARNING: Use '\'' to represent an apostrophe within the trap.
2129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130 trap 'exit_status=$?
2131 # Sanitize IFS.
2132 IFS=" "" $as_nl"
2133 # Save into config.log some information that might help in debugging.
2134 {
2135 echo
2136
2137 printf "%s\n" "## ---------------- ##
2138 ## Cache variables. ##
2139 ## ---------------- ##"
2140 echo
2141 # The following way of writing the cache mishandles newlines in values,
2142 (
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in #(
2146 *${as_nl}*)
2147 case $ac_var in #(
2148 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150 esac
2151 case $ac_var in #(
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2155 esac ;;
2156 esac
2157 done
2158 (set) 2>&1 |
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2161 sed -n \
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164 ;; #(
2165 *)
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 ;;
2168 esac |
2169 sort
2170 )
2171 echo
2172
2173 printf "%s\n" "## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##"
2176 echo
2177 for ac_var in $ac_subst_vars
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 printf "%s\n" "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186
2187 if test -n "$ac_subst_files"; then
2188 printf "%s\n" "## ------------------- ##
2189 ## File substitutions. ##
2190 ## ------------------- ##"
2191 echo
2192 for ac_var in $ac_subst_files
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 printf "%s\n" "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201 fi
2202
2203 if test -s confdefs.h; then
2204 printf "%s\n" "## ----------- ##
2205 ## confdefs.h. ##
2206 ## ----------- ##"
2207 echo
2208 cat confdefs.h
2209 echo
2210 fi
2211 test "$ac_signal" != 0 &&
2212 printf "%s\n" "$as_me: caught signal $ac_signal"
2213 printf "%s\n" "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2218 ' 0
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2223
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2226
2227 printf "%s\n" "/* confdefs.h */" > confdefs.h
2228
2229 # Predefined preprocessor variables.
2230
2231 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2232
2233 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2234
2235 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2236
2237 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2238
2239 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2240
2241 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2242
2243
2244 # Let the site file select an alternate cache file if it wants to.
2245 # Prefer an explicitly selected file to automatically selected ones.
2246 if test -n "$CONFIG_SITE"; then
2247 ac_site_files="$CONFIG_SITE"
2248 elif test "x$prefix" != xNONE; then
2249 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2250 else
2251 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2252 fi
2253
2254 for ac_site_file in $ac_site_files
2255 do
2256 case $ac_site_file in #(
2257 */*) :
2258 ;; #(
2259 *) :
2260 ac_site_file=./$ac_site_file ;;
2261 esac
2262 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2264 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2265 sed 's/^/| /' "$ac_site_file" >&5
2266 . "$ac_site_file" \
2267 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2269 as_fn_error $? "failed to load site script $ac_site_file
2270 See \`config.log' for more details" "$LINENO" 5; }
2271 fi
2272 done
2273
2274 if test -r "$cache_file"; then
2275 # Some versions of bash will fail to source /dev/null (special files
2276 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2277 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2279 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2280 case $cache_file in
2281 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2282 *) . "./$cache_file";;
2283 esac
2284 fi
2285 else
2286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2287 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2288 >$cache_file
2289 fi
2290
2291 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2292 # Test code for whether the C compiler supports C89 (global declarations)
2293 ac_c_conftest_c89_globals='
2294 /* Does the compiler advertise C89 conformance?
2295 Do not test the value of __STDC__, because some compilers set it to 0
2296 while being otherwise adequately conformant. */
2297 #if !defined __STDC__
2298 # error "Compiler does not advertise C89 conformance"
2299 #endif
2300
2301 #include <stddef.h>
2302 #include <stdarg.h>
2303 struct stat;
2304 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2305 struct buf { int x; };
2306 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2307 static char *e (p, i)
2308 char **p;
2309 int i;
2310 {
2311 return p[i];
2312 }
2313 static char *f (char * (*g) (char **, int), char **p, ...)
2314 {
2315 char *s;
2316 va_list v;
2317 va_start (v,p);
2318 s = g (p, va_arg (v,int));
2319 va_end (v);
2320 return s;
2321 }
2322
2323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2324 function prototypes and stuff, but not \xHH hex character constants.
2325 These do not provoke an error unfortunately, instead are silently treated
2326 as an "x". The following induces an error, until -std is added to get
2327 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2328 array size at least. It is necessary to write \x00 == 0 to get something
2329 that is true only with -std. */
2330 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2331
2332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2333 inside strings and character constants. */
2334 #define FOO(x) '\''x'\''
2335 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2336
2337 int test (int i, double x);
2338 struct s1 {int (*f) (int a);};
2339 struct s2 {int (*f) (double a);};
2340 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2341 int, int);'
2342
2343 # Test code for whether the C compiler supports C89 (body of main).
2344 ac_c_conftest_c89_main='
2345 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2346 '
2347
2348 # Test code for whether the C compiler supports C99 (global declarations)
2349 ac_c_conftest_c99_globals='
2350 // Does the compiler advertise C99 conformance?
2351 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2352 # error "Compiler does not advertise C99 conformance"
2353 #endif
2354
2355 #include <stdbool.h>
2356 extern int puts (const char *);
2357 extern int printf (const char *, ...);
2358 extern int dprintf (int, const char *, ...);
2359 extern void *malloc (size_t);
2360
2361 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2362 // dprintf is used instead of fprintf to avoid needing to declare
2363 // FILE and stderr.
2364 #define debug(...) dprintf (2, __VA_ARGS__)
2365 #define showlist(...) puts (#__VA_ARGS__)
2366 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2367 static void
2368 test_varargs_macros (void)
2369 {
2370 int x = 1234;
2371 int y = 5678;
2372 debug ("Flag");
2373 debug ("X = %d\n", x);
2374 showlist (The first, second, and third items.);
2375 report (x>y, "x is %d but y is %d", x, y);
2376 }
2377
2378 // Check long long types.
2379 #define BIG64 18446744073709551615ull
2380 #define BIG32 4294967295ul
2381 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2382 #if !BIG_OK
2383 #error "your preprocessor is broken"
2384 #endif
2385 #if BIG_OK
2386 #else
2387 #error "your preprocessor is broken"
2388 #endif
2389 static long long int bignum = -9223372036854775807LL;
2390 static unsigned long long int ubignum = BIG64;
2391
2392 struct incomplete_array
2393 {
2394 int datasize;
2395 double data[];
2396 };
2397
2398 struct named_init {
2399 int number;
2400 const wchar_t *name;
2401 double average;
2402 };
2403
2404 typedef const char *ccp;
2405
2406 static inline int
2407 test_restrict (ccp restrict text)
2408 {
2409 // See if C++-style comments work.
2410 // Iterate through items via the restricted pointer.
2411 // Also check for declarations in for loops.
2412 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2413 continue;
2414 return 0;
2415 }
2416
2417 // Check varargs and va_copy.
2418 static bool
2419 test_varargs (const char *format, ...)
2420 {
2421 va_list args;
2422 va_start (args, format);
2423 va_list args_copy;
2424 va_copy (args_copy, args);
2425
2426 const char *str = "";
2427 int number = 0;
2428 float fnumber = 0;
2429
2430 while (*format)
2431 {
2432 switch (*format++)
2433 {
2434 case '\''s'\'': // string
2435 str = va_arg (args_copy, const char *);
2436 break;
2437 case '\''d'\'': // int
2438 number = va_arg (args_copy, int);
2439 break;
2440 case '\''f'\'': // float
2441 fnumber = va_arg (args_copy, double);
2442 break;
2443 default:
2444 break;
2445 }
2446 }
2447 va_end (args_copy);
2448 va_end (args);
2449
2450 return *str && number && fnumber;
2451 }
2452 '
2453
2454 # Test code for whether the C compiler supports C99 (body of main).
2455 ac_c_conftest_c99_main='
2456 // Check bool.
2457 _Bool success = false;
2458 success |= (argc != 0);
2459
2460 // Check restrict.
2461 if (test_restrict ("String literal") == 0)
2462 success = true;
2463 char *restrict newvar = "Another string";
2464
2465 // Check varargs.
2466 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2467 test_varargs_macros ();
2468
2469 // Check flexible array members.
2470 struct incomplete_array *ia =
2471 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2472 ia->datasize = 10;
2473 for (int i = 0; i < ia->datasize; ++i)
2474 ia->data[i] = i * 1.234;
2475
2476 // Check named initializers.
2477 struct named_init ni = {
2478 .number = 34,
2479 .name = L"Test wide string",
2480 .average = 543.34343,
2481 };
2482
2483 ni.number = 58;
2484
2485 int dynamic_array[ni.number];
2486 dynamic_array[0] = argv[0][0];
2487 dynamic_array[ni.number - 1] = 543;
2488
2489 // work around unused variable warnings
2490 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2491 || dynamic_array[ni.number - 1] != 543);
2492 '
2493
2494 # Test code for whether the C compiler supports C11 (global declarations)
2495 ac_c_conftest_c11_globals='
2496 // Does the compiler advertise C11 conformance?
2497 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2498 # error "Compiler does not advertise C11 conformance"
2499 #endif
2500
2501 // Check _Alignas.
2502 char _Alignas (double) aligned_as_double;
2503 char _Alignas (0) no_special_alignment;
2504 extern char aligned_as_int;
2505 char _Alignas (0) _Alignas (int) aligned_as_int;
2506
2507 // Check _Alignof.
2508 enum
2509 {
2510 int_alignment = _Alignof (int),
2511 int_array_alignment = _Alignof (int[100]),
2512 char_alignment = _Alignof (char)
2513 };
2514 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2515
2516 // Check _Noreturn.
2517 int _Noreturn does_not_return (void) { for (;;) continue; }
2518
2519 // Check _Static_assert.
2520 struct test_static_assert
2521 {
2522 int x;
2523 _Static_assert (sizeof (int) <= sizeof (long int),
2524 "_Static_assert does not work in struct");
2525 long int y;
2526 };
2527
2528 // Check UTF-8 literals.
2529 #define u8 syntax error!
2530 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2531
2532 // Check duplicate typedefs.
2533 typedef long *long_ptr;
2534 typedef long int *long_ptr;
2535 typedef long_ptr long_ptr;
2536
2537 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2538 struct anonymous
2539 {
2540 union {
2541 struct { int i; int j; };
2542 struct { int k; long int l; } w;
2543 };
2544 int m;
2545 } v1;
2546 '
2547
2548 # Test code for whether the C compiler supports C11 (body of main).
2549 ac_c_conftest_c11_main='
2550 _Static_assert ((offsetof (struct anonymous, i)
2551 == offsetof (struct anonymous, w.k)),
2552 "Anonymous union alignment botch");
2553 v1.i = 2;
2554 v1.w.k = 5;
2555 ok |= v1.i != 5;
2556 '
2557
2558 # Test code for whether the C compiler supports C11 (complete).
2559 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2560 ${ac_c_conftest_c99_globals}
2561 ${ac_c_conftest_c11_globals}
2562
2563 int
2564 main (int argc, char **argv)
2565 {
2566 int ok = 0;
2567 ${ac_c_conftest_c89_main}
2568 ${ac_c_conftest_c99_main}
2569 ${ac_c_conftest_c11_main}
2570 return ok;
2571 }
2572 "
2573
2574 # Test code for whether the C compiler supports C99 (complete).
2575 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2576 ${ac_c_conftest_c99_globals}
2577
2578 int
2579 main (int argc, char **argv)
2580 {
2581 int ok = 0;
2582 ${ac_c_conftest_c89_main}
2583 ${ac_c_conftest_c99_main}
2584 return ok;
2585 }
2586 "
2587
2588 # Test code for whether the C compiler supports C89 (complete).
2589 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2590
2591 int
2592 main (int argc, char **argv)
2593 {
2594 int ok = 0;
2595 ${ac_c_conftest_c89_main}
2596 return ok;
2597 }
2598 "
2599
2600 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2601 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2602 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2603 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2604 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2605 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2606 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2607 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2608 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2609 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2610 gt_needs="$gt_needs "
2611
2612 # Auxiliary files required by this configure script.
2613 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
2614
2615 # Locations in which to look for auxiliary files.
2616 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2617
2618 # Search for a directory containing all of the required auxiliary files,
2619 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2620 # If we don't find one directory that contains all the files we need,
2621 # we report the set of missing files from the *first* directory in
2622 # $ac_aux_dir_candidates and give up.
2623 ac_missing_aux_files=""
2624 ac_first_candidate=:
2625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 as_found=false
2628 for as_dir in $ac_aux_dir_candidates
2629 do
2630 IFS=$as_save_IFS
2631 case $as_dir in #(((
2632 '') as_dir=./ ;;
2633 */) ;;
2634 *) as_dir=$as_dir/ ;;
2635 esac
2636 as_found=:
2637
2638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2639 ac_aux_dir_found=yes
2640 ac_install_sh=
2641 for ac_aux in $ac_aux_files
2642 do
2643 # As a special case, if "install-sh" is required, that requirement
2644 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2645 # and $ac_install_sh is set appropriately for whichever one is found.
2646 if test x"$ac_aux" = x"install-sh"
2647 then
2648 if test -f "${as_dir}install-sh"; then
2649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2650 ac_install_sh="${as_dir}install-sh -c"
2651 elif test -f "${as_dir}install.sh"; then
2652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2653 ac_install_sh="${as_dir}install.sh -c"
2654 elif test -f "${as_dir}shtool"; then
2655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2656 ac_install_sh="${as_dir}shtool install -c"
2657 else
2658 ac_aux_dir_found=no
2659 if $ac_first_candidate; then
2660 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2661 else
2662 break
2663 fi
2664 fi
2665 else
2666 if test -f "${as_dir}${ac_aux}"; then
2667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2668 else
2669 ac_aux_dir_found=no
2670 if $ac_first_candidate; then
2671 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2672 else
2673 break
2674 fi
2675 fi
2676 fi
2677 done
2678 if test "$ac_aux_dir_found" = yes; then
2679 ac_aux_dir="$as_dir"
2680 break
2681 fi
2682 ac_first_candidate=false
2683
2684 as_found=false
2685 done
2686 IFS=$as_save_IFS
2687 if $as_found
2688 then :
2689
2690 else $as_nop
2691 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2692 fi
2693
2694
2695 # These three variables are undocumented and unsupported,
2696 # and are intended to be withdrawn in a future Autoconf release.
2697 # They can cause serious problems if a builder's source tree is in a directory
2698 # whose full name contains unusual characters.
2699 if test -f "${ac_aux_dir}config.guess"; then
2700 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2701 fi
2702 if test -f "${ac_aux_dir}config.sub"; then
2703 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2704 fi
2705 if test -f "$ac_aux_dir/configure"; then
2706 ac_configure="$SHELL ${ac_aux_dir}configure"
2707 fi
2708
2709 # Check that the precious variables saved in the cache have kept the same
2710 # value.
2711 ac_cache_corrupted=false
2712 for ac_var in $ac_precious_vars; do
2713 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2714 eval ac_new_set=\$ac_env_${ac_var}_set
2715 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2716 eval ac_new_val=\$ac_env_${ac_var}_value
2717 case $ac_old_set,$ac_new_set in
2718 set,)
2719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2720 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2721 ac_cache_corrupted=: ;;
2722 ,set)
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2724 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2725 ac_cache_corrupted=: ;;
2726 ,);;
2727 *)
2728 if test "x$ac_old_val" != "x$ac_new_val"; then
2729 # differences in whitespace do not lead to failure.
2730 ac_old_val_w=`echo x $ac_old_val`
2731 ac_new_val_w=`echo x $ac_new_val`
2732 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2734 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2735 ac_cache_corrupted=:
2736 else
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2738 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2739 eval $ac_var=\$ac_old_val
2740 fi
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2742 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2744 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2745 fi;;
2746 esac
2747 # Pass precious variables to config.status.
2748 if test "$ac_new_set" = set; then
2749 case $ac_new_val in
2750 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2751 *) ac_arg=$ac_var=$ac_new_val ;;
2752 esac
2753 case " $ac_configure_args " in
2754 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2755 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2756 esac
2757 fi
2758 done
2759 if $ac_cache_corrupted; then
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2761 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2763 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2764 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2765 and start over" "$LINENO" 5
2766 fi
2767 ## -------------------- ##
2768 ## Main body of script. ##
2769 ## -------------------- ##
2770
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777
2778 am__api_version='1.16'
2779
2780
2781
2782 # Find a good install program. We prefer a C program (faster),
2783 # so one script is as good as another. But avoid the broken or
2784 # incompatible versions:
2785 # SysV /etc/install, /usr/sbin/install
2786 # SunOS /usr/etc/install
2787 # IRIX /sbin/install
2788 # AIX /bin/install
2789 # AmigaOS /C/install, which installs bootblocks on floppy discs
2790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2793 # OS/2's system install, which has a completely different semantic
2794 # ./install, which can be erroneously created by make from ./install.sh.
2795 # Reject install programs that cannot install multiple files.
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2797 printf %s "checking for a BSD-compatible install... " >&6; }
2798 if test -z "$INSTALL"; then
2799 if test ${ac_cv_path_install+y}
2800 then :
2801 printf %s "(cached) " >&6
2802 else $as_nop
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 case $as_dir in #(((
2808 '') as_dir=./ ;;
2809 */) ;;
2810 *) as_dir=$as_dir/ ;;
2811 esac
2812 # Account for fact that we put trailing slashes in our PATH walk.
2813 case $as_dir in #((
2814 ./ | /[cC]/* | \
2815 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2816 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2817 /usr/ucb/* ) ;;
2818 *)
2819 # OSF1 and SCO ODT 3.0 have their own names for install.
2820 # Don't use installbsd from OSF since it installs stuff as root
2821 # by default.
2822 for ac_prog in ginstall scoinst install; do
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2825 if test $ac_prog = install &&
2826 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2827 # AIX install. It has an incompatible calling convention.
2828 :
2829 elif test $ac_prog = install &&
2830 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2831 # program-specific install script used by HP pwplus--don't use.
2832 :
2833 else
2834 rm -rf conftest.one conftest.two conftest.dir
2835 echo one > conftest.one
2836 echo two > conftest.two
2837 mkdir conftest.dir
2838 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2839 test -s conftest.one && test -s conftest.two &&
2840 test -s conftest.dir/conftest.one &&
2841 test -s conftest.dir/conftest.two
2842 then
2843 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2844 break 3
2845 fi
2846 fi
2847 fi
2848 done
2849 done
2850 ;;
2851 esac
2852
2853 done
2854 IFS=$as_save_IFS
2855
2856 rm -rf conftest.one conftest.two conftest.dir
2857
2858 fi
2859 if test ${ac_cv_path_install+y}; then
2860 INSTALL=$ac_cv_path_install
2861 else
2862 # As a last resort, use the slow shell script. Don't cache a
2863 # value for INSTALL within a source directory, because that will
2864 # break other packages using the cache if that directory is
2865 # removed, or if the value is a relative name.
2866 INSTALL=$ac_install_sh
2867 fi
2868 fi
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2870 printf "%s\n" "$INSTALL" >&6; }
2871
2872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2873 # It thinks the first close brace ends the variable substitution.
2874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2875
2876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2877
2878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2879
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2881 printf %s "checking whether build environment is sane... " >&6; }
2882 # Reject unsafe characters in $srcdir or the absolute working directory
2883 # name. Accept space and tab only in the latter.
2884 am_lf='
2885 '
2886 case `pwd` in
2887 *[\\\"\#\$\&\'\`$am_lf]*)
2888 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2889 esac
2890 case $srcdir in
2891 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2892 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2893 esac
2894
2895 # Do 'set' in a subshell so we don't clobber the current shell's
2896 # arguments. Must try -L first in case configure is actually a
2897 # symlink; some systems play weird games with the mod time of symlinks
2898 # (eg FreeBSD returns the mod time of the symlink's containing
2899 # directory).
2900 if (
2901 am_has_slept=no
2902 for am_try in 1 2; do
2903 echo "timestamp, slept: $am_has_slept" > conftest.file
2904 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2905 if test "$*" = "X"; then
2906 # -L didn't work.
2907 set X `ls -t "$srcdir/configure" conftest.file`
2908 fi
2909 if test "$*" != "X $srcdir/configure conftest.file" \
2910 && test "$*" != "X conftest.file $srcdir/configure"; then
2911
2912 # If neither matched, then we have a broken ls. This can happen
2913 # if, for instance, CONFIG_SHELL is bash and it inherits a
2914 # broken ls alias from the environment. This has actually
2915 # happened. Such a system could not be considered "sane".
2916 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2917 alias in your environment" "$LINENO" 5
2918 fi
2919 if test "$2" = conftest.file || test $am_try -eq 2; then
2920 break
2921 fi
2922 # Just in case.
2923 sleep 1
2924 am_has_slept=yes
2925 done
2926 test "$2" = conftest.file
2927 )
2928 then
2929 # Ok.
2930 :
2931 else
2932 as_fn_error $? "newly created file is older than distributed files!
2933 Check your system clock" "$LINENO" 5
2934 fi
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2936 printf "%s\n" "yes" >&6; }
2937 # If we didn't sleep, we still need to ensure time stamps of config.status and
2938 # generated files are strictly newer.
2939 am_sleep_pid=
2940 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2941 ( sleep 1 ) &
2942 am_sleep_pid=$!
2943 fi
2944
2945 rm -f conftest.file
2946
2947 test "$program_prefix" != NONE &&
2948 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2949 # Use a double $ so make ignores it.
2950 test "$program_suffix" != NONE &&
2951 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2952 # Double any \ or $.
2953 # By default was `s,x,x', remove it if useless.
2954 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2955 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2956
2957
2958 # Expand $ac_aux_dir to an absolute path.
2959 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2960
2961
2962 if test x"${MISSING+set}" != xset; then
2963 MISSING="\${SHELL} '$am_aux_dir/missing'"
2964 fi
2965 # Use eval to expand $SHELL
2966 if eval "$MISSING --is-lightweight"; then
2967 am_missing_run="$MISSING "
2968 else
2969 am_missing_run=
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2971 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2972 fi
2973
2974 if test x"${install_sh+set}" != xset; then
2975 case $am_aux_dir in
2976 *\ * | *\ *)
2977 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2978 *)
2979 install_sh="\${SHELL} $am_aux_dir/install-sh"
2980 esac
2981 fi
2982
2983 # Installed binaries are usually stripped using 'strip' when the user
2984 # run "make install-strip". However 'strip' might not be the right
2985 # tool to use in cross-compilation environments, therefore Automake
2986 # will honor the 'STRIP' environment variable to overrule this program.
2987 if test "$cross_compiling" != no; then
2988 if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}strip; ac_word=$2
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 printf %s "checking for $ac_word... " >&6; }
2993 if test ${ac_cv_prog_STRIP+y}
2994 then :
2995 printf %s "(cached) " >&6
2996 else $as_nop
2997 if test -n "$STRIP"; then
2998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 case $as_dir in #(((
3005 '') as_dir=./ ;;
3006 */) ;;
3007 *) as_dir=$as_dir/ ;;
3008 esac
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 printf "%s\n" "$STRIP" >&6; }
3025 else
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 printf "%s\n" "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 if test -z "$ac_cv_prog_STRIP"; then
3033 ac_ct_STRIP=$STRIP
3034 # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 printf %s "checking for $ac_word... " >&6; }
3038 if test ${ac_cv_prog_ac_ct_STRIP+y}
3039 then :
3040 printf %s "(cached) " >&6
3041 else $as_nop
3042 if test -n "$ac_ct_STRIP"; then
3043 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048 IFS=$as_save_IFS
3049 case $as_dir in #(((
3050 '') as_dir=./ ;;
3051 */) ;;
3052 *) as_dir=$as_dir/ ;;
3053 esac
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_ac_ct_STRIP="strip"
3057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3067 if test -n "$ac_ct_STRIP"; then
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3069 printf "%s\n" "$ac_ct_STRIP" >&6; }
3070 else
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 printf "%s\n" "no" >&6; }
3073 fi
3074
3075 if test "x$ac_ct_STRIP" = x; then
3076 STRIP=":"
3077 else
3078 case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned=yes ;;
3083 esac
3084 STRIP=$ac_ct_STRIP
3085 fi
3086 else
3087 STRIP="$ac_cv_prog_STRIP"
3088 fi
3089
3090 fi
3091 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3092
3093
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3095 printf %s "checking for a race-free mkdir -p... " >&6; }
3096 if test -z "$MKDIR_P"; then
3097 if test ${ac_cv_path_mkdir+y}
3098 then :
3099 printf %s "(cached) " >&6
3100 else $as_nop
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3103 do
3104 IFS=$as_save_IFS
3105 case $as_dir in #(((
3106 '') as_dir=./ ;;
3107 */) ;;
3108 *) as_dir=$as_dir/ ;;
3109 esac
3110 for ac_prog in mkdir gmkdir; do
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3113 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3114 'mkdir ('*'coreutils) '* | \
3115 'BusyBox '* | \
3116 'mkdir (fileutils) '4.1*)
3117 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3118 break 3;;
3119 esac
3120 done
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi
3126
3127 test -d ./--version && rmdir ./--version
3128 if test ${ac_cv_path_mkdir+y}; then
3129 MKDIR_P="$ac_cv_path_mkdir -p"
3130 else
3131 # As a last resort, use the slow shell script. Don't cache a
3132 # value for MKDIR_P within a source directory, because that will
3133 # break other packages using the cache if that directory is
3134 # removed, or if the value is a relative name.
3135 MKDIR_P="$ac_install_sh -d"
3136 fi
3137 fi
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3139 printf "%s\n" "$MKDIR_P" >&6; }
3140
3141 for ac_prog in gawk mawk nawk awk
3142 do
3143 # Extract the first word of "$ac_prog", so it can be a program name with args.
3144 set dummy $ac_prog; ac_word=$2
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 printf %s "checking for $ac_word... " >&6; }
3147 if test ${ac_cv_prog_AWK+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else $as_nop
3151 if test -n "$AWK"; then
3152 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 case $as_dir in #(((
3159 '') as_dir=./ ;;
3160 */) ;;
3161 *) as_dir=$as_dir/ ;;
3162 esac
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_AWK="$ac_prog"
3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 AWK=$ac_cv_prog_AWK
3176 if test -n "$AWK"; then
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3178 printf "%s\n" "$AWK" >&6; }
3179 else
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 printf "%s\n" "no" >&6; }
3182 fi
3183
3184
3185 test -n "$AWK" && break
3186 done
3187
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3189 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3190 set x ${MAKE-make}
3191 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3192 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3193 then :
3194 printf %s "(cached) " >&6
3195 else $as_nop
3196 cat >conftest.make <<\_ACEOF
3197 SHELL = /bin/sh
3198 all:
3199 @echo '@@@%%%=$(MAKE)=@@@%%%'
3200 _ACEOF
3201 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3202 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3203 *@@@%%%=?*=@@@%%%*)
3204 eval ac_cv_prog_make_${ac_make}_set=yes;;
3205 *)
3206 eval ac_cv_prog_make_${ac_make}_set=no;;
3207 esac
3208 rm -f conftest.make
3209 fi
3210 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 printf "%s\n" "yes" >&6; }
3213 SET_MAKE=
3214 else
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 printf "%s\n" "no" >&6; }
3217 SET_MAKE="MAKE=${MAKE-make}"
3218 fi
3219
3220 rm -rf .tst 2>/dev/null
3221 mkdir .tst 2>/dev/null
3222 if test -d .tst; then
3223 am__leading_dot=.
3224 else
3225 am__leading_dot=_
3226 fi
3227 rmdir .tst 2>/dev/null
3228
3229 # Check whether --enable-silent-rules was given.
3230 if test ${enable_silent_rules+y}
3231 then :
3232 enableval=$enable_silent_rules;
3233 fi
3234
3235 case $enable_silent_rules in # (((
3236 yes) AM_DEFAULT_VERBOSITY=0;;
3237 no) AM_DEFAULT_VERBOSITY=1;;
3238 *) AM_DEFAULT_VERBOSITY=1;;
3239 esac
3240 am_make=${MAKE-make}
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3242 printf %s "checking whether $am_make supports nested variables... " >&6; }
3243 if test ${am_cv_make_support_nested_variables+y}
3244 then :
3245 printf %s "(cached) " >&6
3246 else $as_nop
3247 if printf "%s\n" 'TRUE=$(BAR$(V))
3248 BAR0=false
3249 BAR1=true
3250 V=1
3251 am__doit:
3252 @$(TRUE)
3253 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3254 am_cv_make_support_nested_variables=yes
3255 else
3256 am_cv_make_support_nested_variables=no
3257 fi
3258 fi
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3260 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3261 if test $am_cv_make_support_nested_variables = yes; then
3262 AM_V='$(V)'
3263 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3264 else
3265 AM_V=$AM_DEFAULT_VERBOSITY
3266 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3267 fi
3268 AM_BACKSLASH='\'
3269
3270 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3271 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3272 # is not polluted with repeated "-I."
3273 am__isrc=' -I$(srcdir)'
3274 # test to see if srcdir already configured
3275 if test -f $srcdir/config.status; then
3276 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3277 fi
3278 fi
3279
3280 # test whether we have cygpath
3281 if test -z "$CYGPATH_W"; then
3282 if (cygpath --version) >/dev/null 2>/dev/null; then
3283 CYGPATH_W='cygpath -w'
3284 else
3285 CYGPATH_W=echo
3286 fi
3287 fi
3288
3289
3290 # Define the identity of the package.
3291 PACKAGE='NetworkManager-pptp'
3292 VERSION='1.2.12'
3293
3294
3295 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3296
3297
3298 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3299
3300 # Some tools Automake needs.
3301
3302 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3303
3304
3305 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3306
3307
3308 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3309
3310
3311 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3312
3313
3314 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3315
3316 # For better backward compatibility. To be removed once Automake 1.9.x
3317 # dies out for good. For more background, see:
3318 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3319 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3320 mkdir_p='$(MKDIR_P)'
3321
3322 # We need awk for the "check" target (and possibly the TAP driver). The
3323 # system "awk" is bad on some platforms.
3324 # Always define AMTAR for backward compatibility. Yes, it's still used
3325 # in the wild :-( We should find a proper way to deprecate it ...
3326 AMTAR='$${TAR-tar}'
3327
3328
3329 # We'll loop over all known methods to create a tar archive until one works.
3330 _am_tools='gnutar pax cpio none'
3331
3332 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3333
3334
3335
3336
3337
3338 # Variables for tags utilities; see am/tags.am
3339 if test -z "$CTAGS"; then
3340 CTAGS=ctags
3341 fi
3342
3343 if test -z "$ETAGS"; then
3344 ETAGS=etags
3345 fi
3346
3347 if test -z "$CSCOPE"; then
3348 CSCOPE=cscope
3349 fi
3350
3351
3352
3353 # POSIX will say in a future version that running "rm -f" with no argument
3354 # is OK; and we want to be able to make that assumption in our Makefile
3355 # recipes. So use an aggressive probe to check that the usage we want is
3356 # actually supported "in the wild" to an acceptable degree.
3357 # See automake bug#10828.
3358 # To make any issue more visible, cause the running configure to be aborted
3359 # by default if the 'rm' program in use doesn't match our expectations; the
3360 # user can still override this though.
3361 if rm -f && rm -fr && rm -rf; then : OK; else
3362 cat >&2 <<'END'
3363 Oops!
3364
3365 Your 'rm' program seems unable to run without file operands specified
3366 on the command line, even when the '-f' option is present. This is contrary
3367 to the behaviour of most rm programs out there, and not conforming with
3368 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3369
3370 Please tell [email protected] about your system, including the value
3371 of your $PATH and any error possibly output before this message. This
3372 can help us improve future automake versions.
3373
3374 END
3375 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3376 echo 'Configuration will proceed anyway, since you have set the' >&2
3377 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3378 echo >&2
3379 else
3380 cat >&2 <<'END'
3381 Aborting the configuration process, to ensure you take notice of the issue.
3382
3383 You can download and install GNU coreutils to get an 'rm' implementation
3384 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3385
3386 If you want to complete the configuration process using your problematic
3387 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3388 to "yes", and re-run configure.
3389
3390 END
3391 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3392 fi
3393 fi
3394
3395
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3397 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3398 # Check whether --enable-maintainer-mode was given.
3399 if test ${enable_maintainer_mode+y}
3400 then :
3401 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3402 else $as_nop
3403 USE_MAINTAINER_MODE=no
3404 fi
3405
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3407 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3408 if test $USE_MAINTAINER_MODE = yes; then
3409 MAINTAINER_MODE_TRUE=
3410 MAINTAINER_MODE_FALSE='#'
3411 else
3412 MAINTAINER_MODE_TRUE='#'
3413 MAINTAINER_MODE_FALSE=
3414 fi
3415
3416 MAINT=$MAINTAINER_MODE_TRUE
3417
3418
3419 # Check whether --enable-silent-rules was given.
3420 if test ${enable_silent_rules+y}
3421 then :
3422 enableval=$enable_silent_rules;
3423 fi
3424
3425 case $enable_silent_rules in # (((
3426 yes) AM_DEFAULT_VERBOSITY=0;;
3427 no) AM_DEFAULT_VERBOSITY=1;;
3428 *) AM_DEFAULT_VERBOSITY=0;;
3429 esac
3430 am_make=${MAKE-make}
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3432 printf %s "checking whether $am_make supports nested variables... " >&6; }
3433 if test ${am_cv_make_support_nested_variables+y}
3434 then :
3435 printf %s "(cached) " >&6
3436 else $as_nop
3437 if printf "%s\n" 'TRUE=$(BAR$(V))
3438 BAR0=false
3439 BAR1=true
3440 V=1
3441 am__doit:
3442 @$(TRUE)
3443 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3444 am_cv_make_support_nested_variables=yes
3445 else
3446 am_cv_make_support_nested_variables=no
3447 fi
3448 fi
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3450 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3451 if test $am_cv_make_support_nested_variables = yes; then
3452 AM_V='$(V)'
3453 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3454 else
3455 AM_V=$AM_DEFAULT_VERBOSITY
3456 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3457 fi
3458 AM_BACKSLASH='\'
3459
3460
3461
3462
3463 ac_config_headers="$ac_config_headers config.h"
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475 DEPDIR="${am__leading_dot}deps"
3476
3477 ac_config_commands="$ac_config_commands depfiles"
3478
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3480 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3481 cat > confinc.mk << 'END'
3482 am__doit:
3483 @echo this is the am__doit target >confinc.out
3484 .PHONY: am__doit
3485 END
3486 am__include="#"
3487 am__quote=
3488 # BSD make does it like this.
3489 echo '.include "confinc.mk" # ignored' > confmf.BSD
3490 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3491 echo 'include confinc.mk # ignored' > confmf.GNU
3492 _am_result=no
3493 for s in GNU BSD; do
3494 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3495 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }
3499 case $?:`cat confinc.out 2>/dev/null` in #(
3500 '0:this is the am__doit target') :
3501 case $s in #(
3502 BSD) :
3503 am__include='.include' am__quote='"' ;; #(
3504 *) :
3505 am__include='include' am__quote='' ;;
3506 esac ;; #(
3507 *) :
3508 ;;
3509 esac
3510 if test "$am__include" != "#"; then
3511 _am_result="yes ($s style)"
3512 break
3513 fi
3514 done
3515 rm -f confinc.* confmf.*
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3517 printf "%s\n" "${_am_result}" >&6; }
3518
3519 # Check whether --enable-dependency-tracking was given.
3520 if test ${enable_dependency_tracking+y}
3521 then :
3522 enableval=$enable_dependency_tracking;
3523 fi
3524
3525 if test "x$enable_dependency_tracking" != xno; then
3526 am_depcomp="$ac_aux_dir/depcomp"
3527 AMDEPBACKSLASH='\'
3528 am__nodep='_no'
3529 fi
3530 if test "x$enable_dependency_tracking" != xno; then
3531 AMDEP_TRUE=
3532 AMDEP_FALSE='#'
3533 else
3534 AMDEP_TRUE='#'
3535 AMDEP_FALSE=
3536 fi
3537
3538
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 printf %s "checking for $ac_word... " >&6; }
3549 if test ${ac_cv_prog_CC+y}
3550 then :
3551 printf %s "(cached) " >&6
3552 else $as_nop
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 case $as_dir in #(((
3561 '') as_dir=./ ;;
3562 */) ;;
3563 *) as_dir=$as_dir/ ;;
3564 esac
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 printf "%s\n" "$CC" >&6; }
3581 else
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 printf "%s\n" "no" >&6; }
3584 fi
3585
3586
3587 fi
3588 if test -z "$ac_cv_prog_CC"; then
3589 ac_ct_CC=$CC
3590 # Extract the first word of "gcc", so it can be a program name with args.
3591 set dummy gcc; ac_word=$2
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 printf %s "checking for $ac_word... " >&6; }
3594 if test ${ac_cv_prog_ac_ct_CC+y}
3595 then :
3596 printf %s "(cached) " >&6
3597 else $as_nop
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 case $as_dir in #(((
3606 '') as_dir=./ ;;
3607 */) ;;
3608 *) as_dir=$as_dir/ ;;
3609 esac
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_ac_ct_CC="gcc"
3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3623 if test -n "$ac_ct_CC"; then
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3625 printf "%s\n" "$ac_ct_CC" >&6; }
3626 else
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 printf "%s\n" "no" >&6; }
3629 fi
3630
3631 if test "x$ac_ct_CC" = x; then
3632 CC=""
3633 else
3634 case $cross_compiling:$ac_tool_warned in
3635 yes:)
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638 ac_tool_warned=yes ;;
3639 esac
3640 CC=$ac_ct_CC
3641 fi
3642 else
3643 CC="$ac_cv_prog_CC"
3644 fi
3645
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3649 set dummy ${ac_tool_prefix}cc; ac_word=$2
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 printf %s "checking for $ac_word... " >&6; }
3652 if test ${ac_cv_prog_CC+y}
3653 then :
3654 printf %s "(cached) " >&6
3655 else $as_nop
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 case $as_dir in #(((
3664 '') as_dir=./ ;;
3665 */) ;;
3666 *) as_dir=$as_dir/ ;;
3667 esac
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC="${ac_tool_prefix}cc"
3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 fi
3679 fi
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 printf "%s\n" "$CC" >&6; }
3684 else
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 printf "%s\n" "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 fi
3692 if test -z "$CC"; then
3693 # Extract the first word of "cc", so it can be a program name with args.
3694 set dummy cc; ac_word=$2
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 printf %s "checking for $ac_word... " >&6; }
3697 if test ${ac_cv_prog_CC+y}
3698 then :
3699 printf %s "(cached) " >&6
3700 else $as_nop
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 ac_prog_rejected=no
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 case $as_dir in #(((
3710 '') as_dir=./ ;;
3711 */) ;;
3712 *) as_dir=$as_dir/ ;;
3713 esac
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3717 ac_prog_rejected=yes
3718 continue
3719 fi
3720 ac_cv_prog_CC="cc"
3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3722 break 2
3723 fi
3724 done
3725 done
3726 IFS=$as_save_IFS
3727
3728 if test $ac_prog_rejected = yes; then
3729 # We found a bogon in the path, so make sure we never use it.
3730 set dummy $ac_cv_prog_CC
3731 shift
3732 if test $# != 0; then
3733 # We chose a different compiler from the bogus one.
3734 # However, it has the same basename, so the bogon will be chosen
3735 # first if we set CC to just the basename; use the full file name.
3736 shift
3737 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3738 fi
3739 fi
3740 fi
3741 fi
3742 CC=$ac_cv_prog_CC
3743 if test -n "$CC"; then
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3745 printf "%s\n" "$CC" >&6; }
3746 else
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 printf "%s\n" "no" >&6; }
3749 fi
3750
3751
3752 fi
3753 if test -z "$CC"; then
3754 if test -n "$ac_tool_prefix"; then
3755 for ac_prog in cl.exe
3756 do
3757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 printf %s "checking for $ac_word... " >&6; }
3761 if test ${ac_cv_prog_CC+y}
3762 then :
3763 printf %s "(cached) " >&6
3764 else $as_nop
3765 if test -n "$CC"; then
3766 ac_cv_prog_CC="$CC" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3770 do
3771 IFS=$as_save_IFS
3772 case $as_dir in #(((
3773 '') as_dir=./ ;;
3774 */) ;;
3775 *) as_dir=$as_dir/ ;;
3776 esac
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783 done
3784 done
3785 IFS=$as_save_IFS
3786
3787 fi
3788 fi
3789 CC=$ac_cv_prog_CC
3790 if test -n "$CC"; then
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792 printf "%s\n" "$CC" >&6; }
3793 else
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 printf "%s\n" "no" >&6; }
3796 fi
3797
3798
3799 test -n "$CC" && break
3800 done
3801 fi
3802 if test -z "$CC"; then
3803 ac_ct_CC=$CC
3804 for ac_prog in cl.exe
3805 do
3806 # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 printf %s "checking for $ac_word... " >&6; }
3810 if test ${ac_cv_prog_ac_ct_CC+y}
3811 then :
3812 printf %s "(cached) " >&6
3813 else $as_nop
3814 if test -n "$ac_ct_CC"; then
3815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820 IFS=$as_save_IFS
3821 case $as_dir in #(((
3822 '') as_dir=./ ;;
3823 */) ;;
3824 *) as_dir=$as_dir/ ;;
3825 esac
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_CC="$ac_prog"
3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 printf "%s\n" "$ac_ct_CC" >&6; }
3842 else
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 printf "%s\n" "no" >&6; }
3845 fi
3846
3847
3848 test -n "$ac_ct_CC" && break
3849 done
3850
3851 if test "x$ac_ct_CC" = x; then
3852 CC=""
3853 else
3854 case $cross_compiling:$ac_tool_warned in
3855 yes:)
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned=yes ;;
3859 esac
3860 CC=$ac_ct_CC
3861 fi
3862 fi
3863
3864 fi
3865 if test -z "$CC"; then
3866 if test -n "$ac_tool_prefix"; then
3867 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3868 set dummy ${ac_tool_prefix}clang; ac_word=$2
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 printf %s "checking for $ac_word... " >&6; }
3871 if test ${ac_cv_prog_CC+y}
3872 then :
3873 printf %s "(cached) " >&6
3874 else $as_nop
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 case $as_dir in #(((
3883 '') as_dir=./ ;;
3884 */) ;;
3885 *) as_dir=$as_dir/ ;;
3886 esac
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_CC="${ac_tool_prefix}clang"
3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi
3898 fi
3899 CC=$ac_cv_prog_CC
3900 if test -n "$CC"; then
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902 printf "%s\n" "$CC" >&6; }
3903 else
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 printf "%s\n" "no" >&6; }
3906 fi
3907
3908
3909 fi
3910 if test -z "$ac_cv_prog_CC"; then
3911 ac_ct_CC=$CC
3912 # Extract the first word of "clang", so it can be a program name with args.
3913 set dummy clang; ac_word=$2
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 printf %s "checking for $ac_word... " >&6; }
3916 if test ${ac_cv_prog_ac_ct_CC+y}
3917 then :
3918 printf %s "(cached) " >&6
3919 else $as_nop
3920 if test -n "$ac_ct_CC"; then
3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 case $as_dir in #(((
3928 '') as_dir=./ ;;
3929 */) ;;
3930 *) as_dir=$as_dir/ ;;
3931 esac
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_ac_ct_CC="clang"
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3936 break 2
3937 fi
3938 done
3939 done
3940 IFS=$as_save_IFS
3941
3942 fi
3943 fi
3944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3945 if test -n "$ac_ct_CC"; then
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3947 printf "%s\n" "$ac_ct_CC" >&6; }
3948 else
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 printf "%s\n" "no" >&6; }
3951 fi
3952
3953 if test "x$ac_ct_CC" = x; then
3954 CC=""
3955 else
3956 case $cross_compiling:$ac_tool_warned in
3957 yes:)
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3961 esac
3962 CC=$ac_ct_CC
3963 fi
3964 else
3965 CC="$ac_cv_prog_CC"
3966 fi
3967
3968 fi
3969
3970
3971 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error $? "no acceptable C compiler found in \$PATH
3974 See \`config.log' for more details" "$LINENO" 5; }
3975
3976 # Provide some information about the compiler.
3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3978 set X $ac_compile
3979 ac_compiler=$2
3980 for ac_option in --version -v -V -qversion -version; do
3981 { { ac_try="$ac_compiler $ac_option >&5"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 printf "%s\n" "$ac_try_echo"; } >&5
3988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3989 ac_status=$?
3990 if test -s conftest.err; then
3991 sed '10a\
3992 ... rest of stderr output deleted ...
3993 10q' conftest.err >conftest.er1
3994 cat conftest.er1 >&5
3995 fi
3996 rm -f conftest.er1 conftest.err
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 done
4000
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003
4004 int
4005 main (void)
4006 {
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 ac_clean_files_save=$ac_clean_files
4013 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4014 # Try to create an executable without -o first, disregard a.out.
4015 # It will help us diagnose broken compilers, and finding out an intuition
4016 # of exeext.
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4018 printf %s "checking whether the C compiler works... " >&6; }
4019 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4020
4021 # The possible output files:
4022 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4023
4024 ac_rmfiles=
4025 for ac_file in $ac_files
4026 do
4027 case $ac_file in
4028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4029 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4030 esac
4031 done
4032 rm -f $ac_rmfiles
4033
4034 if { { ac_try="$ac_link_default"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 printf "%s\n" "$ac_try_echo"; } >&5
4041 (eval "$ac_link_default") 2>&5
4042 ac_status=$?
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }
4045 then :
4046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4047 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4048 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4049 # so that the user can short-circuit this test for compilers unknown to
4050 # Autoconf.
4051 for ac_file in $ac_files ''
4052 do
4053 test -f "$ac_file" || continue
4054 case $ac_file in
4055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4056 ;;
4057 [ab].out )
4058 # We found the default executable, but exeext='' is most
4059 # certainly right.
4060 break;;
4061 *.* )
4062 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4063 then :; else
4064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4065 fi
4066 # We set ac_cv_exeext here because the later test for it is not
4067 # safe: cross compilers may not add the suffix if given an `-o'
4068 # argument, so we may need to know it at that point already.
4069 # Even if this section looks crufty: it has the advantage of
4070 # actually working.
4071 break;;
4072 * )
4073 break;;
4074 esac
4075 done
4076 test "$ac_cv_exeext" = no && ac_cv_exeext=
4077
4078 else $as_nop
4079 ac_file=''
4080 fi
4081 if test -z "$ac_file"
4082 then :
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 printf "%s\n" "no" >&6; }
4085 printf "%s\n" "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4090 as_fn_error 77 "C compiler cannot create executables
4091 See \`config.log' for more details" "$LINENO" 5; }
4092 else $as_nop
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4094 printf "%s\n" "yes" >&6; }
4095 fi
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4097 printf %s "checking for C compiler default output file name... " >&6; }
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4099 printf "%s\n" "$ac_file" >&6; }
4100 ac_exeext=$ac_cv_exeext
4101
4102 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4103 ac_clean_files=$ac_clean_files_save
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4105 printf %s "checking for suffix of executables... " >&6; }
4106 if { { ac_try="$ac_link"
4107 case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110 esac
4111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4112 printf "%s\n" "$ac_try_echo"; } >&5
4113 (eval "$ac_link") 2>&5
4114 ac_status=$?
4115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116 test $ac_status = 0; }
4117 then :
4118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4120 # work properly (i.e., refer to `conftest.exe'), while it won't with
4121 # `rm'.
4122 for ac_file in conftest.exe conftest conftest.*; do
4123 test -f "$ac_file" || continue
4124 case $ac_file in
4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4127 break;;
4128 * ) break;;
4129 esac
4130 done
4131 else $as_nop
4132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4134 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4135 See \`config.log' for more details" "$LINENO" 5; }
4136 fi
4137 rm -f conftest conftest$ac_cv_exeext
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4139 printf "%s\n" "$ac_cv_exeext" >&6; }
4140
4141 rm -f conftest.$ac_ext
4142 EXEEXT=$ac_cv_exeext
4143 ac_exeext=$EXEEXT
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #include <stdio.h>
4147 int
4148 main (void)
4149 {
4150 FILE *f = fopen ("conftest.out", "w");
4151 return ferror (f) || fclose (f) != 0;
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 ac_clean_files="$ac_clean_files conftest.out"
4158 # Check that the compiler produces executables we can run. If not, either
4159 # the compiler is broken, or we cross compile.
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4161 printf %s "checking whether we are cross compiling... " >&6; }
4162 if test "$cross_compiling" != yes; then
4163 { { ac_try="$ac_link"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169 printf "%s\n" "$ac_try_echo"; } >&5
4170 (eval "$ac_link") 2>&5
4171 ac_status=$?
4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }
4174 if { ac_try='./conftest$ac_cv_exeext'
4175 { { case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180 printf "%s\n" "$ac_try_echo"; } >&5
4181 (eval "$ac_try") 2>&5
4182 ac_status=$?
4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; }; }; then
4185 cross_compiling=no
4186 else
4187 if test "$cross_compiling" = maybe; then
4188 cross_compiling=yes
4189 else
4190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error 77 "cannot run C compiled programs.
4193 If you meant to cross compile, use \`--host'.
4194 See \`config.log' for more details" "$LINENO" 5; }
4195 fi
4196 fi
4197 fi
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4199 printf "%s\n" "$cross_compiling" >&6; }
4200
4201 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4202 ac_clean_files=$ac_clean_files_save
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4204 printf %s "checking for suffix of object files... " >&6; }
4205 if test ${ac_cv_objext+y}
4206 then :
4207 printf %s "(cached) " >&6
4208 else $as_nop
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211
4212 int
4213 main (void)
4214 {
4215
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest.o conftest.obj
4221 if { { ac_try="$ac_compile"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 printf "%s\n" "$ac_try_echo"; } >&5
4228 (eval "$ac_compile") 2>&5
4229 ac_status=$?
4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }
4232 then :
4233 for ac_file in conftest.o conftest.obj conftest.*; do
4234 test -f "$ac_file" || continue;
4235 case $ac_file in
4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4238 break;;
4239 esac
4240 done
4241 else $as_nop
4242 printf "%s\n" "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4246 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4247 as_fn_error $? "cannot compute suffix of object files: cannot compile
4248 See \`config.log' for more details" "$LINENO" 5; }
4249 fi
4250 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4251 fi
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4253 printf "%s\n" "$ac_cv_objext" >&6; }
4254 OBJEXT=$ac_cv_objext
4255 ac_objext=$OBJEXT
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4257 printf %s "checking whether the compiler supports GNU C... " >&6; }
4258 if test ${ac_cv_c_compiler_gnu+y}
4259 then :
4260 printf %s "(cached) " >&6
4261 else $as_nop
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264
4265 int
4266 main (void)
4267 {
4268 #ifndef __GNUC__
4269 choke me
4270 #endif
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"
4277 then :
4278 ac_compiler_gnu=yes
4279 else $as_nop
4280 ac_compiler_gnu=no
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4284
4285 fi
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4287 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290 if test $ac_compiler_gnu = yes; then
4291 GCC=yes
4292 else
4293 GCC=
4294 fi
4295 ac_test_CFLAGS=${CFLAGS+y}
4296 ac_save_CFLAGS=$CFLAGS
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4298 printf %s "checking whether $CC accepts -g... " >&6; }
4299 if test ${ac_cv_prog_cc_g+y}
4300 then :
4301 printf %s "(cached) " >&6
4302 else $as_nop
4303 ac_save_c_werror_flag=$ac_c_werror_flag
4304 ac_c_werror_flag=yes
4305 ac_cv_prog_cc_g=no
4306 CFLAGS="-g"
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309
4310 int
4311 main (void)
4312 {
4313
4314 ;
4315 return 0;
4316 }
4317 _ACEOF
4318 if ac_fn_c_try_compile "$LINENO"
4319 then :
4320 ac_cv_prog_cc_g=yes
4321 else $as_nop
4322 CFLAGS=""
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325
4326 int
4327 main (void)
4328 {
4329
4330 ;
4331 return 0;
4332 }
4333 _ACEOF
4334 if ac_fn_c_try_compile "$LINENO"
4335 then :
4336
4337 else $as_nop
4338 ac_c_werror_flag=$ac_save_c_werror_flag
4339 CFLAGS="-g"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 int
4344 main (void)
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"
4352 then :
4353 ac_cv_prog_cc_g=yes
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4360 ac_c_werror_flag=$ac_save_c_werror_flag
4361 fi
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4363 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4364 if test $ac_test_CFLAGS; then
4365 CFLAGS=$ac_save_CFLAGS
4366 elif test $ac_cv_prog_cc_g = yes; then
4367 if test "$GCC" = yes; then
4368 CFLAGS="-g -O2"
4369 else
4370 CFLAGS="-g"
4371 fi
4372 else
4373 if test "$GCC" = yes; then
4374 CFLAGS="-O2"
4375 else
4376 CFLAGS=
4377 fi
4378 fi
4379 ac_prog_cc_stdc=no
4380 if test x$ac_prog_cc_stdc = xno
4381 then :
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4383 printf %s "checking for $CC option to enable C11 features... " >&6; }
4384 if test ${ac_cv_prog_cc_c11+y}
4385 then :
4386 printf %s "(cached) " >&6
4387 else $as_nop
4388 ac_cv_prog_cc_c11=no
4389 ac_save_CC=$CC
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 $ac_c_conftest_c11_program
4393 _ACEOF
4394 for ac_arg in '' -std=gnu11
4395 do
4396 CC="$ac_save_CC $ac_arg"
4397 if ac_fn_c_try_compile "$LINENO"
4398 then :
4399 ac_cv_prog_cc_c11=$ac_arg
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext conftest.beam
4402 test "x$ac_cv_prog_cc_c11" != "xno" && break
4403 done
4404 rm -f conftest.$ac_ext
4405 CC=$ac_save_CC
4406 fi
4407
4408 if test "x$ac_cv_prog_cc_c11" = xno
4409 then :
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4411 printf "%s\n" "unsupported" >&6; }
4412 else $as_nop
4413 if test "x$ac_cv_prog_cc_c11" = x
4414 then :
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4416 printf "%s\n" "none needed" >&6; }
4417 else $as_nop
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4419 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4420 CC="$CC $ac_cv_prog_cc_c11"
4421 fi
4422 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4423 ac_prog_cc_stdc=c11
4424 fi
4425 fi
4426 if test x$ac_prog_cc_stdc = xno
4427 then :
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4429 printf %s "checking for $CC option to enable C99 features... " >&6; }
4430 if test ${ac_cv_prog_cc_c99+y}
4431 then :
4432 printf %s "(cached) " >&6
4433 else $as_nop
4434 ac_cv_prog_cc_c99=no
4435 ac_save_CC=$CC
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 $ac_c_conftest_c99_program
4439 _ACEOF
4440 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4441 do
4442 CC="$ac_save_CC $ac_arg"
4443 if ac_fn_c_try_compile "$LINENO"
4444 then :
4445 ac_cv_prog_cc_c99=$ac_arg
4446 fi
4447 rm -f core conftest.err conftest.$ac_objext conftest.beam
4448 test "x$ac_cv_prog_cc_c99" != "xno" && break
4449 done
4450 rm -f conftest.$ac_ext
4451 CC=$ac_save_CC
4452 fi
4453
4454 if test "x$ac_cv_prog_cc_c99" = xno
4455 then :
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4457 printf "%s\n" "unsupported" >&6; }
4458 else $as_nop
4459 if test "x$ac_cv_prog_cc_c99" = x
4460 then :
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462 printf "%s\n" "none needed" >&6; }
4463 else $as_nop
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4465 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4466 CC="$CC $ac_cv_prog_cc_c99"
4467 fi
4468 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4469 ac_prog_cc_stdc=c99
4470 fi
4471 fi
4472 if test x$ac_prog_cc_stdc = xno
4473 then :
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4475 printf %s "checking for $CC option to enable C89 features... " >&6; }
4476 if test ${ac_cv_prog_cc_c89+y}
4477 then :
4478 printf %s "(cached) " >&6
4479 else $as_nop
4480 ac_cv_prog_cc_c89=no
4481 ac_save_CC=$CC
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 $ac_c_conftest_c89_program
4485 _ACEOF
4486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4487 do
4488 CC="$ac_save_CC $ac_arg"
4489 if ac_fn_c_try_compile "$LINENO"
4490 then :
4491 ac_cv_prog_cc_c89=$ac_arg
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext conftest.beam
4494 test "x$ac_cv_prog_cc_c89" != "xno" && break
4495 done
4496 rm -f conftest.$ac_ext
4497 CC=$ac_save_CC
4498 fi
4499
4500 if test "x$ac_cv_prog_cc_c89" = xno
4501 then :
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4503 printf "%s\n" "unsupported" >&6; }
4504 else $as_nop
4505 if test "x$ac_cv_prog_cc_c89" = x
4506 then :
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4508 printf "%s\n" "none needed" >&6; }
4509 else $as_nop
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4511 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4512 CC="$CC $ac_cv_prog_cc_c89"
4513 fi
4514 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4515 ac_prog_cc_stdc=c89
4516 fi
4517 fi
4518
4519 ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4532 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4533 if test ${am_cv_prog_cc_c_o+y}
4534 then :
4535 printf %s "(cached) " >&6
4536 else $as_nop
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539
4540 int
4541 main (void)
4542 {
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 # Make sure it works both with $CC and with simple cc.
4549 # Following AC_PROG_CC_C_O, we do the test twice because some
4550 # compilers refuse to overwrite an existing .o file with -o,
4551 # though they will create one.
4552 am_cv_prog_cc_c_o=yes
4553 for am_i in 1 2; do
4554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4555 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } \
4559 && test -f conftest2.$ac_objext; then
4560 : OK
4561 else
4562 am_cv_prog_cc_c_o=no
4563 break
4564 fi
4565 done
4566 rm -f core conftest*
4567 unset am_i
4568 fi
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4570 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4571 if test "$am_cv_prog_cc_c_o" != yes; then
4572 # Losing compiler, so override with the script.
4573 # FIXME: It is wrong to rewrite CC.
4574 # But if we don't then we get into trouble of one sort or another.
4575 # A longer-term fix would be to have automake use am__CC in this case,
4576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4577 CC="$am_aux_dir/compile $CC"
4578 fi
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
4585
4586 depcc="$CC" am_compiler_list=
4587
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4589 printf %s "checking dependency style of $depcc... " >&6; }
4590 if test ${am_cv_CC_dependencies_compiler_type+y}
4591 then :
4592 printf %s "(cached) " >&6
4593 else $as_nop
4594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4595 # We make a subdir and do the tests there. Otherwise we can end up
4596 # making bogus files that we don't know about and never remove. For
4597 # instance it was reported that on HP-UX the gcc test will end up
4598 # making a dummy file named 'D' -- because '-MD' means "put the output
4599 # in D".
4600 rm -rf conftest.dir
4601 mkdir conftest.dir
4602 # Copy depcomp to subdir because otherwise we won't find it if we're
4603 # using a relative directory.
4604 cp "$am_depcomp" conftest.dir
4605 cd conftest.dir
4606 # We will build objects and dependencies in a subdirectory because
4607 # it helps to detect inapplicable dependency modes. For instance
4608 # both Tru64's cc and ICC support -MD to output dependencies as a
4609 # side effect of compilation, but ICC will put the dependencies in
4610 # the current directory while Tru64 will put them in the object
4611 # directory.
4612 mkdir sub
4613
4614 am_cv_CC_dependencies_compiler_type=none
4615 if test "$am_compiler_list" = ""; then
4616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4617 fi
4618 am__universal=false
4619 case " $depcc " in #(
4620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4621 esac
4622
4623 for depmode in $am_compiler_list; do
4624 # Setup a source with many dependencies, because some compilers
4625 # like to wrap large dependency lists on column 80 (with \), and
4626 # we should not choose a depcomp mode which is confused by this.
4627 #
4628 # We need to recreate these files for each test, as the compiler may
4629 # overwrite some of them when testing with obscure command lines.
4630 # This happens at least with the AIX C compiler.
4631 : > sub/conftest.c
4632 for i in 1 2 3 4 5 6; do
4633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4634 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4635 # Solaris 10 /bin/sh.
4636 echo '/* dummy */' > sub/conftst$i.h
4637 done
4638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4639
4640 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4641 # mode. It turns out that the SunPro C++ compiler does not properly
4642 # handle '-M -o', and we need to detect this. Also, some Intel
4643 # versions had trouble with output in subdirs.
4644 am__obj=sub/conftest.${OBJEXT-o}
4645 am__minus_obj="-o $am__obj"
4646 case $depmode in
4647 gcc)
4648 # This depmode causes a compiler race in universal mode.
4649 test "$am__universal" = false || continue
4650 ;;
4651 nosideeffect)
4652 # After this tag, mechanisms are not by side-effect, so they'll
4653 # only be used when explicitly requested.
4654 if test "x$enable_dependency_tracking" = xyes; then
4655 continue
4656 else
4657 break
4658 fi
4659 ;;
4660 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4661 # This compiler won't grok '-c -o', but also, the minuso test has
4662 # not run yet. These depmodes are late enough in the game, and
4663 # so weak that their functioning should not be impacted.
4664 am__obj=conftest.${OBJEXT-o}
4665 am__minus_obj=
4666 ;;
4667 none) break ;;
4668 esac
4669 if depmode=$depmode \
4670 source=sub/conftest.c object=$am__obj \
4671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4673 >/dev/null 2>conftest.err &&
4674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4678 # icc doesn't choke on unknown options, it will just issue warnings
4679 # or remarks (even with -Werror). So we grep stderr for any message
4680 # that says an option was ignored or not supported.
4681 # When given -MP, icc 7.0 and 7.1 complain thusly:
4682 # icc: Command line warning: ignoring option '-M'; no argument required
4683 # The diagnosis changed in icc 8.0:
4684 # icc: Command line remark: option '-MP' not supported
4685 if (grep 'ignoring option' conftest.err ||
4686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4687 am_cv_CC_dependencies_compiler_type=$depmode
4688 break
4689 fi
4690 fi
4691 done
4692
4693 cd ..
4694 rm -rf conftest.dir
4695 else
4696 am_cv_CC_dependencies_compiler_type=none
4697 fi
4698
4699 fi
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4701 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4703
4704 if
4705 test "x$enable_dependency_tracking" != xno \
4706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4707 am__fastdepCC_TRUE=
4708 am__fastdepCC_FALSE='#'
4709 else
4710 am__fastdepCC_TRUE='#'
4711 am__fastdepCC_FALSE=
4712 fi
4713
4714
4715
4716 ac_header= ac_cache=
4717 for ac_item in $ac_header_c_list
4718 do
4719 if test $ac_cache; then
4720 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4721 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4722 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4723 fi
4724 ac_header= ac_cache=
4725 elif test $ac_header; then
4726 ac_cache=$ac_item
4727 else
4728 ac_header=$ac_item
4729 fi
4730 done
4731
4732
4733
4734
4735
4736
4737
4738
4739 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4740 then :
4741
4742 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4743
4744 fi
4745
4746
4747
4748
4749
4750
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4752 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4753 if test ${ac_cv_safe_to_define___extensions__+y}
4754 then :
4755 printf %s "(cached) " >&6
4756 else $as_nop
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759
4760 # define __EXTENSIONS__ 1
4761 $ac_includes_default
4762 int
4763 main (void)
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"
4771 then :
4772 ac_cv_safe_to_define___extensions__=yes
4773 else $as_nop
4774 ac_cv_safe_to_define___extensions__=no
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4777 fi
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4779 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4780
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4782 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4783 if test ${ac_cv_should_define__xopen_source+y}
4784 then :
4785 printf %s "(cached) " >&6
4786 else $as_nop
4787 ac_cv_should_define__xopen_source=no
4788 if test $ac_cv_header_wchar_h = yes
4789 then :
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 #include <wchar.h>
4794 mbstate_t x;
4795 int
4796 main (void)
4797 {
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_compile "$LINENO"
4804 then :
4805
4806 else $as_nop
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809
4810 #define _XOPEN_SOURCE 500
4811 #include <wchar.h>
4812 mbstate_t x;
4813 int
4814 main (void)
4815 {
4816
4817 ;
4818 return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"
4822 then :
4823 ac_cv_should_define__xopen_source=yes
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4826 fi
4827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4828 fi
4829 fi
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4831 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4832
4833 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4834
4835 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4836
4837 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4838
4839 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4840
4841 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4842
4843 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4844
4845 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4846
4847 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4848
4849 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4850
4851 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4852
4853 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4854
4855 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4856
4857 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4858
4859 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4860
4861 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4862
4863 if test $ac_cv_header_minix_config_h = yes
4864 then :
4865 MINIX=yes
4866 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4867
4868 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4869
4870 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4871
4872 else $as_nop
4873 MINIX=
4874 fi
4875 if test $ac_cv_safe_to_define___extensions__ = yes
4876 then :
4877 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4878
4879 fi
4880 if test $ac_cv_should_define__xopen_source = yes
4881 then :
4882 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4883
4884 fi
4885
4886
4887 ac_ext=c
4888 ac_cpp='$CPP $CPPFLAGS'
4889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 printf %s "checking for $ac_word... " >&6; }
4897 if test ${ac_cv_prog_CC+y}
4898 then :
4899 printf %s "(cached) " >&6
4900 else $as_nop
4901 if test -n "$CC"; then
4902 ac_cv_prog_CC="$CC" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907 IFS=$as_save_IFS
4908 case $as_dir in #(((
4909 '') as_dir=./ ;;
4910 */) ;;
4911 *) as_dir=$as_dir/ ;;
4912 esac
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923 fi
4924 fi
4925 CC=$ac_cv_prog_CC
4926 if test -n "$CC"; then
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4928 printf "%s\n" "$CC" >&6; }
4929 else
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 printf "%s\n" "no" >&6; }
4932 fi
4933
4934
4935 fi
4936 if test -z "$ac_cv_prog_CC"; then
4937 ac_ct_CC=$CC
4938 # Extract the first word of "gcc", so it can be a program name with args.
4939 set dummy gcc; ac_word=$2
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 printf %s "checking for $ac_word... " >&6; }
4942 if test ${ac_cv_prog_ac_ct_CC+y}
4943 then :
4944 printf %s "(cached) " >&6
4945 else $as_nop
4946 if test -n "$ac_ct_CC"; then
4947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952 IFS=$as_save_IFS
4953 case $as_dir in #(((
4954 '') as_dir=./ ;;
4955 */) ;;
4956 *) as_dir=$as_dir/ ;;
4957 esac
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_ac_ct_CC="gcc"
4961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4962 break 2
4963 fi
4964 done
4965 done
4966 IFS=$as_save_IFS
4967
4968 fi
4969 fi
4970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4971 if test -n "$ac_ct_CC"; then
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4973 printf "%s\n" "$ac_ct_CC" >&6; }
4974 else
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 printf "%s\n" "no" >&6; }
4977 fi
4978
4979 if test "x$ac_ct_CC" = x; then
4980 CC=""
4981 else
4982 case $cross_compiling:$ac_tool_warned in
4983 yes:)
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986 ac_tool_warned=yes ;;
4987 esac
4988 CC=$ac_ct_CC
4989 fi
4990 else
4991 CC="$ac_cv_prog_CC"
4992 fi
4993
4994 if test -z "$CC"; then
4995 if test -n "$ac_tool_prefix"; then
4996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4997 set dummy ${ac_tool_prefix}cc; ac_word=$2
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 printf %s "checking for $ac_word... " >&6; }
5000 if test ${ac_cv_prog_CC+y}
5001 then :
5002 printf %s "(cached) " >&6
5003 else $as_nop
5004 if test -n "$CC"; then
5005 ac_cv_prog_CC="$CC" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010 IFS=$as_save_IFS
5011 case $as_dir in #(((
5012 '') as_dir=./ ;;
5013 */) ;;
5014 *) as_dir=$as_dir/ ;;
5015 esac
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_CC="${ac_tool_prefix}cc"
5019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022 done
5023 done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 CC=$ac_cv_prog_CC
5029 if test -n "$CC"; then
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5031 printf "%s\n" "$CC" >&6; }
5032 else
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 printf "%s\n" "no" >&6; }
5035 fi
5036
5037
5038 fi
5039 fi
5040 if test -z "$CC"; then
5041 # Extract the first word of "cc", so it can be a program name with args.
5042 set dummy cc; ac_word=$2
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 printf %s "checking for $ac_word... " >&6; }
5045 if test ${ac_cv_prog_CC+y}
5046 then :
5047 printf %s "(cached) " >&6
5048 else $as_nop
5049 if test -n "$CC"; then
5050 ac_cv_prog_CC="$CC" # Let the user override the test.
5051 else
5052 ac_prog_rejected=no
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056 IFS=$as_save_IFS
5057 case $as_dir in #(((
5058 '') as_dir=./ ;;
5059 */) ;;
5060 *) as_dir=$as_dir/ ;;
5061 esac
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5064 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5065 ac_prog_rejected=yes
5066 continue
5067 fi
5068 ac_cv_prog_CC="cc"
5069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072 done
5073 done
5074 IFS=$as_save_IFS
5075
5076 if test $ac_prog_rejected = yes; then
5077 # We found a bogon in the path, so make sure we never use it.
5078 set dummy $ac_cv_prog_CC
5079 shift
5080 if test $# != 0; then
5081 # We chose a different compiler from the bogus one.
5082 # However, it has the same basename, so the bogon will be chosen
5083 # first if we set CC to just the basename; use the full file name.
5084 shift
5085 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5086 fi
5087 fi
5088 fi
5089 fi
5090 CC=$ac_cv_prog_CC
5091 if test -n "$CC"; then
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5093 printf "%s\n" "$CC" >&6; }
5094 else
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 printf "%s\n" "no" >&6; }
5097 fi
5098
5099
5100 fi
5101 if test -z "$CC"; then
5102 if test -n "$ac_tool_prefix"; then
5103 for ac_prog in cl.exe
5104 do
5105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 printf %s "checking for $ac_word... " >&6; }
5109 if test ${ac_cv_prog_CC+y}
5110 then :
5111 printf %s "(cached) " >&6
5112 else $as_nop
5113 if test -n "$CC"; then
5114 ac_cv_prog_CC="$CC" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119 IFS=$as_save_IFS
5120 case $as_dir in #(((
5121 '') as_dir=./ ;;
5122 */) ;;
5123 *) as_dir=$as_dir/ ;;
5124 esac
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 CC=$ac_cv_prog_CC
5138 if test -n "$CC"; then
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5140 printf "%s\n" "$CC" >&6; }
5141 else
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 printf "%s\n" "no" >&6; }
5144 fi
5145
5146
5147 test -n "$CC" && break
5148 done
5149 fi
5150 if test -z "$CC"; then
5151 ac_ct_CC=$CC
5152 for ac_prog in cl.exe
5153 do
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155 set dummy $ac_prog; ac_word=$2
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 printf %s "checking for $ac_word... " >&6; }
5158 if test ${ac_cv_prog_ac_ct_CC+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else $as_nop
5162 if test -n "$ac_ct_CC"; then
5163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 case $as_dir in #(((
5170 '') as_dir=./ ;;
5171 */) ;;
5172 *) as_dir=$as_dir/ ;;
5173 esac
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_ac_ct_CC="$ac_prog"
5177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5187 if test -n "$ac_ct_CC"; then
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5189 printf "%s\n" "$ac_ct_CC" >&6; }
5190 else
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 printf "%s\n" "no" >&6; }
5193 fi
5194
5195
5196 test -n "$ac_ct_CC" && break
5197 done
5198
5199 if test "x$ac_ct_CC" = x; then
5200 CC=""
5201 else
5202 case $cross_compiling:$ac_tool_warned in
5203 yes:)
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5207 esac
5208 CC=$ac_ct_CC
5209 fi
5210 fi
5211
5212 fi
5213 if test -z "$CC"; then
5214 if test -n "$ac_tool_prefix"; then
5215 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5216 set dummy ${ac_tool_prefix}clang; ac_word=$2
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 printf %s "checking for $ac_word... " >&6; }
5219 if test ${ac_cv_prog_CC+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else $as_nop
5223 if test -n "$CC"; then
5224 ac_cv_prog_CC="$CC" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229 IFS=$as_save_IFS
5230 case $as_dir in #(((
5231 '') as_dir=./ ;;
5232 */) ;;
5233 *) as_dir=$as_dir/ ;;
5234 esac
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_CC="${ac_tool_prefix}clang"
5238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241 done
5242 done
5243 IFS=$as_save_IFS
5244
5245 fi
5246 fi
5247 CC=$ac_cv_prog_CC
5248 if test -n "$CC"; then
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5250 printf "%s\n" "$CC" >&6; }
5251 else
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 printf "%s\n" "no" >&6; }
5254 fi
5255
5256
5257 fi
5258 if test -z "$ac_cv_prog_CC"; then
5259 ac_ct_CC=$CC
5260 # Extract the first word of "clang", so it can be a program name with args.
5261 set dummy clang; ac_word=$2
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 printf %s "checking for $ac_word... " >&6; }
5264 if test ${ac_cv_prog_ac_ct_CC+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else $as_nop
5268 if test -n "$ac_ct_CC"; then
5269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 case $as_dir in #(((
5276 '') as_dir=./ ;;
5277 */) ;;
5278 *) as_dir=$as_dir/ ;;
5279 esac
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_ac_ct_CC="clang"
5283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5293 if test -n "$ac_ct_CC"; then
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5295 printf "%s\n" "$ac_ct_CC" >&6; }
5296 else
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 printf "%s\n" "no" >&6; }
5299 fi
5300
5301 if test "x$ac_ct_CC" = x; then
5302 CC=""
5303 else
5304 case $cross_compiling:$ac_tool_warned in
5305 yes:)
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308 ac_tool_warned=yes ;;
5309 esac
5310 CC=$ac_ct_CC
5311 fi
5312 else
5313 CC="$ac_cv_prog_CC"
5314 fi
5315
5316 fi
5317
5318
5319 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5321 as_fn_error $? "no acceptable C compiler found in \$PATH
5322 See \`config.log' for more details" "$LINENO" 5; }
5323
5324 # Provide some information about the compiler.
5325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5326 set X $ac_compile
5327 ac_compiler=$2
5328 for ac_option in --version -v -V -qversion -version; do
5329 { { ac_try="$ac_compiler $ac_option >&5"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5335 printf "%s\n" "$ac_try_echo"; } >&5
5336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5337 ac_status=$?
5338 if test -s conftest.err; then
5339 sed '10a\
5340 ... rest of stderr output deleted ...
5341 10q' conftest.err >conftest.er1
5342 cat conftest.er1 >&5
5343 fi
5344 rm -f conftest.er1 conftest.err
5345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5346 test $ac_status = 0; }
5347 done
5348
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5350 printf %s "checking whether the compiler supports GNU C... " >&6; }
5351 if test ${ac_cv_c_compiler_gnu+y}
5352 then :
5353 printf %s "(cached) " >&6
5354 else $as_nop
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357
5358 int
5359 main (void)
5360 {
5361 #ifndef __GNUC__
5362 choke me
5363 #endif
5364
5365 ;
5366 return 0;
5367 }
5368 _ACEOF
5369 if ac_fn_c_try_compile "$LINENO"
5370 then :
5371 ac_compiler_gnu=yes
5372 else $as_nop
5373 ac_compiler_gnu=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5377
5378 fi
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5380 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5382
5383 if test $ac_compiler_gnu = yes; then
5384 GCC=yes
5385 else
5386 GCC=
5387 fi
5388 ac_test_CFLAGS=${CFLAGS+y}
5389 ac_save_CFLAGS=$CFLAGS
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5391 printf %s "checking whether $CC accepts -g... " >&6; }
5392 if test ${ac_cv_prog_cc_g+y}
5393 then :
5394 printf %s "(cached) " >&6
5395 else $as_nop
5396 ac_save_c_werror_flag=$ac_c_werror_flag
5397 ac_c_werror_flag=yes
5398 ac_cv_prog_cc_g=no
5399 CFLAGS="-g"
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402
5403 int
5404 main (void)
5405 {
5406
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"
5412 then :
5413 ac_cv_prog_cc_g=yes
5414 else $as_nop
5415 CFLAGS=""
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418
5419 int
5420 main (void)
5421 {
5422
5423 ;
5424 return 0;
5425 }
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"
5428 then :
5429
5430 else $as_nop
5431 ac_c_werror_flag=$ac_save_c_werror_flag
5432 CFLAGS="-g"
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435
5436 int
5437 main (void)
5438 {
5439
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"
5445 then :
5446 ac_cv_prog_cc_g=yes
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 fi
5452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5453 ac_c_werror_flag=$ac_save_c_werror_flag
5454 fi
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5456 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5457 if test $ac_test_CFLAGS; then
5458 CFLAGS=$ac_save_CFLAGS
5459 elif test $ac_cv_prog_cc_g = yes; then
5460 if test "$GCC" = yes; then
5461 CFLAGS="-g -O2"
5462 else
5463 CFLAGS="-g"
5464 fi
5465 else
5466 if test "$GCC" = yes; then
5467 CFLAGS="-O2"
5468 else
5469 CFLAGS=
5470 fi
5471 fi
5472 ac_prog_cc_stdc=no
5473 if test x$ac_prog_cc_stdc = xno
5474 then :
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5476 printf %s "checking for $CC option to enable C11 features... " >&6; }
5477 if test ${ac_cv_prog_cc_c11+y}
5478 then :
5479 printf %s "(cached) " >&6
5480 else $as_nop
5481 ac_cv_prog_cc_c11=no
5482 ac_save_CC=$CC
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 $ac_c_conftest_c11_program
5486 _ACEOF
5487 for ac_arg in '' -std=gnu11
5488 do
5489 CC="$ac_save_CC $ac_arg"
5490 if ac_fn_c_try_compile "$LINENO"
5491 then :
5492 ac_cv_prog_cc_c11=$ac_arg
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext conftest.beam
5495 test "x$ac_cv_prog_cc_c11" != "xno" && break
5496 done
5497 rm -f conftest.$ac_ext
5498 CC=$ac_save_CC
5499 fi
5500
5501 if test "x$ac_cv_prog_cc_c11" = xno
5502 then :
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5504 printf "%s\n" "unsupported" >&6; }
5505 else $as_nop
5506 if test "x$ac_cv_prog_cc_c11" = x
5507 then :
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5509 printf "%s\n" "none needed" >&6; }
5510 else $as_nop
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5512 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5513 CC="$CC $ac_cv_prog_cc_c11"
5514 fi
5515 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5516 ac_prog_cc_stdc=c11
5517 fi
5518 fi
5519 if test x$ac_prog_cc_stdc = xno
5520 then :
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5522 printf %s "checking for $CC option to enable C99 features... " >&6; }
5523 if test ${ac_cv_prog_cc_c99+y}
5524 then :
5525 printf %s "(cached) " >&6
5526 else $as_nop
5527 ac_cv_prog_cc_c99=no
5528 ac_save_CC=$CC
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 $ac_c_conftest_c99_program
5532 _ACEOF
5533 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5534 do
5535 CC="$ac_save_CC $ac_arg"
5536 if ac_fn_c_try_compile "$LINENO"
5537 then :
5538 ac_cv_prog_cc_c99=$ac_arg
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.beam
5541 test "x$ac_cv_prog_cc_c99" != "xno" && break
5542 done
5543 rm -f conftest.$ac_ext
5544 CC=$ac_save_CC
5545 fi
5546
5547 if test "x$ac_cv_prog_cc_c99" = xno
5548 then :
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5550 printf "%s\n" "unsupported" >&6; }
5551 else $as_nop
5552 if test "x$ac_cv_prog_cc_c99" = x
5553 then :
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5555 printf "%s\n" "none needed" >&6; }
5556 else $as_nop
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5558 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5559 CC="$CC $ac_cv_prog_cc_c99"
5560 fi
5561 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5562 ac_prog_cc_stdc=c99
5563 fi
5564 fi
5565 if test x$ac_prog_cc_stdc = xno
5566 then :
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5568 printf %s "checking for $CC option to enable C89 features... " >&6; }
5569 if test ${ac_cv_prog_cc_c89+y}
5570 then :
5571 printf %s "(cached) " >&6
5572 else $as_nop
5573 ac_cv_prog_cc_c89=no
5574 ac_save_CC=$CC
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 $ac_c_conftest_c89_program
5578 _ACEOF
5579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5580 do
5581 CC="$ac_save_CC $ac_arg"
5582 if ac_fn_c_try_compile "$LINENO"
5583 then :
5584 ac_cv_prog_cc_c89=$ac_arg
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.beam
5587 test "x$ac_cv_prog_cc_c89" != "xno" && break
5588 done
5589 rm -f conftest.$ac_ext
5590 CC=$ac_save_CC
5591 fi
5592
5593 if test "x$ac_cv_prog_cc_c89" = xno
5594 then :
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5596 printf "%s\n" "unsupported" >&6; }
5597 else $as_nop
5598 if test "x$ac_cv_prog_cc_c89" = x
5599 then :
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5601 printf "%s\n" "none needed" >&6; }
5602 else $as_nop
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5604 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5605 CC="$CC $ac_cv_prog_cc_c89"
5606 fi
5607 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5608 ac_prog_cc_stdc=c89
5609 fi
5610 fi
5611
5612 ac_ext=c
5613 ac_cpp='$CPP $CPPFLAGS'
5614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617
5618
5619 ac_ext=c
5620 ac_cpp='$CPP $CPPFLAGS'
5621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5625 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5626 if test ${am_cv_prog_cc_c_o+y}
5627 then :
5628 printf %s "(cached) " >&6
5629 else $as_nop
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632
5633 int
5634 main (void)
5635 {
5636
5637 ;
5638 return 0;
5639 }
5640 _ACEOF
5641 # Make sure it works both with $CC and with simple cc.
5642 # Following AC_PROG_CC_C_O, we do the test twice because some
5643 # compilers refuse to overwrite an existing .o file with -o,
5644 # though they will create one.
5645 am_cv_prog_cc_c_o=yes
5646 for am_i in 1 2; do
5647 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5648 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } \
5652 && test -f conftest2.$ac_objext; then
5653 : OK
5654 else
5655 am_cv_prog_cc_c_o=no
5656 break
5657 fi
5658 done
5659 rm -f core conftest*
5660 unset am_i
5661 fi
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5663 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5664 if test "$am_cv_prog_cc_c_o" != yes; then
5665 # Losing compiler, so override with the script.
5666 # FIXME: It is wrong to rewrite CC.
5667 # But if we don't then we get into trouble of one sort or another.
5668 # A longer-term fix would be to have automake use am__CC in this case,
5669 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5670 CC="$am_aux_dir/compile $CC"
5671 fi
5672 ac_ext=c
5673 ac_cpp='$CPP $CPPFLAGS'
5674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677
5678
5679 depcc="$CC" am_compiler_list=
5680
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5682 printf %s "checking dependency style of $depcc... " >&6; }
5683 if test ${am_cv_CC_dependencies_compiler_type+y}
5684 then :
5685 printf %s "(cached) " >&6
5686 else $as_nop
5687 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5688 # We make a subdir and do the tests there. Otherwise we can end up
5689 # making bogus files that we don't know about and never remove. For
5690 # instance it was reported that on HP-UX the gcc test will end up
5691 # making a dummy file named 'D' -- because '-MD' means "put the output
5692 # in D".
5693 rm -rf conftest.dir
5694 mkdir conftest.dir
5695 # Copy depcomp to subdir because otherwise we won't find it if we're
5696 # using a relative directory.
5697 cp "$am_depcomp" conftest.dir
5698 cd conftest.dir
5699 # We will build objects and dependencies in a subdirectory because
5700 # it helps to detect inapplicable dependency modes. For instance
5701 # both Tru64's cc and ICC support -MD to output dependencies as a
5702 # side effect of compilation, but ICC will put the dependencies in
5703 # the current directory while Tru64 will put them in the object
5704 # directory.
5705 mkdir sub
5706
5707 am_cv_CC_dependencies_compiler_type=none
5708 if test "$am_compiler_list" = ""; then
5709 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5710 fi
5711 am__universal=false
5712 case " $depcc " in #(
5713 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5714 esac
5715
5716 for depmode in $am_compiler_list; do
5717 # Setup a source with many dependencies, because some compilers
5718 # like to wrap large dependency lists on column 80 (with \), and
5719 # we should not choose a depcomp mode which is confused by this.
5720 #
5721 # We need to recreate these files for each test, as the compiler may
5722 # overwrite some of them when testing with obscure command lines.
5723 # This happens at least with the AIX C compiler.
5724 : > sub/conftest.c
5725 for i in 1 2 3 4 5 6; do
5726 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5727 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5728 # Solaris 10 /bin/sh.
5729 echo '/* dummy */' > sub/conftst$i.h
5730 done
5731 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5732
5733 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5734 # mode. It turns out that the SunPro C++ compiler does not properly
5735 # handle '-M -o', and we need to detect this. Also, some Intel
5736 # versions had trouble with output in subdirs.
5737 am__obj=sub/conftest.${OBJEXT-o}
5738 am__minus_obj="-o $am__obj"
5739 case $depmode in
5740 gcc)
5741 # This depmode causes a compiler race in universal mode.
5742 test "$am__universal" = false || continue
5743 ;;
5744 nosideeffect)
5745 # After this tag, mechanisms are not by side-effect, so they'll
5746 # only be used when explicitly requested.
5747 if test "x$enable_dependency_tracking" = xyes; then
5748 continue
5749 else
5750 break
5751 fi
5752 ;;
5753 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5754 # This compiler won't grok '-c -o', but also, the minuso test has
5755 # not run yet. These depmodes are late enough in the game, and
5756 # so weak that their functioning should not be impacted.
5757 am__obj=conftest.${OBJEXT-o}
5758 am__minus_obj=
5759 ;;
5760 none) break ;;
5761 esac
5762 if depmode=$depmode \
5763 source=sub/conftest.c object=$am__obj \
5764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5765 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5766 >/dev/null 2>conftest.err &&
5767 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5769 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5771 # icc doesn't choke on unknown options, it will just issue warnings
5772 # or remarks (even with -Werror). So we grep stderr for any message
5773 # that says an option was ignored or not supported.
5774 # When given -MP, icc 7.0 and 7.1 complain thusly:
5775 # icc: Command line warning: ignoring option '-M'; no argument required
5776 # The diagnosis changed in icc 8.0:
5777 # icc: Command line remark: option '-MP' not supported
5778 if (grep 'ignoring option' conftest.err ||
5779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5780 am_cv_CC_dependencies_compiler_type=$depmode
5781 break
5782 fi
5783 fi
5784 done
5785
5786 cd ..
5787 rm -rf conftest.dir
5788 else
5789 am_cv_CC_dependencies_compiler_type=none
5790 fi
5791
5792 fi
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5794 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5796
5797 if
5798 test "x$enable_dependency_tracking" != xno \
5799 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5800 am__fastdepCC_TRUE=
5801 am__fastdepCC_FALSE='#'
5802 else
5803 am__fastdepCC_TRUE='#'
5804 am__fastdepCC_FALSE=
5805 fi
5806
5807
5808
5809 ac_ext=c
5810 ac_cpp='$CPP $CPPFLAGS'
5811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5815 printf %s "checking how to run the C preprocessor... " >&6; }
5816 # On Suns, sometimes $CPP names a directory.
5817 if test -n "$CPP" && test -d "$CPP"; then
5818 CPP=
5819 fi
5820 if test -z "$CPP"; then
5821 if test ${ac_cv_prog_CPP+y}
5822 then :
5823 printf %s "(cached) " >&6
5824 else $as_nop
5825 # Double quotes because $CC needs to be expanded
5826 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5827 do
5828 ac_preproc_ok=false
5829 for ac_c_preproc_warn_flag in '' yes
5830 do
5831 # Use a header file that comes with gcc, so configuring glibc
5832 # with a fresh cross-compiler works.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #include <limits.h>
5838 Syntax error
5839 _ACEOF
5840 if ac_fn_c_try_cpp "$LINENO"
5841 then :
5842
5843 else $as_nop
5844 # Broken: fails on valid input.
5845 continue
5846 fi
5847 rm -f conftest.err conftest.i conftest.$ac_ext
5848
5849 # OK, works on sane cases. Now check whether nonexistent headers
5850 # can be detected and how.
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <ac_nonexistent.h>
5854 _ACEOF
5855 if ac_fn_c_try_cpp "$LINENO"
5856 then :
5857 # Broken: success on invalid input.
5858 continue
5859 else $as_nop
5860 # Passes both tests.
5861 ac_preproc_ok=:
5862 break
5863 fi
5864 rm -f conftest.err conftest.i conftest.$ac_ext
5865
5866 done
5867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868 rm -f conftest.i conftest.err conftest.$ac_ext
5869 if $ac_preproc_ok
5870 then :
5871 break
5872 fi
5873
5874 done
5875 ac_cv_prog_CPP=$CPP
5876
5877 fi
5878 CPP=$ac_cv_prog_CPP
5879 else
5880 ac_cv_prog_CPP=$CPP
5881 fi
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5883 printf "%s\n" "$CPP" >&6; }
5884 ac_preproc_ok=false
5885 for ac_c_preproc_warn_flag in '' yes
5886 do
5887 # Use a header file that comes with gcc, so configuring glibc
5888 # with a fresh cross-compiler works.
5889 # On the NeXT, cc -E runs the code through the compiler's parser,
5890 # not just through cpp. "Syntax error" is here to catch this case.
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 #include <limits.h>
5894 Syntax error
5895 _ACEOF
5896 if ac_fn_c_try_cpp "$LINENO"
5897 then :
5898
5899 else $as_nop
5900 # Broken: fails on valid input.
5901 continue
5902 fi
5903 rm -f conftest.err conftest.i conftest.$ac_ext
5904
5905 # OK, works on sane cases. Now check whether nonexistent headers
5906 # can be detected and how.
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <ac_nonexistent.h>
5910 _ACEOF
5911 if ac_fn_c_try_cpp "$LINENO"
5912 then :
5913 # Broken: success on invalid input.
5914 continue
5915 else $as_nop
5916 # Passes both tests.
5917 ac_preproc_ok=:
5918 break
5919 fi
5920 rm -f conftest.err conftest.i conftest.$ac_ext
5921
5922 done
5923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5924 rm -f conftest.i conftest.err conftest.$ac_ext
5925 if $ac_preproc_ok
5926 then :
5927
5928 else $as_nop
5929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5930 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5931 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5932 See \`config.log' for more details" "$LINENO" 5; }
5933 fi
5934
5935 ac_ext=c
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5942 printf %s "checking for grep that handles long lines and -e... " >&6; }
5943 if test ${ac_cv_path_GREP+y}
5944 then :
5945 printf %s "(cached) " >&6
5946 else $as_nop
5947 if test -z "$GREP"; then
5948 ac_path_GREP_found=false
5949 # Loop through the user's path and test for each of PROGNAME-LIST
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5952 do
5953 IFS=$as_save_IFS
5954 case $as_dir in #(((
5955 '') as_dir=./ ;;
5956 */) ;;
5957 *) as_dir=$as_dir/ ;;
5958 esac
5959 for ac_prog in grep ggrep
5960 do
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5963 as_fn_executable_p "$ac_path_GREP" || continue
5964 # Check for GNU ac_path_GREP and select it if it is found.
5965 # Check for GNU $ac_path_GREP
5966 case `"$ac_path_GREP" --version 2>&1` in
5967 *GNU*)
5968 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5969 *)
5970 ac_count=0
5971 printf %s 0123456789 >"conftest.in"
5972 while :
5973 do
5974 cat "conftest.in" "conftest.in" >"conftest.tmp"
5975 mv "conftest.tmp" "conftest.in"
5976 cp "conftest.in" "conftest.nl"
5977 printf "%s\n" 'GREP' >> "conftest.nl"
5978 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5980 as_fn_arith $ac_count + 1 && ac_count=$as_val
5981 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5982 # Best one so far, save it but keep looking for a better one
5983 ac_cv_path_GREP="$ac_path_GREP"
5984 ac_path_GREP_max=$ac_count
5985 fi
5986 # 10*(2^10) chars as input seems more than enough
5987 test $ac_count -gt 10 && break
5988 done
5989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5990 esac
5991
5992 $ac_path_GREP_found && break 3
5993 done
5994 done
5995 done
5996 IFS=$as_save_IFS
5997 if test -z "$ac_cv_path_GREP"; then
5998 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5999 fi
6000 else
6001 ac_cv_path_GREP=$GREP
6002 fi
6003
6004 fi
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6006 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6007 GREP="$ac_cv_path_GREP"
6008
6009
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6011 printf %s "checking for egrep... " >&6; }
6012 if test ${ac_cv_path_EGREP+y}
6013 then :
6014 printf %s "(cached) " >&6
6015 else $as_nop
6016 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6017 then ac_cv_path_EGREP="$GREP -E"
6018 else
6019 if test -z "$EGREP"; then
6020 ac_path_EGREP_found=false
6021 # Loop through the user's path and test for each of PROGNAME-LIST
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6024 do
6025 IFS=$as_save_IFS
6026 case $as_dir in #(((
6027 '') as_dir=./ ;;
6028 */) ;;
6029 *) as_dir=$as_dir/ ;;
6030 esac
6031 for ac_prog in egrep
6032 do
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6035 as_fn_executable_p "$ac_path_EGREP" || continue
6036 # Check for GNU ac_path_EGREP and select it if it is found.
6037 # Check for GNU $ac_path_EGREP
6038 case `"$ac_path_EGREP" --version 2>&1` in
6039 *GNU*)
6040 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6041 *)
6042 ac_count=0
6043 printf %s 0123456789 >"conftest.in"
6044 while :
6045 do
6046 cat "conftest.in" "conftest.in" >"conftest.tmp"
6047 mv "conftest.tmp" "conftest.in"
6048 cp "conftest.in" "conftest.nl"
6049 printf "%s\n" 'EGREP' >> "conftest.nl"
6050 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6052 as_fn_arith $ac_count + 1 && ac_count=$as_val
6053 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6054 # Best one so far, save it but keep looking for a better one
6055 ac_cv_path_EGREP="$ac_path_EGREP"
6056 ac_path_EGREP_max=$ac_count
6057 fi
6058 # 10*(2^10) chars as input seems more than enough
6059 test $ac_count -gt 10 && break
6060 done
6061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6062 esac
6063
6064 $ac_path_EGREP_found && break 3
6065 done
6066 done
6067 done
6068 IFS=$as_save_IFS
6069 if test -z "$ac_cv_path_EGREP"; then
6070 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6071 fi
6072 else
6073 ac_cv_path_EGREP=$EGREP
6074 fi
6075
6076 fi
6077 fi
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6079 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6080 EGREP="$ac_cv_path_EGREP"
6081
6082
6083
6084
6085 if test $ac_cv_c_compiler_gnu = yes; then
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6087 printf %s "checking whether $CC needs -traditional... " >&6; }
6088 if test ${ac_cv_prog_gcc_traditional+y}
6089 then :
6090 printf %s "(cached) " >&6
6091 else $as_nop
6092 ac_pattern="Autoconf.*'x'"
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 #include <sgtty.h>
6096 Autoconf TIOCGETP
6097 _ACEOF
6098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099 $EGREP "$ac_pattern" >/dev/null 2>&1
6100 then :
6101 ac_cv_prog_gcc_traditional=yes
6102 else $as_nop
6103 ac_cv_prog_gcc_traditional=no
6104 fi
6105 rm -rf conftest*
6106
6107
6108 if test $ac_cv_prog_gcc_traditional = no; then
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <termio.h>
6112 Autoconf TCGETA
6113 _ACEOF
6114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6115 $EGREP "$ac_pattern" >/dev/null 2>&1
6116 then :
6117 ac_cv_prog_gcc_traditional=yes
6118 fi
6119 rm -rf conftest*
6120
6121 fi
6122 fi
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6124 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
6125 if test $ac_cv_prog_gcc_traditional = yes; then
6126 CC="$CC -traditional"
6127 fi
6128 fi
6129
6130 case `pwd` in
6131 *\ * | *\ *)
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6133 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6134 esac
6135
6136
6137
6138 macro_version='2.4.7'
6139 macro_revision='2.4.7'
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 ltmain=$ac_aux_dir/ltmain.sh
6155
6156
6157
6158 # Make sure we can run config.sub.
6159 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6160 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6161
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6163 printf %s "checking build system type... " >&6; }
6164 if test ${ac_cv_build+y}
6165 then :
6166 printf %s "(cached) " >&6
6167 else $as_nop
6168 ac_build_alias=$build_alias
6169 test "x$ac_build_alias" = x &&
6170 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6171 test "x$ac_build_alias" = x &&
6172 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6173 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6174 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6175
6176 fi
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6178 printf "%s\n" "$ac_cv_build" >&6; }
6179 case $ac_cv_build in
6180 *-*-*) ;;
6181 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6182 esac
6183 build=$ac_cv_build
6184 ac_save_IFS=$IFS; IFS='-'
6185 set x $ac_cv_build
6186 shift
6187 build_cpu=$1
6188 build_vendor=$2
6189 shift; shift
6190 # Remember, the first character of IFS is used to create $*,
6191 # except with old shells:
6192 build_os=$*
6193 IFS=$ac_save_IFS
6194 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6195
6196
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6198 printf %s "checking host system type... " >&6; }
6199 if test ${ac_cv_host+y}
6200 then :
6201 printf %s "(cached) " >&6
6202 else $as_nop
6203 if test "x$host_alias" = x; then
6204 ac_cv_host=$ac_cv_build
6205 else
6206 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6207 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6208 fi
6209
6210 fi
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6212 printf "%s\n" "$ac_cv_host" >&6; }
6213 case $ac_cv_host in
6214 *-*-*) ;;
6215 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6216 esac
6217 host=$ac_cv_host
6218 ac_save_IFS=$IFS; IFS='-'
6219 set x $ac_cv_host
6220 shift
6221 host_cpu=$1
6222 host_vendor=$2
6223 shift; shift
6224 # Remember, the first character of IFS is used to create $*,
6225 # except with old shells:
6226 host_os=$*
6227 IFS=$ac_save_IFS
6228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6229
6230
6231 # Backslashify metacharacters that are still active within
6232 # double-quoted strings.
6233 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6234
6235 # Same as above, but do not quote variable references.
6236 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6237
6238 # Sed substitution to delay expansion of an escaped shell variable in a
6239 # double_quote_subst'ed string.
6240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6241
6242 # Sed substitution to delay expansion of an escaped single quote.
6243 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6244
6245 # Sed substitution to avoid accidental globbing in evaled expressions
6246 no_glob_subst='s/\*/\\\*/g'
6247
6248 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6249 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6250 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6251
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6253 printf %s "checking how to print strings... " >&6; }
6254 # Test print first, because it will be a builtin if present.
6255 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6256 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6257 ECHO='print -r --'
6258 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6259 ECHO='printf %s\n'
6260 else
6261 # Use this function as a fallback that always works.
6262 func_fallback_echo ()
6263 {
6264 eval 'cat <<_LTECHO_EOF
6265 $1
6266 _LTECHO_EOF'
6267 }
6268 ECHO='func_fallback_echo'
6269 fi
6270
6271 # func_echo_all arg...
6272 # Invoke $ECHO with all args, space-separated.
6273 func_echo_all ()
6274 {
6275 $ECHO ""
6276 }
6277
6278 case $ECHO in
6279 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6280 printf "%s\n" "printf" >&6; } ;;
6281 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6282 printf "%s\n" "print -r" >&6; } ;;
6283 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6284 printf "%s\n" "cat" >&6; } ;;
6285 esac
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6301 printf %s "checking for a sed that does not truncate output... " >&6; }
6302 if test ${ac_cv_path_SED+y}
6303 then :
6304 printf %s "(cached) " >&6
6305 else $as_nop
6306 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6307 for ac_i in 1 2 3 4 5 6 7; do
6308 ac_script="$ac_script$as_nl$ac_script"
6309 done
6310 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6311 { ac_script=; unset ac_script;}
6312 if test -z "$SED"; then
6313 ac_path_SED_found=false
6314 # Loop through the user's path and test for each of PROGNAME-LIST
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 case $as_dir in #(((
6320 '') as_dir=./ ;;
6321 */) ;;
6322 *) as_dir=$as_dir/ ;;
6323 esac
6324 for ac_prog in sed gsed
6325 do
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6328 as_fn_executable_p "$ac_path_SED" || continue
6329 # Check for GNU ac_path_SED and select it if it is found.
6330 # Check for GNU $ac_path_SED
6331 case `"$ac_path_SED" --version 2>&1` in
6332 *GNU*)
6333 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6334 *)
6335 ac_count=0
6336 printf %s 0123456789 >"conftest.in"
6337 while :
6338 do
6339 cat "conftest.in" "conftest.in" >"conftest.tmp"
6340 mv "conftest.tmp" "conftest.in"
6341 cp "conftest.in" "conftest.nl"
6342 printf "%s\n" '' >> "conftest.nl"
6343 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6345 as_fn_arith $ac_count + 1 && ac_count=$as_val
6346 if test $ac_count -gt ${ac_path_SED_max-0}; then
6347 # Best one so far, save it but keep looking for a better one
6348 ac_cv_path_SED="$ac_path_SED"
6349 ac_path_SED_max=$ac_count
6350 fi
6351 # 10*(2^10) chars as input seems more than enough
6352 test $ac_count -gt 10 && break
6353 done
6354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6355 esac
6356
6357 $ac_path_SED_found && break 3
6358 done
6359 done
6360 done
6361 IFS=$as_save_IFS
6362 if test -z "$ac_cv_path_SED"; then
6363 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6364 fi
6365 else
6366 ac_cv_path_SED=$SED
6367 fi
6368
6369 fi
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6371 printf "%s\n" "$ac_cv_path_SED" >&6; }
6372 SED="$ac_cv_path_SED"
6373 rm -f conftest.sed
6374
6375 test -z "$SED" && SED=sed
6376 Xsed="$SED -e 1s/^X//"
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6389 printf %s "checking for fgrep... " >&6; }
6390 if test ${ac_cv_path_FGREP+y}
6391 then :
6392 printf %s "(cached) " >&6
6393 else $as_nop
6394 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6395 then ac_cv_path_FGREP="$GREP -F"
6396 else
6397 if test -z "$FGREP"; then
6398 ac_path_FGREP_found=false
6399 # Loop through the user's path and test for each of PROGNAME-LIST
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6402 do
6403 IFS=$as_save_IFS
6404 case $as_dir in #(((
6405 '') as_dir=./ ;;
6406 */) ;;
6407 *) as_dir=$as_dir/ ;;
6408 esac
6409 for ac_prog in fgrep
6410 do
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6413 as_fn_executable_p "$ac_path_FGREP" || continue
6414 # Check for GNU ac_path_FGREP and select it if it is found.
6415 # Check for GNU $ac_path_FGREP
6416 case `"$ac_path_FGREP" --version 2>&1` in
6417 *GNU*)
6418 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6419 *)
6420 ac_count=0
6421 printf %s 0123456789 >"conftest.in"
6422 while :
6423 do
6424 cat "conftest.in" "conftest.in" >"conftest.tmp"
6425 mv "conftest.tmp" "conftest.in"
6426 cp "conftest.in" "conftest.nl"
6427 printf "%s\n" 'FGREP' >> "conftest.nl"
6428 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6430 as_fn_arith $ac_count + 1 && ac_count=$as_val
6431 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6432 # Best one so far, save it but keep looking for a better one
6433 ac_cv_path_FGREP="$ac_path_FGREP"
6434 ac_path_FGREP_max=$ac_count
6435 fi
6436 # 10*(2^10) chars as input seems more than enough
6437 test $ac_count -gt 10 && break
6438 done
6439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6440 esac
6441
6442 $ac_path_FGREP_found && break 3
6443 done
6444 done
6445 done
6446 IFS=$as_save_IFS
6447 if test -z "$ac_cv_path_FGREP"; then
6448 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6449 fi
6450 else
6451 ac_cv_path_FGREP=$FGREP
6452 fi
6453
6454 fi
6455 fi
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6457 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6458 FGREP="$ac_cv_path_FGREP"
6459
6460
6461 test -z "$GREP" && GREP=grep
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 # Check whether --with-gnu-ld was given.
6482 if test ${with_gnu_ld+y}
6483 then :
6484 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6485 else $as_nop
6486 with_gnu_ld=no
6487 fi
6488
6489 ac_prog=ld
6490 if test yes = "$GCC"; then
6491 # Check if gcc -print-prog-name=ld gives a path.
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6493 printf %s "checking for ld used by $CC... " >&6; }
6494 case $host in
6495 *-*-mingw*)
6496 # gcc leaves a trailing carriage return, which upsets mingw
6497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6498 *)
6499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6500 esac
6501 case $ac_prog in
6502 # Accept absolute paths.
6503 [\\/]* | ?:[\\/]*)
6504 re_direlt='/[^/][^/]*/\.\./'
6505 # Canonicalize the pathname of ld
6506 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6507 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6508 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6509 done
6510 test -z "$LD" && LD=$ac_prog
6511 ;;
6512 "")
6513 # If it fails, then pretend we aren't using GCC.
6514 ac_prog=ld
6515 ;;
6516 *)
6517 # If it is relative, then search for the first ld in PATH.
6518 with_gnu_ld=unknown
6519 ;;
6520 esac
6521 elif test yes = "$with_gnu_ld"; then
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6523 printf %s "checking for GNU ld... " >&6; }
6524 else
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6526 printf %s "checking for non-GNU ld... " >&6; }
6527 fi
6528 if test ${lt_cv_path_LD+y}
6529 then :
6530 printf %s "(cached) " >&6
6531 else $as_nop
6532 if test -z "$LD"; then
6533 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6534 for ac_dir in $PATH; do
6535 IFS=$lt_save_ifs
6536 test -z "$ac_dir" && ac_dir=.
6537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6538 lt_cv_path_LD=$ac_dir/$ac_prog
6539 # Check to see if the program is GNU ld. I'd rather use --version,
6540 # but apparently some variants of GNU ld only accept -v.
6541 # Break only if it was the GNU/non-GNU ld that we prefer.
6542 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6543 *GNU* | *'with BFD'*)
6544 test no != "$with_gnu_ld" && break
6545 ;;
6546 *)
6547 test yes != "$with_gnu_ld" && break
6548 ;;
6549 esac
6550 fi
6551 done
6552 IFS=$lt_save_ifs
6553 else
6554 lt_cv_path_LD=$LD # Let the user override the test with a path.
6555 fi
6556 fi
6557
6558 LD=$lt_cv_path_LD
6559 if test -n "$LD"; then
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6561 printf "%s\n" "$LD" >&6; }
6562 else
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 printf "%s\n" "no" >&6; }
6565 fi
6566 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6568 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6569 if test ${lt_cv_prog_gnu_ld+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else $as_nop
6573 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6574 case `$LD -v 2>&1 </dev/null` in
6575 *GNU* | *'with BFD'*)
6576 lt_cv_prog_gnu_ld=yes
6577 ;;
6578 *)
6579 lt_cv_prog_gnu_ld=no
6580 ;;
6581 esac
6582 fi
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6584 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6585 with_gnu_ld=$lt_cv_prog_gnu_ld
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6596 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6597 if test ${lt_cv_path_NM+y}
6598 then :
6599 printf %s "(cached) " >&6
6600 else $as_nop
6601 if test -n "$NM"; then
6602 # Let the user override the test.
6603 lt_cv_path_NM=$NM
6604 else
6605 lt_nm_to_check=${ac_tool_prefix}nm
6606 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6607 lt_nm_to_check="$lt_nm_to_check nm"
6608 fi
6609 for lt_tmp_nm in $lt_nm_to_check; do
6610 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6611 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6612 IFS=$lt_save_ifs
6613 test -z "$ac_dir" && ac_dir=.
6614 tmp_nm=$ac_dir/$lt_tmp_nm
6615 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6616 # Check to see if the nm accepts a BSD-compat flag.
6617 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6618 # nm: unknown option "B" ignored
6619 # Tru64's nm complains that /dev/null is an invalid object file
6620 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6621 case $build_os in
6622 mingw*) lt_bad_file=conftest.nm/nofile ;;
6623 *) lt_bad_file=/dev/null ;;
6624 esac
6625 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6626 *$lt_bad_file* | *'Invalid file or object type'*)
6627 lt_cv_path_NM="$tmp_nm -B"
6628 break 2
6629 ;;
6630 *)
6631 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6632 */dev/null*)
6633 lt_cv_path_NM="$tmp_nm -p"
6634 break 2
6635 ;;
6636 *)
6637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6638 continue # so that we can try to find one that supports BSD flags
6639 ;;
6640 esac
6641 ;;
6642 esac
6643 fi
6644 done
6645 IFS=$lt_save_ifs
6646 done
6647 : ${lt_cv_path_NM=no}
6648 fi
6649 fi
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6651 printf "%s\n" "$lt_cv_path_NM" >&6; }
6652 if test no != "$lt_cv_path_NM"; then
6653 NM=$lt_cv_path_NM
6654 else
6655 # Didn't find any BSD compatible name lister, look for dumpbin.
6656 if test -n "$DUMPBIN"; then :
6657 # Let the user override the test.
6658 else
6659 if test -n "$ac_tool_prefix"; then
6660 for ac_prog in dumpbin "link -dump"
6661 do
6662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 printf %s "checking for $ac_word... " >&6; }
6666 if test ${ac_cv_prog_DUMPBIN+y}
6667 then :
6668 printf %s "(cached) " >&6
6669 else $as_nop
6670 if test -n "$DUMPBIN"; then
6671 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 case $as_dir in #(((
6678 '') as_dir=./ ;;
6679 */) ;;
6680 *) as_dir=$as_dir/ ;;
6681 esac
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 DUMPBIN=$ac_cv_prog_DUMPBIN
6695 if test -n "$DUMPBIN"; then
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6697 printf "%s\n" "$DUMPBIN" >&6; }
6698 else
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 printf "%s\n" "no" >&6; }
6701 fi
6702
6703
6704 test -n "$DUMPBIN" && break
6705 done
6706 fi
6707 if test -z "$DUMPBIN"; then
6708 ac_ct_DUMPBIN=$DUMPBIN
6709 for ac_prog in dumpbin "link -dump"
6710 do
6711 # Extract the first word of "$ac_prog", so it can be a program name with args.
6712 set dummy $ac_prog; ac_word=$2
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 printf %s "checking for $ac_word... " >&6; }
6715 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else $as_nop
6719 if test -n "$ac_ct_DUMPBIN"; then
6720 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 case $as_dir in #(((
6727 '') as_dir=./ ;;
6728 */) ;;
6729 *) as_dir=$as_dir/ ;;
6730 esac
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6744 if test -n "$ac_ct_DUMPBIN"; then
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6746 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6747 else
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 printf "%s\n" "no" >&6; }
6750 fi
6751
6752
6753 test -n "$ac_ct_DUMPBIN" && break
6754 done
6755
6756 if test "x$ac_ct_DUMPBIN" = x; then
6757 DUMPBIN=":"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765 DUMPBIN=$ac_ct_DUMPBIN
6766 fi
6767 fi
6768
6769 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6770 *COFF*)
6771 DUMPBIN="$DUMPBIN -symbols -headers"
6772 ;;
6773 *)
6774 DUMPBIN=:
6775 ;;
6776 esac
6777 fi
6778
6779 if test : != "$DUMPBIN"; then
6780 NM=$DUMPBIN
6781 fi
6782 fi
6783 test -z "$NM" && NM=nm
6784
6785
6786
6787
6788
6789
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6791 printf %s "checking the name lister ($NM) interface... " >&6; }
6792 if test ${lt_cv_nm_interface+y}
6793 then :
6794 printf %s "(cached) " >&6
6795 else $as_nop
6796 lt_cv_nm_interface="BSD nm"
6797 echo "int some_variable = 0;" > conftest.$ac_ext
6798 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6799 (eval "$ac_compile" 2>conftest.err)
6800 cat conftest.err >&5
6801 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6802 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6803 cat conftest.err >&5
6804 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6805 cat conftest.out >&5
6806 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6807 lt_cv_nm_interface="MS dumpbin"
6808 fi
6809 rm -f conftest*
6810 fi
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6812 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6813
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6815 printf %s "checking whether ln -s works... " >&6; }
6816 LN_S=$as_ln_s
6817 if test "$LN_S" = "ln -s"; then
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6819 printf "%s\n" "yes" >&6; }
6820 else
6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6822 printf "%s\n" "no, using $LN_S" >&6; }
6823 fi
6824
6825 # find the maximum length of command line arguments
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6827 printf %s "checking the maximum length of command line arguments... " >&6; }
6828 if test ${lt_cv_sys_max_cmd_len+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else $as_nop
6832 i=0
6833 teststring=ABCD
6834
6835 case $build_os in
6836 msdosdjgpp*)
6837 # On DJGPP, this test can blow up pretty badly due to problems in libc
6838 # (any single argument exceeding 2000 bytes causes a buffer overrun
6839 # during glob expansion). Even if it were fixed, the result of this
6840 # check would be larger than it should be.
6841 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6842 ;;
6843
6844 gnu*)
6845 # Under GNU Hurd, this test is not required because there is
6846 # no limit to the length of command line arguments.
6847 # Libtool will interpret -1 as no limit whatsoever
6848 lt_cv_sys_max_cmd_len=-1;
6849 ;;
6850
6851 cygwin* | mingw* | cegcc*)
6852 # On Win9x/ME, this test blows up -- it succeeds, but takes
6853 # about 5 minutes as the teststring grows exponentially.
6854 # Worse, since 9x/ME are not pre-emptively multitasking,
6855 # you end up with a "frozen" computer, even though with patience
6856 # the test eventually succeeds (with a max line length of 256k).
6857 # Instead, let's just punt: use the minimum linelength reported by
6858 # all of the supported platforms: 8192 (on NT/2K/XP).
6859 lt_cv_sys_max_cmd_len=8192;
6860 ;;
6861
6862 mint*)
6863 # On MiNT this can take a long time and run out of memory.
6864 lt_cv_sys_max_cmd_len=8192;
6865 ;;
6866
6867 amigaos*)
6868 # On AmigaOS with pdksh, this test takes hours, literally.
6869 # So we just punt and use a minimum line length of 8192.
6870 lt_cv_sys_max_cmd_len=8192;
6871 ;;
6872
6873 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6874 # This has been around since 386BSD, at least. Likely further.
6875 if test -x /sbin/sysctl; then
6876 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6877 elif test -x /usr/sbin/sysctl; then
6878 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6879 else
6880 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6881 fi
6882 # And add a safety zone
6883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6885 ;;
6886
6887 interix*)
6888 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6889 lt_cv_sys_max_cmd_len=196608
6890 ;;
6891
6892 os2*)
6893 # The test takes a long time on OS/2.
6894 lt_cv_sys_max_cmd_len=8192
6895 ;;
6896
6897 osf*)
6898 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6899 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6900 # nice to cause kernel panics so lets avoid the loop below.
6901 # First set a reasonable default.
6902 lt_cv_sys_max_cmd_len=16384
6903 #
6904 if test -x /sbin/sysconfig; then
6905 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6906 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6907 esac
6908 fi
6909 ;;
6910 sco3.2v5*)
6911 lt_cv_sys_max_cmd_len=102400
6912 ;;
6913 sysv5* | sco5v6* | sysv4.2uw2*)
6914 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6915 if test -n "$kargmax"; then
6916 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6917 else
6918 lt_cv_sys_max_cmd_len=32768
6919 fi
6920 ;;
6921 *)
6922 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6923 if test -n "$lt_cv_sys_max_cmd_len" && \
6924 test undefined != "$lt_cv_sys_max_cmd_len"; then
6925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6927 else
6928 # Make teststring a little bigger before we do anything with it.
6929 # a 1K string should be a reasonable start.
6930 for i in 1 2 3 4 5 6 7 8; do
6931 teststring=$teststring$teststring
6932 done
6933 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6934 # If test is not a shell built-in, we'll probably end up computing a
6935 # maximum length that is only half of the actual maximum length, but
6936 # we can't tell.
6937 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6938 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6939 test 17 != "$i" # 1/2 MB should be enough
6940 do
6941 i=`expr $i + 1`
6942 teststring=$teststring$teststring
6943 done
6944 # Only check the string length outside the loop.
6945 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6946 teststring=
6947 # Add a significant safety factor because C++ compilers can tack on
6948 # massive amounts of additional arguments before passing them to the
6949 # linker. It appears as though 1/2 is a usable value.
6950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6951 fi
6952 ;;
6953 esac
6954
6955 fi
6956
6957 if test -n "$lt_cv_sys_max_cmd_len"; then
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6959 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6960 else
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6962 printf "%s\n" "none" >&6; }
6963 fi
6964 max_cmd_len=$lt_cv_sys_max_cmd_len
6965
6966
6967
6968
6969
6970
6971 : ${CP="cp -f"}
6972 : ${MV="mv -f"}
6973 : ${RM="rm -f"}
6974
6975 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6976 lt_unset=unset
6977 else
6978 lt_unset=false
6979 fi
6980
6981
6982
6983
6984
6985 # test EBCDIC or ASCII
6986 case `echo X|tr X '\101'` in
6987 A) # ASCII based system
6988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6989 lt_SP2NL='tr \040 \012'
6990 lt_NL2SP='tr \015\012 \040\040'
6991 ;;
6992 *) # EBCDIC based system
6993 lt_SP2NL='tr \100 \n'
6994 lt_NL2SP='tr \r\n \100\100'
6995 ;;
6996 esac
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7007 printf %s "checking how to convert $build file names to $host format... " >&6; }
7008 if test ${lt_cv_to_host_file_cmd+y}
7009 then :
7010 printf %s "(cached) " >&6
7011 else $as_nop
7012 case $host in
7013 *-*-mingw* )
7014 case $build in
7015 *-*-mingw* ) # actually msys
7016 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7017 ;;
7018 *-*-cygwin* )
7019 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7020 ;;
7021 * ) # otherwise, assume *nix
7022 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7023 ;;
7024 esac
7025 ;;
7026 *-*-cygwin* )
7027 case $build in
7028 *-*-mingw* ) # actually msys
7029 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7030 ;;
7031 *-*-cygwin* )
7032 lt_cv_to_host_file_cmd=func_convert_file_noop
7033 ;;
7034 * ) # otherwise, assume *nix
7035 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7036 ;;
7037 esac
7038 ;;
7039 * ) # unhandled hosts (and "normal" native builds)
7040 lt_cv_to_host_file_cmd=func_convert_file_noop
7041 ;;
7042 esac
7043
7044 fi
7045
7046 to_host_file_cmd=$lt_cv_to_host_file_cmd
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7048 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7049
7050
7051
7052
7053
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7055 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7056 if test ${lt_cv_to_tool_file_cmd+y}
7057 then :
7058 printf %s "(cached) " >&6
7059 else $as_nop
7060 #assume ordinary cross tools, or native build.
7061 lt_cv_to_tool_file_cmd=func_convert_file_noop
7062 case $host in
7063 *-*-mingw* )
7064 case $build in
7065 *-*-mingw* ) # actually msys
7066 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7067 ;;
7068 esac
7069 ;;
7070 esac
7071
7072 fi
7073
7074 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7076 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7077
7078
7079
7080
7081
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7083 printf %s "checking for $LD option to reload object files... " >&6; }
7084 if test ${lt_cv_ld_reload_flag+y}
7085 then :
7086 printf %s "(cached) " >&6
7087 else $as_nop
7088 lt_cv_ld_reload_flag='-r'
7089 fi
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7091 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7092 reload_flag=$lt_cv_ld_reload_flag
7093 case $reload_flag in
7094 "" | " "*) ;;
7095 *) reload_flag=" $reload_flag" ;;
7096 esac
7097 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7098 case $host_os in
7099 cygwin* | mingw* | pw32* | cegcc*)
7100 if test yes != "$GCC"; then
7101 reload_cmds=false
7102 fi
7103 ;;
7104 darwin*)
7105 if test yes = "$GCC"; then
7106 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7107 else
7108 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7109 fi
7110 ;;
7111 esac
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}file; ac_word=$2
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 printf %s "checking for $ac_word... " >&6; }
7126 if test ${ac_cv_prog_FILECMD+y}
7127 then :
7128 printf %s "(cached) " >&6
7129 else $as_nop
7130 if test -n "$FILECMD"; then
7131 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136 IFS=$as_save_IFS
7137 case $as_dir in #(((
7138 '') as_dir=./ ;;
7139 */) ;;
7140 *) as_dir=$as_dir/ ;;
7141 esac
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 FILECMD=$ac_cv_prog_FILECMD
7155 if test -n "$FILECMD"; then
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7157 printf "%s\n" "$FILECMD" >&6; }
7158 else
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 printf "%s\n" "no" >&6; }
7161 fi
7162
7163
7164 fi
7165 if test -z "$ac_cv_prog_FILECMD"; then
7166 ac_ct_FILECMD=$FILECMD
7167 # Extract the first word of "file", so it can be a program name with args.
7168 set dummy file; ac_word=$2
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 printf %s "checking for $ac_word... " >&6; }
7171 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7172 then :
7173 printf %s "(cached) " >&6
7174 else $as_nop
7175 if test -n "$ac_ct_FILECMD"; then
7176 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 case $as_dir in #(((
7183 '') as_dir=./ ;;
7184 */) ;;
7185 *) as_dir=$as_dir/ ;;
7186 esac
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_FILECMD="file"
7190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197 fi
7198 fi
7199 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7200 if test -n "$ac_ct_FILECMD"; then
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7202 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7203 else
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 printf "%s\n" "no" >&6; }
7206 fi
7207
7208 if test "x$ac_ct_FILECMD" = x; then
7209 FILECMD=":"
7210 else
7211 case $cross_compiling:$ac_tool_warned in
7212 yes:)
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7214 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7215 ac_tool_warned=yes ;;
7216 esac
7217 FILECMD=$ac_ct_FILECMD
7218 fi
7219 else
7220 FILECMD="$ac_cv_prog_FILECMD"
7221 fi
7222
7223
7224
7225
7226
7227
7228
7229 if test -n "$ac_tool_prefix"; then
7230 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 printf %s "checking for $ac_word... " >&6; }
7234 if test ${ac_cv_prog_OBJDUMP+y}
7235 then :
7236 printf %s "(cached) " >&6
7237 else $as_nop
7238 if test -n "$OBJDUMP"; then
7239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 case $as_dir in #(((
7246 '') as_dir=./ ;;
7247 */) ;;
7248 *) as_dir=$as_dir/ ;;
7249 esac
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 OBJDUMP=$ac_cv_prog_OBJDUMP
7263 if test -n "$OBJDUMP"; then
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7265 printf "%s\n" "$OBJDUMP" >&6; }
7266 else
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 printf "%s\n" "no" >&6; }
7269 fi
7270
7271
7272 fi
7273 if test -z "$ac_cv_prog_OBJDUMP"; then
7274 ac_ct_OBJDUMP=$OBJDUMP
7275 # Extract the first word of "objdump", so it can be a program name with args.
7276 set dummy objdump; ac_word=$2
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 printf %s "checking for $ac_word... " >&6; }
7279 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7280 then :
7281 printf %s "(cached) " >&6
7282 else $as_nop
7283 if test -n "$ac_ct_OBJDUMP"; then
7284 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 case $as_dir in #(((
7291 '') as_dir=./ ;;
7292 */) ;;
7293 *) as_dir=$as_dir/ ;;
7294 esac
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7297 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7308 if test -n "$ac_ct_OBJDUMP"; then
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7310 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7311 else
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 printf "%s\n" "no" >&6; }
7314 fi
7315
7316 if test "x$ac_ct_OBJDUMP" = x; then
7317 OBJDUMP="false"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325 OBJDUMP=$ac_ct_OBJDUMP
7326 fi
7327 else
7328 OBJDUMP="$ac_cv_prog_OBJDUMP"
7329 fi
7330
7331 test -z "$OBJDUMP" && OBJDUMP=objdump
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7342 printf %s "checking how to recognize dependent libraries... " >&6; }
7343 if test ${lt_cv_deplibs_check_method+y}
7344 then :
7345 printf %s "(cached) " >&6
7346 else $as_nop
7347 lt_cv_file_magic_cmd='$MAGIC_CMD'
7348 lt_cv_file_magic_test_file=
7349 lt_cv_deplibs_check_method='unknown'
7350 # Need to set the preceding variable on all platforms that support
7351 # interlibrary dependencies.
7352 # 'none' -- dependencies not supported.
7353 # 'unknown' -- same as none, but documents that we really don't know.
7354 # 'pass_all' -- all dependencies passed with no checks.
7355 # 'test_compile' -- check by making test program.
7356 # 'file_magic [[regex]]' -- check by looking for files in library path
7357 # that responds to the $file_magic_cmd with a given extended regex.
7358 # If you have 'file' or equivalent on your system and you're not sure
7359 # whether 'pass_all' will *always* work, you probably want this one.
7360
7361 case $host_os in
7362 aix[4-9]*)
7363 lt_cv_deplibs_check_method=pass_all
7364 ;;
7365
7366 beos*)
7367 lt_cv_deplibs_check_method=pass_all
7368 ;;
7369
7370 bsdi[45]*)
7371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7372 lt_cv_file_magic_cmd='$FILECMD -L'
7373 lt_cv_file_magic_test_file=/shlib/libc.so
7374 ;;
7375
7376 cygwin*)
7377 # func_win32_libid is a shell function defined in ltmain.sh
7378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7379 lt_cv_file_magic_cmd='func_win32_libid'
7380 ;;
7381
7382 mingw* | pw32*)
7383 # Base MSYS/MinGW do not provide the 'file' command needed by
7384 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7385 # unless we find 'file', for example because we are cross-compiling.
7386 if ( file / ) >/dev/null 2>&1; then
7387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7388 lt_cv_file_magic_cmd='func_win32_libid'
7389 else
7390 # Keep this pattern in sync with the one in func_win32_libid.
7391 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7392 lt_cv_file_magic_cmd='$OBJDUMP -f'
7393 fi
7394 ;;
7395
7396 cegcc*)
7397 # use the weaker test based on 'objdump'. See mingw*.
7398 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7399 lt_cv_file_magic_cmd='$OBJDUMP -f'
7400 ;;
7401
7402 darwin* | rhapsody*)
7403 lt_cv_deplibs_check_method=pass_all
7404 ;;
7405
7406 freebsd* | dragonfly* | midnightbsd*)
7407 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7408 case $host_cpu in
7409 i*86 )
7410 # Not sure whether the presence of OpenBSD here was a mistake.
7411 # Let's accept both of them until this is cleared up.
7412 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7413 lt_cv_file_magic_cmd=$FILECMD
7414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7415 ;;
7416 esac
7417 else
7418 lt_cv_deplibs_check_method=pass_all
7419 fi
7420 ;;
7421
7422 haiku*)
7423 lt_cv_deplibs_check_method=pass_all
7424 ;;
7425
7426 hpux10.20* | hpux11*)
7427 lt_cv_file_magic_cmd=$FILECMD
7428 case $host_cpu in
7429 ia64*)
7430 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7431 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7432 ;;
7433 hppa*64*)
7434 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]'
7435 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7436 ;;
7437 *)
7438 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7439 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7440 ;;
7441 esac
7442 ;;
7443
7444 interix[3-9]*)
7445 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7447 ;;
7448
7449 irix5* | irix6* | nonstopux*)
7450 case $LD in
7451 *-32|*"-32 ") libmagic=32-bit;;
7452 *-n32|*"-n32 ") libmagic=N32;;
7453 *-64|*"-64 ") libmagic=64-bit;;
7454 *) libmagic=never-match;;
7455 esac
7456 lt_cv_deplibs_check_method=pass_all
7457 ;;
7458
7459 # This must be glibc/ELF.
7460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7461 lt_cv_deplibs_check_method=pass_all
7462 ;;
7463
7464 netbsd*)
7465 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7467 else
7468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7469 fi
7470 ;;
7471
7472 newos6*)
7473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7474 lt_cv_file_magic_cmd=$FILECMD
7475 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7476 ;;
7477
7478 *nto* | *qnx*)
7479 lt_cv_deplibs_check_method=pass_all
7480 ;;
7481
7482 openbsd* | bitrig*)
7483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7485 else
7486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7487 fi
7488 ;;
7489
7490 osf3* | osf4* | osf5*)
7491 lt_cv_deplibs_check_method=pass_all
7492 ;;
7493
7494 rdos*)
7495 lt_cv_deplibs_check_method=pass_all
7496 ;;
7497
7498 solaris*)
7499 lt_cv_deplibs_check_method=pass_all
7500 ;;
7501
7502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7503 lt_cv_deplibs_check_method=pass_all
7504 ;;
7505
7506 sysv4 | sysv4.3*)
7507 case $host_vendor in
7508 motorola)
7509 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]'
7510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7511 ;;
7512 ncr)
7513 lt_cv_deplibs_check_method=pass_all
7514 ;;
7515 sequent)
7516 lt_cv_file_magic_cmd='/bin/file'
7517 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7518 ;;
7519 sni)
7520 lt_cv_file_magic_cmd='/bin/file'
7521 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7522 lt_cv_file_magic_test_file=/lib/libc.so
7523 ;;
7524 siemens)
7525 lt_cv_deplibs_check_method=pass_all
7526 ;;
7527 pc)
7528 lt_cv_deplibs_check_method=pass_all
7529 ;;
7530 esac
7531 ;;
7532
7533 tpf*)
7534 lt_cv_deplibs_check_method=pass_all
7535 ;;
7536 os2*)
7537 lt_cv_deplibs_check_method=pass_all
7538 ;;
7539 esac
7540
7541 fi
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7543 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7544
7545 file_magic_glob=
7546 want_nocaseglob=no
7547 if test "$build" = "$host"; then
7548 case $host_os in
7549 mingw* | pw32*)
7550 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7551 want_nocaseglob=yes
7552 else
7553 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7554 fi
7555 ;;
7556 esac
7557 fi
7558
7559 file_magic_cmd=$lt_cv_file_magic_cmd
7560 deplibs_check_method=$lt_cv_deplibs_check_method
7561 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 printf %s "checking for $ac_word... " >&6; }
7589 if test ${ac_cv_prog_DLLTOOL+y}
7590 then :
7591 printf %s "(cached) " >&6
7592 else $as_nop
7593 if test -n "$DLLTOOL"; then
7594 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 case $as_dir in #(((
7601 '') as_dir=./ ;;
7602 */) ;;
7603 *) as_dir=$as_dir/ ;;
7604 esac
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611 done
7612 done
7613 IFS=$as_save_IFS
7614
7615 fi
7616 fi
7617 DLLTOOL=$ac_cv_prog_DLLTOOL
7618 if test -n "$DLLTOOL"; then
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7620 printf "%s\n" "$DLLTOOL" >&6; }
7621 else
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 printf "%s\n" "no" >&6; }
7624 fi
7625
7626
7627 fi
7628 if test -z "$ac_cv_prog_DLLTOOL"; then
7629 ac_ct_DLLTOOL=$DLLTOOL
7630 # Extract the first word of "dlltool", so it can be a program name with args.
7631 set dummy dlltool; ac_word=$2
7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 printf %s "checking for $ac_word... " >&6; }
7634 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7635 then :
7636 printf %s "(cached) " >&6
7637 else $as_nop
7638 if test -n "$ac_ct_DLLTOOL"; then
7639 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644 IFS=$as_save_IFS
7645 case $as_dir in #(((
7646 '') as_dir=./ ;;
7647 */) ;;
7648 *) as_dir=$as_dir/ ;;
7649 esac
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656 done
7657 done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7663 if test -n "$ac_ct_DLLTOOL"; then
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7665 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7666 else
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 printf "%s\n" "no" >&6; }
7669 fi
7670
7671 if test "x$ac_ct_DLLTOOL" = x; then
7672 DLLTOOL="false"
7673 else
7674 case $cross_compiling:$ac_tool_warned in
7675 yes:)
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7679 esac
7680 DLLTOOL=$ac_ct_DLLTOOL
7681 fi
7682 else
7683 DLLTOOL="$ac_cv_prog_DLLTOOL"
7684 fi
7685
7686 test -z "$DLLTOOL" && DLLTOOL=dlltool
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7698 printf %s "checking how to associate runtime and link libraries... " >&6; }
7699 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7700 then :
7701 printf %s "(cached) " >&6
7702 else $as_nop
7703 lt_cv_sharedlib_from_linklib_cmd='unknown'
7704
7705 case $host_os in
7706 cygwin* | mingw* | pw32* | cegcc*)
7707 # two different shell functions defined in ltmain.sh;
7708 # decide which one to use based on capabilities of $DLLTOOL
7709 case `$DLLTOOL --help 2>&1` in
7710 *--identify-strict*)
7711 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7712 ;;
7713 *)
7714 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7715 ;;
7716 esac
7717 ;;
7718 *)
7719 # fallback: assume linklib IS sharedlib
7720 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7721 ;;
7722 esac
7723
7724 fi
7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7726 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7727 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7728 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7729
7730
7731
7732
7733
7734
7735
7736 if test -n "$ac_tool_prefix"; then
7737 for ac_prog in ar
7738 do
7739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 printf %s "checking for $ac_word... " >&6; }
7743 if test ${ac_cv_prog_AR+y}
7744 then :
7745 printf %s "(cached) " >&6
7746 else $as_nop
7747 if test -n "$AR"; then
7748 ac_cv_prog_AR="$AR" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753 IFS=$as_save_IFS
7754 case $as_dir in #(((
7755 '') as_dir=./ ;;
7756 */) ;;
7757 *) as_dir=$as_dir/ ;;
7758 esac
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 AR=$ac_cv_prog_AR
7772 if test -n "$AR"; then
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7774 printf "%s\n" "$AR" >&6; }
7775 else
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 printf "%s\n" "no" >&6; }
7778 fi
7779
7780
7781 test -n "$AR" && break
7782 done
7783 fi
7784 if test -z "$AR"; then
7785 ac_ct_AR=$AR
7786 for ac_prog in ar
7787 do
7788 # Extract the first word of "$ac_prog", so it can be a program name with args.
7789 set dummy $ac_prog; ac_word=$2
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 printf %s "checking for $ac_word... " >&6; }
7792 if test ${ac_cv_prog_ac_ct_AR+y}
7793 then :
7794 printf %s "(cached) " >&6
7795 else $as_nop
7796 if test -n "$ac_ct_AR"; then
7797 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 case $as_dir in #(((
7804 '') as_dir=./ ;;
7805 */) ;;
7806 *) as_dir=$as_dir/ ;;
7807 esac
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_ac_ct_AR="$ac_prog"
7811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814 done
7815 done
7816 IFS=$as_save_IFS
7817
7818 fi
7819 fi
7820 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7821 if test -n "$ac_ct_AR"; then
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7823 printf "%s\n" "$ac_ct_AR" >&6; }
7824 else
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 printf "%s\n" "no" >&6; }
7827 fi
7828
7829
7830 test -n "$ac_ct_AR" && break
7831 done
7832
7833 if test "x$ac_ct_AR" = x; then
7834 AR="false"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842 AR=$ac_ct_AR
7843 fi
7844 fi
7845
7846 : ${AR=ar}
7847
7848
7849
7850
7851
7852
7853 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7854 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7855 # higher priority because thats what people were doing historically (setting
7856 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7857 # variable obsoleted/removed.
7858
7859 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7860 lt_ar_flags=$AR_FLAGS
7861
7862
7863
7864
7865
7866
7867 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7868 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7869
7870
7871
7872
7873
7874
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7876 printf %s "checking for archiver @FILE support... " >&6; }
7877 if test ${lt_cv_ar_at_file+y}
7878 then :
7879 printf %s "(cached) " >&6
7880 else $as_nop
7881 lt_cv_ar_at_file=no
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884
7885 int
7886 main (void)
7887 {
7888
7889 ;
7890 return 0;
7891 }
7892 _ACEOF
7893 if ac_fn_c_try_compile "$LINENO"
7894 then :
7895 echo conftest.$ac_objext > conftest.lst
7896 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7898 (eval $lt_ar_try) 2>&5
7899 ac_status=$?
7900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901 test $ac_status = 0; }
7902 if test 0 -eq "$ac_status"; then
7903 # Ensure the archiver fails upon bogus file names.
7904 rm -f conftest.$ac_objext libconftest.a
7905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7906 (eval $lt_ar_try) 2>&5
7907 ac_status=$?
7908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909 test $ac_status = 0; }
7910 if test 0 -ne "$ac_status"; then
7911 lt_cv_ar_at_file=@
7912 fi
7913 fi
7914 rm -f conftest.* libconftest.a
7915
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7918
7919 fi
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7921 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7922
7923 if test no = "$lt_cv_ar_at_file"; then
7924 archiver_list_spec=
7925 else
7926 archiver_list_spec=$lt_cv_ar_at_file
7927 fi
7928
7929
7930
7931
7932
7933
7934
7935 if test -n "$ac_tool_prefix"; then
7936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7937 set dummy ${ac_tool_prefix}strip; ac_word=$2
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 printf %s "checking for $ac_word... " >&6; }
7940 if test ${ac_cv_prog_STRIP+y}
7941 then :
7942 printf %s "(cached) " >&6
7943 else $as_nop
7944 if test -n "$STRIP"; then
7945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950 IFS=$as_save_IFS
7951 case $as_dir in #(((
7952 '') as_dir=./ ;;
7953 */) ;;
7954 *) as_dir=$as_dir/ ;;
7955 esac
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962 done
7963 done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 STRIP=$ac_cv_prog_STRIP
7969 if test -n "$STRIP"; then
7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7971 printf "%s\n" "$STRIP" >&6; }
7972 else
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 printf "%s\n" "no" >&6; }
7975 fi
7976
7977
7978 fi
7979 if test -z "$ac_cv_prog_STRIP"; then
7980 ac_ct_STRIP=$STRIP
7981 # Extract the first word of "strip", so it can be a program name with args.
7982 set dummy strip; ac_word=$2
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 printf %s "checking for $ac_word... " >&6; }
7985 if test ${ac_cv_prog_ac_ct_STRIP+y}
7986 then :
7987 printf %s "(cached) " >&6
7988 else $as_nop
7989 if test -n "$ac_ct_STRIP"; then
7990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995 IFS=$as_save_IFS
7996 case $as_dir in #(((
7997 '') as_dir=./ ;;
7998 */) ;;
7999 *) as_dir=$as_dir/ ;;
8000 esac
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8003 ac_cv_prog_ac_ct_STRIP="strip"
8004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007 done
8008 done
8009 IFS=$as_save_IFS
8010
8011 fi
8012 fi
8013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8014 if test -n "$ac_ct_STRIP"; then
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8016 printf "%s\n" "$ac_ct_STRIP" >&6; }
8017 else
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 printf "%s\n" "no" >&6; }
8020 fi
8021
8022 if test "x$ac_ct_STRIP" = x; then
8023 STRIP=":"
8024 else
8025 case $cross_compiling:$ac_tool_warned in
8026 yes:)
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8029 ac_tool_warned=yes ;;
8030 esac
8031 STRIP=$ac_ct_STRIP
8032 fi
8033 else
8034 STRIP="$ac_cv_prog_STRIP"
8035 fi
8036
8037 test -z "$STRIP" && STRIP=:
8038
8039
8040
8041
8042
8043
8044 if test -n "$ac_tool_prefix"; then
8045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 printf %s "checking for $ac_word... " >&6; }
8049 if test ${ac_cv_prog_RANLIB+y}
8050 then :
8051 printf %s "(cached) " >&6
8052 else $as_nop
8053 if test -n "$RANLIB"; then
8054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059 IFS=$as_save_IFS
8060 case $as_dir in #(((
8061 '') as_dir=./ ;;
8062 */) ;;
8063 *) as_dir=$as_dir/ ;;
8064 esac
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071 done
8072 done
8073 IFS=$as_save_IFS
8074
8075 fi
8076 fi
8077 RANLIB=$ac_cv_prog_RANLIB
8078 if test -n "$RANLIB"; then
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8080 printf "%s\n" "$RANLIB" >&6; }
8081 else
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 printf "%s\n" "no" >&6; }
8084 fi
8085
8086
8087 fi
8088 if test -z "$ac_cv_prog_RANLIB"; then
8089 ac_ct_RANLIB=$RANLIB
8090 # Extract the first word of "ranlib", so it can be a program name with args.
8091 set dummy ranlib; ac_word=$2
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 printf %s "checking for $ac_word... " >&6; }
8094 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8095 then :
8096 printf %s "(cached) " >&6
8097 else $as_nop
8098 if test -n "$ac_ct_RANLIB"; then
8099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8103 do
8104 IFS=$as_save_IFS
8105 case $as_dir in #(((
8106 '') as_dir=./ ;;
8107 */) ;;
8108 *) as_dir=$as_dir/ ;;
8109 esac
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8112 ac_cv_prog_ac_ct_RANLIB="ranlib"
8113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8114 break 2
8115 fi
8116 done
8117 done
8118 IFS=$as_save_IFS
8119
8120 fi
8121 fi
8122 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8123 if test -n "$ac_ct_RANLIB"; then
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8125 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8126 else
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 printf "%s\n" "no" >&6; }
8129 fi
8130
8131 if test "x$ac_ct_RANLIB" = x; then
8132 RANLIB=":"
8133 else
8134 case $cross_compiling:$ac_tool_warned in
8135 yes:)
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8138 ac_tool_warned=yes ;;
8139 esac
8140 RANLIB=$ac_ct_RANLIB
8141 fi
8142 else
8143 RANLIB="$ac_cv_prog_RANLIB"
8144 fi
8145
8146 test -z "$RANLIB" && RANLIB=:
8147
8148
8149
8150
8151
8152
8153 # Determine commands to create old-style static archives.
8154 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8155 old_postinstall_cmds='chmod 644 $oldlib'
8156 old_postuninstall_cmds=
8157
8158 if test -n "$RANLIB"; then
8159 case $host_os in
8160 bitrig* | openbsd*)
8161 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8162 ;;
8163 *)
8164 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8165 ;;
8166 esac
8167 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8168 fi
8169
8170 case $host_os in
8171 darwin*)
8172 lock_old_archive_extraction=yes ;;
8173 *)
8174 lock_old_archive_extraction=no ;;
8175 esac
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215 # If no C compiler was specified, use CC.
8216 LTCC=${LTCC-"$CC"}
8217
8218 # If no C compiler flags were specified, use CFLAGS.
8219 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8220
8221 # Allow CC to be a program name with arguments.
8222 compiler=$CC
8223
8224
8225 # Check for command to grab the raw symbol name followed by C symbol from nm.
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8227 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8228 if test ${lt_cv_sys_global_symbol_pipe+y}
8229 then :
8230 printf %s "(cached) " >&6
8231 else $as_nop
8232
8233 # These are sane defaults that work on at least a few old systems.
8234 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8235
8236 # Character class describing NM global symbol codes.
8237 symcode='[BCDEGRST]'
8238
8239 # Regexp to match symbols that can be accessed directly from C.
8240 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8241
8242 # Define system-specific variables.
8243 case $host_os in
8244 aix*)
8245 symcode='[BCDT]'
8246 ;;
8247 cygwin* | mingw* | pw32* | cegcc*)
8248 symcode='[ABCDGISTW]'
8249 ;;
8250 hpux*)
8251 if test ia64 = "$host_cpu"; then
8252 symcode='[ABCDEGRST]'
8253 fi
8254 ;;
8255 irix* | nonstopux*)
8256 symcode='[BCDEGRST]'
8257 ;;
8258 osf*)
8259 symcode='[BCDEGQRST]'
8260 ;;
8261 solaris*)
8262 symcode='[BDRT]'
8263 ;;
8264 sco3.2v5*)
8265 symcode='[DT]'
8266 ;;
8267 sysv4.2uw2*)
8268 symcode='[DT]'
8269 ;;
8270 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8271 symcode='[ABDT]'
8272 ;;
8273 sysv4)
8274 symcode='[DFNSTU]'
8275 ;;
8276 esac
8277
8278 # If we're using GNU nm, then use its standard symbol codes.
8279 case `$NM -V 2>&1` in
8280 *GNU* | *'with BFD'*)
8281 symcode='[ABCDGIRSTW]' ;;
8282 esac
8283
8284 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8285 # Gets list of data symbols to import.
8286 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8287 # Adjust the below global symbol transforms to fixup imported variables.
8288 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8289 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8290 lt_c_name_lib_hook="\
8291 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8292 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8293 else
8294 # Disable hooks by default.
8295 lt_cv_sys_global_symbol_to_import=
8296 lt_cdecl_hook=
8297 lt_c_name_hook=
8298 lt_c_name_lib_hook=
8299 fi
8300
8301 # Transform an extracted symbol line into a proper C declaration.
8302 # Some systems (esp. on ia64) link data and code symbols differently,
8303 # so use this general approach.
8304 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8305 $lt_cdecl_hook\
8306 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8307 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8308
8309 # Transform an extracted symbol line into symbol name and symbol address
8310 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8311 $lt_c_name_hook\
8312 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8313 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8314
8315 # Transform an extracted symbol line into symbol name with lib prefix and
8316 # symbol address.
8317 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8318 $lt_c_name_lib_hook\
8319 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8320 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8321 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8322
8323 # Handle CRLF in mingw tool chain
8324 opt_cr=
8325 case $build_os in
8326 mingw*)
8327 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8328 ;;
8329 esac
8330
8331 # Try without a prefix underscore, then with it.
8332 for ac_symprfx in "" "_"; do
8333
8334 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8335 symxfrm="\\1 $ac_symprfx\\2 \\2"
8336
8337 # Write the raw and C identifiers.
8338 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8339 # Fake it for dumpbin and say T for any non-static function,
8340 # D for any global variable and I for any imported variable.
8341 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8342 # which start with @ or ?.
8343 lt_cv_sys_global_symbol_pipe="$AWK '"\
8344 " {last_section=section; section=\$ 3};"\
8345 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8346 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8347 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8348 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8349 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8350 " \$ 0!~/External *\|/{next};"\
8351 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8352 " {if(hide[section]) next};"\
8353 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8354 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8355 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8356 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8357 " ' prfx=^$ac_symprfx"
8358 else
8359 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8360 fi
8361 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8362
8363 # Check to see that the pipe works correctly.
8364 pipe_works=no
8365
8366 rm -f conftest*
8367 cat > conftest.$ac_ext <<_LT_EOF
8368 #ifdef __cplusplus
8369 extern "C" {
8370 #endif
8371 char nm_test_var;
8372 void nm_test_func(void);
8373 void nm_test_func(void){}
8374 #ifdef __cplusplus
8375 }
8376 #endif
8377 int main(){nm_test_var='a';nm_test_func();return(0);}
8378 _LT_EOF
8379
8380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8381 (eval $ac_compile) 2>&5
8382 ac_status=$?
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8384 test $ac_status = 0; }; then
8385 # Now try to grab the symbols.
8386 nlist=conftest.nm
8387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8389 ac_status=$?
8390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391 test $ac_status = 0; } && test -s "$nlist"; then
8392 # Try sorting and uniquifying the output.
8393 if sort "$nlist" | uniq > "$nlist"T; then
8394 mv -f "$nlist"T "$nlist"
8395 else
8396 rm -f "$nlist"T
8397 fi
8398
8399 # Make sure that we snagged all the symbols we need.
8400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8402 cat <<_LT_EOF > conftest.$ac_ext
8403 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8404 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8405 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8406 relocations are performed -- see ld's documentation on pseudo-relocs. */
8407 # define LT_DLSYM_CONST
8408 #elif defined __osf__
8409 /* This system does not cope well with relocations in const data. */
8410 # define LT_DLSYM_CONST
8411 #else
8412 # define LT_DLSYM_CONST const
8413 #endif
8414
8415 #ifdef __cplusplus
8416 extern "C" {
8417 #endif
8418
8419 _LT_EOF
8420 # Now generate the symbol file.
8421 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8422
8423 cat <<_LT_EOF >> conftest.$ac_ext
8424
8425 /* The mapping between symbol names and symbols. */
8426 LT_DLSYM_CONST struct {
8427 const char *name;
8428 void *address;
8429 }
8430 lt__PROGRAM__LTX_preloaded_symbols[] =
8431 {
8432 { "@PROGRAM@", (void *) 0 },
8433 _LT_EOF
8434 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8435 cat <<\_LT_EOF >> conftest.$ac_ext
8436 {0, (void *) 0}
8437 };
8438
8439 /* This works around a problem in FreeBSD linker */
8440 #ifdef FREEBSD_WORKAROUND
8441 static const void *lt_preloaded_setup() {
8442 return lt__PROGRAM__LTX_preloaded_symbols;
8443 }
8444 #endif
8445
8446 #ifdef __cplusplus
8447 }
8448 #endif
8449 _LT_EOF
8450 # Now try linking the two files.
8451 mv conftest.$ac_objext conftstm.$ac_objext
8452 lt_globsym_save_LIBS=$LIBS
8453 lt_globsym_save_CFLAGS=$CFLAGS
8454 LIBS=conftstm.$ac_objext
8455 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8457 (eval $ac_link) 2>&5
8458 ac_status=$?
8459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8461 pipe_works=yes
8462 fi
8463 LIBS=$lt_globsym_save_LIBS
8464 CFLAGS=$lt_globsym_save_CFLAGS
8465 else
8466 echo "cannot find nm_test_func in $nlist" >&5
8467 fi
8468 else
8469 echo "cannot find nm_test_var in $nlist" >&5
8470 fi
8471 else
8472 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8473 fi
8474 else
8475 echo "$progname: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 fi
8478 rm -rf conftest* conftst*
8479
8480 # Do not use the global_symbol_pipe unless it works.
8481 if test yes = "$pipe_works"; then
8482 break
8483 else
8484 lt_cv_sys_global_symbol_pipe=
8485 fi
8486 done
8487
8488 fi
8489
8490 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8491 lt_cv_sys_global_symbol_to_cdecl=
8492 fi
8493 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8495 printf "%s\n" "failed" >&6; }
8496 else
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8498 printf "%s\n" "ok" >&6; }
8499 fi
8500
8501 # Response file support.
8502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8503 nm_file_list_spec='@'
8504 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8505 nm_file_list_spec='@'
8506 fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8545 printf %s "checking for sysroot... " >&6; }
8546
8547 # Check whether --with-sysroot was given.
8548 if test ${with_sysroot+y}
8549 then :
8550 withval=$with_sysroot;
8551 else $as_nop
8552 with_sysroot=no
8553 fi
8554
8555
8556 lt_sysroot=
8557 case $with_sysroot in #(
8558 yes)
8559 if test yes = "$GCC"; then
8560 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8561 fi
8562 ;; #(
8563 /*)
8564 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8565 ;; #(
8566 no|'')
8567 ;; #(
8568 *)
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8570 printf "%s\n" "$with_sysroot" >&6; }
8571 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8572 ;;
8573 esac
8574
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8576 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8577
8578
8579
8580
8581
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8583 printf %s "checking for a working dd... " >&6; }
8584 if test ${ac_cv_path_lt_DD+y}
8585 then :
8586 printf %s "(cached) " >&6
8587 else $as_nop
8588 printf 0123456789abcdef0123456789abcdef >conftest.i
8589 cat conftest.i conftest.i >conftest2.i
8590 : ${lt_DD:=$DD}
8591 if test -z "$lt_DD"; then
8592 ac_path_lt_DD_found=false
8593 # Loop through the user's path and test for each of PROGNAME-LIST
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597 IFS=$as_save_IFS
8598 case $as_dir in #(((
8599 '') as_dir=./ ;;
8600 */) ;;
8601 *) as_dir=$as_dir/ ;;
8602 esac
8603 for ac_prog in dd
8604 do
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8607 as_fn_executable_p "$ac_path_lt_DD" || continue
8608 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8609 cmp -s conftest.i conftest.out \
8610 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8611 fi
8612 $ac_path_lt_DD_found && break 3
8613 done
8614 done
8615 done
8616 IFS=$as_save_IFS
8617 if test -z "$ac_cv_path_lt_DD"; then
8618 :
8619 fi
8620 else
8621 ac_cv_path_lt_DD=$lt_DD
8622 fi
8623
8624 rm -f conftest.i conftest2.i conftest.out
8625 fi
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8627 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8628
8629
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8631 printf %s "checking how to truncate binary pipes... " >&6; }
8632 if test ${lt_cv_truncate_bin+y}
8633 then :
8634 printf %s "(cached) " >&6
8635 else $as_nop
8636 printf 0123456789abcdef0123456789abcdef >conftest.i
8637 cat conftest.i conftest.i >conftest2.i
8638 lt_cv_truncate_bin=
8639 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8640 cmp -s conftest.i conftest.out \
8641 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8642 fi
8643 rm -f conftest.i conftest2.i conftest.out
8644 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8645 fi
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8647 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8648
8649
8650
8651
8652
8653
8654
8655 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8656 func_cc_basename ()
8657 {
8658 for cc_temp in $*""; do
8659 case $cc_temp in
8660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8662 \-*) ;;
8663 *) break;;
8664 esac
8665 done
8666 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8667 }
8668
8669 # Check whether --enable-libtool-lock was given.
8670 if test ${enable_libtool_lock+y}
8671 then :
8672 enableval=$enable_libtool_lock;
8673 fi
8674
8675 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8676
8677 # Some flags need to be propagated to the compiler or linker for good
8678 # libtool support.
8679 case $host in
8680 ia64-*-hpux*)
8681 # Find out what ABI is being produced by ac_compile, and set mode
8682 # options accordingly.
8683 echo 'int i;' > conftest.$ac_ext
8684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8685 (eval $ac_compile) 2>&5
8686 ac_status=$?
8687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8688 test $ac_status = 0; }; then
8689 case `$FILECMD conftest.$ac_objext` in
8690 *ELF-32*)
8691 HPUX_IA64_MODE=32
8692 ;;
8693 *ELF-64*)
8694 HPUX_IA64_MODE=64
8695 ;;
8696 esac
8697 fi
8698 rm -rf conftest*
8699 ;;
8700 *-*-irix6*)
8701 # Find out what ABI is being produced by ac_compile, and set linker
8702 # options accordingly.
8703 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8705 (eval $ac_compile) 2>&5
8706 ac_status=$?
8707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8708 test $ac_status = 0; }; then
8709 if test yes = "$lt_cv_prog_gnu_ld"; then
8710 case `$FILECMD conftest.$ac_objext` in
8711 *32-bit*)
8712 LD="${LD-ld} -melf32bsmip"
8713 ;;
8714 *N32*)
8715 LD="${LD-ld} -melf32bmipn32"
8716 ;;
8717 *64-bit*)
8718 LD="${LD-ld} -melf64bmip"
8719 ;;
8720 esac
8721 else
8722 case `$FILECMD conftest.$ac_objext` in
8723 *32-bit*)
8724 LD="${LD-ld} -32"
8725 ;;
8726 *N32*)
8727 LD="${LD-ld} -n32"
8728 ;;
8729 *64-bit*)
8730 LD="${LD-ld} -64"
8731 ;;
8732 esac
8733 fi
8734 fi
8735 rm -rf conftest*
8736 ;;
8737
8738 mips64*-*linux*)
8739 # Find out what ABI is being produced by ac_compile, and set linker
8740 # options accordingly.
8741 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8743 (eval $ac_compile) 2>&5
8744 ac_status=$?
8745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8746 test $ac_status = 0; }; then
8747 emul=elf
8748 case `$FILECMD conftest.$ac_objext` in
8749 *32-bit*)
8750 emul="${emul}32"
8751 ;;
8752 *64-bit*)
8753 emul="${emul}64"
8754 ;;
8755 esac
8756 case `$FILECMD conftest.$ac_objext` in
8757 *MSB*)
8758 emul="${emul}btsmip"
8759 ;;
8760 *LSB*)
8761 emul="${emul}ltsmip"
8762 ;;
8763 esac
8764 case `$FILECMD conftest.$ac_objext` in
8765 *N32*)
8766 emul="${emul}n32"
8767 ;;
8768 esac
8769 LD="${LD-ld} -m $emul"
8770 fi
8771 rm -rf conftest*
8772 ;;
8773
8774 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8775 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8776 # Find out what ABI is being produced by ac_compile, and set linker
8777 # options accordingly. Note that the listed cases only cover the
8778 # situations where additional linker options are needed (such as when
8779 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8780 # vice versa); the common cases where no linker options are needed do
8781 # not appear in the list.
8782 echo 'int i;' > conftest.$ac_ext
8783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8784 (eval $ac_compile) 2>&5
8785 ac_status=$?
8786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
8788 case `$FILECMD conftest.o` in
8789 *32-bit*)
8790 case $host in
8791 x86_64-*kfreebsd*-gnu)
8792 LD="${LD-ld} -m elf_i386_fbsd"
8793 ;;
8794 x86_64-*linux*)
8795 case `$FILECMD conftest.o` in
8796 *x86-64*)
8797 LD="${LD-ld} -m elf32_x86_64"
8798 ;;
8799 *)
8800 LD="${LD-ld} -m elf_i386"
8801 ;;
8802 esac
8803 ;;
8804 powerpc64le-*linux*)
8805 LD="${LD-ld} -m elf32lppclinux"
8806 ;;
8807 powerpc64-*linux*)
8808 LD="${LD-ld} -m elf32ppclinux"
8809 ;;
8810 s390x-*linux*)
8811 LD="${LD-ld} -m elf_s390"
8812 ;;
8813 sparc64-*linux*)
8814 LD="${LD-ld} -m elf32_sparc"
8815 ;;
8816 esac
8817 ;;
8818 *64-bit*)
8819 case $host in
8820 x86_64-*kfreebsd*-gnu)
8821 LD="${LD-ld} -m elf_x86_64_fbsd"
8822 ;;
8823 x86_64-*linux*)
8824 LD="${LD-ld} -m elf_x86_64"
8825 ;;
8826 powerpcle-*linux*)
8827 LD="${LD-ld} -m elf64lppc"
8828 ;;
8829 powerpc-*linux*)
8830 LD="${LD-ld} -m elf64ppc"
8831 ;;
8832 s390*-*linux*|s390*-*tpf*)
8833 LD="${LD-ld} -m elf64_s390"
8834 ;;
8835 sparc*-*linux*)
8836 LD="${LD-ld} -m elf64_sparc"
8837 ;;
8838 esac
8839 ;;
8840 esac
8841 fi
8842 rm -rf conftest*
8843 ;;
8844
8845 *-*-sco3.2v5*)
8846 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8847 SAVE_CFLAGS=$CFLAGS
8848 CFLAGS="$CFLAGS -belf"
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8850 printf %s "checking whether the C compiler needs -belf... " >&6; }
8851 if test ${lt_cv_cc_needs_belf+y}
8852 then :
8853 printf %s "(cached) " >&6
8854 else $as_nop
8855 ac_ext=c
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8860
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863
8864 int
8865 main (void)
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"
8873 then :
8874 lt_cv_cc_needs_belf=yes
8875 else $as_nop
8876 lt_cv_cc_needs_belf=no
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8879 conftest$ac_exeext conftest.$ac_ext
8880 ac_ext=c
8881 ac_cpp='$CPP $CPPFLAGS'
8882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
8886 fi
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8888 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8889 if test yes != "$lt_cv_cc_needs_belf"; then
8890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8891 CFLAGS=$SAVE_CFLAGS
8892 fi
8893 ;;
8894 *-*solaris*)
8895 # Find out what ABI is being produced by ac_compile, and set linker
8896 # options accordingly.
8897 echo 'int i;' > conftest.$ac_ext
8898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8899 (eval $ac_compile) 2>&5
8900 ac_status=$?
8901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8902 test $ac_status = 0; }; then
8903 case `$FILECMD conftest.o` in
8904 *64-bit*)
8905 case $lt_cv_prog_gnu_ld in
8906 yes*)
8907 case $host in
8908 i?86-*-solaris*|x86_64-*-solaris*)
8909 LD="${LD-ld} -m elf_x86_64"
8910 ;;
8911 sparc*-*-solaris*)
8912 LD="${LD-ld} -m elf64_sparc"
8913 ;;
8914 esac
8915 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8916 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8917 LD=${LD-ld}_sol2
8918 fi
8919 ;;
8920 *)
8921 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8922 LD="${LD-ld} -64"
8923 fi
8924 ;;
8925 esac
8926 ;;
8927 esac
8928 fi
8929 rm -rf conftest*
8930 ;;
8931 esac
8932
8933 need_locks=$enable_libtool_lock
8934
8935 if test -n "$ac_tool_prefix"; then
8936 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}mt; ac_word=$2
8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 printf %s "checking for $ac_word... " >&6; }
8940 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8941 then :
8942 printf %s "(cached) " >&6
8943 else $as_nop
8944 if test -n "$MANIFEST_TOOL"; then
8945 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8949 do
8950 IFS=$as_save_IFS
8951 case $as_dir in #(((
8952 '') as_dir=./ ;;
8953 */) ;;
8954 *) as_dir=$as_dir/ ;;
8955 esac
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8958 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8960 break 2
8961 fi
8962 done
8963 done
8964 IFS=$as_save_IFS
8965
8966 fi
8967 fi
8968 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8969 if test -n "$MANIFEST_TOOL"; then
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8971 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8972 else
8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 printf "%s\n" "no" >&6; }
8975 fi
8976
8977
8978 fi
8979 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8980 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8981 # Extract the first word of "mt", so it can be a program name with args.
8982 set dummy mt; ac_word=$2
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 printf %s "checking for $ac_word... " >&6; }
8985 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8986 then :
8987 printf %s "(cached) " >&6
8988 else $as_nop
8989 if test -n "$ac_ct_MANIFEST_TOOL"; then
8990 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8991 else
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8994 do
8995 IFS=$as_save_IFS
8996 case $as_dir in #(((
8997 '') as_dir=./ ;;
8998 */) ;;
8999 *) as_dir=$as_dir/ ;;
9000 esac
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9005 break 2
9006 fi
9007 done
9008 done
9009 IFS=$as_save_IFS
9010
9011 fi
9012 fi
9013 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9014 if test -n "$ac_ct_MANIFEST_TOOL"; then
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9016 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9017 else
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 printf "%s\n" "no" >&6; }
9020 fi
9021
9022 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9023 MANIFEST_TOOL=":"
9024 else
9025 case $cross_compiling:$ac_tool_warned in
9026 yes:)
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9029 ac_tool_warned=yes ;;
9030 esac
9031 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9032 fi
9033 else
9034 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9035 fi
9036
9037 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9039 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9040 if test ${lt_cv_path_mainfest_tool+y}
9041 then :
9042 printf %s "(cached) " >&6
9043 else $as_nop
9044 lt_cv_path_mainfest_tool=no
9045 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9046 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9047 cat conftest.err >&5
9048 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9049 lt_cv_path_mainfest_tool=yes
9050 fi
9051 rm -f conftest*
9052 fi
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9054 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9055 if test yes != "$lt_cv_path_mainfest_tool"; then
9056 MANIFEST_TOOL=:
9057 fi
9058
9059
9060
9061
9062
9063
9064 case $host_os in
9065 rhapsody* | darwin*)
9066 if test -n "$ac_tool_prefix"; then
9067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 printf %s "checking for $ac_word... " >&6; }
9071 if test ${ac_cv_prog_DSYMUTIL+y}
9072 then :
9073 printf %s "(cached) " >&6
9074 else $as_nop
9075 if test -n "$DSYMUTIL"; then
9076 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9077 else
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9080 do
9081 IFS=$as_save_IFS
9082 case $as_dir in #(((
9083 '') as_dir=./ ;;
9084 */) ;;
9085 *) as_dir=$as_dir/ ;;
9086 esac
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9089 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9091 break 2
9092 fi
9093 done
9094 done
9095 IFS=$as_save_IFS
9096
9097 fi
9098 fi
9099 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9100 if test -n "$DSYMUTIL"; then
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9102 printf "%s\n" "$DSYMUTIL" >&6; }
9103 else
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 printf "%s\n" "no" >&6; }
9106 fi
9107
9108
9109 fi
9110 if test -z "$ac_cv_prog_DSYMUTIL"; then
9111 ac_ct_DSYMUTIL=$DSYMUTIL
9112 # Extract the first word of "dsymutil", so it can be a program name with args.
9113 set dummy dsymutil; ac_word=$2
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 printf %s "checking for $ac_word... " >&6; }
9116 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9117 then :
9118 printf %s "(cached) " >&6
9119 else $as_nop
9120 if test -n "$ac_ct_DSYMUTIL"; then
9121 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9122 else
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9125 do
9126 IFS=$as_save_IFS
9127 case $as_dir in #(((
9128 '') as_dir=./ ;;
9129 */) ;;
9130 *) as_dir=$as_dir/ ;;
9131 esac
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9136 break 2
9137 fi
9138 done
9139 done
9140 IFS=$as_save_IFS
9141
9142 fi
9143 fi
9144 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9145 if test -n "$ac_ct_DSYMUTIL"; then
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9147 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9148 else
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 printf "%s\n" "no" >&6; }
9151 fi
9152
9153 if test "x$ac_ct_DSYMUTIL" = x; then
9154 DSYMUTIL=":"
9155 else
9156 case $cross_compiling:$ac_tool_warned in
9157 yes:)
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9159 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9160 ac_tool_warned=yes ;;
9161 esac
9162 DSYMUTIL=$ac_ct_DSYMUTIL
9163 fi
9164 else
9165 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9166 fi
9167
9168 if test -n "$ac_tool_prefix"; then
9169 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9170 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 printf %s "checking for $ac_word... " >&6; }
9173 if test ${ac_cv_prog_NMEDIT+y}
9174 then :
9175 printf %s "(cached) " >&6
9176 else $as_nop
9177 if test -n "$NMEDIT"; then
9178 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9179 else
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9182 do
9183 IFS=$as_save_IFS
9184 case $as_dir in #(((
9185 '') as_dir=./ ;;
9186 */) ;;
9187 *) as_dir=$as_dir/ ;;
9188 esac
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9191 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9193 break 2
9194 fi
9195 done
9196 done
9197 IFS=$as_save_IFS
9198
9199 fi
9200 fi
9201 NMEDIT=$ac_cv_prog_NMEDIT
9202 if test -n "$NMEDIT"; then
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9204 printf "%s\n" "$NMEDIT" >&6; }
9205 else
9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 printf "%s\n" "no" >&6; }
9208 fi
9209
9210
9211 fi
9212 if test -z "$ac_cv_prog_NMEDIT"; then
9213 ac_ct_NMEDIT=$NMEDIT
9214 # Extract the first word of "nmedit", so it can be a program name with args.
9215 set dummy nmedit; ac_word=$2
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217 printf %s "checking for $ac_word... " >&6; }
9218 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9219 then :
9220 printf %s "(cached) " >&6
9221 else $as_nop
9222 if test -n "$ac_ct_NMEDIT"; then
9223 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9224 else
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9227 do
9228 IFS=$as_save_IFS
9229 case $as_dir in #(((
9230 '') as_dir=./ ;;
9231 */) ;;
9232 *) as_dir=$as_dir/ ;;
9233 esac
9234 for ac_exec_ext in '' $ac_executable_extensions; do
9235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9236 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9238 break 2
9239 fi
9240 done
9241 done
9242 IFS=$as_save_IFS
9243
9244 fi
9245 fi
9246 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9247 if test -n "$ac_ct_NMEDIT"; then
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9249 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9250 else
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 printf "%s\n" "no" >&6; }
9253 fi
9254
9255 if test "x$ac_ct_NMEDIT" = x; then
9256 NMEDIT=":"
9257 else
9258 case $cross_compiling:$ac_tool_warned in
9259 yes:)
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9261 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9262 ac_tool_warned=yes ;;
9263 esac
9264 NMEDIT=$ac_ct_NMEDIT
9265 fi
9266 else
9267 NMEDIT="$ac_cv_prog_NMEDIT"
9268 fi
9269
9270 if test -n "$ac_tool_prefix"; then
9271 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9272 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274 printf %s "checking for $ac_word... " >&6; }
9275 if test ${ac_cv_prog_LIPO+y}
9276 then :
9277 printf %s "(cached) " >&6
9278 else $as_nop
9279 if test -n "$LIPO"; then
9280 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9281 else
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9284 do
9285 IFS=$as_save_IFS
9286 case $as_dir in #(((
9287 '') as_dir=./ ;;
9288 */) ;;
9289 *) as_dir=$as_dir/ ;;
9290 esac
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9293 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9295 break 2
9296 fi
9297 done
9298 done
9299 IFS=$as_save_IFS
9300
9301 fi
9302 fi
9303 LIPO=$ac_cv_prog_LIPO
9304 if test -n "$LIPO"; then
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9306 printf "%s\n" "$LIPO" >&6; }
9307 else
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 printf "%s\n" "no" >&6; }
9310 fi
9311
9312
9313 fi
9314 if test -z "$ac_cv_prog_LIPO"; then
9315 ac_ct_LIPO=$LIPO
9316 # Extract the first word of "lipo", so it can be a program name with args.
9317 set dummy lipo; ac_word=$2
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 printf %s "checking for $ac_word... " >&6; }
9320 if test ${ac_cv_prog_ac_ct_LIPO+y}
9321 then :
9322 printf %s "(cached) " >&6
9323 else $as_nop
9324 if test -n "$ac_ct_LIPO"; then
9325 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9326 else
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 for as_dir in $PATH
9329 do
9330 IFS=$as_save_IFS
9331 case $as_dir in #(((
9332 '') as_dir=./ ;;
9333 */) ;;
9334 *) as_dir=$as_dir/ ;;
9335 esac
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9338 ac_cv_prog_ac_ct_LIPO="lipo"
9339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9340 break 2
9341 fi
9342 done
9343 done
9344 IFS=$as_save_IFS
9345
9346 fi
9347 fi
9348 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9349 if test -n "$ac_ct_LIPO"; then
9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9351 printf "%s\n" "$ac_ct_LIPO" >&6; }
9352 else
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 printf "%s\n" "no" >&6; }
9355 fi
9356
9357 if test "x$ac_ct_LIPO" = x; then
9358 LIPO=":"
9359 else
9360 case $cross_compiling:$ac_tool_warned in
9361 yes:)
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9363 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9364 ac_tool_warned=yes ;;
9365 esac
9366 LIPO=$ac_ct_LIPO
9367 fi
9368 else
9369 LIPO="$ac_cv_prog_LIPO"
9370 fi
9371
9372 if test -n "$ac_tool_prefix"; then
9373 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9374 set dummy ${ac_tool_prefix}otool; ac_word=$2
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376 printf %s "checking for $ac_word... " >&6; }
9377 if test ${ac_cv_prog_OTOOL+y}
9378 then :
9379 printf %s "(cached) " >&6
9380 else $as_nop
9381 if test -n "$OTOOL"; then
9382 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9386 do
9387 IFS=$as_save_IFS
9388 case $as_dir in #(((
9389 '') as_dir=./ ;;
9390 */) ;;
9391 *) as_dir=$as_dir/ ;;
9392 esac
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9395 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399 done
9400 done
9401 IFS=$as_save_IFS
9402
9403 fi
9404 fi
9405 OTOOL=$ac_cv_prog_OTOOL
9406 if test -n "$OTOOL"; then
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9408 printf "%s\n" "$OTOOL" >&6; }
9409 else
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 printf "%s\n" "no" >&6; }
9412 fi
9413
9414
9415 fi
9416 if test -z "$ac_cv_prog_OTOOL"; then
9417 ac_ct_OTOOL=$OTOOL
9418 # Extract the first word of "otool", so it can be a program name with args.
9419 set dummy otool; ac_word=$2
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 printf %s "checking for $ac_word... " >&6; }
9422 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9423 then :
9424 printf %s "(cached) " >&6
9425 else $as_nop
9426 if test -n "$ac_ct_OTOOL"; then
9427 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9428 else
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 for as_dir in $PATH
9431 do
9432 IFS=$as_save_IFS
9433 case $as_dir in #(((
9434 '') as_dir=./ ;;
9435 */) ;;
9436 *) as_dir=$as_dir/ ;;
9437 esac
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9440 ac_cv_prog_ac_ct_OTOOL="otool"
9441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9442 break 2
9443 fi
9444 done
9445 done
9446 IFS=$as_save_IFS
9447
9448 fi
9449 fi
9450 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9451 if test -n "$ac_ct_OTOOL"; then
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9453 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9454 else
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 printf "%s\n" "no" >&6; }
9457 fi
9458
9459 if test "x$ac_ct_OTOOL" = x; then
9460 OTOOL=":"
9461 else
9462 case $cross_compiling:$ac_tool_warned in
9463 yes:)
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9465 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9466 ac_tool_warned=yes ;;
9467 esac
9468 OTOOL=$ac_ct_OTOOL
9469 fi
9470 else
9471 OTOOL="$ac_cv_prog_OTOOL"
9472 fi
9473
9474 if test -n "$ac_tool_prefix"; then
9475 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9476 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 printf %s "checking for $ac_word... " >&6; }
9479 if test ${ac_cv_prog_OTOOL64+y}
9480 then :
9481 printf %s "(cached) " >&6
9482 else $as_nop
9483 if test -n "$OTOOL64"; then
9484 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9485 else
9486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487 for as_dir in $PATH
9488 do
9489 IFS=$as_save_IFS
9490 case $as_dir in #(((
9491 '') as_dir=./ ;;
9492 */) ;;
9493 *) as_dir=$as_dir/ ;;
9494 esac
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9497 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501 done
9502 done
9503 IFS=$as_save_IFS
9504
9505 fi
9506 fi
9507 OTOOL64=$ac_cv_prog_OTOOL64
9508 if test -n "$OTOOL64"; then
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9510 printf "%s\n" "$OTOOL64" >&6; }
9511 else
9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 printf "%s\n" "no" >&6; }
9514 fi
9515
9516
9517 fi
9518 if test -z "$ac_cv_prog_OTOOL64"; then
9519 ac_ct_OTOOL64=$OTOOL64
9520 # Extract the first word of "otool64", so it can be a program name with args.
9521 set dummy otool64; ac_word=$2
9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 printf %s "checking for $ac_word... " >&6; }
9524 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9525 then :
9526 printf %s "(cached) " >&6
9527 else $as_nop
9528 if test -n "$ac_ct_OTOOL64"; then
9529 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9530 else
9531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532 for as_dir in $PATH
9533 do
9534 IFS=$as_save_IFS
9535 case $as_dir in #(((
9536 '') as_dir=./ ;;
9537 */) ;;
9538 *) as_dir=$as_dir/ ;;
9539 esac
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9542 ac_cv_prog_ac_ct_OTOOL64="otool64"
9543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546 done
9547 done
9548 IFS=$as_save_IFS
9549
9550 fi
9551 fi
9552 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9553 if test -n "$ac_ct_OTOOL64"; then
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9555 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9556 else
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 printf "%s\n" "no" >&6; }
9559 fi
9560
9561 if test "x$ac_ct_OTOOL64" = x; then
9562 OTOOL64=":"
9563 else
9564 case $cross_compiling:$ac_tool_warned in
9565 yes:)
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9567 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9568 ac_tool_warned=yes ;;
9569 esac
9570 OTOOL64=$ac_ct_OTOOL64
9571 fi
9572 else
9573 OTOOL64="$ac_cv_prog_OTOOL64"
9574 fi
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9603 printf %s "checking for -single_module linker flag... " >&6; }
9604 if test ${lt_cv_apple_cc_single_mod+y}
9605 then :
9606 printf %s "(cached) " >&6
9607 else $as_nop
9608 lt_cv_apple_cc_single_mod=no
9609 if test -z "$LT_MULTI_MODULE"; then
9610 # By default we will add the -single_module flag. You can override
9611 # by either setting the environment variable LT_MULTI_MODULE
9612 # non-empty at configure time, or by adding -multi_module to the
9613 # link flags.
9614 rm -rf libconftest.dylib*
9615 echo "int foo(void){return 1;}" > conftest.c
9616 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9617 -dynamiclib -Wl,-single_module conftest.c" >&5
9618 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9619 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9620 _lt_result=$?
9621 # If there is a non-empty error log, and "single_module"
9622 # appears in it, assume the flag caused a linker warning
9623 if test -s conftest.err && $GREP single_module conftest.err; then
9624 cat conftest.err >&5
9625 # Otherwise, if the output was created with a 0 exit code from
9626 # the compiler, it worked.
9627 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9628 lt_cv_apple_cc_single_mod=yes
9629 else
9630 cat conftest.err >&5
9631 fi
9632 rm -rf libconftest.dylib*
9633 rm -f conftest.*
9634 fi
9635 fi
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9637 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9638
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9640 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9641 if test ${lt_cv_ld_exported_symbols_list+y}
9642 then :
9643 printf %s "(cached) " >&6
9644 else $as_nop
9645 lt_cv_ld_exported_symbols_list=no
9646 save_LDFLAGS=$LDFLAGS
9647 echo "_main" > conftest.sym
9648 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651
9652 int
9653 main (void)
9654 {
9655
9656 ;
9657 return 0;
9658 }
9659 _ACEOF
9660 if ac_fn_c_try_link "$LINENO"
9661 then :
9662 lt_cv_ld_exported_symbols_list=yes
9663 else $as_nop
9664 lt_cv_ld_exported_symbols_list=no
9665 fi
9666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9667 conftest$ac_exeext conftest.$ac_ext
9668 LDFLAGS=$save_LDFLAGS
9669
9670 fi
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9672 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9673
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9675 printf %s "checking for -force_load linker flag... " >&6; }
9676 if test ${lt_cv_ld_force_load+y}
9677 then :
9678 printf %s "(cached) " >&6
9679 else $as_nop
9680 lt_cv_ld_force_load=no
9681 cat > conftest.c << _LT_EOF
9682 int forced_loaded() { return 2;}
9683 _LT_EOF
9684 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9685 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9686 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9687 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9688 echo "$RANLIB libconftest.a" >&5
9689 $RANLIB libconftest.a 2>&5
9690 cat > conftest.c << _LT_EOF
9691 int main() { return 0;}
9692 _LT_EOF
9693 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9694 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9695 _lt_result=$?
9696 if test -s conftest.err && $GREP force_load conftest.err; then
9697 cat conftest.err >&5
9698 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9699 lt_cv_ld_force_load=yes
9700 else
9701 cat conftest.err >&5
9702 fi
9703 rm -f conftest.err libconftest.a conftest conftest.c
9704 rm -rf conftest.dSYM
9705
9706 fi
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9708 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9709 case $host_os in
9710 rhapsody* | darwin1.[012])
9711 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9712 darwin1.*)
9713 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9714 darwin*)
9715 case $MACOSX_DEPLOYMENT_TARGET,$host in
9716 10.[012],*|,*powerpc*-darwin[5-8]*)
9717 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9718 *)
9719 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9720 esac
9721 ;;
9722 esac
9723 if test yes = "$lt_cv_apple_cc_single_mod"; then
9724 _lt_dar_single_mod='$single_module'
9725 fi
9726 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9727 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9728 else
9729 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9730 fi
9731 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9732 _lt_dsymutil='~$DSYMUTIL $lib || :'
9733 else
9734 _lt_dsymutil=
9735 fi
9736 ;;
9737 esac
9738
9739 # func_munge_path_list VARIABLE PATH
9740 # -----------------------------------
9741 # VARIABLE is name of variable containing _space_ separated list of
9742 # directories to be munged by the contents of PATH, which is string
9743 # having a format:
9744 # "DIR[:DIR]:"
9745 # string "DIR[ DIR]" will be prepended to VARIABLE
9746 # ":DIR[:DIR]"
9747 # string "DIR[ DIR]" will be appended to VARIABLE
9748 # "DIRP[:DIRP]::[DIRA:]DIRA"
9749 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9750 # "DIRA[ DIRA]" will be appended to VARIABLE
9751 # "DIR[:DIR]"
9752 # VARIABLE will be replaced by "DIR[ DIR]"
9753 func_munge_path_list ()
9754 {
9755 case x$2 in
9756 x)
9757 ;;
9758 *:)
9759 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9760 ;;
9761 x:*)
9762 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9763 ;;
9764 *::*)
9765 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9766 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9767 ;;
9768 *)
9769 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9770 ;;
9771 esac
9772 }
9773
9774 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9775 "
9776 if test "x$ac_cv_header_dlfcn_h" = xyes
9777 then :
9778 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9779
9780 fi
9781
9782
9783
9784
9785
9786 # Set options
9787 # Check whether --enable-static was given.
9788 if test ${enable_static+y}
9789 then :
9790 enableval=$enable_static; p=${PACKAGE-default}
9791 case $enableval in
9792 yes) enable_static=yes ;;
9793 no) enable_static=no ;;
9794 *)
9795 enable_static=no
9796 # Look at the argument we got. We use all the common list separators.
9797 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9798 for pkg in $enableval; do
9799 IFS=$lt_save_ifs
9800 if test "X$pkg" = "X$p"; then
9801 enable_static=yes
9802 fi
9803 done
9804 IFS=$lt_save_ifs
9805 ;;
9806 esac
9807 else $as_nop
9808 enable_static=no
9809 fi
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820 enable_dlopen=no
9821
9822
9823 enable_win32_dll=no
9824
9825
9826 # Check whether --enable-shared was given.
9827 if test ${enable_shared+y}
9828 then :
9829 enableval=$enable_shared; p=${PACKAGE-default}
9830 case $enableval in
9831 yes) enable_shared=yes ;;
9832 no) enable_shared=no ;;
9833 *)
9834 enable_shared=no
9835 # Look at the argument we got. We use all the common list separators.
9836 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9837 for pkg in $enableval; do
9838 IFS=$lt_save_ifs
9839 if test "X$pkg" = "X$p"; then
9840 enable_shared=yes
9841 fi
9842 done
9843 IFS=$lt_save_ifs
9844 ;;
9845 esac
9846 else $as_nop
9847 enable_shared=yes
9848 fi
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860 # Check whether --with-pic was given.
9861 if test ${with_pic+y}
9862 then :
9863 withval=$with_pic; lt_p=${PACKAGE-default}
9864 case $withval in
9865 yes|no) pic_mode=$withval ;;
9866 *)
9867 pic_mode=default
9868 # Look at the argument we got. We use all the common list separators.
9869 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9870 for lt_pkg in $withval; do
9871 IFS=$lt_save_ifs
9872 if test "X$lt_pkg" = "X$lt_p"; then
9873 pic_mode=yes
9874 fi
9875 done
9876 IFS=$lt_save_ifs
9877 ;;
9878 esac
9879 else $as_nop
9880 pic_mode=default
9881 fi
9882
9883
9884
9885
9886
9887
9888
9889
9890 # Check whether --enable-fast-install was given.
9891 if test ${enable_fast_install+y}
9892 then :
9893 enableval=$enable_fast_install; p=${PACKAGE-default}
9894 case $enableval in
9895 yes) enable_fast_install=yes ;;
9896 no) enable_fast_install=no ;;
9897 *)
9898 enable_fast_install=no
9899 # Look at the argument we got. We use all the common list separators.
9900 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9901 for pkg in $enableval; do
9902 IFS=$lt_save_ifs
9903 if test "X$pkg" = "X$p"; then
9904 enable_fast_install=yes
9905 fi
9906 done
9907 IFS=$lt_save_ifs
9908 ;;
9909 esac
9910 else $as_nop
9911 enable_fast_install=yes
9912 fi
9913
9914
9915
9916
9917
9918
9919
9920
9921 shared_archive_member_spec=
9922 case $host,$enable_shared in
9923 power*-*-aix[5-9]*,yes)
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9925 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9926
9927 # Check whether --with-aix-soname was given.
9928 if test ${with_aix_soname+y}
9929 then :
9930 withval=$with_aix_soname; case $withval in
9931 aix|svr4|both)
9932 ;;
9933 *)
9934 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9935 ;;
9936 esac
9937 lt_cv_with_aix_soname=$with_aix_soname
9938 else $as_nop
9939 if test ${lt_cv_with_aix_soname+y}
9940 then :
9941 printf %s "(cached) " >&6
9942 else $as_nop
9943 lt_cv_with_aix_soname=aix
9944 fi
9945
9946 with_aix_soname=$lt_cv_with_aix_soname
9947 fi
9948
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9950 printf "%s\n" "$with_aix_soname" >&6; }
9951 if test aix != "$with_aix_soname"; then
9952 # For the AIX way of multilib, we name the shared archive member
9953 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9954 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9955 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9956 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9957 if test 64 = "${OBJECT_MODE-32}"; then
9958 shared_archive_member_spec=shr_64
9959 else
9960 shared_archive_member_spec=shr
9961 fi
9962 fi
9963 ;;
9964 *)
9965 with_aix_soname=aix
9966 ;;
9967 esac
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978 # This can be used to rebuild libtool when needed
9979 LIBTOOL_DEPS=$ltmain
9980
9981 # Always use our own libtool.
9982 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013 test -z "$LN_S" && LN_S="ln -s"
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028 if test -n "${ZSH_VERSION+set}"; then
10029 setopt NO_GLOB_SUBST
10030 fi
10031
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10033 printf %s "checking for objdir... " >&6; }
10034 if test ${lt_cv_objdir+y}
10035 then :
10036 printf %s "(cached) " >&6
10037 else $as_nop
10038 rm -f .libs 2>/dev/null
10039 mkdir .libs 2>/dev/null
10040 if test -d .libs; then
10041 lt_cv_objdir=.libs
10042 else
10043 # MS-DOS does not allow filenames that begin with a dot.
10044 lt_cv_objdir=_libs
10045 fi
10046 rmdir .libs 2>/dev/null
10047 fi
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10049 printf "%s\n" "$lt_cv_objdir" >&6; }
10050 objdir=$lt_cv_objdir
10051
10052
10053
10054
10055
10056 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10057
10058
10059
10060
10061 case $host_os in
10062 aix3*)
10063 # AIX sometimes has problems with the GCC collect2 program. For some
10064 # reason, if we set the COLLECT_NAMES environment variable, the problems
10065 # vanish in a puff of smoke.
10066 if test set != "${COLLECT_NAMES+set}"; then
10067 COLLECT_NAMES=
10068 export COLLECT_NAMES
10069 fi
10070 ;;
10071 esac
10072
10073 # Global variables:
10074 ofile=libtool
10075 can_build_shared=yes
10076
10077 # All known linkers require a '.a' archive for static linking (except MSVC and
10078 # ICC, which need '.lib').
10079 libext=a
10080
10081 with_gnu_ld=$lt_cv_prog_gnu_ld
10082
10083 old_CC=$CC
10084 old_CFLAGS=$CFLAGS
10085
10086 # Set sane defaults for various variables
10087 test -z "$CC" && CC=cc
10088 test -z "$LTCC" && LTCC=$CC
10089 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10090 test -z "$LD" && LD=ld
10091 test -z "$ac_objext" && ac_objext=o
10092
10093 func_cc_basename $compiler
10094 cc_basename=$func_cc_basename_result
10095
10096
10097 # Only perform the check for file, if the check method requires it
10098 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10099 case $deplibs_check_method in
10100 file_magic*)
10101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10103 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10104 if test ${lt_cv_path_MAGIC_CMD+y}
10105 then :
10106 printf %s "(cached) " >&6
10107 else $as_nop
10108 case $MAGIC_CMD in
10109 [\\/*] | ?:[\\/]*)
10110 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10111 ;;
10112 *)
10113 lt_save_MAGIC_CMD=$MAGIC_CMD
10114 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10116 for ac_dir in $ac_dummy; do
10117 IFS=$lt_save_ifs
10118 test -z "$ac_dir" && ac_dir=.
10119 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10120 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10121 if test -n "$file_magic_test_file"; then
10122 case $deplibs_check_method in
10123 "file_magic "*)
10124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10125 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10127 $EGREP "$file_magic_regex" > /dev/null; then
10128 :
10129 else
10130 cat <<_LT_EOF 1>&2
10131
10132 *** Warning: the command libtool uses to detect shared libraries,
10133 *** $file_magic_cmd, produces output that libtool cannot recognize.
10134 *** The result is that libtool may fail to recognize shared libraries
10135 *** as such. This will affect the creation of libtool libraries that
10136 *** depend on shared libraries, but programs linked with such libtool
10137 *** libraries will work regardless of this problem. Nevertheless, you
10138 *** may want to report the problem to your system manager and/or to
10139 *** [email protected]
10140
10141 _LT_EOF
10142 fi ;;
10143 esac
10144 fi
10145 break
10146 fi
10147 done
10148 IFS=$lt_save_ifs
10149 MAGIC_CMD=$lt_save_MAGIC_CMD
10150 ;;
10151 esac
10152 fi
10153
10154 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10155 if test -n "$MAGIC_CMD"; then
10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10157 printf "%s\n" "$MAGIC_CMD" >&6; }
10158 else
10159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 printf "%s\n" "no" >&6; }
10161 fi
10162
10163
10164
10165
10166
10167 if test -z "$lt_cv_path_MAGIC_CMD"; then
10168 if test -n "$ac_tool_prefix"; then
10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10170 printf %s "checking for file... " >&6; }
10171 if test ${lt_cv_path_MAGIC_CMD+y}
10172 then :
10173 printf %s "(cached) " >&6
10174 else $as_nop
10175 case $MAGIC_CMD in
10176 [\\/*] | ?:[\\/]*)
10177 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10178 ;;
10179 *)
10180 lt_save_MAGIC_CMD=$MAGIC_CMD
10181 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10182 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10183 for ac_dir in $ac_dummy; do
10184 IFS=$lt_save_ifs
10185 test -z "$ac_dir" && ac_dir=.
10186 if test -f "$ac_dir/file"; then
10187 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10188 if test -n "$file_magic_test_file"; then
10189 case $deplibs_check_method in
10190 "file_magic "*)
10191 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10192 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10194 $EGREP "$file_magic_regex" > /dev/null; then
10195 :
10196 else
10197 cat <<_LT_EOF 1>&2
10198
10199 *** Warning: the command libtool uses to detect shared libraries,
10200 *** $file_magic_cmd, produces output that libtool cannot recognize.
10201 *** The result is that libtool may fail to recognize shared libraries
10202 *** as such. This will affect the creation of libtool libraries that
10203 *** depend on shared libraries, but programs linked with such libtool
10204 *** libraries will work regardless of this problem. Nevertheless, you
10205 *** may want to report the problem to your system manager and/or to
10206 *** [email protected]
10207
10208 _LT_EOF
10209 fi ;;
10210 esac
10211 fi
10212 break
10213 fi
10214 done
10215 IFS=$lt_save_ifs
10216 MAGIC_CMD=$lt_save_MAGIC_CMD
10217 ;;
10218 esac
10219 fi
10220
10221 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10222 if test -n "$MAGIC_CMD"; then
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10224 printf "%s\n" "$MAGIC_CMD" >&6; }
10225 else
10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 printf "%s\n" "no" >&6; }
10228 fi
10229
10230
10231 else
10232 MAGIC_CMD=:
10233 fi
10234 fi
10235
10236 fi
10237 ;;
10238 esac
10239
10240 # Use C for the default configuration in the libtool script
10241
10242 lt_save_CC=$CC
10243 ac_ext=c
10244 ac_cpp='$CPP $CPPFLAGS'
10245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10248
10249
10250 # Source file extension for C test sources.
10251 ac_ext=c
10252
10253 # Object file extension for compiled C test sources.
10254 objext=o
10255 objext=$objext
10256
10257 # Code to be used in simple compile tests
10258 lt_simple_compile_test_code="int some_variable = 0;"
10259
10260 # Code to be used in simple link tests
10261 lt_simple_link_test_code='int main(){return(0);}'
10262
10263
10264
10265
10266
10267
10268
10269 # If no C compiler was specified, use CC.
10270 LTCC=${LTCC-"$CC"}
10271
10272 # If no C compiler flags were specified, use CFLAGS.
10273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10274
10275 # Allow CC to be a program name with arguments.
10276 compiler=$CC
10277
10278 # Save the default compiler, since it gets overwritten when the other
10279 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10280 compiler_DEFAULT=$CC
10281
10282 # save warnings/boilerplate of simple test code
10283 ac_outfile=conftest.$ac_objext
10284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10286 _lt_compiler_boilerplate=`cat conftest.err`
10287 $RM conftest*
10288
10289 ac_outfile=conftest.$ac_objext
10290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10292 _lt_linker_boilerplate=`cat conftest.err`
10293 $RM -r conftest*
10294
10295
10296 ## CAVEAT EMPTOR:
10297 ## There is no encapsulation within the following macros, do not change
10298 ## the running order or otherwise move them around unless you know exactly
10299 ## what you are doing...
10300 if test -n "$compiler"; then
10301
10302 lt_prog_compiler_no_builtin_flag=
10303
10304 if test yes = "$GCC"; then
10305 case $cc_basename in
10306 nvcc*)
10307 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10308 *)
10309 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10310 esac
10311
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10313 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10314 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10315 then :
10316 printf %s "(cached) " >&6
10317 else $as_nop
10318 lt_cv_prog_compiler_rtti_exceptions=no
10319 ac_outfile=conftest.$ac_objext
10320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10321 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10322 # Insert the option either (1) after the last *FLAGS variable, or
10323 # (2) before a word containing "conftest.", or (3) at the end.
10324 # Note that $ac_compile itself does not contain backslashes and begins
10325 # with a dollar sign (not a hyphen), so the echo should work correctly.
10326 # The option is referenced via a variable to avoid confusing sed.
10327 lt_compile=`echo "$ac_compile" | $SED \
10328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10330 -e 's:$: $lt_compiler_flag:'`
10331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10332 (eval "$lt_compile" 2>conftest.err)
10333 ac_status=$?
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 if (exit $ac_status) && test -s "$ac_outfile"; then
10337 # The compiler can only warn and ignore the option if not recognized
10338 # So say no if there are warnings other than the usual output.
10339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10342 lt_cv_prog_compiler_rtti_exceptions=yes
10343 fi
10344 fi
10345 $RM conftest*
10346
10347 fi
10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10349 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10350
10351 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10352 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10353 else
10354 :
10355 fi
10356
10357 fi
10358
10359
10360
10361
10362
10363
10364 lt_prog_compiler_wl=
10365 lt_prog_compiler_pic=
10366 lt_prog_compiler_static=
10367
10368
10369 if test yes = "$GCC"; then
10370 lt_prog_compiler_wl='-Wl,'
10371 lt_prog_compiler_static='-static'
10372
10373 case $host_os in
10374 aix*)
10375 # All AIX code is PIC.
10376 if test ia64 = "$host_cpu"; then
10377 # AIX 5 now supports IA64 processor
10378 lt_prog_compiler_static='-Bstatic'
10379 fi
10380 lt_prog_compiler_pic='-fPIC'
10381 ;;
10382
10383 amigaos*)
10384 case $host_cpu in
10385 powerpc)
10386 # see comment about AmigaOS4 .so support
10387 lt_prog_compiler_pic='-fPIC'
10388 ;;
10389 m68k)
10390 # FIXME: we need at least 68020 code to build shared libraries, but
10391 # adding the '-m68020' flag to GCC prevents building anything better,
10392 # like '-m68040'.
10393 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10394 ;;
10395 esac
10396 ;;
10397
10398 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10399 # PIC is the default for these OSes.
10400 ;;
10401
10402 mingw* | cygwin* | pw32* | os2* | cegcc*)
10403 # This hack is so that the source file can tell whether it is being
10404 # built for inclusion in a dll (and should export symbols for example).
10405 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10406 # (--disable-auto-import) libraries
10407 lt_prog_compiler_pic='-DDLL_EXPORT'
10408 case $host_os in
10409 os2*)
10410 lt_prog_compiler_static='$wl-static'
10411 ;;
10412 esac
10413 ;;
10414
10415 darwin* | rhapsody*)
10416 # PIC is the default on this platform
10417 # Common symbols not allowed in MH_DYLIB files
10418 lt_prog_compiler_pic='-fno-common'
10419 ;;
10420
10421 haiku*)
10422 # PIC is the default for Haiku.
10423 # The "-static" flag exists, but is broken.
10424 lt_prog_compiler_static=
10425 ;;
10426
10427 hpux*)
10428 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10429 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10430 # sets the default TLS model and affects inlining.
10431 case $host_cpu in
10432 hppa*64*)
10433 # +Z the default
10434 ;;
10435 *)
10436 lt_prog_compiler_pic='-fPIC'
10437 ;;
10438 esac
10439 ;;
10440
10441 interix[3-9]*)
10442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10443 # Instead, we relocate shared libraries at runtime.
10444 ;;
10445
10446 msdosdjgpp*)
10447 # Just because we use GCC doesn't mean we suddenly get shared libraries
10448 # on systems that don't support them.
10449 lt_prog_compiler_can_build_shared=no
10450 enable_shared=no
10451 ;;
10452
10453 *nto* | *qnx*)
10454 # QNX uses GNU C++, but need to define -shared option too, otherwise
10455 # it will coredump.
10456 lt_prog_compiler_pic='-fPIC -shared'
10457 ;;
10458
10459 sysv4*MP*)
10460 if test -d /usr/nec; then
10461 lt_prog_compiler_pic=-Kconform_pic
10462 fi
10463 ;;
10464
10465 *)
10466 lt_prog_compiler_pic='-fPIC'
10467 ;;
10468 esac
10469
10470 case $cc_basename in
10471 nvcc*) # Cuda Compiler Driver 2.2
10472 lt_prog_compiler_wl='-Xlinker '
10473 if test -n "$lt_prog_compiler_pic"; then
10474 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10475 fi
10476 ;;
10477 esac
10478 else
10479 # PORTME Check for flag to pass linker flags through the system compiler.
10480 case $host_os in
10481 aix*)
10482 lt_prog_compiler_wl='-Wl,'
10483 if test ia64 = "$host_cpu"; then
10484 # AIX 5 now supports IA64 processor
10485 lt_prog_compiler_static='-Bstatic'
10486 else
10487 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10488 fi
10489 ;;
10490
10491 darwin* | rhapsody*)
10492 # PIC is the default on this platform
10493 # Common symbols not allowed in MH_DYLIB files
10494 lt_prog_compiler_pic='-fno-common'
10495 case $cc_basename in
10496 nagfor*)
10497 # NAG Fortran compiler
10498 lt_prog_compiler_wl='-Wl,-Wl,,'
10499 lt_prog_compiler_pic='-PIC'
10500 lt_prog_compiler_static='-Bstatic'
10501 ;;
10502 esac
10503 ;;
10504
10505 mingw* | cygwin* | pw32* | os2* | cegcc*)
10506 # This hack is so that the source file can tell whether it is being
10507 # built for inclusion in a dll (and should export symbols for example).
10508 lt_prog_compiler_pic='-DDLL_EXPORT'
10509 case $host_os in
10510 os2*)
10511 lt_prog_compiler_static='$wl-static'
10512 ;;
10513 esac
10514 ;;
10515
10516 hpux9* | hpux10* | hpux11*)
10517 lt_prog_compiler_wl='-Wl,'
10518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10519 # not for PA HP-UX.
10520 case $host_cpu in
10521 hppa*64*|ia64*)
10522 # +Z the default
10523 ;;
10524 *)
10525 lt_prog_compiler_pic='+Z'
10526 ;;
10527 esac
10528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10529 lt_prog_compiler_static='$wl-a ${wl}archive'
10530 ;;
10531
10532 irix5* | irix6* | nonstopux*)
10533 lt_prog_compiler_wl='-Wl,'
10534 # PIC (with -KPIC) is the default.
10535 lt_prog_compiler_static='-non_shared'
10536 ;;
10537
10538 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10539 case $cc_basename in
10540 # old Intel for x86_64, which still supported -KPIC.
10541 ecc*)
10542 lt_prog_compiler_wl='-Wl,'
10543 lt_prog_compiler_pic='-KPIC'
10544 lt_prog_compiler_static='-static'
10545 ;;
10546 # icc used to be incompatible with GCC.
10547 # ICC 10 doesn't accept -KPIC any more.
10548 icc* | ifort*)
10549 lt_prog_compiler_wl='-Wl,'
10550 lt_prog_compiler_pic='-fPIC'
10551 lt_prog_compiler_static='-static'
10552 ;;
10553 # Lahey Fortran 8.1.
10554 lf95*)
10555 lt_prog_compiler_wl='-Wl,'
10556 lt_prog_compiler_pic='--shared'
10557 lt_prog_compiler_static='--static'
10558 ;;
10559 nagfor*)
10560 # NAG Fortran compiler
10561 lt_prog_compiler_wl='-Wl,-Wl,,'
10562 lt_prog_compiler_pic='-PIC'
10563 lt_prog_compiler_static='-Bstatic'
10564 ;;
10565 tcc*)
10566 # Fabrice Bellard et al's Tiny C Compiler
10567 lt_prog_compiler_wl='-Wl,'
10568 lt_prog_compiler_pic='-fPIC'
10569 lt_prog_compiler_static='-static'
10570 ;;
10571 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10572 # Portland Group compilers (*not* the Pentium gcc compiler,
10573 # which looks to be a dead project)
10574 lt_prog_compiler_wl='-Wl,'
10575 lt_prog_compiler_pic='-fpic'
10576 lt_prog_compiler_static='-Bstatic'
10577 ;;
10578 ccc*)
10579 lt_prog_compiler_wl='-Wl,'
10580 # All Alpha code is PIC.
10581 lt_prog_compiler_static='-non_shared'
10582 ;;
10583 xl* | bgxl* | bgf* | mpixl*)
10584 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10585 lt_prog_compiler_wl='-Wl,'
10586 lt_prog_compiler_pic='-qpic'
10587 lt_prog_compiler_static='-qstaticlink'
10588 ;;
10589 *)
10590 case `$CC -V 2>&1 | $SED 5q` in
10591 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10592 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10593 lt_prog_compiler_pic='-KPIC'
10594 lt_prog_compiler_static='-Bstatic'
10595 lt_prog_compiler_wl=''
10596 ;;
10597 *Sun\ F* | *Sun*Fortran*)
10598 lt_prog_compiler_pic='-KPIC'
10599 lt_prog_compiler_static='-Bstatic'
10600 lt_prog_compiler_wl='-Qoption ld '
10601 ;;
10602 *Sun\ C*)
10603 # Sun C 5.9
10604 lt_prog_compiler_pic='-KPIC'
10605 lt_prog_compiler_static='-Bstatic'
10606 lt_prog_compiler_wl='-Wl,'
10607 ;;
10608 *Intel*\ [CF]*Compiler*)
10609 lt_prog_compiler_wl='-Wl,'
10610 lt_prog_compiler_pic='-fPIC'
10611 lt_prog_compiler_static='-static'
10612 ;;
10613 *Portland\ Group*)
10614 lt_prog_compiler_wl='-Wl,'
10615 lt_prog_compiler_pic='-fpic'
10616 lt_prog_compiler_static='-Bstatic'
10617 ;;
10618 esac
10619 ;;
10620 esac
10621 ;;
10622
10623 newsos6)
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-Bstatic'
10626 ;;
10627
10628 *nto* | *qnx*)
10629 # QNX uses GNU C++, but need to define -shared option too, otherwise
10630 # it will coredump.
10631 lt_prog_compiler_pic='-fPIC -shared'
10632 ;;
10633
10634 osf3* | osf4* | osf5*)
10635 lt_prog_compiler_wl='-Wl,'
10636 # All OSF/1 code is PIC.
10637 lt_prog_compiler_static='-non_shared'
10638 ;;
10639
10640 rdos*)
10641 lt_prog_compiler_static='-non_shared'
10642 ;;
10643
10644 solaris*)
10645 lt_prog_compiler_pic='-KPIC'
10646 lt_prog_compiler_static='-Bstatic'
10647 case $cc_basename in
10648 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10649 lt_prog_compiler_wl='-Qoption ld ';;
10650 *)
10651 lt_prog_compiler_wl='-Wl,';;
10652 esac
10653 ;;
10654
10655 sunos4*)
10656 lt_prog_compiler_wl='-Qoption ld '
10657 lt_prog_compiler_pic='-PIC'
10658 lt_prog_compiler_static='-Bstatic'
10659 ;;
10660
10661 sysv4 | sysv4.2uw2* | sysv4.3*)
10662 lt_prog_compiler_wl='-Wl,'
10663 lt_prog_compiler_pic='-KPIC'
10664 lt_prog_compiler_static='-Bstatic'
10665 ;;
10666
10667 sysv4*MP*)
10668 if test -d /usr/nec; then
10669 lt_prog_compiler_pic='-Kconform_pic'
10670 lt_prog_compiler_static='-Bstatic'
10671 fi
10672 ;;
10673
10674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10675 lt_prog_compiler_wl='-Wl,'
10676 lt_prog_compiler_pic='-KPIC'
10677 lt_prog_compiler_static='-Bstatic'
10678 ;;
10679
10680 unicos*)
10681 lt_prog_compiler_wl='-Wl,'
10682 lt_prog_compiler_can_build_shared=no
10683 ;;
10684
10685 uts4*)
10686 lt_prog_compiler_pic='-pic'
10687 lt_prog_compiler_static='-Bstatic'
10688 ;;
10689
10690 *)
10691 lt_prog_compiler_can_build_shared=no
10692 ;;
10693 esac
10694 fi
10695
10696 case $host_os in
10697 # For platforms that do not support PIC, -DPIC is meaningless:
10698 *djgpp*)
10699 lt_prog_compiler_pic=
10700 ;;
10701 *)
10702 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10703 ;;
10704 esac
10705
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10707 printf %s "checking for $compiler option to produce PIC... " >&6; }
10708 if test ${lt_cv_prog_compiler_pic+y}
10709 then :
10710 printf %s "(cached) " >&6
10711 else $as_nop
10712 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10713 fi
10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10715 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10716 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10717
10718 #
10719 # Check to make sure the PIC flag actually works.
10720 #
10721 if test -n "$lt_prog_compiler_pic"; then
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10723 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10724 if test ${lt_cv_prog_compiler_pic_works+y}
10725 then :
10726 printf %s "(cached) " >&6
10727 else $as_nop
10728 lt_cv_prog_compiler_pic_works=no
10729 ac_outfile=conftest.$ac_objext
10730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10731 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10732 # Insert the option either (1) after the last *FLAGS variable, or
10733 # (2) before a word containing "conftest.", or (3) at the end.
10734 # Note that $ac_compile itself does not contain backslashes and begins
10735 # with a dollar sign (not a hyphen), so the echo should work correctly.
10736 # The option is referenced via a variable to avoid confusing sed.
10737 lt_compile=`echo "$ac_compile" | $SED \
10738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10740 -e 's:$: $lt_compiler_flag:'`
10741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10742 (eval "$lt_compile" 2>conftest.err)
10743 ac_status=$?
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 if (exit $ac_status) && test -s "$ac_outfile"; then
10747 # The compiler can only warn and ignore the option if not recognized
10748 # So say no if there are warnings other than the usual output.
10749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10752 lt_cv_prog_compiler_pic_works=yes
10753 fi
10754 fi
10755 $RM conftest*
10756
10757 fi
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10759 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10760
10761 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10762 case $lt_prog_compiler_pic in
10763 "" | " "*) ;;
10764 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10765 esac
10766 else
10767 lt_prog_compiler_pic=
10768 lt_prog_compiler_can_build_shared=no
10769 fi
10770
10771 fi
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783 #
10784 # Check to make sure the static flag actually works.
10785 #
10786 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10788 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10789 if test ${lt_cv_prog_compiler_static_works+y}
10790 then :
10791 printf %s "(cached) " >&6
10792 else $as_nop
10793 lt_cv_prog_compiler_static_works=no
10794 save_LDFLAGS=$LDFLAGS
10795 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10798 # The linker can only warn and ignore the option if not recognized
10799 # So say no if there are warnings
10800 if test -s conftest.err; then
10801 # Append any errors to the config.log.
10802 cat conftest.err 1>&5
10803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10805 if diff conftest.exp conftest.er2 >/dev/null; then
10806 lt_cv_prog_compiler_static_works=yes
10807 fi
10808 else
10809 lt_cv_prog_compiler_static_works=yes
10810 fi
10811 fi
10812 $RM -r conftest*
10813 LDFLAGS=$save_LDFLAGS
10814
10815 fi
10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10817 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10818
10819 if test yes = "$lt_cv_prog_compiler_static_works"; then
10820 :
10821 else
10822 lt_prog_compiler_static=
10823 fi
10824
10825
10826
10827
10828
10829
10830
10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10832 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10833 if test ${lt_cv_prog_compiler_c_o+y}
10834 then :
10835 printf %s "(cached) " >&6
10836 else $as_nop
10837 lt_cv_prog_compiler_c_o=no
10838 $RM -r conftest 2>/dev/null
10839 mkdir conftest
10840 cd conftest
10841 mkdir out
10842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10843
10844 lt_compiler_flag="-o out/conftest2.$ac_objext"
10845 # Insert the option either (1) after the last *FLAGS variable, or
10846 # (2) before a word containing "conftest.", or (3) at the end.
10847 # Note that $ac_compile itself does not contain backslashes and begins
10848 # with a dollar sign (not a hyphen), so the echo should work correctly.
10849 lt_compile=`echo "$ac_compile" | $SED \
10850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10852 -e 's:$: $lt_compiler_flag:'`
10853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10854 (eval "$lt_compile" 2>out/conftest.err)
10855 ac_status=$?
10856 cat out/conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10859 then
10860 # The compiler can only warn and ignore the option if not recognized
10861 # So say no if there are warnings
10862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10865 lt_cv_prog_compiler_c_o=yes
10866 fi
10867 fi
10868 chmod u+w . 2>&5
10869 $RM conftest*
10870 # SGI C++ compiler will create directory out/ii_files/ for
10871 # template instantiation
10872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10873 $RM out/* && rmdir out
10874 cd ..
10875 $RM -r conftest
10876 $RM conftest*
10877
10878 fi
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10880 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10881
10882
10883
10884
10885
10886
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10888 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10889 if test ${lt_cv_prog_compiler_c_o+y}
10890 then :
10891 printf %s "(cached) " >&6
10892 else $as_nop
10893 lt_cv_prog_compiler_c_o=no
10894 $RM -r conftest 2>/dev/null
10895 mkdir conftest
10896 cd conftest
10897 mkdir out
10898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10899
10900 lt_compiler_flag="-o out/conftest2.$ac_objext"
10901 # Insert the option either (1) after the last *FLAGS variable, or
10902 # (2) before a word containing "conftest.", or (3) at the end.
10903 # Note that $ac_compile itself does not contain backslashes and begins
10904 # with a dollar sign (not a hyphen), so the echo should work correctly.
10905 lt_compile=`echo "$ac_compile" | $SED \
10906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10908 -e 's:$: $lt_compiler_flag:'`
10909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10910 (eval "$lt_compile" 2>out/conftest.err)
10911 ac_status=$?
10912 cat out/conftest.err >&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10915 then
10916 # The compiler can only warn and ignore the option if not recognized
10917 # So say no if there are warnings
10918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10921 lt_cv_prog_compiler_c_o=yes
10922 fi
10923 fi
10924 chmod u+w . 2>&5
10925 $RM conftest*
10926 # SGI C++ compiler will create directory out/ii_files/ for
10927 # template instantiation
10928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10929 $RM out/* && rmdir out
10930 cd ..
10931 $RM -r conftest
10932 $RM conftest*
10933
10934 fi
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10936 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10937
10938
10939
10940
10941 hard_links=nottested
10942 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10943 # do not overwrite the value of need_locks provided by the user
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10945 printf %s "checking if we can lock with hard links... " >&6; }
10946 hard_links=yes
10947 $RM conftest*
10948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10949 touch conftest.a
10950 ln conftest.a conftest.b 2>&5 || hard_links=no
10951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10953 printf "%s\n" "$hard_links" >&6; }
10954 if test no = "$hard_links"; then
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10956 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10957 need_locks=warn
10958 fi
10959 else
10960 need_locks=no
10961 fi
10962
10963
10964
10965
10966
10967
10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10969 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10970
10971 runpath_var=
10972 allow_undefined_flag=
10973 always_export_symbols=no
10974 archive_cmds=
10975 archive_expsym_cmds=
10976 compiler_needs_object=no
10977 enable_shared_with_static_runtimes=no
10978 export_dynamic_flag_spec=
10979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10980 hardcode_automatic=no
10981 hardcode_direct=no
10982 hardcode_direct_absolute=no
10983 hardcode_libdir_flag_spec=
10984 hardcode_libdir_separator=
10985 hardcode_minus_L=no
10986 hardcode_shlibpath_var=unsupported
10987 inherit_rpath=no
10988 link_all_deplibs=unknown
10989 module_cmds=
10990 module_expsym_cmds=
10991 old_archive_from_new_cmds=
10992 old_archive_from_expsyms_cmds=
10993 thread_safe_flag_spec=
10994 whole_archive_flag_spec=
10995 # include_expsyms should be a list of space-separated symbols to be *always*
10996 # included in the symbol list
10997 include_expsyms=
10998 # exclude_expsyms can be an extended regexp of symbols to exclude
10999 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11000 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11001 # as well as any symbol that contains 'd'.
11002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11004 # platforms (ab)use it in PIC code, but their linkers get confused if
11005 # the symbol is explicitly referenced. Since portable code cannot
11006 # rely on this symbol name, it's probably fine to never include it in
11007 # preloaded symbol tables.
11008 # Exclude shared library initialization/finalization symbols.
11009 extract_expsyms_cmds=
11010
11011 case $host_os in
11012 cygwin* | mingw* | pw32* | cegcc*)
11013 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11014 # When not using gcc, we currently assume that we are using
11015 # Microsoft Visual C++ or Intel C++ Compiler.
11016 if test yes != "$GCC"; then
11017 with_gnu_ld=no
11018 fi
11019 ;;
11020 interix*)
11021 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11022 with_gnu_ld=yes
11023 ;;
11024 openbsd* | bitrig*)
11025 with_gnu_ld=no
11026 ;;
11027 esac
11028
11029 ld_shlibs=yes
11030
11031 # On some targets, GNU ld is compatible enough with the native linker
11032 # that we're better off using the native interface for both.
11033 lt_use_gnu_ld_interface=no
11034 if test yes = "$with_gnu_ld"; then
11035 case $host_os in
11036 aix*)
11037 # The AIX port of GNU ld has always aspired to compatibility
11038 # with the native linker. However, as the warning in the GNU ld
11039 # block says, versions before 2.19.5* couldn't really create working
11040 # shared libraries, regardless of the interface used.
11041 case `$LD -v 2>&1` in
11042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11045 *)
11046 lt_use_gnu_ld_interface=yes
11047 ;;
11048 esac
11049 ;;
11050 *)
11051 lt_use_gnu_ld_interface=yes
11052 ;;
11053 esac
11054 fi
11055
11056 if test yes = "$lt_use_gnu_ld_interface"; then
11057 # If archive_cmds runs LD, not CC, wlarc should be empty
11058 wlarc='$wl'
11059
11060 # Set some defaults for GNU ld with shared library support. These
11061 # are reset later if shared libraries are not supported. Putting them
11062 # here allows them to be overridden if necessary.
11063 runpath_var=LD_RUN_PATH
11064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11065 export_dynamic_flag_spec='$wl--export-dynamic'
11066 # ancient GNU ld didn't support --whole-archive et. al.
11067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11068 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11069 else
11070 whole_archive_flag_spec=
11071 fi
11072 supports_anon_versioning=no
11073 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11074 *GNU\ gold*) supports_anon_versioning=yes ;;
11075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11078 *\ 2.11.*) ;; # other 2.11 versions
11079 *) supports_anon_versioning=yes ;;
11080 esac
11081
11082 # See if GNU ld supports shared libraries.
11083 case $host_os in
11084 aix[3-9]*)
11085 # On AIX/PPC, the GNU linker is very broken
11086 if test ia64 != "$host_cpu"; then
11087 ld_shlibs=no
11088 cat <<_LT_EOF 1>&2
11089
11090 *** Warning: the GNU linker, at least up to release 2.19, is reported
11091 *** to be unable to reliably create shared libraries on AIX.
11092 *** Therefore, libtool is disabling shared libraries support. If you
11093 *** really care for shared libraries, you may want to install binutils
11094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11095 *** You will then need to restart the configuration process.
11096
11097 _LT_EOF
11098 fi
11099 ;;
11100
11101 amigaos*)
11102 case $host_cpu in
11103 powerpc)
11104 # see comment about AmigaOS4 .so support
11105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11106 archive_expsym_cmds=''
11107 ;;
11108 m68k)
11109 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)'
11110 hardcode_libdir_flag_spec='-L$libdir'
11111 hardcode_minus_L=yes
11112 ;;
11113 esac
11114 ;;
11115
11116 beos*)
11117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11118 allow_undefined_flag=unsupported
11119 # Joseph Beckenbach <[email protected]> says some releases of gcc
11120 # support --undefined. This deserves some investigation. FIXME
11121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11122 else
11123 ld_shlibs=no
11124 fi
11125 ;;
11126
11127 cygwin* | mingw* | pw32* | cegcc*)
11128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11129 # as there is no search path for DLLs.
11130 hardcode_libdir_flag_spec='-L$libdir'
11131 export_dynamic_flag_spec='$wl--export-all-symbols'
11132 allow_undefined_flag=unsupported
11133 always_export_symbols=no
11134 enable_shared_with_static_runtimes=yes
11135 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'
11136 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11137
11138 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11140 # If the export-symbols file already is a .def file, use it as
11141 # is; otherwise, prepend EXPORTS...
11142 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11143 cp $export_symbols $output_objdir/$soname.def;
11144 else
11145 echo EXPORTS > $output_objdir/$soname.def;
11146 cat $export_symbols >> $output_objdir/$soname.def;
11147 fi~
11148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11149 else
11150 ld_shlibs=no
11151 fi
11152 ;;
11153
11154 haiku*)
11155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11156 link_all_deplibs=yes
11157 ;;
11158
11159 os2*)
11160 hardcode_libdir_flag_spec='-L$libdir'
11161 hardcode_minus_L=yes
11162 allow_undefined_flag=unsupported
11163 shrext_cmds=.dll
11164 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11165 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11166 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11167 $ECHO EXPORTS >> $output_objdir/$libname.def~
11168 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11169 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11170 emximp -o $lib $output_objdir/$libname.def'
11171 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11172 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11173 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11174 $ECHO EXPORTS >> $output_objdir/$libname.def~
11175 prefix_cmds="$SED"~
11176 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11177 prefix_cmds="$prefix_cmds -e 1d";
11178 fi~
11179 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11180 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11181 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11182 emximp -o $lib $output_objdir/$libname.def'
11183 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11184 enable_shared_with_static_runtimes=yes
11185 file_list_spec='@'
11186 ;;
11187
11188 interix[3-9]*)
11189 hardcode_direct=no
11190 hardcode_shlibpath_var=no
11191 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11192 export_dynamic_flag_spec='$wl-E'
11193 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11194 # Instead, shared libraries are loaded at an image base (0x10000000 by
11195 # default) and relocated if they conflict, which is a slow very memory
11196 # consuming and fragmenting process. To avoid this, we pick a random,
11197 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11198 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11199 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11200 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'
11201 ;;
11202
11203 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11204 tmp_diet=no
11205 if test linux-dietlibc = "$host_os"; then
11206 case $cc_basename in
11207 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11208 esac
11209 fi
11210 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11211 && test no = "$tmp_diet"
11212 then
11213 tmp_addflag=' $pic_flag'
11214 tmp_sharedflag='-shared'
11215 case $cc_basename,$host_cpu in
11216 pgcc*) # Portland Group C compiler
11217 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'
11218 tmp_addflag=' $pic_flag'
11219 ;;
11220 pgf77* | pgf90* | pgf95* | pgfortran*)
11221 # Portland Group f77 and f90 compilers
11222 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'
11223 tmp_addflag=' $pic_flag -Mnomain' ;;
11224 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11225 tmp_addflag=' -i_dynamic' ;;
11226 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11227 tmp_addflag=' -i_dynamic -nofor_main' ;;
11228 ifc* | ifort*) # Intel Fortran compiler
11229 tmp_addflag=' -nofor_main' ;;
11230 lf95*) # Lahey Fortran 8.1
11231 whole_archive_flag_spec=
11232 tmp_sharedflag='--shared' ;;
11233 nagfor*) # NAGFOR 5.3
11234 tmp_sharedflag='-Wl,-shared' ;;
11235 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11236 tmp_sharedflag='-qmkshrobj'
11237 tmp_addflag= ;;
11238 nvcc*) # Cuda Compiler Driver 2.2
11239 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'
11240 compiler_needs_object=yes
11241 ;;
11242 esac
11243 case `$CC -V 2>&1 | $SED 5q` in
11244 *Sun\ C*) # Sun C 5.9
11245 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'
11246 compiler_needs_object=yes
11247 tmp_sharedflag='-G' ;;
11248 *Sun\ F*) # Sun Fortran 8.3
11249 tmp_sharedflag='-G' ;;
11250 esac
11251 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11252
11253 if test yes = "$supports_anon_versioning"; then
11254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11255 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11256 echo "local: *; };" >> $output_objdir/$libname.ver~
11257 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11258 fi
11259
11260 case $cc_basename in
11261 tcc*)
11262 export_dynamic_flag_spec='-rdynamic'
11263 ;;
11264 xlf* | bgf* | bgxlf* | mpixlf*)
11265 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11266 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11268 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11269 if test yes = "$supports_anon_versioning"; then
11270 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11271 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11272 echo "local: *; };" >> $output_objdir/$libname.ver~
11273 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11274 fi
11275 ;;
11276 esac
11277 else
11278 ld_shlibs=no
11279 fi
11280 ;;
11281
11282 netbsd*)
11283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11284 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11285 wlarc=
11286 else
11287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11288 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11289 fi
11290 ;;
11291
11292 solaris*)
11293 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11294 ld_shlibs=no
11295 cat <<_LT_EOF 1>&2
11296
11297 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11298 *** create shared libraries on Solaris systems. Therefore, libtool
11299 *** is disabling shared libraries support. We urge you to upgrade GNU
11300 *** binutils to release 2.9.1 or newer. Another option is to modify
11301 *** your PATH or compiler configuration so that the native linker is
11302 *** used, and then restart.
11303
11304 _LT_EOF
11305 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11307 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11308 else
11309 ld_shlibs=no
11310 fi
11311 ;;
11312
11313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11314 case `$LD -v 2>&1` in
11315 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11316 ld_shlibs=no
11317 cat <<_LT_EOF 1>&2
11318
11319 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11320 *** reliably create shared libraries on SCO systems. Therefore, libtool
11321 *** is disabling shared libraries support. We urge you to upgrade GNU
11322 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11323 *** your PATH or compiler configuration so that the native linker is
11324 *** used, and then restart.
11325
11326 _LT_EOF
11327 ;;
11328 *)
11329 # For security reasons, it is highly recommended that you always
11330 # use absolute paths for naming shared libraries, and exclude the
11331 # DT_RUNPATH tag from executables and libraries. But doing so
11332 # requires that you compile everything twice, which is a pain.
11333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11337 else
11338 ld_shlibs=no
11339 fi
11340 ;;
11341 esac
11342 ;;
11343
11344 sunos4*)
11345 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11346 wlarc=
11347 hardcode_direct=yes
11348 hardcode_shlibpath_var=no
11349 ;;
11350
11351 *)
11352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11354 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11355 else
11356 ld_shlibs=no
11357 fi
11358 ;;
11359 esac
11360
11361 if test no = "$ld_shlibs"; then
11362 runpath_var=
11363 hardcode_libdir_flag_spec=
11364 export_dynamic_flag_spec=
11365 whole_archive_flag_spec=
11366 fi
11367 else
11368 # PORTME fill in a description of your system's linker (not GNU ld)
11369 case $host_os in
11370 aix3*)
11371 allow_undefined_flag=unsupported
11372 always_export_symbols=yes
11373 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'
11374 # Note: this linker hardcodes the directories in LIBPATH if there
11375 # are no directories specified by -L.
11376 hardcode_minus_L=yes
11377 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11378 # Neither direct hardcoding nor static linking is supported with a
11379 # broken collect2.
11380 hardcode_direct=unsupported
11381 fi
11382 ;;
11383
11384 aix[4-9]*)
11385 if test ia64 = "$host_cpu"; then
11386 # On IA64, the linker does run time linking by default, so we don't
11387 # have to do anything special.
11388 aix_use_runtimelinking=no
11389 exp_sym_flag='-Bexport'
11390 no_entry_flag=
11391 else
11392 # If we're using GNU nm, then we don't want the "-C" option.
11393 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11394 # Without the "-l" option, or with the "-B" option, AIX nm treats
11395 # weak defined symbols like other global defined symbols, whereas
11396 # GNU nm marks them as "W".
11397 # While the 'weak' keyword is ignored in the Export File, we need
11398 # it in the Import File for the 'aix-soname' feature, so we have
11399 # to replace the "-B" option with "-P" for AIX nm.
11400 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11401 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'
11402 else
11403 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'
11404 fi
11405 aix_use_runtimelinking=no
11406
11407 # Test if we are trying to use run time linking or normal
11408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11409 # have runtime linking enabled, and use it for executables.
11410 # For shared libraries, we enable/disable runtime linking
11411 # depending on the kind of the shared library created -
11412 # when "with_aix_soname,aix_use_runtimelinking" is:
11413 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11414 # "aix,yes" lib.so shared, rtl:yes, for executables
11415 # lib.a static archive
11416 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11417 # lib.a(lib.so.V) shared, rtl:no, for executables
11418 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11419 # lib.a(lib.so.V) shared, rtl:no
11420 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11421 # lib.a static archive
11422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11423 for ld_flag in $LDFLAGS; do
11424 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11425 aix_use_runtimelinking=yes
11426 break
11427 fi
11428 done
11429 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11430 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11431 # so we don't have lib.a shared libs to link our executables.
11432 # We have to force runtime linking in this case.
11433 aix_use_runtimelinking=yes
11434 LDFLAGS="$LDFLAGS -Wl,-brtl"
11435 fi
11436 ;;
11437 esac
11438
11439 exp_sym_flag='-bexport'
11440 no_entry_flag='-bnoentry'
11441 fi
11442
11443 # When large executables or shared objects are built, AIX ld can
11444 # have problems creating the table of contents. If linking a library
11445 # or program results in "error TOC overflow" add -mminimal-toc to
11446 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11447 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11448
11449 archive_cmds=''
11450 hardcode_direct=yes
11451 hardcode_direct_absolute=yes
11452 hardcode_libdir_separator=':'
11453 link_all_deplibs=yes
11454 file_list_spec='$wl-f,'
11455 case $with_aix_soname,$aix_use_runtimelinking in
11456 aix,*) ;; # traditional, no import file
11457 svr4,* | *,yes) # use import file
11458 # The Import File defines what to hardcode.
11459 hardcode_direct=no
11460 hardcode_direct_absolute=no
11461 ;;
11462 esac
11463
11464 if test yes = "$GCC"; then
11465 case $host_os in aix4.[012]|aix4.[012].*)
11466 # We only want to do this on AIX 4.2 and lower, the check
11467 # below for broken collect2 doesn't work under 4.3+
11468 collect2name=`$CC -print-prog-name=collect2`
11469 if test -f "$collect2name" &&
11470 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11471 then
11472 # We have reworked collect2
11473 :
11474 else
11475 # We have old collect2
11476 hardcode_direct=unsupported
11477 # It fails to find uninstalled libraries when the uninstalled
11478 # path is not listed in the libpath. Setting hardcode_minus_L
11479 # to unsupported forces relinking
11480 hardcode_minus_L=yes
11481 hardcode_libdir_flag_spec='-L$libdir'
11482 hardcode_libdir_separator=
11483 fi
11484 ;;
11485 esac
11486 shared_flag='-shared'
11487 if test yes = "$aix_use_runtimelinking"; then
11488 shared_flag="$shared_flag "'$wl-G'
11489 fi
11490 # Need to ensure runtime linking is disabled for the traditional
11491 # shared library, or the linker may eventually find shared libraries
11492 # /with/ Import File - we do not want to mix them.
11493 shared_flag_aix='-shared'
11494 shared_flag_svr4='-shared $wl-G'
11495 else
11496 # not using gcc
11497 if test ia64 = "$host_cpu"; then
11498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11499 # chokes on -Wl,-G. The following line is correct:
11500 shared_flag='-G'
11501 else
11502 if test yes = "$aix_use_runtimelinking"; then
11503 shared_flag='$wl-G'
11504 else
11505 shared_flag='$wl-bM:SRE'
11506 fi
11507 shared_flag_aix='$wl-bM:SRE'
11508 shared_flag_svr4='$wl-G'
11509 fi
11510 fi
11511
11512 export_dynamic_flag_spec='$wl-bexpall'
11513 # It seems that -bexpall does not export symbols beginning with
11514 # underscore (_), so it is better to generate a list of symbols to export.
11515 always_export_symbols=yes
11516 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11517 # Warning - without using the other runtime loading flags (-brtl),
11518 # -berok will link without error, but may produce a broken library.
11519 allow_undefined_flag='-berok'
11520 # Determine the default libpath from the value encoded in an
11521 # empty executable.
11522 if test set = "${lt_cv_aix_libpath+set}"; then
11523 aix_libpath=$lt_cv_aix_libpath
11524 else
11525 if test ${lt_cv_aix_libpath_+y}
11526 then :
11527 printf %s "(cached) " >&6
11528 else $as_nop
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531
11532 int
11533 main (void)
11534 {
11535
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"
11541 then :
11542
11543 lt_aix_libpath_sed='
11544 /Import File Strings/,/^$/ {
11545 /^0/ {
11546 s/^0 *\([^ ]*\) *$/\1/
11547 p
11548 }
11549 }'
11550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11551 # Check for a 64-bit object if we didn't find anything.
11552 if test -z "$lt_cv_aix_libpath_"; then
11553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11554 fi
11555 fi
11556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11557 conftest$ac_exeext conftest.$ac_ext
11558 if test -z "$lt_cv_aix_libpath_"; then
11559 lt_cv_aix_libpath_=/usr/lib:/lib
11560 fi
11561
11562 fi
11563
11564 aix_libpath=$lt_cv_aix_libpath_
11565 fi
11566
11567 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11568 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
11569 else
11570 if test ia64 = "$host_cpu"; then
11571 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11572 allow_undefined_flag="-z nodefs"
11573 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"
11574 else
11575 # Determine the default libpath from the value encoded in an
11576 # empty executable.
11577 if test set = "${lt_cv_aix_libpath+set}"; then
11578 aix_libpath=$lt_cv_aix_libpath
11579 else
11580 if test ${lt_cv_aix_libpath_+y}
11581 then :
11582 printf %s "(cached) " >&6
11583 else $as_nop
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586
11587 int
11588 main (void)
11589 {
11590
11591 ;
11592 return 0;
11593 }
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"
11596 then :
11597
11598 lt_aix_libpath_sed='
11599 /Import File Strings/,/^$/ {
11600 /^0/ {
11601 s/^0 *\([^ ]*\) *$/\1/
11602 p
11603 }
11604 }'
11605 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11606 # Check for a 64-bit object if we didn't find anything.
11607 if test -z "$lt_cv_aix_libpath_"; then
11608 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11609 fi
11610 fi
11611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11612 conftest$ac_exeext conftest.$ac_ext
11613 if test -z "$lt_cv_aix_libpath_"; then
11614 lt_cv_aix_libpath_=/usr/lib:/lib
11615 fi
11616
11617 fi
11618
11619 aix_libpath=$lt_cv_aix_libpath_
11620 fi
11621
11622 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11623 # Warning - without using the other run time loading flags,
11624 # -berok will link without error, but may produce a broken library.
11625 no_undefined_flag=' $wl-bernotok'
11626 allow_undefined_flag=' $wl-berok'
11627 if test yes = "$with_gnu_ld"; then
11628 # We only use this code for GNU lds that support --whole-archive.
11629 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11630 else
11631 # Exported symbols can be pulled into shared objects from archives
11632 whole_archive_flag_spec='$convenience'
11633 fi
11634 archive_cmds_need_lc=yes
11635 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11636 # -brtl affects multiple linker settings, -berok does not and is overridden later
11637 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11638 if test svr4 != "$with_aix_soname"; then
11639 # This is similar to how AIX traditionally builds its shared libraries.
11640 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'
11641 fi
11642 if test aix != "$with_aix_soname"; then
11643 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'
11644 else
11645 # used by -dlpreopen to get the symbols
11646 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11647 fi
11648 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11649 fi
11650 fi
11651 ;;
11652
11653 amigaos*)
11654 case $host_cpu in
11655 powerpc)
11656 # see comment about AmigaOS4 .so support
11657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11658 archive_expsym_cmds=''
11659 ;;
11660 m68k)
11661 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)'
11662 hardcode_libdir_flag_spec='-L$libdir'
11663 hardcode_minus_L=yes
11664 ;;
11665 esac
11666 ;;
11667
11668 bsdi[45]*)
11669 export_dynamic_flag_spec=-rdynamic
11670 ;;
11671
11672 cygwin* | mingw* | pw32* | cegcc*)
11673 # When not using gcc, we currently assume that we are using
11674 # Microsoft Visual C++ or Intel C++ Compiler.
11675 # hardcode_libdir_flag_spec is actually meaningless, as there is
11676 # no search path for DLLs.
11677 case $cc_basename in
11678 cl* | icl*)
11679 # Native MSVC or ICC
11680 hardcode_libdir_flag_spec=' '
11681 allow_undefined_flag=unsupported
11682 always_export_symbols=yes
11683 file_list_spec='@'
11684 # Tell ltmain to make .lib files, not .a files.
11685 libext=lib
11686 # Tell ltmain to make .dll files, not .so files.
11687 shrext_cmds=.dll
11688 # FIXME: Setting linknames here is a bad hack.
11689 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11690 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11691 cp "$export_symbols" "$output_objdir/$soname.def";
11692 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11693 else
11694 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11695 fi~
11696 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11697 linknames='
11698 # The linker will not automatically build a static lib if we build a DLL.
11699 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11700 enable_shared_with_static_runtimes=yes
11701 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11703 # Don't use ranlib
11704 old_postinstall_cmds='chmod 644 $oldlib'
11705 postlink_cmds='lt_outputfile="@OUTPUT@"~
11706 lt_tool_outputfile="@TOOL_OUTPUT@"~
11707 case $lt_outputfile in
11708 *.exe|*.EXE) ;;
11709 *)
11710 lt_outputfile=$lt_outputfile.exe
11711 lt_tool_outputfile=$lt_tool_outputfile.exe
11712 ;;
11713 esac~
11714 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11715 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11716 $RM "$lt_outputfile.manifest";
11717 fi'
11718 ;;
11719 *)
11720 # Assume MSVC and ICC wrapper
11721 hardcode_libdir_flag_spec=' '
11722 allow_undefined_flag=unsupported
11723 # Tell ltmain to make .lib files, not .a files.
11724 libext=lib
11725 # Tell ltmain to make .dll files, not .so files.
11726 shrext_cmds=.dll
11727 # FIXME: Setting linknames here is a bad hack.
11728 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11729 # The linker will automatically build a .lib file if we build a DLL.
11730 old_archive_from_new_cmds='true'
11731 # FIXME: Should let the user specify the lib program.
11732 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11733 enable_shared_with_static_runtimes=yes
11734 ;;
11735 esac
11736 ;;
11737
11738 darwin* | rhapsody*)
11739
11740
11741 archive_cmds_need_lc=no
11742 hardcode_direct=no
11743 hardcode_automatic=yes
11744 hardcode_shlibpath_var=unsupported
11745 if test yes = "$lt_cv_ld_force_load"; then
11746 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\"`'
11747
11748 else
11749 whole_archive_flag_spec=''
11750 fi
11751 link_all_deplibs=yes
11752 allow_undefined_flag=$_lt_dar_allow_undefined
11753 case $cc_basename in
11754 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11755 *) _lt_dar_can_shared=$GCC ;;
11756 esac
11757 if test yes = "$_lt_dar_can_shared"; then
11758 output_verbose_link_cmd=func_echo_all
11759 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11760 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11761 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"
11762 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"
11763
11764 else
11765 ld_shlibs=no
11766 fi
11767
11768 ;;
11769
11770 dgux*)
11771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11772 hardcode_libdir_flag_spec='-L$libdir'
11773 hardcode_shlibpath_var=no
11774 ;;
11775
11776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11777 # support. Future versions do this automatically, but an explicit c++rt0.o
11778 # does not break anything, and helps significantly (at the cost of a little
11779 # extra space).
11780 freebsd2.2*)
11781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11782 hardcode_libdir_flag_spec='-R$libdir'
11783 hardcode_direct=yes
11784 hardcode_shlibpath_var=no
11785 ;;
11786
11787 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11788 freebsd2.*)
11789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11790 hardcode_direct=yes
11791 hardcode_minus_L=yes
11792 hardcode_shlibpath_var=no
11793 ;;
11794
11795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11796 freebsd* | dragonfly* | midnightbsd*)
11797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11798 hardcode_libdir_flag_spec='-R$libdir'
11799 hardcode_direct=yes
11800 hardcode_shlibpath_var=no
11801 ;;
11802
11803 hpux9*)
11804 if test yes = "$GCC"; then
11805 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'
11806 else
11807 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'
11808 fi
11809 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11810 hardcode_libdir_separator=:
11811 hardcode_direct=yes
11812
11813 # hardcode_minus_L: Not really in the search PATH,
11814 # but as the default location of the library.
11815 hardcode_minus_L=yes
11816 export_dynamic_flag_spec='$wl-E'
11817 ;;
11818
11819 hpux10*)
11820 if test yes,no = "$GCC,$with_gnu_ld"; then
11821 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11822 else
11823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11824 fi
11825 if test no = "$with_gnu_ld"; then
11826 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11827 hardcode_libdir_separator=:
11828 hardcode_direct=yes
11829 hardcode_direct_absolute=yes
11830 export_dynamic_flag_spec='$wl-E'
11831 # hardcode_minus_L: Not really in the search PATH,
11832 # but as the default location of the library.
11833 hardcode_minus_L=yes
11834 fi
11835 ;;
11836
11837 hpux11*)
11838 if test yes,no = "$GCC,$with_gnu_ld"; then
11839 case $host_cpu in
11840 hppa*64*)
11841 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11842 ;;
11843 ia64*)
11844 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11845 ;;
11846 *)
11847 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11848 ;;
11849 esac
11850 else
11851 case $host_cpu in
11852 hppa*64*)
11853 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11854 ;;
11855 ia64*)
11856 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11857 ;;
11858 *)
11859
11860 # Older versions of the 11.00 compiler do not understand -b yet
11861 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11863 printf %s "checking if $CC understands -b... " >&6; }
11864 if test ${lt_cv_prog_compiler__b+y}
11865 then :
11866 printf %s "(cached) " >&6
11867 else $as_nop
11868 lt_cv_prog_compiler__b=no
11869 save_LDFLAGS=$LDFLAGS
11870 LDFLAGS="$LDFLAGS -b"
11871 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11873 # The linker can only warn and ignore the option if not recognized
11874 # So say no if there are warnings
11875 if test -s conftest.err; then
11876 # Append any errors to the config.log.
11877 cat conftest.err 1>&5
11878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11880 if diff conftest.exp conftest.er2 >/dev/null; then
11881 lt_cv_prog_compiler__b=yes
11882 fi
11883 else
11884 lt_cv_prog_compiler__b=yes
11885 fi
11886 fi
11887 $RM -r conftest*
11888 LDFLAGS=$save_LDFLAGS
11889
11890 fi
11891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11892 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11893
11894 if test yes = "$lt_cv_prog_compiler__b"; then
11895 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11896 else
11897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11898 fi
11899
11900 ;;
11901 esac
11902 fi
11903 if test no = "$with_gnu_ld"; then
11904 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11905 hardcode_libdir_separator=:
11906
11907 case $host_cpu in
11908 hppa*64*|ia64*)
11909 hardcode_direct=no
11910 hardcode_shlibpath_var=no
11911 ;;
11912 *)
11913 hardcode_direct=yes
11914 hardcode_direct_absolute=yes
11915 export_dynamic_flag_spec='$wl-E'
11916
11917 # hardcode_minus_L: Not really in the search PATH,
11918 # but as the default location of the library.
11919 hardcode_minus_L=yes
11920 ;;
11921 esac
11922 fi
11923 ;;
11924
11925 irix5* | irix6* | nonstopux*)
11926 if test yes = "$GCC"; then
11927 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'
11928 # Try to use the -exported_symbol ld option, if it does not
11929 # work, assume that -exports_file does not work either and
11930 # implicitly export all symbols.
11931 # This should be the same for all languages, so no per-tag cache variable.
11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11933 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11934 if test ${lt_cv_irix_exported_symbol+y}
11935 then :
11936 printf %s "(cached) " >&6
11937 else $as_nop
11938 save_LDFLAGS=$LDFLAGS
11939 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942 int foo (void) { return 0; }
11943 _ACEOF
11944 if ac_fn_c_try_link "$LINENO"
11945 then :
11946 lt_cv_irix_exported_symbol=yes
11947 else $as_nop
11948 lt_cv_irix_exported_symbol=no
11949 fi
11950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11951 conftest$ac_exeext conftest.$ac_ext
11952 LDFLAGS=$save_LDFLAGS
11953 fi
11954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11955 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11956 if test yes = "$lt_cv_irix_exported_symbol"; then
11957 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'
11958 fi
11959 else
11960 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'
11961 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'
11962 fi
11963 archive_cmds_need_lc='no'
11964 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11965 hardcode_libdir_separator=:
11966 inherit_rpath=yes
11967 link_all_deplibs=yes
11968 ;;
11969
11970 linux*)
11971 case $cc_basename in
11972 tcc*)
11973 # Fabrice Bellard et al's Tiny C Compiler
11974 ld_shlibs=yes
11975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11976 ;;
11977 esac
11978 ;;
11979
11980 netbsd*)
11981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11983 else
11984 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11985 fi
11986 hardcode_libdir_flag_spec='-R$libdir'
11987 hardcode_direct=yes
11988 hardcode_shlibpath_var=no
11989 ;;
11990
11991 newsos6)
11992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11993 hardcode_direct=yes
11994 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11995 hardcode_libdir_separator=:
11996 hardcode_shlibpath_var=no
11997 ;;
11998
11999 *nto* | *qnx*)
12000 ;;
12001
12002 openbsd* | bitrig*)
12003 if test -f /usr/libexec/ld.so; then
12004 hardcode_direct=yes
12005 hardcode_shlibpath_var=no
12006 hardcode_direct_absolute=yes
12007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12009 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12010 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12011 export_dynamic_flag_spec='$wl-E'
12012 else
12013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12014 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12015 fi
12016 else
12017 ld_shlibs=no
12018 fi
12019 ;;
12020
12021 os2*)
12022 hardcode_libdir_flag_spec='-L$libdir'
12023 hardcode_minus_L=yes
12024 allow_undefined_flag=unsupported
12025 shrext_cmds=.dll
12026 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12027 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12028 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12029 $ECHO EXPORTS >> $output_objdir/$libname.def~
12030 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12031 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12032 emximp -o $lib $output_objdir/$libname.def'
12033 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12034 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12035 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12036 $ECHO EXPORTS >> $output_objdir/$libname.def~
12037 prefix_cmds="$SED"~
12038 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12039 prefix_cmds="$prefix_cmds -e 1d";
12040 fi~
12041 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12042 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12043 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12044 emximp -o $lib $output_objdir/$libname.def'
12045 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12046 enable_shared_with_static_runtimes=yes
12047 file_list_spec='@'
12048 ;;
12049
12050 osf3*)
12051 if test yes = "$GCC"; then
12052 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12053 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'
12054 else
12055 allow_undefined_flag=' -expect_unresolved \*'
12056 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'
12057 fi
12058 archive_cmds_need_lc='no'
12059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12060 hardcode_libdir_separator=:
12061 ;;
12062
12063 osf4* | osf5*) # as osf3* with the addition of -msym flag
12064 if test yes = "$GCC"; then
12065 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12066 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'
12067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12068 else
12069 allow_undefined_flag=' -expect_unresolved \*'
12070 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'
12071 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~
12072 $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'
12073
12074 # Both c and cxx compiler support -rpath directly
12075 hardcode_libdir_flag_spec='-rpath $libdir'
12076 fi
12077 archive_cmds_need_lc='no'
12078 hardcode_libdir_separator=:
12079 ;;
12080
12081 solaris*)
12082 no_undefined_flag=' -z defs'
12083 if test yes = "$GCC"; then
12084 wlarc='$wl'
12085 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12087 $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'
12088 else
12089 case `$CC -V 2>&1` in
12090 *"Compilers 5.0"*)
12091 wlarc=''
12092 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12094 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12095 ;;
12096 *)
12097 wlarc='$wl'
12098 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12099 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12100 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12101 ;;
12102 esac
12103 fi
12104 hardcode_libdir_flag_spec='-R$libdir'
12105 hardcode_shlibpath_var=no
12106 case $host_os in
12107 solaris2.[0-5] | solaris2.[0-5].*) ;;
12108 *)
12109 # The compiler driver will combine and reorder linker options,
12110 # but understands '-z linker_flag'. GCC discards it without '$wl',
12111 # but is careful enough not to reorder.
12112 # Supported since Solaris 2.6 (maybe 2.5.1?)
12113 if test yes = "$GCC"; then
12114 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12115 else
12116 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12117 fi
12118 ;;
12119 esac
12120 link_all_deplibs=yes
12121 ;;
12122
12123 sunos4*)
12124 if test sequent = "$host_vendor"; then
12125 # Use $CC to link under sequent, because it throws in some extra .o
12126 # files that make .init and .fini sections work.
12127 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12128 else
12129 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12130 fi
12131 hardcode_libdir_flag_spec='-L$libdir'
12132 hardcode_direct=yes
12133 hardcode_minus_L=yes
12134 hardcode_shlibpath_var=no
12135 ;;
12136
12137 sysv4)
12138 case $host_vendor in
12139 sni)
12140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12141 hardcode_direct=yes # is this really true???
12142 ;;
12143 siemens)
12144 ## LD is ld it makes a PLAMLIB
12145 ## CC just makes a GrossModule.
12146 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12147 reload_cmds='$CC -r -o $output$reload_objs'
12148 hardcode_direct=no
12149 ;;
12150 motorola)
12151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12152 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12153 ;;
12154 esac
12155 runpath_var='LD_RUN_PATH'
12156 hardcode_shlibpath_var=no
12157 ;;
12158
12159 sysv4.3*)
12160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12161 hardcode_shlibpath_var=no
12162 export_dynamic_flag_spec='-Bexport'
12163 ;;
12164
12165 sysv4*MP*)
12166 if test -d /usr/nec; then
12167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12168 hardcode_shlibpath_var=no
12169 runpath_var=LD_RUN_PATH
12170 hardcode_runpath_var=yes
12171 ld_shlibs=yes
12172 fi
12173 ;;
12174
12175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12176 no_undefined_flag='$wl-z,text'
12177 archive_cmds_need_lc=no
12178 hardcode_shlibpath_var=no
12179 runpath_var='LD_RUN_PATH'
12180
12181 if test yes = "$GCC"; then
12182 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12183 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12184 else
12185 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12186 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12187 fi
12188 ;;
12189
12190 sysv5* | sco3.2v5* | sco5v6*)
12191 # Note: We CANNOT use -z defs as we might desire, because we do not
12192 # link with -lc, and that would cause any symbols used from libc to
12193 # always be unresolved, which means just about no library would
12194 # ever link correctly. If we're not using GNU ld we use -z text
12195 # though, which does catch some bad symbols but isn't as heavy-handed
12196 # as -z defs.
12197 no_undefined_flag='$wl-z,text'
12198 allow_undefined_flag='$wl-z,nodefs'
12199 archive_cmds_need_lc=no
12200 hardcode_shlibpath_var=no
12201 hardcode_libdir_flag_spec='$wl-R,$libdir'
12202 hardcode_libdir_separator=':'
12203 link_all_deplibs=yes
12204 export_dynamic_flag_spec='$wl-Bexport'
12205 runpath_var='LD_RUN_PATH'
12206
12207 if test yes = "$GCC"; then
12208 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12209 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12210 else
12211 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12212 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12213 fi
12214 ;;
12215
12216 uts4*)
12217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12218 hardcode_libdir_flag_spec='-L$libdir'
12219 hardcode_shlibpath_var=no
12220 ;;
12221
12222 *)
12223 ld_shlibs=no
12224 ;;
12225 esac
12226
12227 if test sni = "$host_vendor"; then
12228 case $host in
12229 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12230 export_dynamic_flag_spec='$wl-Blargedynsym'
12231 ;;
12232 esac
12233 fi
12234 fi
12235
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12237 printf "%s\n" "$ld_shlibs" >&6; }
12238 test no = "$ld_shlibs" && can_build_shared=no
12239
12240 with_gnu_ld=$with_gnu_ld
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256 #
12257 # Do we need to explicitly link libc?
12258 #
12259 case "x$archive_cmds_need_lc" in
12260 x|xyes)
12261 # Assume -lc should be added
12262 archive_cmds_need_lc=yes
12263
12264 if test yes,yes = "$GCC,$enable_shared"; then
12265 case $archive_cmds in
12266 *'~'*)
12267 # FIXME: we may have to deal with multi-command sequences.
12268 ;;
12269 '$CC '*)
12270 # Test whether the compiler implicitly links with -lc since on some
12271 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12272 # to ld, don't add -lc before -lgcc.
12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12274 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12275 if test ${lt_cv_archive_cmds_need_lc+y}
12276 then :
12277 printf %s "(cached) " >&6
12278 else $as_nop
12279 $RM conftest*
12280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12281
12282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12283 (eval $ac_compile) 2>&5
12284 ac_status=$?
12285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12286 test $ac_status = 0; } 2>conftest.err; then
12287 soname=conftest
12288 lib=conftest
12289 libobjs=conftest.$ac_objext
12290 deplibs=
12291 wl=$lt_prog_compiler_wl
12292 pic_flag=$lt_prog_compiler_pic
12293 compiler_flags=-v
12294 linker_flags=-v
12295 verstring=
12296 output_objdir=.
12297 libname=conftest
12298 lt_save_allow_undefined_flag=$allow_undefined_flag
12299 allow_undefined_flag=
12300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12301 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12302 ac_status=$?
12303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12304 test $ac_status = 0; }
12305 then
12306 lt_cv_archive_cmds_need_lc=no
12307 else
12308 lt_cv_archive_cmds_need_lc=yes
12309 fi
12310 allow_undefined_flag=$lt_save_allow_undefined_flag
12311 else
12312 cat conftest.err 1>&5
12313 fi
12314 $RM conftest*
12315
12316 fi
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12318 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12319 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12320 ;;
12321 esac
12322 fi
12323 ;;
12324 esac
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12478 printf %s "checking dynamic linker characteristics... " >&6; }
12479
12480 if test yes = "$GCC"; then
12481 case $host_os in
12482 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12483 *) lt_awk_arg='/^libraries:/' ;;
12484 esac
12485 case $host_os in
12486 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12487 *) lt_sed_strip_eq='s|=/|/|g' ;;
12488 esac
12489 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12490 case $lt_search_path_spec in
12491 *\;*)
12492 # if the path contains ";" then we assume it to be the separator
12493 # otherwise default to the standard path separator (i.e. ":") - it is
12494 # assumed that no part of a normal pathname contains ";" but that should
12495 # okay in the real world where ";" in dirpaths is itself problematic.
12496 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12497 ;;
12498 *)
12499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12500 ;;
12501 esac
12502 # Ok, now we have the path, separated by spaces, we can step through it
12503 # and add multilib dir if necessary...
12504 lt_tmp_lt_search_path_spec=
12505 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12506 # ...but if some path component already ends with the multilib dir we assume
12507 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12508 case "$lt_multi_os_dir; $lt_search_path_spec " in
12509 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12510 lt_multi_os_dir=
12511 ;;
12512 esac
12513 for lt_sys_path in $lt_search_path_spec; do
12514 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12515 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12516 elif test -n "$lt_multi_os_dir"; then
12517 test -d "$lt_sys_path" && \
12518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12519 fi
12520 done
12521 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12522 BEGIN {RS = " "; FS = "/|\n";} {
12523 lt_foo = "";
12524 lt_count = 0;
12525 for (lt_i = NF; lt_i > 0; lt_i--) {
12526 if ($lt_i != "" && $lt_i != ".") {
12527 if ($lt_i == "..") {
12528 lt_count++;
12529 } else {
12530 if (lt_count == 0) {
12531 lt_foo = "/" $lt_i lt_foo;
12532 } else {
12533 lt_count--;
12534 }
12535 }
12536 }
12537 }
12538 if (lt_foo != "") { lt_freq[lt_foo]++; }
12539 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12540 }'`
12541 # AWK program above erroneously prepends '/' to C:/dos/paths
12542 # for these hosts.
12543 case $host_os in
12544 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12545 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12546 esac
12547 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12548 else
12549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12550 fi
12551 library_names_spec=
12552 libname_spec='lib$name'
12553 soname_spec=
12554 shrext_cmds=.so
12555 postinstall_cmds=
12556 postuninstall_cmds=
12557 finish_cmds=
12558 finish_eval=
12559 shlibpath_var=
12560 shlibpath_overrides_runpath=unknown
12561 version_type=none
12562 dynamic_linker="$host_os ld.so"
12563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12564 need_lib_prefix=unknown
12565 hardcode_into_libs=no
12566
12567 # when you set need_version to no, make sure it does not cause -set_version
12568 # flags to be left without arguments
12569 need_version=unknown
12570
12571
12572
12573 case $host_os in
12574 aix3*)
12575 version_type=linux # correct to gnu/linux during the next big refactor
12576 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12577 shlibpath_var=LIBPATH
12578
12579 # AIX 3 has no versioning support, so we append a major version to the name.
12580 soname_spec='$libname$release$shared_ext$major'
12581 ;;
12582
12583 aix[4-9]*)
12584 version_type=linux # correct to gnu/linux during the next big refactor
12585 need_lib_prefix=no
12586 need_version=no
12587 hardcode_into_libs=yes
12588 if test ia64 = "$host_cpu"; then
12589 # AIX 5 supports IA64
12590 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 else
12593 # With GCC up to 2.95.x, collect2 would create an import file
12594 # for dependence libraries. The import file would start with
12595 # the line '#! .'. This would cause the generated library to
12596 # depend on '.', always an invalid library. This was fixed in
12597 # development snapshots of GCC prior to 3.0.
12598 case $host_os in
12599 aix4 | aix4.[01] | aix4.[01].*)
12600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12601 echo ' yes '
12602 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12603 :
12604 else
12605 can_build_shared=no
12606 fi
12607 ;;
12608 esac
12609 # Using Import Files as archive members, it is possible to support
12610 # filename-based versioning of shared library archives on AIX. While
12611 # this would work for both with and without runtime linking, it will
12612 # prevent static linking of such archives. So we do filename-based
12613 # shared library versioning with .so extension only, which is used
12614 # when both runtime linking and shared linking is enabled.
12615 # Unfortunately, runtime linking may impact performance, so we do
12616 # not want this to be the default eventually. Also, we use the
12617 # versioned .so libs for executables only if there is the -brtl
12618 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12619 # To allow for filename-based versioning support, we need to create
12620 # libNAME.so.V as an archive file, containing:
12621 # *) an Import File, referring to the versioned filename of the
12622 # archive as well as the shared archive member, telling the
12623 # bitwidth (32 or 64) of that shared object, and providing the
12624 # list of exported symbols of that shared object, eventually
12625 # decorated with the 'weak' keyword
12626 # *) the shared object with the F_LOADONLY flag set, to really avoid
12627 # it being seen by the linker.
12628 # At run time we better use the real file rather than another symlink,
12629 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12630
12631 case $with_aix_soname,$aix_use_runtimelinking in
12632 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12633 # soname into executable. Probably we can add versioning support to
12634 # collect2, so additional links can be useful in future.
12635 aix,yes) # traditional libtool
12636 dynamic_linker='AIX unversionable lib.so'
12637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12638 # instead of lib<name>.a to let people know that these are not
12639 # typical AIX shared libraries.
12640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12641 ;;
12642 aix,no) # traditional AIX only
12643 dynamic_linker='AIX lib.a(lib.so.V)'
12644 # We preserve .a as extension for shared libraries through AIX4.2
12645 # and later when we are not doing run time linking.
12646 library_names_spec='$libname$release.a $libname.a'
12647 soname_spec='$libname$release$shared_ext$major'
12648 ;;
12649 svr4,*) # full svr4 only
12650 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12651 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12652 # We do not specify a path in Import Files, so LIBPATH fires.
12653 shlibpath_overrides_runpath=yes
12654 ;;
12655 *,yes) # both, prefer svr4
12656 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12657 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12658 # unpreferred sharedlib libNAME.a needs extra handling
12659 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"'
12660 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"'
12661 # We do not specify a path in Import Files, so LIBPATH fires.
12662 shlibpath_overrides_runpath=yes
12663 ;;
12664 *,no) # both, prefer aix
12665 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12666 library_names_spec='$libname$release.a $libname.a'
12667 soname_spec='$libname$release$shared_ext$major'
12668 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12669 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)'
12670 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"'
12671 ;;
12672 esac
12673 shlibpath_var=LIBPATH
12674 fi
12675 ;;
12676
12677 amigaos*)
12678 case $host_cpu in
12679 powerpc)
12680 # Since July 2007 AmigaOS4 officially supports .so libraries.
12681 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12683 ;;
12684 m68k)
12685 library_names_spec='$libname.ixlibrary $libname.a'
12686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12687 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'
12688 ;;
12689 esac
12690 ;;
12691
12692 beos*)
12693 library_names_spec='$libname$shared_ext'
12694 dynamic_linker="$host_os ld.so"
12695 shlibpath_var=LIBRARY_PATH
12696 ;;
12697
12698 bsdi[45]*)
12699 version_type=linux # correct to gnu/linux during the next big refactor
12700 need_version=no
12701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12702 soname_spec='$libname$release$shared_ext$major'
12703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12707 # the default ld.so.conf also contains /usr/contrib/lib and
12708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12709 # libtool to hard-code these into programs
12710 ;;
12711
12712 cygwin* | mingw* | pw32* | cegcc*)
12713 version_type=windows
12714 shrext_cmds=.dll
12715 need_version=no
12716 need_lib_prefix=no
12717
12718 case $GCC,$cc_basename in
12719 yes,*)
12720 # gcc
12721 library_names_spec='$libname.dll.a'
12722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12723 postinstall_cmds='base_file=`basename \$file`~
12724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12725 dldir=$destdir/`dirname \$dlpath`~
12726 test -d \$dldir || mkdir -p \$dldir~
12727 $install_prog $dir/$dlname \$dldir/$dlname~
12728 chmod a+x \$dldir/$dlname~
12729 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12730 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12731 fi'
12732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12733 dlpath=$dir/\$dldll~
12734 $RM \$dlpath'
12735 shlibpath_overrides_runpath=yes
12736
12737 case $host_os in
12738 cygwin*)
12739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12740 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12741
12742 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12743 ;;
12744 mingw* | cegcc*)
12745 # MinGW DLLs use traditional 'lib' prefix
12746 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12747 ;;
12748 pw32*)
12749 # pw32 DLLs use 'pw' prefix rather than 'lib'
12750 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12751 ;;
12752 esac
12753 dynamic_linker='Win32 ld.exe'
12754 ;;
12755
12756 *,cl* | *,icl*)
12757 # Native MSVC or ICC
12758 libname_spec='$name'
12759 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12760 library_names_spec='$libname.dll.lib'
12761
12762 case $build_os in
12763 mingw*)
12764 sys_lib_search_path_spec=
12765 lt_save_ifs=$IFS
12766 IFS=';'
12767 for lt_path in $LIB
12768 do
12769 IFS=$lt_save_ifs
12770 # Let DOS variable expansion print the short 8.3 style file name.
12771 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12772 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12773 done
12774 IFS=$lt_save_ifs
12775 # Convert to MSYS style.
12776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12777 ;;
12778 cygwin*)
12779 # Convert to unix form, then to dos form, then back to unix form
12780 # but this time dos style (no spaces!) so that the unix form looks
12781 # like /cygdrive/c/PROGRA~1:/cygdr...
12782 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12783 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12784 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12785 ;;
12786 *)
12787 sys_lib_search_path_spec=$LIB
12788 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12789 # It is most probably a Windows format PATH.
12790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12791 else
12792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12793 fi
12794 # FIXME: find the short name or the path components, as spaces are
12795 # common. (e.g. "Program Files" -> "PROGRA~1")
12796 ;;
12797 esac
12798
12799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12800 postinstall_cmds='base_file=`basename \$file`~
12801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12802 dldir=$destdir/`dirname \$dlpath`~
12803 test -d \$dldir || mkdir -p \$dldir~
12804 $install_prog $dir/$dlname \$dldir/$dlname'
12805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12806 dlpath=$dir/\$dldll~
12807 $RM \$dlpath'
12808 shlibpath_overrides_runpath=yes
12809 dynamic_linker='Win32 link.exe'
12810 ;;
12811
12812 *)
12813 # Assume MSVC and ICC wrapper
12814 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12815 dynamic_linker='Win32 ld.exe'
12816 ;;
12817 esac
12818 # FIXME: first we should search . and the directory the executable is in
12819 shlibpath_var=PATH
12820 ;;
12821
12822 darwin* | rhapsody*)
12823 dynamic_linker="$host_os dyld"
12824 version_type=darwin
12825 need_lib_prefix=no
12826 need_version=no
12827 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12828 soname_spec='$libname$release$major$shared_ext'
12829 shlibpath_overrides_runpath=yes
12830 shlibpath_var=DYLD_LIBRARY_PATH
12831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12832
12833 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12835 ;;
12836
12837 dgux*)
12838 version_type=linux # correct to gnu/linux during the next big refactor
12839 need_lib_prefix=no
12840 need_version=no
12841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12842 soname_spec='$libname$release$shared_ext$major'
12843 shlibpath_var=LD_LIBRARY_PATH
12844 ;;
12845
12846 freebsd* | dragonfly* | midnightbsd*)
12847 # DragonFly does not have aout. When/if they implement a new
12848 # versioning mechanism, adjust this.
12849 if test -x /usr/bin/objformat; then
12850 objformat=`/usr/bin/objformat`
12851 else
12852 case $host_os in
12853 freebsd[23].*) objformat=aout ;;
12854 *) objformat=elf ;;
12855 esac
12856 fi
12857 version_type=freebsd-$objformat
12858 case $version_type in
12859 freebsd-elf*)
12860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12861 soname_spec='$libname$release$shared_ext$major'
12862 need_version=no
12863 need_lib_prefix=no
12864 ;;
12865 freebsd-*)
12866 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12867 need_version=yes
12868 ;;
12869 esac
12870 shlibpath_var=LD_LIBRARY_PATH
12871 case $host_os in
12872 freebsd2.*)
12873 shlibpath_overrides_runpath=yes
12874 ;;
12875 freebsd3.[01]* | freebsdelf3.[01]*)
12876 shlibpath_overrides_runpath=yes
12877 hardcode_into_libs=yes
12878 ;;
12879 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12880 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12881 shlibpath_overrides_runpath=no
12882 hardcode_into_libs=yes
12883 ;;
12884 *) # from 4.6 on, and DragonFly
12885 shlibpath_overrides_runpath=yes
12886 hardcode_into_libs=yes
12887 ;;
12888 esac
12889 ;;
12890
12891 haiku*)
12892 version_type=linux # correct to gnu/linux during the next big refactor
12893 need_lib_prefix=no
12894 need_version=no
12895 dynamic_linker="$host_os runtime_loader"
12896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12897 soname_spec='$libname$release$shared_ext$major'
12898 shlibpath_var=LIBRARY_PATH
12899 shlibpath_overrides_runpath=no
12900 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12901 hardcode_into_libs=yes
12902 ;;
12903
12904 hpux9* | hpux10* | hpux11*)
12905 # Give a soname corresponding to the major version so that dld.sl refuses to
12906 # link against other versions.
12907 version_type=sunos
12908 need_lib_prefix=no
12909 need_version=no
12910 case $host_cpu in
12911 ia64*)
12912 shrext_cmds='.so'
12913 hardcode_into_libs=yes
12914 dynamic_linker="$host_os dld.so"
12915 shlibpath_var=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12918 soname_spec='$libname$release$shared_ext$major'
12919 if test 32 = "$HPUX_IA64_MODE"; then
12920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12921 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12922 else
12923 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12924 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12925 fi
12926 ;;
12927 hppa*64*)
12928 shrext_cmds='.sl'
12929 hardcode_into_libs=yes
12930 dynamic_linker="$host_os dld.sl"
12931 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12934 soname_spec='$libname$release$shared_ext$major'
12935 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12937 ;;
12938 *)
12939 shrext_cmds='.sl'
12940 dynamic_linker="$host_os dld.sl"
12941 shlibpath_var=SHLIB_PATH
12942 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12944 soname_spec='$libname$release$shared_ext$major'
12945 ;;
12946 esac
12947 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12948 postinstall_cmds='chmod 555 $lib'
12949 # or fails outright, so override atomically:
12950 install_override_mode=555
12951 ;;
12952
12953 interix[3-9]*)
12954 version_type=linux # correct to gnu/linux during the next big refactor
12955 need_lib_prefix=no
12956 need_version=no
12957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12958 soname_spec='$libname$release$shared_ext$major'
12959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12960 shlibpath_var=LD_LIBRARY_PATH
12961 shlibpath_overrides_runpath=no
12962 hardcode_into_libs=yes
12963 ;;
12964
12965 irix5* | irix6* | nonstopux*)
12966 case $host_os in
12967 nonstopux*) version_type=nonstopux ;;
12968 *)
12969 if test yes = "$lt_cv_prog_gnu_ld"; then
12970 version_type=linux # correct to gnu/linux during the next big refactor
12971 else
12972 version_type=irix
12973 fi ;;
12974 esac
12975 need_lib_prefix=no
12976 need_version=no
12977 soname_spec='$libname$release$shared_ext$major'
12978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12979 case $host_os in
12980 irix5* | nonstopux*)
12981 libsuff= shlibsuff=
12982 ;;
12983 *)
12984 case $LD in # libtool.m4 will add one of these switches to LD
12985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12986 libsuff= shlibsuff= libmagic=32-bit;;
12987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12988 libsuff=32 shlibsuff=N32 libmagic=N32;;
12989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12991 *) libsuff= shlibsuff= libmagic=never-match;;
12992 esac
12993 ;;
12994 esac
12995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12996 shlibpath_overrides_runpath=no
12997 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12998 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12999 hardcode_into_libs=yes
13000 ;;
13001
13002 # No shared lib support for Linux oldld, aout, or coff.
13003 linux*oldld* | linux*aout* | linux*coff*)
13004 dynamic_linker=no
13005 ;;
13006
13007 linux*android*)
13008 version_type=none # Android doesn't support versioned libraries.
13009 need_lib_prefix=no
13010 need_version=no
13011 library_names_spec='$libname$release$shared_ext'
13012 soname_spec='$libname$release$shared_ext'
13013 finish_cmds=
13014 shlibpath_var=LD_LIBRARY_PATH
13015 shlibpath_overrides_runpath=yes
13016
13017 # This implies no fast_install, which is unacceptable.
13018 # Some rework will be needed to allow for fast_install
13019 # before this can be enabled.
13020 hardcode_into_libs=yes
13021
13022 dynamic_linker='Android linker'
13023 # Don't embed -rpath directories since the linker doesn't support them.
13024 hardcode_libdir_flag_spec='-L$libdir'
13025 ;;
13026
13027 # This must be glibc/ELF.
13028 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13029 version_type=linux # correct to gnu/linux during the next big refactor
13030 need_lib_prefix=no
13031 need_version=no
13032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13033 soname_spec='$libname$release$shared_ext$major'
13034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 shlibpath_overrides_runpath=no
13037
13038 # Some binutils ld are patched to set DT_RUNPATH
13039 if test ${lt_cv_shlibpath_overrides_runpath+y}
13040 then :
13041 printf %s "(cached) " >&6
13042 else $as_nop
13043 lt_cv_shlibpath_overrides_runpath=no
13044 save_LDFLAGS=$LDFLAGS
13045 save_libdir=$libdir
13046 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13047 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13050
13051 int
13052 main (void)
13053 {
13054
13055 ;
13056 return 0;
13057 }
13058 _ACEOF
13059 if ac_fn_c_try_link "$LINENO"
13060 then :
13061 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13062 then :
13063 lt_cv_shlibpath_overrides_runpath=yes
13064 fi
13065 fi
13066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13067 conftest$ac_exeext conftest.$ac_ext
13068 LDFLAGS=$save_LDFLAGS
13069 libdir=$save_libdir
13070
13071 fi
13072
13073 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13074
13075 # This implies no fast_install, which is unacceptable.
13076 # Some rework will be needed to allow for fast_install
13077 # before this can be enabled.
13078 hardcode_into_libs=yes
13079
13080 # Add ABI-specific directories to the system library path.
13081 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13082
13083 # Ideally, we could use ldconfig to report *all* directores which are
13084 # searched for libraries, however this is still not possible. Aside from not
13085 # being certain /sbin/ldconfig is available, command
13086 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13087 # even though it is searched at run-time. Try to do the best guess by
13088 # appending ld.so.conf contents (and includes) to the search path.
13089 if test -f /etc/ld.so.conf; then
13090 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' ' '`
13091 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13092 fi
13093
13094 # We used to test for /lib/ld.so.1 and disable shared libraries on
13095 # powerpc, because MkLinux only supported shared libraries with the
13096 # GNU dynamic linker. Since this was broken with cross compilers,
13097 # most powerpc-linux boxes support dynamic linking these days and
13098 # people can always --disable-shared, the test was removed, and we
13099 # assume the GNU/Linux dynamic linker is in use.
13100 dynamic_linker='GNU/Linux ld.so'
13101 ;;
13102
13103 netbsd*)
13104 version_type=sunos
13105 need_lib_prefix=no
13106 need_version=no
13107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13108 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13110 dynamic_linker='NetBSD (a.out) ld.so'
13111 else
13112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13113 soname_spec='$libname$release$shared_ext$major'
13114 dynamic_linker='NetBSD ld.elf_so'
13115 fi
13116 shlibpath_var=LD_LIBRARY_PATH
13117 shlibpath_overrides_runpath=yes
13118 hardcode_into_libs=yes
13119 ;;
13120
13121 newsos6)
13122 version_type=linux # correct to gnu/linux during the next big refactor
13123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13124 shlibpath_var=LD_LIBRARY_PATH
13125 shlibpath_overrides_runpath=yes
13126 ;;
13127
13128 *nto* | *qnx*)
13129 version_type=qnx
13130 need_lib_prefix=no
13131 need_version=no
13132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13133 soname_spec='$libname$release$shared_ext$major'
13134 shlibpath_var=LD_LIBRARY_PATH
13135 shlibpath_overrides_runpath=no
13136 hardcode_into_libs=yes
13137 dynamic_linker='ldqnx.so'
13138 ;;
13139
13140 openbsd* | bitrig*)
13141 version_type=sunos
13142 sys_lib_dlsearch_path_spec=/usr/lib
13143 need_lib_prefix=no
13144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13145 need_version=no
13146 else
13147 need_version=yes
13148 fi
13149 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13151 shlibpath_var=LD_LIBRARY_PATH
13152 shlibpath_overrides_runpath=yes
13153 ;;
13154
13155 os2*)
13156 libname_spec='$name'
13157 version_type=windows
13158 shrext_cmds=.dll
13159 need_version=no
13160 need_lib_prefix=no
13161 # OS/2 can only load a DLL with a base name of 8 characters or less.
13162 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13163 v=$($ECHO $release$versuffix | tr -d .-);
13164 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13165 $ECHO $n$v`$shared_ext'
13166 library_names_spec='${libname}_dll.$libext'
13167 dynamic_linker='OS/2 ld.exe'
13168 shlibpath_var=BEGINLIBPATH
13169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13171 postinstall_cmds='base_file=`basename \$file`~
13172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13173 dldir=$destdir/`dirname \$dlpath`~
13174 test -d \$dldir || mkdir -p \$dldir~
13175 $install_prog $dir/$dlname \$dldir/$dlname~
13176 chmod a+x \$dldir/$dlname~
13177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13179 fi'
13180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13181 dlpath=$dir/\$dldll~
13182 $RM \$dlpath'
13183 ;;
13184
13185 osf3* | osf4* | osf5*)
13186 version_type=osf
13187 need_lib_prefix=no
13188 need_version=no
13189 soname_spec='$libname$release$shared_ext$major'
13190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13191 shlibpath_var=LD_LIBRARY_PATH
13192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13194 ;;
13195
13196 rdos*)
13197 dynamic_linker=no
13198 ;;
13199
13200 solaris*)
13201 version_type=linux # correct to gnu/linux during the next big refactor
13202 need_lib_prefix=no
13203 need_version=no
13204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13205 soname_spec='$libname$release$shared_ext$major'
13206 shlibpath_var=LD_LIBRARY_PATH
13207 shlibpath_overrides_runpath=yes
13208 hardcode_into_libs=yes
13209 # ldd complains unless libraries are executable
13210 postinstall_cmds='chmod +x $lib'
13211 ;;
13212
13213 sunos4*)
13214 version_type=sunos
13215 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 shlibpath_overrides_runpath=yes
13219 if test yes = "$with_gnu_ld"; then
13220 need_lib_prefix=no
13221 fi
13222 need_version=yes
13223 ;;
13224
13225 sysv4 | sysv4.3*)
13226 version_type=linux # correct to gnu/linux during the next big refactor
13227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13228 soname_spec='$libname$release$shared_ext$major'
13229 shlibpath_var=LD_LIBRARY_PATH
13230 case $host_vendor in
13231 sni)
13232 shlibpath_overrides_runpath=no
13233 need_lib_prefix=no
13234 runpath_var=LD_RUN_PATH
13235 ;;
13236 siemens)
13237 need_lib_prefix=no
13238 ;;
13239 motorola)
13240 need_lib_prefix=no
13241 need_version=no
13242 shlibpath_overrides_runpath=no
13243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13244 ;;
13245 esac
13246 ;;
13247
13248 sysv4*MP*)
13249 if test -d /usr/nec; then
13250 version_type=linux # correct to gnu/linux during the next big refactor
13251 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13252 soname_spec='$libname$shared_ext.$major'
13253 shlibpath_var=LD_LIBRARY_PATH
13254 fi
13255 ;;
13256
13257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13258 version_type=sco
13259 need_lib_prefix=no
13260 need_version=no
13261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13262 soname_spec='$libname$release$shared_ext$major'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=yes
13265 hardcode_into_libs=yes
13266 if test yes = "$with_gnu_ld"; then
13267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13268 else
13269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13270 case $host_os in
13271 sco3.2v5*)
13272 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13273 ;;
13274 esac
13275 fi
13276 sys_lib_dlsearch_path_spec='/usr/lib'
13277 ;;
13278
13279 tpf*)
13280 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13281 version_type=linux # correct to gnu/linux during the next big refactor
13282 need_lib_prefix=no
13283 need_version=no
13284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13285 shlibpath_var=LD_LIBRARY_PATH
13286 shlibpath_overrides_runpath=no
13287 hardcode_into_libs=yes
13288 ;;
13289
13290 uts4*)
13291 version_type=linux # correct to gnu/linux during the next big refactor
13292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13293 soname_spec='$libname$release$shared_ext$major'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 ;;
13296
13297 *)
13298 dynamic_linker=no
13299 ;;
13300 esac
13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13302 printf "%s\n" "$dynamic_linker" >&6; }
13303 test no = "$dynamic_linker" && can_build_shared=no
13304
13305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13306 if test yes = "$GCC"; then
13307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13308 fi
13309
13310 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13311 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13312 fi
13313
13314 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13315 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13316 fi
13317
13318 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13319 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13320
13321 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13322 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13323
13324 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13325 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13424 printf %s "checking how to hardcode library paths into programs... " >&6; }
13425 hardcode_action=
13426 if test -n "$hardcode_libdir_flag_spec" ||
13427 test -n "$runpath_var" ||
13428 test yes = "$hardcode_automatic"; then
13429
13430 # We can hardcode non-existent directories.
13431 if test no != "$hardcode_direct" &&
13432 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13433 # have to relink, otherwise we might link with an installed library
13434 # when we should be linking with a yet-to-be-installed one
13435 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13436 test no != "$hardcode_minus_L"; then
13437 # Linking always hardcodes the temporary library directory.
13438 hardcode_action=relink
13439 else
13440 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13441 hardcode_action=immediate
13442 fi
13443 else
13444 # We cannot hardcode anything, or else we can only hardcode existing
13445 # directories.
13446 hardcode_action=unsupported
13447 fi
13448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13449 printf "%s\n" "$hardcode_action" >&6; }
13450
13451 if test relink = "$hardcode_action" ||
13452 test yes = "$inherit_rpath"; then
13453 # Fast installation is not supported
13454 enable_fast_install=no
13455 elif test yes = "$shlibpath_overrides_runpath" ||
13456 test no = "$enable_shared"; then
13457 # Fast installation is not necessary
13458 enable_fast_install=needless
13459 fi
13460
13461
13462
13463
13464
13465
13466 if test yes != "$enable_dlopen"; then
13467 enable_dlopen=unknown
13468 enable_dlopen_self=unknown
13469 enable_dlopen_self_static=unknown
13470 else
13471 lt_cv_dlopen=no
13472 lt_cv_dlopen_libs=
13473
13474 case $host_os in
13475 beos*)
13476 lt_cv_dlopen=load_add_on
13477 lt_cv_dlopen_libs=
13478 lt_cv_dlopen_self=yes
13479 ;;
13480
13481 mingw* | pw32* | cegcc*)
13482 lt_cv_dlopen=LoadLibrary
13483 lt_cv_dlopen_libs=
13484 ;;
13485
13486 cygwin*)
13487 lt_cv_dlopen=dlopen
13488 lt_cv_dlopen_libs=
13489 ;;
13490
13491 darwin*)
13492 # if libdl is installed we need to link against it
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13494 printf %s "checking for dlopen in -ldl... " >&6; }
13495 if test ${ac_cv_lib_dl_dlopen+y}
13496 then :
13497 printf %s "(cached) " >&6
13498 else $as_nop
13499 ac_check_lib_save_LIBS=$LIBS
13500 LIBS="-ldl $LIBS"
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503
13504 /* Override any GCC internal prototype to avoid an error.
13505 Use char because int might match the return type of a GCC
13506 builtin and then its argument prototype would still apply. */
13507 char dlopen ();
13508 int
13509 main (void)
13510 {
13511 return dlopen ();
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_link "$LINENO"
13517 then :
13518 ac_cv_lib_dl_dlopen=yes
13519 else $as_nop
13520 ac_cv_lib_dl_dlopen=no
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13523 conftest$ac_exeext conftest.$ac_ext
13524 LIBS=$ac_check_lib_save_LIBS
13525 fi
13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13527 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13528 if test "x$ac_cv_lib_dl_dlopen" = xyes
13529 then :
13530 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13531 else $as_nop
13532
13533 lt_cv_dlopen=dyld
13534 lt_cv_dlopen_libs=
13535 lt_cv_dlopen_self=yes
13536
13537 fi
13538
13539 ;;
13540
13541 tpf*)
13542 # Don't try to run any link tests for TPF. We know it's impossible
13543 # because TPF is a cross-compiler, and we know how we open DSOs.
13544 lt_cv_dlopen=dlopen
13545 lt_cv_dlopen_libs=
13546 lt_cv_dlopen_self=no
13547 ;;
13548
13549 *)
13550 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13551 if test "x$ac_cv_func_shl_load" = xyes
13552 then :
13553 lt_cv_dlopen=shl_load
13554 else $as_nop
13555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13556 printf %s "checking for shl_load in -ldld... " >&6; }
13557 if test ${ac_cv_lib_dld_shl_load+y}
13558 then :
13559 printf %s "(cached) " >&6
13560 else $as_nop
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-ldld $LIBS"
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565
13566 /* Override any GCC internal prototype to avoid an error.
13567 Use char because int might match the return type of a GCC
13568 builtin and then its argument prototype would still apply. */
13569 char shl_load ();
13570 int
13571 main (void)
13572 {
13573 return shl_load ();
13574 ;
13575 return 0;
13576 }
13577 _ACEOF
13578 if ac_fn_c_try_link "$LINENO"
13579 then :
13580 ac_cv_lib_dld_shl_load=yes
13581 else $as_nop
13582 ac_cv_lib_dld_shl_load=no
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13585 conftest$ac_exeext conftest.$ac_ext
13586 LIBS=$ac_check_lib_save_LIBS
13587 fi
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13589 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13590 if test "x$ac_cv_lib_dld_shl_load" = xyes
13591 then :
13592 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13593 else $as_nop
13594 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13595 if test "x$ac_cv_func_dlopen" = xyes
13596 then :
13597 lt_cv_dlopen=dlopen
13598 else $as_nop
13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13600 printf %s "checking for dlopen in -ldl... " >&6; }
13601 if test ${ac_cv_lib_dl_dlopen+y}
13602 then :
13603 printf %s "(cached) " >&6
13604 else $as_nop
13605 ac_check_lib_save_LIBS=$LIBS
13606 LIBS="-ldl $LIBS"
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609
13610 /* Override any GCC internal prototype to avoid an error.
13611 Use char because int might match the return type of a GCC
13612 builtin and then its argument prototype would still apply. */
13613 char dlopen ();
13614 int
13615 main (void)
13616 {
13617 return dlopen ();
13618 ;
13619 return 0;
13620 }
13621 _ACEOF
13622 if ac_fn_c_try_link "$LINENO"
13623 then :
13624 ac_cv_lib_dl_dlopen=yes
13625 else $as_nop
13626 ac_cv_lib_dl_dlopen=no
13627 fi
13628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13629 conftest$ac_exeext conftest.$ac_ext
13630 LIBS=$ac_check_lib_save_LIBS
13631 fi
13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13633 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13634 if test "x$ac_cv_lib_dl_dlopen" = xyes
13635 then :
13636 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13637 else $as_nop
13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13639 printf %s "checking for dlopen in -lsvld... " >&6; }
13640 if test ${ac_cv_lib_svld_dlopen+y}
13641 then :
13642 printf %s "(cached) " >&6
13643 else $as_nop
13644 ac_check_lib_save_LIBS=$LIBS
13645 LIBS="-lsvld $LIBS"
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648
13649 /* Override any GCC internal prototype to avoid an error.
13650 Use char because int might match the return type of a GCC
13651 builtin and then its argument prototype would still apply. */
13652 char dlopen ();
13653 int
13654 main (void)
13655 {
13656 return dlopen ();
13657 ;
13658 return 0;
13659 }
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"
13662 then :
13663 ac_cv_lib_svld_dlopen=yes
13664 else $as_nop
13665 ac_cv_lib_svld_dlopen=no
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13668 conftest$ac_exeext conftest.$ac_ext
13669 LIBS=$ac_check_lib_save_LIBS
13670 fi
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13672 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13673 if test "x$ac_cv_lib_svld_dlopen" = xyes
13674 then :
13675 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13676 else $as_nop
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13678 printf %s "checking for dld_link in -ldld... " >&6; }
13679 if test ${ac_cv_lib_dld_dld_link+y}
13680 then :
13681 printf %s "(cached) " >&6
13682 else $as_nop
13683 ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-ldld $LIBS"
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687
13688 /* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13691 char dld_link ();
13692 int
13693 main (void)
13694 {
13695 return dld_link ();
13696 ;
13697 return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"
13701 then :
13702 ac_cv_lib_dld_dld_link=yes
13703 else $as_nop
13704 ac_cv_lib_dld_dld_link=no
13705 fi
13706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13707 conftest$ac_exeext conftest.$ac_ext
13708 LIBS=$ac_check_lib_save_LIBS
13709 fi
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13711 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13712 if test "x$ac_cv_lib_dld_dld_link" = xyes
13713 then :
13714 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13715 fi
13716
13717
13718 fi
13719
13720
13721 fi
13722
13723
13724 fi
13725
13726
13727 fi
13728
13729
13730 fi
13731
13732 ;;
13733 esac
13734
13735 if test no = "$lt_cv_dlopen"; then
13736 enable_dlopen=no
13737 else
13738 enable_dlopen=yes
13739 fi
13740
13741 case $lt_cv_dlopen in
13742 dlopen)
13743 save_CPPFLAGS=$CPPFLAGS
13744 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13745
13746 save_LDFLAGS=$LDFLAGS
13747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13748
13749 save_LIBS=$LIBS
13750 LIBS="$lt_cv_dlopen_libs $LIBS"
13751
13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13753 printf %s "checking whether a program can dlopen itself... " >&6; }
13754 if test ${lt_cv_dlopen_self+y}
13755 then :
13756 printf %s "(cached) " >&6
13757 else $as_nop
13758 if test yes = "$cross_compiling"; then :
13759 lt_cv_dlopen_self=cross
13760 else
13761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13762 lt_status=$lt_dlunknown
13763 cat > conftest.$ac_ext <<_LT_EOF
13764 #line $LINENO "configure"
13765 #include "confdefs.h"
13766
13767 #if HAVE_DLFCN_H
13768 #include <dlfcn.h>
13769 #endif
13770
13771 #include <stdio.h>
13772
13773 #ifdef RTLD_GLOBAL
13774 # define LT_DLGLOBAL RTLD_GLOBAL
13775 #else
13776 # ifdef DL_GLOBAL
13777 # define LT_DLGLOBAL DL_GLOBAL
13778 # else
13779 # define LT_DLGLOBAL 0
13780 # endif
13781 #endif
13782
13783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13784 find out it does not work in some platform. */
13785 #ifndef LT_DLLAZY_OR_NOW
13786 # ifdef RTLD_LAZY
13787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13788 # else
13789 # ifdef DL_LAZY
13790 # define LT_DLLAZY_OR_NOW DL_LAZY
13791 # else
13792 # ifdef RTLD_NOW
13793 # define LT_DLLAZY_OR_NOW RTLD_NOW
13794 # else
13795 # ifdef DL_NOW
13796 # define LT_DLLAZY_OR_NOW DL_NOW
13797 # else
13798 # define LT_DLLAZY_OR_NOW 0
13799 # endif
13800 # endif
13801 # endif
13802 # endif
13803 #endif
13804
13805 /* When -fvisibility=hidden is used, assume the code has been annotated
13806 correspondingly for the symbols needed. */
13807 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13808 int fnord () __attribute__((visibility("default")));
13809 #endif
13810
13811 int fnord () { return 42; }
13812 int main ()
13813 {
13814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13815 int status = $lt_dlunknown;
13816
13817 if (self)
13818 {
13819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13820 else
13821 {
13822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13823 else puts (dlerror ());
13824 }
13825 /* dlclose (self); */
13826 }
13827 else
13828 puts (dlerror ());
13829
13830 return status;
13831 }
13832 _LT_EOF
13833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13834 (eval $ac_link) 2>&5
13835 ac_status=$?
13836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13838 (./conftest; exit; ) >&5 2>/dev/null
13839 lt_status=$?
13840 case x$lt_status in
13841 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13842 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13843 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13844 esac
13845 else :
13846 # compilation failed
13847 lt_cv_dlopen_self=no
13848 fi
13849 fi
13850 rm -fr conftest*
13851
13852
13853 fi
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13855 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13856
13857 if test yes = "$lt_cv_dlopen_self"; then
13858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13860 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13861 if test ${lt_cv_dlopen_self_static+y}
13862 then :
13863 printf %s "(cached) " >&6
13864 else $as_nop
13865 if test yes = "$cross_compiling"; then :
13866 lt_cv_dlopen_self_static=cross
13867 else
13868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13869 lt_status=$lt_dlunknown
13870 cat > conftest.$ac_ext <<_LT_EOF
13871 #line $LINENO "configure"
13872 #include "confdefs.h"
13873
13874 #if HAVE_DLFCN_H
13875 #include <dlfcn.h>
13876 #endif
13877
13878 #include <stdio.h>
13879
13880 #ifdef RTLD_GLOBAL
13881 # define LT_DLGLOBAL RTLD_GLOBAL
13882 #else
13883 # ifdef DL_GLOBAL
13884 # define LT_DLGLOBAL DL_GLOBAL
13885 # else
13886 # define LT_DLGLOBAL 0
13887 # endif
13888 #endif
13889
13890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13891 find out it does not work in some platform. */
13892 #ifndef LT_DLLAZY_OR_NOW
13893 # ifdef RTLD_LAZY
13894 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13895 # else
13896 # ifdef DL_LAZY
13897 # define LT_DLLAZY_OR_NOW DL_LAZY
13898 # else
13899 # ifdef RTLD_NOW
13900 # define LT_DLLAZY_OR_NOW RTLD_NOW
13901 # else
13902 # ifdef DL_NOW
13903 # define LT_DLLAZY_OR_NOW DL_NOW
13904 # else
13905 # define LT_DLLAZY_OR_NOW 0
13906 # endif
13907 # endif
13908 # endif
13909 # endif
13910 #endif
13911
13912 /* When -fvisibility=hidden is used, assume the code has been annotated
13913 correspondingly for the symbols needed. */
13914 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13915 int fnord () __attribute__((visibility("default")));
13916 #endif
13917
13918 int fnord () { return 42; }
13919 int main ()
13920 {
13921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13922 int status = $lt_dlunknown;
13923
13924 if (self)
13925 {
13926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13927 else
13928 {
13929 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13930 else puts (dlerror ());
13931 }
13932 /* dlclose (self); */
13933 }
13934 else
13935 puts (dlerror ());
13936
13937 return status;
13938 }
13939 _LT_EOF
13940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13941 (eval $ac_link) 2>&5
13942 ac_status=$?
13943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13944 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13945 (./conftest; exit; ) >&5 2>/dev/null
13946 lt_status=$?
13947 case x$lt_status in
13948 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13949 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13950 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13951 esac
13952 else :
13953 # compilation failed
13954 lt_cv_dlopen_self_static=no
13955 fi
13956 fi
13957 rm -fr conftest*
13958
13959
13960 fi
13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13962 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13963 fi
13964
13965 CPPFLAGS=$save_CPPFLAGS
13966 LDFLAGS=$save_LDFLAGS
13967 LIBS=$save_LIBS
13968 ;;
13969 esac
13970
13971 case $lt_cv_dlopen_self in
13972 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13973 *) enable_dlopen_self=unknown ;;
13974 esac
13975
13976 case $lt_cv_dlopen_self_static in
13977 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13978 *) enable_dlopen_self_static=unknown ;;
13979 esac
13980 fi
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998 striplib=
13999 old_striplib=
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14001 printf %s "checking whether stripping libraries is possible... " >&6; }
14002 if test -z "$STRIP"; then
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 printf "%s\n" "no" >&6; }
14005 else
14006 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14007 old_striplib="$STRIP --strip-debug"
14008 striplib="$STRIP --strip-unneeded"
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14010 printf "%s\n" "yes" >&6; }
14011 else
14012 case $host_os in
14013 darwin*)
14014 # FIXME - insert some real tests, host_os isn't really good enough
14015 striplib="$STRIP -x"
14016 old_striplib="$STRIP -S"
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14018 printf "%s\n" "yes" >&6; }
14019 ;;
14020 freebsd*)
14021 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14022 old_striplib="$STRIP --strip-debug"
14023 striplib="$STRIP --strip-unneeded"
14024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14025 printf "%s\n" "yes" >&6; }
14026 else
14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14028 printf "%s\n" "no" >&6; }
14029 fi
14030 ;;
14031 *)
14032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 printf "%s\n" "no" >&6; }
14034 ;;
14035 esac
14036 fi
14037 fi
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050 # Report what library types will actually be built
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14052 printf %s "checking if libtool supports shared libraries... " >&6; }
14053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14054 printf "%s\n" "$can_build_shared" >&6; }
14055
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14057 printf %s "checking whether to build shared libraries... " >&6; }
14058 test no = "$can_build_shared" && enable_shared=no
14059
14060 # On AIX, shared libraries and static libraries use the same namespace, and
14061 # are all built from PIC.
14062 case $host_os in
14063 aix3*)
14064 test yes = "$enable_shared" && enable_static=no
14065 if test -n "$RANLIB"; then
14066 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14067 postinstall_cmds='$RANLIB $lib'
14068 fi
14069 ;;
14070
14071 aix[4-9]*)
14072 if test ia64 != "$host_cpu"; then
14073 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14074 yes,aix,yes) ;; # shared object as lib.so file only
14075 yes,svr4,*) ;; # shared object as lib.so archive member only
14076 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14077 esac
14078 fi
14079 ;;
14080 esac
14081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14082 printf "%s\n" "$enable_shared" >&6; }
14083
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14085 printf %s "checking whether to build static libraries... " >&6; }
14086 # Make sure either enable_shared or enable_static is yes.
14087 test yes = "$enable_shared" || enable_static=yes
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14089 printf "%s\n" "$enable_static" >&6; }
14090
14091
14092
14093
14094 fi
14095 ac_ext=c
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100
14101 CC=$lt_save_CC
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117 ac_config_commands="$ac_config_commands libtool"
14118
14119
14120
14121
14122 # Only expand once:
14123
14124
14125
14126 # Extract the first word of "glib-compile-resources", so it can be a program name with args.
14127 set dummy glib-compile-resources; ac_word=$2
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129 printf %s "checking for $ac_word... " >&6; }
14130 if test ${ac_cv_path_GLIB_COMPILE_RESOURCES+y}
14131 then :
14132 printf %s "(cached) " >&6
14133 else $as_nop
14134 case $GLIB_COMPILE_RESOURCES in
14135 [\\/]* | ?:[\\/]*)
14136 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
14137 ;;
14138 *)
14139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 for as_dir in $PATH
14141 do
14142 IFS=$as_save_IFS
14143 case $as_dir in #(((
14144 '') as_dir=./ ;;
14145 */) ;;
14146 *) as_dir=$as_dir/ ;;
14147 esac
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14150 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir$ac_word$ac_exec_ext"
14151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14152 break 2
14153 fi
14154 done
14155 done
14156 IFS=$as_save_IFS
14157
14158 ;;
14159 esac
14160 fi
14161 GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
14162 if test -n "$GLIB_COMPILE_RESOURCES"; then
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
14164 printf "%s\n" "$GLIB_COMPILE_RESOURCES" >&6; }
14165 else
14166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 printf "%s\n" "no" >&6; }
14168 fi
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14179 if test -n "$ac_tool_prefix"; then
14180 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14181 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 printf %s "checking for $ac_word... " >&6; }
14184 if test ${ac_cv_path_PKG_CONFIG+y}
14185 then :
14186 printf %s "(cached) " >&6
14187 else $as_nop
14188 case $PKG_CONFIG in
14189 [\\/]* | ?:[\\/]*)
14190 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14191 ;;
14192 *)
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14195 do
14196 IFS=$as_save_IFS
14197 case $as_dir in #(((
14198 '') as_dir=./ ;;
14199 */) ;;
14200 *) as_dir=$as_dir/ ;;
14201 esac
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14204 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14206 break 2
14207 fi
14208 done
14209 done
14210 IFS=$as_save_IFS
14211
14212 ;;
14213 esac
14214 fi
14215 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14216 if test -n "$PKG_CONFIG"; then
14217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14218 printf "%s\n" "$PKG_CONFIG" >&6; }
14219 else
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 printf "%s\n" "no" >&6; }
14222 fi
14223
14224
14225 fi
14226 if test -z "$ac_cv_path_PKG_CONFIG"; then
14227 ac_pt_PKG_CONFIG=$PKG_CONFIG
14228 # Extract the first word of "pkg-config", so it can be a program name with args.
14229 set dummy pkg-config; ac_word=$2
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14231 printf %s "checking for $ac_word... " >&6; }
14232 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14233 then :
14234 printf %s "(cached) " >&6
14235 else $as_nop
14236 case $ac_pt_PKG_CONFIG in
14237 [\\/]* | ?:[\\/]*)
14238 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14239 ;;
14240 *)
14241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242 for as_dir in $PATH
14243 do
14244 IFS=$as_save_IFS
14245 case $as_dir in #(((
14246 '') as_dir=./ ;;
14247 */) ;;
14248 *) as_dir=$as_dir/ ;;
14249 esac
14250 for ac_exec_ext in '' $ac_executable_extensions; do
14251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14252 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14254 break 2
14255 fi
14256 done
14257 done
14258 IFS=$as_save_IFS
14259
14260 ;;
14261 esac
14262 fi
14263 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14264 if test -n "$ac_pt_PKG_CONFIG"; then
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14266 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14267 else
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14269 printf "%s\n" "no" >&6; }
14270 fi
14271
14272 if test "x$ac_pt_PKG_CONFIG" = x; then
14273 PKG_CONFIG=""
14274 else
14275 case $cross_compiling:$ac_tool_warned in
14276 yes:)
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14279 ac_tool_warned=yes ;;
14280 esac
14281 PKG_CONFIG=$ac_pt_PKG_CONFIG
14282 fi
14283 else
14284 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14285 fi
14286
14287 fi
14288 if test -n "$PKG_CONFIG"; then
14289 _pkg_min_version=0.9.0
14290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14291 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14292 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14294 printf "%s\n" "yes" >&6; }
14295 else
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297 printf "%s\n" "no" >&6; }
14298 PKG_CONFIG=""
14299 fi
14300 fi
14301
14302 # Extract the first word of "file", so it can be a program name with args.
14303 set dummy file; ac_word=$2
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305 printf %s "checking for $ac_word... " >&6; }
14306 if test ${ac_cv_prog_has_file+y}
14307 then :
14308 printf %s "(cached) " >&6
14309 else $as_nop
14310 if test -n "$has_file"; then
14311 ac_cv_prog_has_file="$has_file" # Let the user override the test.
14312 else
14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14315 do
14316 IFS=$as_save_IFS
14317 case $as_dir in #(((
14318 '') as_dir=./ ;;
14319 */) ;;
14320 *) as_dir=$as_dir/ ;;
14321 esac
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14324 ac_cv_prog_has_file="yes"
14325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14326 break 2
14327 fi
14328 done
14329 done
14330 IFS=$as_save_IFS
14331
14332 test -z "$ac_cv_prog_has_file" && ac_cv_prog_has_file="no"
14333 fi
14334 fi
14335 has_file=$ac_cv_prog_has_file
14336 if test -n "$has_file"; then
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_file" >&5
14338 printf "%s\n" "$has_file" >&6; }
14339 else
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 printf "%s\n" "no" >&6; }
14342 fi
14343
14344
14345 if test x$has_file = xno ; then
14346 as_fn_error $? "\"file\" utility not found." "$LINENO" 5
14347 fi
14348
14349 # Extract the first word of "find", so it can be a program name with args.
14350 set dummy find; ac_word=$2
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352 printf %s "checking for $ac_word... " >&6; }
14353 if test ${ac_cv_prog_has_find+y}
14354 then :
14355 printf %s "(cached) " >&6
14356 else $as_nop
14357 if test -n "$has_find"; then
14358 ac_cv_prog_has_find="$has_find" # Let the user override the test.
14359 else
14360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361 for as_dir in $PATH
14362 do
14363 IFS=$as_save_IFS
14364 case $as_dir in #(((
14365 '') as_dir=./ ;;
14366 */) ;;
14367 *) as_dir=$as_dir/ ;;
14368 esac
14369 for ac_exec_ext in '' $ac_executable_extensions; do
14370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14371 ac_cv_prog_has_find="yes"
14372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14373 break 2
14374 fi
14375 done
14376 done
14377 IFS=$as_save_IFS
14378
14379 test -z "$ac_cv_prog_has_find" && ac_cv_prog_has_find="no"
14380 fi
14381 fi
14382 has_find=$ac_cv_prog_has_find
14383 if test -n "$has_find"; then
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_find" >&5
14385 printf "%s\n" "$has_find" >&6; }
14386 else
14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388 printf "%s\n" "no" >&6; }
14389 fi
14390
14391
14392 if test x$has_find = xno ; then
14393 as_fn_error $? "\"find\" utility not found." "$LINENO" 5
14394 fi
14395
14396 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14397 if test "x$ac_cv_header_fcntl_h" = xyes
14398 then :
14399 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14400
14401 fi
14402 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
14403 if test "x$ac_cv_header_paths_h" = xyes
14404 then :
14405 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
14406
14407 fi
14408 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
14409 if test "x$ac_cv_header_stdarg_h" = xyes
14410 then :
14411 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
14412
14413 fi
14414 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
14415 if test "x$ac_cv_header_stdbool_h" = xyes
14416 then :
14417 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
14418
14419 fi
14420 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14421 if test "x$ac_cv_header_sys_ioctl_h" = xyes
14422 then :
14423 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
14424
14425 fi
14426 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14427 if test "x$ac_cv_header_sys_time_h" = xyes
14428 then :
14429 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14430
14431 fi
14432 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14433 if test "x$ac_cv_header_syslog_h" = xyes
14434 then :
14435 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
14436
14437 fi
14438 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14439 if test "x$ac_cv_header_unistd_h" = xyes
14440 then :
14441 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14442
14443 fi
14444
14445
14446 if test -n "$PKG_CONFIG" && \
14447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pppd\""; } >&5
14448 ($PKG_CONFIG --exists --print-errors "pppd") 2>&5
14449 ac_status=$?
14450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14451 test $ac_status = 0; }; then
14452 pppd_pkgconfig_support=yes
14453 fi
14454
14455 ac_fn_c_check_header_compile "$LINENO" "pppd/chap.h" "ac_cv_header_pppd_chap_h" "$ac_includes_default"
14456 if test "x$ac_cv_header_pppd_chap_h" = xyes
14457 then :
14458 printf "%s\n" "#define HAVE_PPPD_CHAP_H 1" >>confdefs.h
14459
14460 fi
14461 ac_fn_c_check_header_compile "$LINENO" "pppd/chap-new.h" "ac_cv_header_pppd_chap_new_h" "$ac_includes_default"
14462 if test "x$ac_cv_header_pppd_chap_new_h" = xyes
14463 then :
14464 printf "%s\n" "#define HAVE_PPPD_CHAP_NEW_H 1" >>confdefs.h
14465
14466 fi
14467 ac_fn_c_check_header_compile "$LINENO" "pppd/chap_ms.h" "ac_cv_header_pppd_chap_ms_h" "$ac_includes_default"
14468 if test "x$ac_cv_header_pppd_chap_ms_h" = xyes
14469 then :
14470 printf "%s\n" "#define HAVE_PPPD_CHAP_MS_H 1" >>confdefs.h
14471
14472 fi
14473
14474
14475 for ac_header in pppd/pppd.h
14476 do :
14477 ac_fn_c_check_header_compile "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
14478 if test "x$ac_cv_header_pppd_pppd_h" = xyes
14479 then :
14480 printf "%s\n" "#define HAVE_PPPD_PPPD_H 1" >>confdefs.h
14481
14482 else $as_nop
14483 as_fn_error $? "couldn't find pppd.h. pppd development headers are required." "$LINENO" 5
14484 fi
14485
14486 done
14487
14488
14489 # Check whether --with-pppd-plugin-dir was given.
14490 if test ${with_pppd_plugin_dir+y}
14491 then :
14492 withval=$with_pppd_plugin_dir;
14493 fi
14494
14495
14496 PPPD_VERSION=2.4.5
14497 if test x"$pppd_pkgconfig_support" = xyes; then
14498 PPPD_VERSION=`$PKG_CONFIG --modversion pppd`
14499 fi
14500
14501
14502 printf "%s\n" "#define PPP_VERSION(x,y,z) ((x & 0xFF) << 16 | (y & 0xFF) << 8 | (z & 0xFF) << 0)" >>confdefs.h
14503
14504 PPP_VERSION=$(echo $PPPD_VERSION | sed -e "s/\./\,/g")
14505
14506 printf "%s\n" "#define WITH_PPP_VERSION PPP_VERSION($PPP_VERSION)" >>confdefs.h
14507
14508
14509 if test -n "$with_pppd_plugin_dir" ; then
14510 PPPD_PLUGIN_DIR="$with_pppd_plugin_dir"
14511 else
14512 PPPD_PLUGIN_DIR="${libdir}/pppd/$PPPD_VERSION"
14513 fi
14514
14515
14516 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14517 if test "x$ac_cv_type_mode_t" = xyes
14518 then :
14519
14520 else $as_nop
14521
14522 printf "%s\n" "#define mode_t int" >>confdefs.h
14523
14524 fi
14525
14526
14527 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
14528 "
14529 if test "x$ac_cv_type_pid_t" = xyes
14530 then :
14531
14532 else $as_nop
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14535
14536 #if defined _WIN64 && !defined __CYGWIN__
14537 LLP64
14538 #endif
14539
14540 int
14541 main (void)
14542 {
14543
14544 ;
14545 return 0;
14546 }
14547
14548 _ACEOF
14549 if ac_fn_c_try_compile "$LINENO"
14550 then :
14551 ac_pid_type='int'
14552 else $as_nop
14553 ac_pid_type='__int64'
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14556
14557 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
14558
14559
14560 fi
14561
14562
14563
14564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14565 printf %s "checking for working memcmp... " >&6; }
14566 if test ${ac_cv_func_memcmp_working+y}
14567 then :
14568 printf %s "(cached) " >&6
14569 else $as_nop
14570 if test "$cross_compiling" = yes
14571 then :
14572 ac_cv_func_memcmp_working=no
14573 else $as_nop
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14576 $ac_includes_default
14577 int
14578 main (void)
14579 {
14580
14581 /* Some versions of memcmp are not 8-bit clean. */
14582 char c0 = '\100', c1 = '\200', c2 = '\201';
14583 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14584 return 1;
14585
14586 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14587 or more and with at least one buffer not starting on a 4-byte boundary.
14588 William Lewis provided this test program. */
14589 {
14590 char foo[21];
14591 char bar[21];
14592 int i;
14593 for (i = 0; i < 4; i++)
14594 {
14595 char *a = foo + i;
14596 char *b = bar + i;
14597 strcpy (a, "--------01111111");
14598 strcpy (b, "--------10000000");
14599 if (memcmp (a, b, 16) >= 0)
14600 return 1;
14601 }
14602 return 0;
14603 }
14604
14605 ;
14606 return 0;
14607 }
14608 _ACEOF
14609 if ac_fn_c_try_run "$LINENO"
14610 then :
14611 ac_cv_func_memcmp_working=yes
14612 else $as_nop
14613 ac_cv_func_memcmp_working=no
14614 fi
14615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14616 conftest.$ac_objext conftest.beam conftest.$ac_ext
14617 fi
14618
14619 fi
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14621 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
14622 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14623 *" memcmp.$ac_objext "* ) ;;
14624 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14625 ;;
14626 esac
14627
14628
14629 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14630 if test "x$ac_cv_func_select" = xyes
14631 then :
14632 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
14633
14634 fi
14635 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14636 if test "x$ac_cv_func_socket" = xyes
14637 then :
14638 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
14639
14640 fi
14641 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
14642 if test "x$ac_cv_func_uname" = xyes
14643 then :
14644 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
14645
14646 fi
14647
14648
14649
14650
14651 NM_GIT_SHA=ad5a2951d5f281eeea482404058ace8d15e23f30
14652
14653 if test """" != "no-config-h" ; then
14654
14655 printf "%s\n" "#define NM_GIT_SHA \"$NM_GIT_SHA\"" >>confdefs.h
14656
14657 fi
14658
14659
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14661 printf %s "checking for library containing dlopen... " >&6; }
14662 if test ${ac_cv_search_dlopen+y}
14663 then :
14664 printf %s "(cached) " >&6
14665 else $as_nop
14666 ac_func_search_save_LIBS=$LIBS
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14673 char dlopen ();
14674 int
14675 main (void)
14676 {
14677 return dlopen ();
14678 ;
14679 return 0;
14680 }
14681 _ACEOF
14682 for ac_lib in '' dl dld
14683 do
14684 if test -z "$ac_lib"; then
14685 ac_res="none required"
14686 else
14687 ac_res=-l$ac_lib
14688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14689 fi
14690 if ac_fn_c_try_link "$LINENO"
14691 then :
14692 ac_cv_search_dlopen=$ac_res
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14695 conftest$ac_exeext
14696 if test ${ac_cv_search_dlopen+y}
14697 then :
14698 break
14699 fi
14700 done
14701 if test ${ac_cv_search_dlopen+y}
14702 then :
14703
14704 else $as_nop
14705 ac_cv_search_dlopen=no
14706 fi
14707 rm conftest.$ac_ext
14708 LIBS=$ac_func_search_save_LIBS
14709 fi
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14711 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
14712 ac_res=$ac_cv_search_dlopen
14713 if test "$ac_res" != no
14714 then :
14715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14716
14717 else $as_nop
14718 ac_cv_search_dlopen=
14719 fi
14720
14721 DL_LIBS="$ac_cv_search_dlopen"
14722
14723
14724
14725 # Check whether --with-gnome was given.
14726 if test ${with_gnome+y}
14727 then :
14728 withval=$with_gnome;
14729 else $as_nop
14730 with_gnome_specified=no
14731 fi
14732
14733
14734 # Check whether --with-gtk4 was given.
14735 if test ${with_gtk4+y}
14736 then :
14737 withval=$with_gtk4;
14738 else $as_nop
14739 with_gtk4_specified=no
14740 fi
14741
14742 if test "$with_gnome" != no; then
14743 with_gnome=yes
14744 fi
14745 if test "$with_gtk4_specified" == no; then
14746 with_gtk4=no
14747 fi
14748 if test "$with_gtk4" != yes; then
14749 with_gtk4=no
14750 fi
14751 if test "$with_gnome" != no; then
14752 WITH_GNOME_TRUE=
14753 WITH_GNOME_FALSE='#'
14754 else
14755 WITH_GNOME_TRUE='#'
14756 WITH_GNOME_FALSE=
14757 fi
14758
14759 if test "$with_gtk4" != no; then
14760 WITH_GTK4_TRUE=
14761 WITH_GTK4_FALSE='#'
14762 else
14763 WITH_GTK4_TRUE='#'
14764 WITH_GTK4_FALSE=
14765 fi
14766
14767
14768 # Check whether --enable-absolute-paths was given.
14769 if test ${enable_absolute_paths+y}
14770 then :
14771 enableval=$enable_absolute_paths;
14772 fi
14773
14774
14775 GETTEXT_PACKAGE=NetworkManager-pptp
14776
14777
14778 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
14779
14780
14781
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14783 printf %s "checking whether NLS is requested... " >&6; }
14784 # Check whether --enable-nls was given.
14785 if test ${enable_nls+y}
14786 then :
14787 enableval=$enable_nls; USE_NLS=$enableval
14788 else $as_nop
14789 USE_NLS=yes
14790 fi
14791
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14793 printf "%s\n" "$USE_NLS" >&6; }
14794
14795
14796
14797
14798 GETTEXT_MACRO_VERSION=0.20
14799
14800
14801
14802
14803 # Prepare PATH_SEPARATOR.
14804 # The user is always right.
14805 if test "${PATH_SEPARATOR+set}" != set; then
14806 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14807 # contains only /bin. Note that ksh looks also at the FPATH variable,
14808 # so we have to set that as well for the test.
14809 PATH_SEPARATOR=:
14810 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14811 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14812 || PATH_SEPARATOR=';'
14813 }
14814 fi
14815
14816 # Find out how to test for executable files. Don't use a zero-byte file,
14817 # as systems may use methods other than mode bits to determine executability.
14818 cat >conf$$.file <<_ASEOF
14819 #! /bin/sh
14820 exit 0
14821 _ASEOF
14822 chmod +x conf$$.file
14823 if test -x conf$$.file >/dev/null 2>&1; then
14824 ac_executable_p="test -x"
14825 else
14826 ac_executable_p="test -f"
14827 fi
14828 rm -f conf$$.file
14829
14830 # Extract the first word of "msgfmt", so it can be a program name with args.
14831 set dummy msgfmt; ac_word=$2
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14833 printf %s "checking for $ac_word... " >&6; }
14834 if test ${ac_cv_path_MSGFMT+y}
14835 then :
14836 printf %s "(cached) " >&6
14837 else $as_nop
14838 case "$MSGFMT" in
14839 [\\/]* | ?:[\\/]*)
14840 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14841 ;;
14842 *)
14843 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14844 for ac_dir in $PATH; do
14845 IFS="$ac_save_IFS"
14846 test -z "$ac_dir" && ac_dir=.
14847 for ac_exec_ext in '' $ac_executable_extensions; do
14848 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14849 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14850 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14851 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14852 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14853 break 2
14854 fi
14855 fi
14856 done
14857 done
14858 IFS="$ac_save_IFS"
14859 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14860 ;;
14861 esac
14862 fi
14863 MSGFMT="$ac_cv_path_MSGFMT"
14864 if test "$MSGFMT" != ":"; then
14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14866 printf "%s\n" "$MSGFMT" >&6; }
14867 else
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 printf "%s\n" "no" >&6; }
14870 fi
14871
14872 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14873 set dummy gmsgfmt; ac_word=$2
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14875 printf %s "checking for $ac_word... " >&6; }
14876 if test ${ac_cv_path_GMSGFMT+y}
14877 then :
14878 printf %s "(cached) " >&6
14879 else $as_nop
14880 case $GMSGFMT in
14881 [\\/]* | ?:[\\/]*)
14882 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14883 ;;
14884 *)
14885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886 for as_dir in $PATH
14887 do
14888 IFS=$as_save_IFS
14889 case $as_dir in #(((
14890 '') as_dir=./ ;;
14891 */) ;;
14892 *) as_dir=$as_dir/ ;;
14893 esac
14894 for ac_exec_ext in '' $ac_executable_extensions; do
14895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14896 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14898 break 2
14899 fi
14900 done
14901 done
14902 IFS=$as_save_IFS
14903
14904 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14905 ;;
14906 esac
14907 fi
14908 GMSGFMT=$ac_cv_path_GMSGFMT
14909 if test -n "$GMSGFMT"; then
14910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14911 printf "%s\n" "$GMSGFMT" >&6; }
14912 else
14913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14914 printf "%s\n" "no" >&6; }
14915 fi
14916
14917
14918
14919 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14920 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14921 *) GMSGFMT_015=$GMSGFMT ;;
14922 esac
14923
14924
14925
14926 # Prepare PATH_SEPARATOR.
14927 # The user is always right.
14928 if test "${PATH_SEPARATOR+set}" != set; then
14929 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14930 # contains only /bin. Note that ksh looks also at the FPATH variable,
14931 # so we have to set that as well for the test.
14932 PATH_SEPARATOR=:
14933 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14934 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14935 || PATH_SEPARATOR=';'
14936 }
14937 fi
14938
14939 # Find out how to test for executable files. Don't use a zero-byte file,
14940 # as systems may use methods other than mode bits to determine executability.
14941 cat >conf$$.file <<_ASEOF
14942 #! /bin/sh
14943 exit 0
14944 _ASEOF
14945 chmod +x conf$$.file
14946 if test -x conf$$.file >/dev/null 2>&1; then
14947 ac_executable_p="test -x"
14948 else
14949 ac_executable_p="test -f"
14950 fi
14951 rm -f conf$$.file
14952
14953 # Extract the first word of "xgettext", so it can be a program name with args.
14954 set dummy xgettext; ac_word=$2
14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14956 printf %s "checking for $ac_word... " >&6; }
14957 if test ${ac_cv_path_XGETTEXT+y}
14958 then :
14959 printf %s "(cached) " >&6
14960 else $as_nop
14961 case "$XGETTEXT" in
14962 [\\/]* | ?:[\\/]*)
14963 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14964 ;;
14965 *)
14966 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14967 for ac_dir in $PATH; do
14968 IFS="$ac_save_IFS"
14969 test -z "$ac_dir" && ac_dir=.
14970 for ac_exec_ext in '' $ac_executable_extensions; do
14971 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14972 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14973 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14974 (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
14975 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14976 break 2
14977 fi
14978 fi
14979 done
14980 done
14981 IFS="$ac_save_IFS"
14982 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14983 ;;
14984 esac
14985 fi
14986 XGETTEXT="$ac_cv_path_XGETTEXT"
14987 if test "$XGETTEXT" != ":"; then
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14989 printf "%s\n" "$XGETTEXT" >&6; }
14990 else
14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992 printf "%s\n" "no" >&6; }
14993 fi
14994
14995 rm -f messages.po
14996
14997 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14998 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14999 *) XGETTEXT_015=$XGETTEXT ;;
15000 esac
15001
15002
15003
15004 # Prepare PATH_SEPARATOR.
15005 # The user is always right.
15006 if test "${PATH_SEPARATOR+set}" != set; then
15007 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15008 # contains only /bin. Note that ksh looks also at the FPATH variable,
15009 # so we have to set that as well for the test.
15010 PATH_SEPARATOR=:
15011 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15012 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15013 || PATH_SEPARATOR=';'
15014 }
15015 fi
15016
15017 # Find out how to test for executable files. Don't use a zero-byte file,
15018 # as systems may use methods other than mode bits to determine executability.
15019 cat >conf$$.file <<_ASEOF
15020 #! /bin/sh
15021 exit 0
15022 _ASEOF
15023 chmod +x conf$$.file
15024 if test -x conf$$.file >/dev/null 2>&1; then
15025 ac_executable_p="test -x"
15026 else
15027 ac_executable_p="test -f"
15028 fi
15029 rm -f conf$$.file
15030
15031 # Extract the first word of "msgmerge", so it can be a program name with args.
15032 set dummy msgmerge; ac_word=$2
15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15034 printf %s "checking for $ac_word... " >&6; }
15035 if test ${ac_cv_path_MSGMERGE+y}
15036 then :
15037 printf %s "(cached) " >&6
15038 else $as_nop
15039 case "$MSGMERGE" in
15040 [\\/]* | ?:[\\/]*)
15041 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15042 ;;
15043 *)
15044 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15045 for ac_dir in $PATH; do
15046 IFS="$ac_save_IFS"
15047 test -z "$ac_dir" && ac_dir=.
15048 for ac_exec_ext in '' $ac_executable_extensions; do
15049 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15050 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15051 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15052 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15053 break 2
15054 fi
15055 fi
15056 done
15057 done
15058 IFS="$ac_save_IFS"
15059 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15060 ;;
15061 esac
15062 fi
15063 MSGMERGE="$ac_cv_path_MSGMERGE"
15064 if test "$MSGMERGE" != ":"; then
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15066 printf "%s\n" "$MSGMERGE" >&6; }
15067 else
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069 printf "%s\n" "no" >&6; }
15070 fi
15071
15072
15073 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
15074 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
15075 else
15076 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
15077 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
15078 else
15079 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
15080 fi
15081 fi
15082
15083
15084 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15085
15086
15087 ac_config_commands="$ac_config_commands po-directories"
15088
15089
15090
15091 if test "X$prefix" = "XNONE"; then
15092 acl_final_prefix="$ac_default_prefix"
15093 else
15094 acl_final_prefix="$prefix"
15095 fi
15096 if test "X$exec_prefix" = "XNONE"; then
15097 acl_final_exec_prefix='${prefix}'
15098 else
15099 acl_final_exec_prefix="$exec_prefix"
15100 fi
15101 acl_save_prefix="$prefix"
15102 prefix="$acl_final_prefix"
15103 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15104 prefix="$acl_save_prefix"
15105
15106
15107
15108 # Check whether --with-gnu-ld was given.
15109 if test ${with_gnu_ld+y}
15110 then :
15111 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15112 else $as_nop
15113 with_gnu_ld=no
15114 fi
15115
15116 # Prepare PATH_SEPARATOR.
15117 # The user is always right.
15118 if test "${PATH_SEPARATOR+set}" != set; then
15119 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15120 # contains only /bin. Note that ksh looks also at the FPATH variable,
15121 # so we have to set that as well for the test.
15122 PATH_SEPARATOR=:
15123 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15124 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15125 || PATH_SEPARATOR=';'
15126 }
15127 fi
15128
15129 if test -n "$LD"; then
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
15131 printf %s "checking for ld... " >&6; }
15132 elif test "$GCC" = yes; then
15133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15134 printf %s "checking for ld used by $CC... " >&6; }
15135 elif test "$with_gnu_ld" = yes; then
15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15137 printf %s "checking for GNU ld... " >&6; }
15138 else
15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15140 printf %s "checking for non-GNU ld... " >&6; }
15141 fi
15142 if test -n "$LD"; then
15143 # Let the user override the test with a path.
15144 :
15145 else
15146 if test ${acl_cv_path_LD+y}
15147 then :
15148 printf %s "(cached) " >&6
15149 else $as_nop
15150
15151 acl_cv_path_LD= # Final result of this test
15152 ac_prog=ld # Program to search in $PATH
15153 if test "$GCC" = yes; then
15154 # Check if gcc -print-prog-name=ld gives a path.
15155 case $host in
15156 *-*-mingw*)
15157 # gcc leaves a trailing carriage return which upsets mingw
15158 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15159 *)
15160 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
15161 esac
15162 case $acl_output in
15163 # Accept absolute paths.
15164 [\\/]* | ?:[\\/]*)
15165 re_direlt='/[^/][^/]*/\.\./'
15166 # Canonicalize the pathname of ld
15167 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
15168 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
15169 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
15170 done
15171 # Got the pathname. No search in PATH is needed.
15172 acl_cv_path_LD="$acl_output"
15173 ac_prog=
15174 ;;
15175 "")
15176 # If it fails, then pretend we aren't using GCC.
15177 ;;
15178 *)
15179 # If it is relative, then search for the first ld in PATH.
15180 with_gnu_ld=unknown
15181 ;;
15182 esac
15183 fi
15184 if test -n "$ac_prog"; then
15185 # Search for $ac_prog in $PATH.
15186 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15187 for ac_dir in $PATH; do
15188 IFS="$acl_save_ifs"
15189 test -z "$ac_dir" && ac_dir=.
15190 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15191 acl_cv_path_LD="$ac_dir/$ac_prog"
15192 # Check to see if the program is GNU ld. I'd rather use --version,
15193 # but apparently some variants of GNU ld only accept -v.
15194 # Break only if it was the GNU/non-GNU ld that we prefer.
15195 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15196 *GNU* | *'with BFD'*)
15197 test "$with_gnu_ld" != no && break
15198 ;;
15199 *)
15200 test "$with_gnu_ld" != yes && break
15201 ;;
15202 esac
15203 fi
15204 done
15205 IFS="$acl_save_ifs"
15206 fi
15207 case $host in
15208 *-*-aix*)
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211 #if defined __powerpc64__ || defined __LP64__
15212 int ok;
15213 #else
15214 error fail
15215 #endif
15216
15217 _ACEOF
15218 if ac_fn_c_try_compile "$LINENO"
15219 then :
15220 # The compiler produces 64-bit code. Add option '-b64' so that the
15221 # linker groks 64-bit object files.
15222 case "$acl_cv_path_LD " in
15223 *" -b64 "*) ;;
15224 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
15225 esac
15226
15227 fi
15228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15229 ;;
15230 sparc64-*-netbsd*)
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233 #if defined __sparcv9 || defined __arch64__
15234 int ok;
15235 #else
15236 error fail
15237 #endif
15238
15239 _ACEOF
15240 if ac_fn_c_try_compile "$LINENO"
15241 then :
15242
15243 else $as_nop
15244 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
15245 # so that the linker groks 32-bit object files.
15246 case "$acl_cv_path_LD " in
15247 *" -m elf32_sparc "*) ;;
15248 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
15249 esac
15250
15251 fi
15252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15253 ;;
15254 esac
15255
15256 fi
15257
15258 LD="$acl_cv_path_LD"
15259 fi
15260 if test -n "$LD"; then
15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15262 printf "%s\n" "$LD" >&6; }
15263 else
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 printf "%s\n" "no" >&6; }
15266 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15267 fi
15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15269 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15270 if test ${acl_cv_prog_gnu_ld+y}
15271 then :
15272 printf %s "(cached) " >&6
15273 else $as_nop
15274 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15275 case `$LD -v 2>&1 </dev/null` in
15276 *GNU* | *'with BFD'*)
15277 acl_cv_prog_gnu_ld=yes
15278 ;;
15279 *)
15280 acl_cv_prog_gnu_ld=no
15281 ;;
15282 esac
15283 fi
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15285 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15286 with_gnu_ld=$acl_cv_prog_gnu_ld
15287
15288
15289
15290
15291
15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15293 printf %s "checking for shared library run path origin... " >&6; }
15294 if test ${acl_cv_rpath+y}
15295 then :
15296 printf %s "(cached) " >&6
15297 else $as_nop
15298
15299 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15300 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15301 . ./conftest.sh
15302 rm -f ./conftest.sh
15303 acl_cv_rpath=done
15304
15305 fi
15306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15307 printf "%s\n" "$acl_cv_rpath" >&6; }
15308 wl="$acl_cv_wl"
15309 acl_libext="$acl_cv_libext"
15310 acl_shlibext="$acl_cv_shlibext"
15311 acl_libname_spec="$acl_cv_libname_spec"
15312 acl_library_names_spec="$acl_cv_library_names_spec"
15313 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15314 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15315 acl_hardcode_direct="$acl_cv_hardcode_direct"
15316 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15317 # Check whether --enable-rpath was given.
15318 if test ${enable_rpath+y}
15319 then :
15320 enableval=$enable_rpath; :
15321 else $as_nop
15322 enable_rpath=yes
15323 fi
15324
15325
15326
15327
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
15329 printf %s "checking 32-bit host C ABI... " >&6; }
15330 if test ${gl_cv_host_cpu_c_abi_32bit+y}
15331 then :
15332 printf %s "(cached) " >&6
15333 else $as_nop
15334 if test -n "$gl_cv_host_cpu_c_abi"; then
15335 case "$gl_cv_host_cpu_c_abi" in
15336 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
15337 gl_cv_host_cpu_c_abi_32bit=yes ;;
15338 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
15339 gl_cv_host_cpu_c_abi_32bit=no ;;
15340 *)
15341 gl_cv_host_cpu_c_abi_32bit=unknown ;;
15342 esac
15343 else
15344 case "$host_cpu" in
15345
15346 # CPUs that only support a 32-bit ABI.
15347 arc \
15348 | bfin \
15349 | cris* \
15350 | csky \
15351 | epiphany \
15352 | ft32 \
15353 | h8300 \
15354 | m68k \
15355 | microblaze | microblazeel \
15356 | nds32 | nds32le | nds32be \
15357 | nios2 | nios2eb | nios2el \
15358 | or1k* \
15359 | or32 \
15360 | sh | sh1234 | sh1234elb \
15361 | tic6x \
15362 | xtensa* )
15363 gl_cv_host_cpu_c_abi_32bit=yes
15364 ;;
15365
15366 # CPUs that only support a 64-bit ABI.
15367 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
15368 | mmix )
15369 gl_cv_host_cpu_c_abi_32bit=no
15370 ;;
15371
15372 i[34567]86 )
15373 gl_cv_host_cpu_c_abi_32bit=yes
15374 ;;
15375
15376 x86_64 )
15377 # On x86_64 systems, the C compiler may be generating code in one of
15378 # these ABIs:
15379 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
15380 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
15381 # with native Windows (mingw, MSVC).
15382 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
15383 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15386 #if (defined __x86_64__ || defined __amd64__ \
15387 || defined _M_X64 || defined _M_AMD64) \
15388 && !(defined __ILP32__ || defined _ILP32)
15389 int ok;
15390 #else
15391 error fail
15392 #endif
15393
15394 _ACEOF
15395 if ac_fn_c_try_compile "$LINENO"
15396 then :
15397 gl_cv_host_cpu_c_abi_32bit=no
15398 else $as_nop
15399 gl_cv_host_cpu_c_abi_32bit=yes
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15402 ;;
15403
15404 arm* | aarch64 )
15405 # Assume arm with EABI.
15406 # On arm64 systems, the C compiler may be generating code in one of
15407 # these ABIs:
15408 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
15409 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
15410 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
15414 int ok;
15415 #else
15416 error fail
15417 #endif
15418
15419 _ACEOF
15420 if ac_fn_c_try_compile "$LINENO"
15421 then :
15422 gl_cv_host_cpu_c_abi_32bit=no
15423 else $as_nop
15424 gl_cv_host_cpu_c_abi_32bit=yes
15425 fi
15426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15427 ;;
15428
15429 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
15430 # On hppa, the C compiler may be generating 32-bit code or 64-bit
15431 # code. In the latter case, it defines _LP64 and __LP64__.
15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15434 #ifdef __LP64__
15435 int ok;
15436 #else
15437 error fail
15438 #endif
15439
15440 _ACEOF
15441 if ac_fn_c_try_compile "$LINENO"
15442 then :
15443 gl_cv_host_cpu_c_abi_32bit=no
15444 else $as_nop
15445 gl_cv_host_cpu_c_abi_32bit=yes
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15448 ;;
15449
15450 ia64* )
15451 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
15452 # 32-bit code. In the latter case, it defines _ILP32.
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #ifdef _ILP32
15456 int ok;
15457 #else
15458 error fail
15459 #endif
15460
15461 _ACEOF
15462 if ac_fn_c_try_compile "$LINENO"
15463 then :
15464 gl_cv_host_cpu_c_abi_32bit=yes
15465 else $as_nop
15466 gl_cv_host_cpu_c_abi_32bit=no
15467 fi
15468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15469 ;;
15470
15471 mips* )
15472 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
15473 # at 32.
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15476 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
15477 int ok;
15478 #else
15479 error fail
15480 #endif
15481
15482 _ACEOF
15483 if ac_fn_c_try_compile "$LINENO"
15484 then :
15485 gl_cv_host_cpu_c_abi_32bit=no
15486 else $as_nop
15487 gl_cv_host_cpu_c_abi_32bit=yes
15488 fi
15489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15490 ;;
15491
15492 powerpc* )
15493 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
15494 # No need to distinguish them here; the caller may distinguish
15495 # them based on the OS.
15496 # On powerpc64 systems, the C compiler may still be generating
15497 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
15498 # be generating 64-bit code.
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15501 #if defined __powerpc64__ || defined __LP64__
15502 int ok;
15503 #else
15504 error fail
15505 #endif
15506
15507 _ACEOF
15508 if ac_fn_c_try_compile "$LINENO"
15509 then :
15510 gl_cv_host_cpu_c_abi_32bit=no
15511 else $as_nop
15512 gl_cv_host_cpu_c_abi_32bit=yes
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15515 ;;
15516
15517 rs6000 )
15518 gl_cv_host_cpu_c_abi_32bit=yes
15519 ;;
15520
15521 riscv32 | riscv64 )
15522 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
15523 # Size of 'long' and 'void *':
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #if defined __LP64__
15527 int ok;
15528 #else
15529 error fail
15530 #endif
15531
15532 _ACEOF
15533 if ac_fn_c_try_compile "$LINENO"
15534 then :
15535 gl_cv_host_cpu_c_abi_32bit=no
15536 else $as_nop
15537 gl_cv_host_cpu_c_abi_32bit=yes
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15540 ;;
15541
15542 s390* )
15543 # On s390x, the C compiler may be generating 64-bit (= s390x) code
15544 # or 31-bit (= s390) code.
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547 #if defined __LP64__ || defined __s390x__
15548 int ok;
15549 #else
15550 error fail
15551 #endif
15552
15553 _ACEOF
15554 if ac_fn_c_try_compile "$LINENO"
15555 then :
15556 gl_cv_host_cpu_c_abi_32bit=no
15557 else $as_nop
15558 gl_cv_host_cpu_c_abi_32bit=yes
15559 fi
15560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15561 ;;
15562
15563 sparc | sparc64 )
15564 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
15565 # C compiler still generates 32-bit code.
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 #if defined __sparcv9 || defined __arch64__
15569 int ok;
15570 #else
15571 error fail
15572 #endif
15573
15574 _ACEOF
15575 if ac_fn_c_try_compile "$LINENO"
15576 then :
15577 gl_cv_host_cpu_c_abi_32bit=no
15578 else $as_nop
15579 gl_cv_host_cpu_c_abi_32bit=yes
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15582 ;;
15583
15584 *)
15585 gl_cv_host_cpu_c_abi_32bit=unknown
15586 ;;
15587 esac
15588 fi
15589
15590 fi
15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
15592 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
15593
15594 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
15595
15596
15597
15598
15599
15600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
15601 printf %s "checking for ELF binary format... " >&6; }
15602 if test ${gl_cv_elf+y}
15603 then :
15604 printf %s "(cached) " >&6
15605 else $as_nop
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15608 #if defined __ELF__ || (defined __linux__ && defined __EDG__)
15609 Extensible Linking Format
15610 #endif
15611
15612 _ACEOF
15613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15614 $EGREP "Extensible Linking Format" >/dev/null 2>&1
15615 then :
15616 gl_cv_elf=yes
15617 else $as_nop
15618 gl_cv_elf=no
15619 fi
15620 rm -rf conftest*
15621
15622
15623 fi
15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
15625 printf "%s\n" "$gl_cv_elf" >&6; }
15626 if test $gl_cv_elf = yes; then
15627 # Extract the ELF class of a file (5th byte) in decimal.
15628 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
15629 if od -A x < /dev/null >/dev/null 2>/dev/null; then
15630 # Use POSIX od.
15631 func_elfclass ()
15632 {
15633 od -A n -t d1 -j 4 -N 1
15634 }
15635 else
15636 # Use BSD hexdump.
15637 func_elfclass ()
15638 {
15639 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
15640 echo
15641 }
15642 fi
15643 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
15644 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
15645 # not 1 or 2.
15646 case $HOST_CPU_C_ABI_32BIT in
15647 yes)
15648 # 32-bit ABI.
15649 acl_is_expected_elfclass ()
15650 {
15651 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
15652 }
15653 ;;
15654 no)
15655 # 64-bit ABI.
15656 acl_is_expected_elfclass ()
15657 {
15658 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
15659 }
15660 ;;
15661 *)
15662 # Unknown.
15663 acl_is_expected_elfclass ()
15664 {
15665 :
15666 }
15667 ;;
15668 esac
15669 else
15670 acl_is_expected_elfclass ()
15671 {
15672 :
15673 }
15674 fi
15675
15676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
15677 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
15678 if test ${acl_cv_libdirstems+y}
15679 then :
15680 printf %s "(cached) " >&6
15681 else $as_nop
15682 acl_libdirstem=lib
15683 acl_libdirstem2=
15684 acl_libdirstem3=
15685 case "$host_os" in
15686 solaris*)
15687 if test $HOST_CPU_C_ABI_32BIT = no; then
15688 acl_libdirstem2=lib/64
15689 case "$host_cpu" in
15690 sparc*) acl_libdirstem3=lib/sparcv9 ;;
15691 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
15692 esac
15693 fi
15694 ;;
15695 *)
15696 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
15697 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15698 if test $HOST_CPU_C_ABI_32BIT != no; then
15699 # 32-bit or unknown ABI.
15700 if test -d /usr/lib32; then
15701 acl_libdirstem2=lib32
15702 fi
15703 fi
15704 if test $HOST_CPU_C_ABI_32BIT != yes; then
15705 # 64-bit or unknown ABI.
15706 if test -d /usr/lib64; then
15707 acl_libdirstem3=lib64
15708 fi
15709 fi
15710 if test -n "$searchpath"; then
15711 acl_save_IFS="${IFS= }"; IFS=":"
15712 for searchdir in $searchpath; do
15713 if test -d "$searchdir"; then
15714 case "$searchdir" in
15715 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
15716 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
15717 */../ | */.. )
15718 # Better ignore directories of this form. They are misleading.
15719 ;;
15720 *) searchdir=`cd "$searchdir" && pwd`
15721 case "$searchdir" in
15722 */lib32 ) acl_libdirstem2=lib32 ;;
15723 */lib64 ) acl_libdirstem3=lib64 ;;
15724 esac ;;
15725 esac
15726 fi
15727 done
15728 IFS="$acl_save_IFS"
15729 if test $HOST_CPU_C_ABI_32BIT = yes; then
15730 # 32-bit ABI.
15731 acl_libdirstem3=
15732 fi
15733 if test $HOST_CPU_C_ABI_32BIT = no; then
15734 # 64-bit ABI.
15735 acl_libdirstem2=
15736 fi
15737 fi
15738 ;;
15739 esac
15740 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15741 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
15742 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
15743
15744 fi
15745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
15746 printf "%s\n" "$acl_cv_libdirstems" >&6; }
15747 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
15748 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
15749 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761 use_additional=yes
15762
15763 acl_save_prefix="$prefix"
15764 prefix="$acl_final_prefix"
15765 acl_save_exec_prefix="$exec_prefix"
15766 exec_prefix="$acl_final_exec_prefix"
15767
15768 eval additional_includedir=\"$includedir\"
15769 eval additional_libdir=\"$libdir\"
15770 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
15771 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
15772
15773 exec_prefix="$acl_save_exec_prefix"
15774 prefix="$acl_save_prefix"
15775
15776
15777 # Check whether --with-libiconv-prefix was given.
15778 if test ${with_libiconv_prefix+y}
15779 then :
15780 withval=$with_libiconv_prefix;
15781 if test "X$withval" = "Xno"; then
15782 use_additional=no
15783 else
15784 if test "X$withval" = "X"; then
15785
15786 acl_save_prefix="$prefix"
15787 prefix="$acl_final_prefix"
15788 acl_save_exec_prefix="$exec_prefix"
15789 exec_prefix="$acl_final_exec_prefix"
15790
15791 eval additional_includedir=\"$includedir\"
15792 eval additional_libdir=\"$libdir\"
15793 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
15794 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
15795
15796 exec_prefix="$acl_save_exec_prefix"
15797 prefix="$acl_save_prefix"
15798
15799 else
15800 additional_includedir="$withval/include"
15801 additional_libdir="$withval/$acl_libdirstem"
15802 additional_libdir2="$withval/$acl_libdirstem2"
15803 additional_libdir3="$withval/$acl_libdirstem3"
15804 fi
15805 fi
15806
15807 fi
15808
15809 if test "X$additional_libdir2" = "X$additional_libdir"; then
15810 additional_libdir2=
15811 fi
15812 if test "X$additional_libdir3" = "X$additional_libdir"; then
15813 additional_libdir3=
15814 fi
15815 LIBICONV=
15816 LTLIBICONV=
15817 INCICONV=
15818 LIBICONV_PREFIX=
15819 HAVE_LIBICONV=
15820 rpathdirs=
15821 ltrpathdirs=
15822 names_already_handled=
15823 names_next_round='iconv '
15824 while test -n "$names_next_round"; do
15825 names_this_round="$names_next_round"
15826 names_next_round=
15827 for name in $names_this_round; do
15828 already_handled=
15829 for n in $names_already_handled; do
15830 if test "$n" = "$name"; then
15831 already_handled=yes
15832 break
15833 fi
15834 done
15835 if test -z "$already_handled"; then
15836 names_already_handled="$names_already_handled $name"
15837 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15838 eval value=\"\$HAVE_LIB$uppername\"
15839 if test -n "$value"; then
15840 if test "$value" = yes; then
15841 eval value=\"\$LIB$uppername\"
15842 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15843 eval value=\"\$LTLIB$uppername\"
15844 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15845 else
15846 :
15847 fi
15848 else
15849 found_dir=
15850 found_la=
15851 found_so=
15852 found_a=
15853 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15854 if test -n "$acl_shlibext"; then
15855 shrext=".$acl_shlibext" # typically: shrext=.so
15856 else
15857 shrext=
15858 fi
15859 if test $use_additional = yes; then
15860 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
15861 if test "X$found_dir" = "X"; then
15862 eval dir=\$$additional_libdir_variable
15863 if test -n "$dir"; then
15864 if test -n "$acl_shlibext"; then
15865 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
15866 found_dir="$dir"
15867 found_so="$dir/$libname$shrext"
15868 else
15869 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15870 ver=`(cd "$dir" && \
15871 for f in "$libname$shrext".*; do echo "$f"; done \
15872 | sed -e "s,^$libname$shrext\\\\.,," \
15873 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15874 | sed 1q ) 2>/dev/null`
15875 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
15876 found_dir="$dir"
15877 found_so="$dir/$libname$shrext.$ver"
15878 fi
15879 else
15880 eval library_names=\"$acl_library_names_spec\"
15881 for f in $library_names; do
15882 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
15883 found_dir="$dir"
15884 found_so="$dir/$f"
15885 break
15886 fi
15887 done
15888 fi
15889 fi
15890 fi
15891 if test "X$found_dir" = "X"; then
15892 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
15893 found_dir="$dir"
15894 found_a="$dir/$libname.$acl_libext"
15895 fi
15896 fi
15897 if test "X$found_dir" != "X"; then
15898 if test -f "$dir/$libname.la"; then
15899 found_la="$dir/$libname.la"
15900 fi
15901 fi
15902 fi
15903 fi
15904 done
15905 fi
15906 if test "X$found_dir" = "X"; then
15907 for x in $LDFLAGS $LTLIBICONV; do
15908
15909 acl_save_prefix="$prefix"
15910 prefix="$acl_final_prefix"
15911 acl_save_exec_prefix="$exec_prefix"
15912 exec_prefix="$acl_final_exec_prefix"
15913 eval x=\"$x\"
15914 exec_prefix="$acl_save_exec_prefix"
15915 prefix="$acl_save_prefix"
15916
15917 case "$x" in
15918 -L*)
15919 dir=`echo "X$x" | sed -e 's/^X-L//'`
15920 if test -n "$acl_shlibext"; then
15921 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
15922 found_dir="$dir"
15923 found_so="$dir/$libname$shrext"
15924 else
15925 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15926 ver=`(cd "$dir" && \
15927 for f in "$libname$shrext".*; do echo "$f"; done \
15928 | sed -e "s,^$libname$shrext\\\\.,," \
15929 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15930 | sed 1q ) 2>/dev/null`
15931 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
15932 found_dir="$dir"
15933 found_so="$dir/$libname$shrext.$ver"
15934 fi
15935 else
15936 eval library_names=\"$acl_library_names_spec\"
15937 for f in $library_names; do
15938 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
15939 found_dir="$dir"
15940 found_so="$dir/$f"
15941 break
15942 fi
15943 done
15944 fi
15945 fi
15946 fi
15947 if test "X$found_dir" = "X"; then
15948 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
15949 found_dir="$dir"
15950 found_a="$dir/$libname.$acl_libext"
15951 fi
15952 fi
15953 if test "X$found_dir" != "X"; then
15954 if test -f "$dir/$libname.la"; then
15955 found_la="$dir/$libname.la"
15956 fi
15957 fi
15958 ;;
15959 esac
15960 if test "X$found_dir" != "X"; then
15961 break
15962 fi
15963 done
15964 fi
15965 if test "X$found_dir" != "X"; then
15966 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15967 if test "X$found_so" != "X"; then
15968 if test "$enable_rpath" = no \
15969 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15970 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
15971 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
15972 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15973 else
15974 haveit=
15975 for x in $ltrpathdirs; do
15976 if test "X$x" = "X$found_dir"; then
15977 haveit=yes
15978 break
15979 fi
15980 done
15981 if test -z "$haveit"; then
15982 ltrpathdirs="$ltrpathdirs $found_dir"
15983 fi
15984 if test "$acl_hardcode_direct" = yes; then
15985 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15986 else
15987 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15989 haveit=
15990 for x in $rpathdirs; do
15991 if test "X$x" = "X$found_dir"; then
15992 haveit=yes
15993 break
15994 fi
15995 done
15996 if test -z "$haveit"; then
15997 rpathdirs="$rpathdirs $found_dir"
15998 fi
15999 else
16000 haveit=
16001 for x in $LDFLAGS $LIBICONV; do
16002
16003 acl_save_prefix="$prefix"
16004 prefix="$acl_final_prefix"
16005 acl_save_exec_prefix="$exec_prefix"
16006 exec_prefix="$acl_final_exec_prefix"
16007 eval x=\"$x\"
16008 exec_prefix="$acl_save_exec_prefix"
16009 prefix="$acl_save_prefix"
16010
16011 if test "X$x" = "X-L$found_dir"; then
16012 haveit=yes
16013 break
16014 fi
16015 done
16016 if test -z "$haveit"; then
16017 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16018 fi
16019 if test "$acl_hardcode_minus_L" != no; then
16020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16021 else
16022 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16023 fi
16024 fi
16025 fi
16026 fi
16027 else
16028 if test "X$found_a" != "X"; then
16029 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16030 else
16031 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16032 fi
16033 fi
16034 additional_includedir=
16035 case "$found_dir" in
16036 */$acl_libdirstem | */$acl_libdirstem/)
16037 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16038 if test "$name" = 'iconv'; then
16039 LIBICONV_PREFIX="$basedir"
16040 fi
16041 additional_includedir="$basedir/include"
16042 ;;
16043 */$acl_libdirstem2 | */$acl_libdirstem2/)
16044 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16045 if test "$name" = 'iconv'; then
16046 LIBICONV_PREFIX="$basedir"
16047 fi
16048 additional_includedir="$basedir/include"
16049 ;;
16050 */$acl_libdirstem3 | */$acl_libdirstem3/)
16051 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
16052 if test "$name" = 'iconv'; then
16053 LIBICONV_PREFIX="$basedir"
16054 fi
16055 additional_includedir="$basedir/include"
16056 ;;
16057 esac
16058 if test "X$additional_includedir" != "X"; then
16059 if test "X$additional_includedir" != "X/usr/include"; then
16060 haveit=
16061 if test "X$additional_includedir" = "X/usr/local/include"; then
16062 if test -n "$GCC"; then
16063 case $host_os in
16064 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16065 esac
16066 fi
16067 fi
16068 if test -z "$haveit"; then
16069 for x in $CPPFLAGS $INCICONV; do
16070
16071 acl_save_prefix="$prefix"
16072 prefix="$acl_final_prefix"
16073 acl_save_exec_prefix="$exec_prefix"
16074 exec_prefix="$acl_final_exec_prefix"
16075 eval x=\"$x\"
16076 exec_prefix="$acl_save_exec_prefix"
16077 prefix="$acl_save_prefix"
16078
16079 if test "X$x" = "X-I$additional_includedir"; then
16080 haveit=yes
16081 break
16082 fi
16083 done
16084 if test -z "$haveit"; then
16085 if test -d "$additional_includedir"; then
16086 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16087 fi
16088 fi
16089 fi
16090 fi
16091 fi
16092 if test -n "$found_la"; then
16093 save_libdir="$libdir"
16094 case "$found_la" in
16095 */* | *\\*) . "$found_la" ;;
16096 *) . "./$found_la" ;;
16097 esac
16098 libdir="$save_libdir"
16099 for dep in $dependency_libs; do
16100 case "$dep" in
16101 -L*)
16102 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16103 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
16104 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
16105 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
16106 haveit=
16107 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
16108 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
16109 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
16110 if test -n "$GCC"; then
16111 case $host_os in
16112 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16113 esac
16114 fi
16115 fi
16116 if test -z "$haveit"; then
16117 haveit=
16118 for x in $LDFLAGS $LIBICONV; do
16119
16120 acl_save_prefix="$prefix"
16121 prefix="$acl_final_prefix"
16122 acl_save_exec_prefix="$exec_prefix"
16123 exec_prefix="$acl_final_exec_prefix"
16124 eval x=\"$x\"
16125 exec_prefix="$acl_save_exec_prefix"
16126 prefix="$acl_save_prefix"
16127
16128 if test "X$x" = "X-L$dependency_libdir"; then
16129 haveit=yes
16130 break
16131 fi
16132 done
16133 if test -z "$haveit"; then
16134 if test -d "$dependency_libdir"; then
16135 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
16136 fi
16137 fi
16138 haveit=
16139 for x in $LDFLAGS $LTLIBICONV; do
16140
16141 acl_save_prefix="$prefix"
16142 prefix="$acl_final_prefix"
16143 acl_save_exec_prefix="$exec_prefix"
16144 exec_prefix="$acl_final_exec_prefix"
16145 eval x=\"$x\"
16146 exec_prefix="$acl_save_exec_prefix"
16147 prefix="$acl_save_prefix"
16148
16149 if test "X$x" = "X-L$dependency_libdir"; then
16150 haveit=yes
16151 break
16152 fi
16153 done
16154 if test -z "$haveit"; then
16155 if test -d "$dependency_libdir"; then
16156 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
16157 fi
16158 fi
16159 fi
16160 fi
16161 ;;
16162 -R*)
16163 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16164 if test "$enable_rpath" != no; then
16165 haveit=
16166 for x in $rpathdirs; do
16167 if test "X$x" = "X$dir"; then
16168 haveit=yes
16169 break
16170 fi
16171 done
16172 if test -z "$haveit"; then
16173 rpathdirs="$rpathdirs $dir"
16174 fi
16175 haveit=
16176 for x in $ltrpathdirs; do
16177 if test "X$x" = "X$dir"; then
16178 haveit=yes
16179 break
16180 fi
16181 done
16182 if test -z "$haveit"; then
16183 ltrpathdirs="$ltrpathdirs $dir"
16184 fi
16185 fi
16186 ;;
16187 -l*)
16188 dep=`echo "X$dep" | sed -e 's/^X-l//'`
16189 if test "X$dep" != Xc \
16190 || case $host_os in
16191 linux* | gnu* | k*bsd*-gnu) false ;;
16192 *) true ;;
16193 esac; then
16194 names_next_round="$names_next_round $dep"
16195 fi
16196 ;;
16197 *.la)
16198 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16199 ;;
16200 *)
16201 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16202 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16203 ;;
16204 esac
16205 done
16206 fi
16207 else
16208 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16209 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16210 fi
16211 fi
16212 fi
16213 done
16214 done
16215 if test "X$rpathdirs" != "X"; then
16216 if test -n "$acl_hardcode_libdir_separator"; then
16217 alldirs=
16218 for found_dir in $rpathdirs; do
16219 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16220 done
16221 acl_save_libdir="$libdir"
16222 libdir="$alldirs"
16223 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16224 libdir="$acl_save_libdir"
16225 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16226 else
16227 for found_dir in $rpathdirs; do
16228 acl_save_libdir="$libdir"
16229 libdir="$found_dir"
16230 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16231 libdir="$acl_save_libdir"
16232 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16233 done
16234 fi
16235 fi
16236 if test "X$ltrpathdirs" != "X"; then
16237 for found_dir in $ltrpathdirs; do
16238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16239 done
16240 fi
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16271 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
16272 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
16273 then :
16274 printf %s "(cached) " >&6
16275 else $as_nop
16276 gt_save_LIBS="$LIBS"
16277 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 #include <CoreFoundation/CFPreferences.h>
16281 int
16282 main (void)
16283 {
16284 CFPreferencesCopyAppValue(NULL, NULL)
16285 ;
16286 return 0;
16287 }
16288 _ACEOF
16289 if ac_fn_c_try_link "$LINENO"
16290 then :
16291 gt_cv_func_CFPreferencesCopyAppValue=yes
16292 else $as_nop
16293 gt_cv_func_CFPreferencesCopyAppValue=no
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16296 conftest$ac_exeext conftest.$ac_ext
16297 LIBS="$gt_save_LIBS"
16298 fi
16299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16300 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16301 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16302
16303 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16304
16305 fi
16306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
16307 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
16308 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
16309 then :
16310 printf %s "(cached) " >&6
16311 else $as_nop
16312 gt_save_LIBS="$LIBS"
16313 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 #include <CoreFoundation/CFLocale.h>
16317 int
16318 main (void)
16319 {
16320 CFLocaleCopyPreferredLanguages();
16321 ;
16322 return 0;
16323 }
16324 _ACEOF
16325 if ac_fn_c_try_link "$LINENO"
16326 then :
16327 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
16328 else $as_nop
16329 gt_cv_func_CFLocaleCopyPreferredLanguages=no
16330 fi
16331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16332 conftest$ac_exeext conftest.$ac_ext
16333 LIBS="$gt_save_LIBS"
16334 fi
16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
16336 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
16337 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
16338
16339 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
16340
16341 fi
16342 INTL_MACOSX_LIBS=
16343 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
16344 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
16345 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16346 fi
16347
16348
16349
16350
16351
16352
16353 LIBINTL=
16354 LTLIBINTL=
16355 POSUB=
16356
16357 case " $gt_needs " in
16358 *" need-formatstring-macros "*) gt_api_version=3 ;;
16359 *" need-ngettext "*) gt_api_version=2 ;;
16360 *) gt_api_version=1 ;;
16361 esac
16362 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16363 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16364
16365 if test "$USE_NLS" = "yes"; then
16366 gt_use_preinstalled_gnugettext=no
16367
16368
16369 if test $gt_api_version -ge 3; then
16370 gt_revision_test_code='
16371 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16372 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16373 #endif
16374 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16375 '
16376 else
16377 gt_revision_test_code=
16378 fi
16379 if test $gt_api_version -ge 2; then
16380 gt_expression_test_code=' + * ngettext ("", "", 0)'
16381 else
16382 gt_expression_test_code=
16383 fi
16384
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16386 printf %s "checking for GNU gettext in libc... " >&6; }
16387 if eval test \${$gt_func_gnugettext_libc+y}
16388 then :
16389 printf %s "(cached) " >&6
16390 else $as_nop
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393
16394 #include <libintl.h>
16395 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16396 extern int _nl_msg_cat_cntr;
16397 extern int *_nl_domain_bindings;
16398 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
16399 #else
16400 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16401 #endif
16402 $gt_revision_test_code
16403
16404 int
16405 main (void)
16406 {
16407
16408 bindtextdomain ("", "");
16409 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16410
16411 ;
16412 return 0;
16413 }
16414 _ACEOF
16415 if ac_fn_c_try_link "$LINENO"
16416 then :
16417 eval "$gt_func_gnugettext_libc=yes"
16418 else $as_nop
16419 eval "$gt_func_gnugettext_libc=no"
16420 fi
16421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16422 conftest$ac_exeext conftest.$ac_ext
16423 fi
16424 eval ac_res=\$$gt_func_gnugettext_libc
16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16426 printf "%s\n" "$ac_res" >&6; }
16427
16428 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16429
16430
16431
16432
16433
16434 am_save_CPPFLAGS="$CPPFLAGS"
16435
16436 for element in $INCICONV; do
16437 haveit=
16438 for x in $CPPFLAGS; do
16439
16440 acl_save_prefix="$prefix"
16441 prefix="$acl_final_prefix"
16442 acl_save_exec_prefix="$exec_prefix"
16443 exec_prefix="$acl_final_exec_prefix"
16444 eval x=\"$x\"
16445 exec_prefix="$acl_save_exec_prefix"
16446 prefix="$acl_save_prefix"
16447
16448 if test "X$x" = "X$element"; then
16449 haveit=yes
16450 break
16451 fi
16452 done
16453 if test -z "$haveit"; then
16454 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16455 fi
16456 done
16457
16458
16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16460 printf %s "checking for iconv... " >&6; }
16461 if test ${am_cv_func_iconv+y}
16462 then :
16463 printf %s "(cached) " >&6
16464 else $as_nop
16465
16466 am_cv_func_iconv="no, consider installing GNU libiconv"
16467 am_cv_lib_iconv=no
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470
16471 #include <stdlib.h>
16472 #include <iconv.h>
16473
16474 int
16475 main (void)
16476 {
16477 iconv_t cd = iconv_open("","");
16478 iconv(cd,NULL,NULL,NULL,NULL);
16479 iconv_close(cd);
16480 ;
16481 return 0;
16482 }
16483 _ACEOF
16484 if ac_fn_c_try_link "$LINENO"
16485 then :
16486 am_cv_func_iconv=yes
16487 fi
16488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16489 conftest$ac_exeext conftest.$ac_ext
16490 if test "$am_cv_func_iconv" != yes; then
16491 am_save_LIBS="$LIBS"
16492 LIBS="$LIBS $LIBICONV"
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495
16496 #include <stdlib.h>
16497 #include <iconv.h>
16498
16499 int
16500 main (void)
16501 {
16502 iconv_t cd = iconv_open("","");
16503 iconv(cd,NULL,NULL,NULL,NULL);
16504 iconv_close(cd);
16505 ;
16506 return 0;
16507 }
16508 _ACEOF
16509 if ac_fn_c_try_link "$LINENO"
16510 then :
16511 am_cv_lib_iconv=yes
16512 am_cv_func_iconv=yes
16513 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16515 conftest$ac_exeext conftest.$ac_ext
16516 LIBS="$am_save_LIBS"
16517 fi
16518
16519 fi
16520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16521 printf "%s\n" "$am_cv_func_iconv" >&6; }
16522 if test "$am_cv_func_iconv" = yes; then
16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16524 printf %s "checking for working iconv... " >&6; }
16525 if test ${am_cv_func_iconv_works+y}
16526 then :
16527 printf %s "(cached) " >&6
16528 else $as_nop
16529
16530 am_save_LIBS="$LIBS"
16531 if test $am_cv_lib_iconv = yes; then
16532 LIBS="$LIBS $LIBICONV"
16533 fi
16534 am_cv_func_iconv_works=no
16535 for ac_iconv_const in '' 'const'; do
16536 if test "$cross_compiling" = yes
16537 then :
16538 case "$host_os" in
16539 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16540 *) am_cv_func_iconv_works="guessing yes" ;;
16541 esac
16542 else $as_nop
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545
16546 #include <iconv.h>
16547 #include <string.h>
16548
16549 #ifndef ICONV_CONST
16550 # define ICONV_CONST $ac_iconv_const
16551 #endif
16552
16553 int
16554 main (void)
16555 {
16556 int result = 0;
16557 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
16558 successful returns. This is even documented in
16559 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
16560 {
16561 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16562 if (cd_utf8_to_88591 != (iconv_t)(-1))
16563 {
16564 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16565 char buf[10];
16566 ICONV_CONST char *inptr = input;
16567 size_t inbytesleft = strlen (input);
16568 char *outptr = buf;
16569 size_t outbytesleft = sizeof (buf);
16570 size_t res = iconv (cd_utf8_to_88591,
16571 &inptr, &inbytesleft,
16572 &outptr, &outbytesleft);
16573 if (res == 0)
16574 result |= 1;
16575 iconv_close (cd_utf8_to_88591);
16576 }
16577 }
16578 /* Test against Solaris 10 bug: Failures are not distinguishable from
16579 successful returns. */
16580 {
16581 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16582 if (cd_ascii_to_88591 != (iconv_t)(-1))
16583 {
16584 static ICONV_CONST char input[] = "\263";
16585 char buf[10];
16586 ICONV_CONST char *inptr = input;
16587 size_t inbytesleft = strlen (input);
16588 char *outptr = buf;
16589 size_t outbytesleft = sizeof (buf);
16590 size_t res = iconv (cd_ascii_to_88591,
16591 &inptr, &inbytesleft,
16592 &outptr, &outbytesleft);
16593 if (res == 0)
16594 result |= 2;
16595 iconv_close (cd_ascii_to_88591);
16596 }
16597 }
16598 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16599 {
16600 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16601 if (cd_88591_to_utf8 != (iconv_t)(-1))
16602 {
16603 static ICONV_CONST char input[] = "\304";
16604 static char buf[2] = { (char)0xDE, (char)0xAD };
16605 ICONV_CONST char *inptr = input;
16606 size_t inbytesleft = 1;
16607 char *outptr = buf;
16608 size_t outbytesleft = 1;
16609 size_t res = iconv (cd_88591_to_utf8,
16610 &inptr, &inbytesleft,
16611 &outptr, &outbytesleft);
16612 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16613 result |= 4;
16614 iconv_close (cd_88591_to_utf8);
16615 }
16616 }
16617 #if 0 /* This bug could be worked around by the caller. */
16618 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16619 {
16620 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16621 if (cd_88591_to_utf8 != (iconv_t)(-1))
16622 {
16623 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16624 char buf[50];
16625 ICONV_CONST char *inptr = input;
16626 size_t inbytesleft = strlen (input);
16627 char *outptr = buf;
16628 size_t outbytesleft = sizeof (buf);
16629 size_t res = iconv (cd_88591_to_utf8,
16630 &inptr, &inbytesleft,
16631 &outptr, &outbytesleft);
16632 if ((int)res > 0)
16633 result |= 8;
16634 iconv_close (cd_88591_to_utf8);
16635 }
16636 }
16637 #endif
16638 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16639 provided. */
16640 {
16641 /* Try standardized names. */
16642 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
16643 /* Try IRIX, OSF/1 names. */
16644 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
16645 /* Try AIX names. */
16646 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
16647 /* Try HP-UX names. */
16648 iconv_t cd4 = iconv_open ("utf8", "eucJP");
16649 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
16650 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
16651 result |= 16;
16652 if (cd1 != (iconv_t)(-1))
16653 iconv_close (cd1);
16654 if (cd2 != (iconv_t)(-1))
16655 iconv_close (cd2);
16656 if (cd3 != (iconv_t)(-1))
16657 iconv_close (cd3);
16658 if (cd4 != (iconv_t)(-1))
16659 iconv_close (cd4);
16660 }
16661 return result;
16662
16663 ;
16664 return 0;
16665 }
16666 _ACEOF
16667 if ac_fn_c_try_run "$LINENO"
16668 then :
16669 am_cv_func_iconv_works=yes
16670 fi
16671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16672 conftest.$ac_objext conftest.beam conftest.$ac_ext
16673 fi
16674
16675 test "$am_cv_func_iconv_works" = no || break
16676 done
16677 LIBS="$am_save_LIBS"
16678
16679 fi
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16681 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16682 case "$am_cv_func_iconv_works" in
16683 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16684 *) am_func_iconv=yes ;;
16685 esac
16686 else
16687 am_func_iconv=no am_cv_lib_iconv=no
16688 fi
16689 if test "$am_func_iconv" = yes; then
16690
16691 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16692
16693 fi
16694 if test "$am_cv_lib_iconv" = yes; then
16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16696 printf %s "checking how to link with libiconv... " >&6; }
16697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16698 printf "%s\n" "$LIBICONV" >&6; }
16699 else
16700 CPPFLAGS="$am_save_CPPFLAGS"
16701 LIBICONV=
16702 LTLIBICONV=
16703 fi
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714 use_additional=yes
16715
16716 acl_save_prefix="$prefix"
16717 prefix="$acl_final_prefix"
16718 acl_save_exec_prefix="$exec_prefix"
16719 exec_prefix="$acl_final_exec_prefix"
16720
16721 eval additional_includedir=\"$includedir\"
16722 eval additional_libdir=\"$libdir\"
16723 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16724 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16725
16726 exec_prefix="$acl_save_exec_prefix"
16727 prefix="$acl_save_prefix"
16728
16729
16730 # Check whether --with-libintl-prefix was given.
16731 if test ${with_libintl_prefix+y}
16732 then :
16733 withval=$with_libintl_prefix;
16734 if test "X$withval" = "Xno"; then
16735 use_additional=no
16736 else
16737 if test "X$withval" = "X"; then
16738
16739 acl_save_prefix="$prefix"
16740 prefix="$acl_final_prefix"
16741 acl_save_exec_prefix="$exec_prefix"
16742 exec_prefix="$acl_final_exec_prefix"
16743
16744 eval additional_includedir=\"$includedir\"
16745 eval additional_libdir=\"$libdir\"
16746 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16747 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16748
16749 exec_prefix="$acl_save_exec_prefix"
16750 prefix="$acl_save_prefix"
16751
16752 else
16753 additional_includedir="$withval/include"
16754 additional_libdir="$withval/$acl_libdirstem"
16755 additional_libdir2="$withval/$acl_libdirstem2"
16756 additional_libdir3="$withval/$acl_libdirstem3"
16757 fi
16758 fi
16759
16760 fi
16761
16762 if test "X$additional_libdir2" = "X$additional_libdir"; then
16763 additional_libdir2=
16764 fi
16765 if test "X$additional_libdir3" = "X$additional_libdir"; then
16766 additional_libdir3=
16767 fi
16768 LIBINTL=
16769 LTLIBINTL=
16770 INCINTL=
16771 LIBINTL_PREFIX=
16772 HAVE_LIBINTL=
16773 rpathdirs=
16774 ltrpathdirs=
16775 names_already_handled=
16776 names_next_round='intl '
16777 while test -n "$names_next_round"; do
16778 names_this_round="$names_next_round"
16779 names_next_round=
16780 for name in $names_this_round; do
16781 already_handled=
16782 for n in $names_already_handled; do
16783 if test "$n" = "$name"; then
16784 already_handled=yes
16785 break
16786 fi
16787 done
16788 if test -z "$already_handled"; then
16789 names_already_handled="$names_already_handled $name"
16790 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16791 eval value=\"\$HAVE_LIB$uppername\"
16792 if test -n "$value"; then
16793 if test "$value" = yes; then
16794 eval value=\"\$LIB$uppername\"
16795 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16796 eval value=\"\$LTLIB$uppername\"
16797 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16798 else
16799 :
16800 fi
16801 else
16802 found_dir=
16803 found_la=
16804 found_so=
16805 found_a=
16806 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16807 if test -n "$acl_shlibext"; then
16808 shrext=".$acl_shlibext" # typically: shrext=.so
16809 else
16810 shrext=
16811 fi
16812 if test $use_additional = yes; then
16813 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
16814 if test "X$found_dir" = "X"; then
16815 eval dir=\$$additional_libdir_variable
16816 if test -n "$dir"; then
16817 if test -n "$acl_shlibext"; then
16818 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16819 found_dir="$dir"
16820 found_so="$dir/$libname$shrext"
16821 else
16822 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16823 ver=`(cd "$dir" && \
16824 for f in "$libname$shrext".*; do echo "$f"; done \
16825 | sed -e "s,^$libname$shrext\\\\.,," \
16826 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16827 | sed 1q ) 2>/dev/null`
16828 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16829 found_dir="$dir"
16830 found_so="$dir/$libname$shrext.$ver"
16831 fi
16832 else
16833 eval library_names=\"$acl_library_names_spec\"
16834 for f in $library_names; do
16835 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16836 found_dir="$dir"
16837 found_so="$dir/$f"
16838 break
16839 fi
16840 done
16841 fi
16842 fi
16843 fi
16844 if test "X$found_dir" = "X"; then
16845 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16846 found_dir="$dir"
16847 found_a="$dir/$libname.$acl_libext"
16848 fi
16849 fi
16850 if test "X$found_dir" != "X"; then
16851 if test -f "$dir/$libname.la"; then
16852 found_la="$dir/$libname.la"
16853 fi
16854 fi
16855 fi
16856 fi
16857 done
16858 fi
16859 if test "X$found_dir" = "X"; then
16860 for x in $LDFLAGS $LTLIBINTL; do
16861
16862 acl_save_prefix="$prefix"
16863 prefix="$acl_final_prefix"
16864 acl_save_exec_prefix="$exec_prefix"
16865 exec_prefix="$acl_final_exec_prefix"
16866 eval x=\"$x\"
16867 exec_prefix="$acl_save_exec_prefix"
16868 prefix="$acl_save_prefix"
16869
16870 case "$x" in
16871 -L*)
16872 dir=`echo "X$x" | sed -e 's/^X-L//'`
16873 if test -n "$acl_shlibext"; then
16874 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16875 found_dir="$dir"
16876 found_so="$dir/$libname$shrext"
16877 else
16878 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16879 ver=`(cd "$dir" && \
16880 for f in "$libname$shrext".*; do echo "$f"; done \
16881 | sed -e "s,^$libname$shrext\\\\.,," \
16882 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16883 | sed 1q ) 2>/dev/null`
16884 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16885 found_dir="$dir"
16886 found_so="$dir/$libname$shrext.$ver"
16887 fi
16888 else
16889 eval library_names=\"$acl_library_names_spec\"
16890 for f in $library_names; do
16891 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16892 found_dir="$dir"
16893 found_so="$dir/$f"
16894 break
16895 fi
16896 done
16897 fi
16898 fi
16899 fi
16900 if test "X$found_dir" = "X"; then
16901 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16902 found_dir="$dir"
16903 found_a="$dir/$libname.$acl_libext"
16904 fi
16905 fi
16906 if test "X$found_dir" != "X"; then
16907 if test -f "$dir/$libname.la"; then
16908 found_la="$dir/$libname.la"
16909 fi
16910 fi
16911 ;;
16912 esac
16913 if test "X$found_dir" != "X"; then
16914 break
16915 fi
16916 done
16917 fi
16918 if test "X$found_dir" != "X"; then
16919 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16920 if test "X$found_so" != "X"; then
16921 if test "$enable_rpath" = no \
16922 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16923 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
16924 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
16925 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16926 else
16927 haveit=
16928 for x in $ltrpathdirs; do
16929 if test "X$x" = "X$found_dir"; then
16930 haveit=yes
16931 break
16932 fi
16933 done
16934 if test -z "$haveit"; then
16935 ltrpathdirs="$ltrpathdirs $found_dir"
16936 fi
16937 if test "$acl_hardcode_direct" = yes; then
16938 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16939 else
16940 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16941 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16942 haveit=
16943 for x in $rpathdirs; do
16944 if test "X$x" = "X$found_dir"; then
16945 haveit=yes
16946 break
16947 fi
16948 done
16949 if test -z "$haveit"; then
16950 rpathdirs="$rpathdirs $found_dir"
16951 fi
16952 else
16953 haveit=
16954 for x in $LDFLAGS $LIBINTL; do
16955
16956 acl_save_prefix="$prefix"
16957 prefix="$acl_final_prefix"
16958 acl_save_exec_prefix="$exec_prefix"
16959 exec_prefix="$acl_final_exec_prefix"
16960 eval x=\"$x\"
16961 exec_prefix="$acl_save_exec_prefix"
16962 prefix="$acl_save_prefix"
16963
16964 if test "X$x" = "X-L$found_dir"; then
16965 haveit=yes
16966 break
16967 fi
16968 done
16969 if test -z "$haveit"; then
16970 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16971 fi
16972 if test "$acl_hardcode_minus_L" != no; then
16973 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16974 else
16975 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16976 fi
16977 fi
16978 fi
16979 fi
16980 else
16981 if test "X$found_a" != "X"; then
16982 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16983 else
16984 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16985 fi
16986 fi
16987 additional_includedir=
16988 case "$found_dir" in
16989 */$acl_libdirstem | */$acl_libdirstem/)
16990 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16991 if test "$name" = 'intl'; then
16992 LIBINTL_PREFIX="$basedir"
16993 fi
16994 additional_includedir="$basedir/include"
16995 ;;
16996 */$acl_libdirstem2 | */$acl_libdirstem2/)
16997 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16998 if test "$name" = 'intl'; then
16999 LIBINTL_PREFIX="$basedir"
17000 fi
17001 additional_includedir="$basedir/include"
17002 ;;
17003 */$acl_libdirstem3 | */$acl_libdirstem3/)
17004 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
17005 if test "$name" = 'intl'; then
17006 LIBINTL_PREFIX="$basedir"
17007 fi
17008 additional_includedir="$basedir/include"
17009 ;;
17010 esac
17011 if test "X$additional_includedir" != "X"; then
17012 if test "X$additional_includedir" != "X/usr/include"; then
17013 haveit=
17014 if test "X$additional_includedir" = "X/usr/local/include"; then
17015 if test -n "$GCC"; then
17016 case $host_os in
17017 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17018 esac
17019 fi
17020 fi
17021 if test -z "$haveit"; then
17022 for x in $CPPFLAGS $INCINTL; do
17023
17024 acl_save_prefix="$prefix"
17025 prefix="$acl_final_prefix"
17026 acl_save_exec_prefix="$exec_prefix"
17027 exec_prefix="$acl_final_exec_prefix"
17028 eval x=\"$x\"
17029 exec_prefix="$acl_save_exec_prefix"
17030 prefix="$acl_save_prefix"
17031
17032 if test "X$x" = "X-I$additional_includedir"; then
17033 haveit=yes
17034 break
17035 fi
17036 done
17037 if test -z "$haveit"; then
17038 if test -d "$additional_includedir"; then
17039 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17040 fi
17041 fi
17042 fi
17043 fi
17044 fi
17045 if test -n "$found_la"; then
17046 save_libdir="$libdir"
17047 case "$found_la" in
17048 */* | *\\*) . "$found_la" ;;
17049 *) . "./$found_la" ;;
17050 esac
17051 libdir="$save_libdir"
17052 for dep in $dependency_libs; do
17053 case "$dep" in
17054 -L*)
17055 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17056 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
17057 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
17058 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
17059 haveit=
17060 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
17061 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
17062 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
17063 if test -n "$GCC"; then
17064 case $host_os in
17065 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17066 esac
17067 fi
17068 fi
17069 if test -z "$haveit"; then
17070 haveit=
17071 for x in $LDFLAGS $LIBINTL; do
17072
17073 acl_save_prefix="$prefix"
17074 prefix="$acl_final_prefix"
17075 acl_save_exec_prefix="$exec_prefix"
17076 exec_prefix="$acl_final_exec_prefix"
17077 eval x=\"$x\"
17078 exec_prefix="$acl_save_exec_prefix"
17079 prefix="$acl_save_prefix"
17080
17081 if test "X$x" = "X-L$dependency_libdir"; then
17082 haveit=yes
17083 break
17084 fi
17085 done
17086 if test -z "$haveit"; then
17087 if test -d "$dependency_libdir"; then
17088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
17089 fi
17090 fi
17091 haveit=
17092 for x in $LDFLAGS $LTLIBINTL; do
17093
17094 acl_save_prefix="$prefix"
17095 prefix="$acl_final_prefix"
17096 acl_save_exec_prefix="$exec_prefix"
17097 exec_prefix="$acl_final_exec_prefix"
17098 eval x=\"$x\"
17099 exec_prefix="$acl_save_exec_prefix"
17100 prefix="$acl_save_prefix"
17101
17102 if test "X$x" = "X-L$dependency_libdir"; then
17103 haveit=yes
17104 break
17105 fi
17106 done
17107 if test -z "$haveit"; then
17108 if test -d "$dependency_libdir"; then
17109 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
17110 fi
17111 fi
17112 fi
17113 fi
17114 ;;
17115 -R*)
17116 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17117 if test "$enable_rpath" != no; then
17118 haveit=
17119 for x in $rpathdirs; do
17120 if test "X$x" = "X$dir"; then
17121 haveit=yes
17122 break
17123 fi
17124 done
17125 if test -z "$haveit"; then
17126 rpathdirs="$rpathdirs $dir"
17127 fi
17128 haveit=
17129 for x in $ltrpathdirs; do
17130 if test "X$x" = "X$dir"; then
17131 haveit=yes
17132 break
17133 fi
17134 done
17135 if test -z "$haveit"; then
17136 ltrpathdirs="$ltrpathdirs $dir"
17137 fi
17138 fi
17139 ;;
17140 -l*)
17141 dep=`echo "X$dep" | sed -e 's/^X-l//'`
17142 if test "X$dep" != Xc \
17143 || case $host_os in
17144 linux* | gnu* | k*bsd*-gnu) false ;;
17145 *) true ;;
17146 esac; then
17147 names_next_round="$names_next_round $dep"
17148 fi
17149 ;;
17150 *.la)
17151 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17152 ;;
17153 *)
17154 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17156 ;;
17157 esac
17158 done
17159 fi
17160 else
17161 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17162 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17163 fi
17164 fi
17165 fi
17166 done
17167 done
17168 if test "X$rpathdirs" != "X"; then
17169 if test -n "$acl_hardcode_libdir_separator"; then
17170 alldirs=
17171 for found_dir in $rpathdirs; do
17172 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17173 done
17174 acl_save_libdir="$libdir"
17175 libdir="$alldirs"
17176 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17177 libdir="$acl_save_libdir"
17178 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17179 else
17180 for found_dir in $rpathdirs; do
17181 acl_save_libdir="$libdir"
17182 libdir="$found_dir"
17183 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17184 libdir="$acl_save_libdir"
17185 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17186 done
17187 fi
17188 fi
17189 if test "X$ltrpathdirs" != "X"; then
17190 for found_dir in $ltrpathdirs; do
17191 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17192 done
17193 fi
17194
17195
17196
17197
17198
17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17200 printf %s "checking for GNU gettext in libintl... " >&6; }
17201 if eval test \${$gt_func_gnugettext_libintl+y}
17202 then :
17203 printf %s "(cached) " >&6
17204 else $as_nop
17205 gt_save_CPPFLAGS="$CPPFLAGS"
17206 CPPFLAGS="$CPPFLAGS $INCINTL"
17207 gt_save_LIBS="$LIBS"
17208 LIBS="$LIBS $LIBINTL"
17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h. */
17211
17212 #include <libintl.h>
17213 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17214 extern int _nl_msg_cat_cntr;
17215 extern
17216 #ifdef __cplusplus
17217 "C"
17218 #endif
17219 const char *_nl_expand_alias (const char *);
17220 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17221 #else
17222 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17223 #endif
17224 $gt_revision_test_code
17225
17226 int
17227 main (void)
17228 {
17229
17230 bindtextdomain ("", "");
17231 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17232
17233 ;
17234 return 0;
17235 }
17236 _ACEOF
17237 if ac_fn_c_try_link "$LINENO"
17238 then :
17239 eval "$gt_func_gnugettext_libintl=yes"
17240 else $as_nop
17241 eval "$gt_func_gnugettext_libintl=no"
17242 fi
17243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17244 conftest$ac_exeext conftest.$ac_ext
17245 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17246 LIBS="$LIBS $LIBICONV"
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17249
17250 #include <libintl.h>
17251 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17252 extern int _nl_msg_cat_cntr;
17253 extern
17254 #ifdef __cplusplus
17255 "C"
17256 #endif
17257 const char *_nl_expand_alias (const char *);
17258 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17259 #else
17260 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17261 #endif
17262 $gt_revision_test_code
17263
17264 int
17265 main (void)
17266 {
17267
17268 bindtextdomain ("", "");
17269 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17270
17271 ;
17272 return 0;
17273 }
17274 _ACEOF
17275 if ac_fn_c_try_link "$LINENO"
17276 then :
17277 LIBINTL="$LIBINTL $LIBICONV"
17278 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17279 eval "$gt_func_gnugettext_libintl=yes"
17280
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17283 conftest$ac_exeext conftest.$ac_ext
17284 fi
17285 CPPFLAGS="$gt_save_CPPFLAGS"
17286 LIBS="$gt_save_LIBS"
17287 fi
17288 eval ac_res=\$$gt_func_gnugettext_libintl
17289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17290 printf "%s\n" "$ac_res" >&6; }
17291 fi
17292
17293 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17294 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17295 && test "$PACKAGE" != gettext-runtime \
17296 && test "$PACKAGE" != gettext-tools; }; then
17297 gt_use_preinstalled_gnugettext=yes
17298 else
17299 LIBINTL=
17300 LTLIBINTL=
17301 INCINTL=
17302 fi
17303
17304
17305
17306 if test -n "$INTL_MACOSX_LIBS"; then
17307 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17308 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17309 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17310 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17311 fi
17312 fi
17313
17314 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17315 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17316
17317 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
17318
17319 else
17320 USE_NLS=no
17321 fi
17322 fi
17323
17324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17325 printf %s "checking whether to use NLS... " >&6; }
17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17327 printf "%s\n" "$USE_NLS" >&6; }
17328 if test "$USE_NLS" = "yes"; then
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17330 printf %s "checking where the gettext function comes from... " >&6; }
17331 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17332 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17333 gt_source="external libintl"
17334 else
17335 gt_source="libc"
17336 fi
17337 else
17338 gt_source="included intl directory"
17339 fi
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17341 printf "%s\n" "$gt_source" >&6; }
17342 fi
17343
17344 if test "$USE_NLS" = "yes"; then
17345
17346 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17347 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17349 printf %s "checking how to link with libintl... " >&6; }
17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17351 printf "%s\n" "$LIBINTL" >&6; }
17352
17353 for element in $INCINTL; do
17354 haveit=
17355 for x in $CPPFLAGS; do
17356
17357 acl_save_prefix="$prefix"
17358 prefix="$acl_final_prefix"
17359 acl_save_exec_prefix="$exec_prefix"
17360 exec_prefix="$acl_final_exec_prefix"
17361 eval x=\"$x\"
17362 exec_prefix="$acl_save_exec_prefix"
17363 prefix="$acl_save_prefix"
17364
17365 if test "X$x" = "X$element"; then
17366 haveit=yes
17367 break
17368 fi
17369 done
17370 if test -z "$haveit"; then
17371 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17372 fi
17373 done
17374
17375 fi
17376
17377
17378 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
17379
17380
17381 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
17382
17383 fi
17384
17385 POSUB=po
17386 fi
17387
17388
17389
17390 INTLLIBS="$LIBINTL"
17391
17392
17393
17394
17395
17396
17397 # Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION
17398
17399
17400
17401 # gio-unix will require glib and gio
17402
17403 pkg_failed=no
17404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
17405 printf %s "checking for GLIB... " >&6; }
17406
17407 if test -n "$GLIB_CFLAGS"; then
17408 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
17409 elif test -n "$PKG_CONFIG"; then
17410 if test -n "$PKG_CONFIG" && \
17411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 gio-unix-2.0 >= 2.34\""; } >&5
17412 ($PKG_CONFIG --exists --print-errors "gmodule-2.0 gio-unix-2.0 >= 2.34") 2>&5
17413 ac_status=$?
17414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17415 test $ac_status = 0; }; then
17416 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0 gio-unix-2.0 >= 2.34" 2>/dev/null`
17417 test "x$?" != "x0" && pkg_failed=yes
17418 else
17419 pkg_failed=yes
17420 fi
17421 else
17422 pkg_failed=untried
17423 fi
17424 if test -n "$GLIB_LIBS"; then
17425 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
17426 elif test -n "$PKG_CONFIG"; then
17427 if test -n "$PKG_CONFIG" && \
17428 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 gio-unix-2.0 >= 2.34\""; } >&5
17429 ($PKG_CONFIG --exists --print-errors "gmodule-2.0 gio-unix-2.0 >= 2.34") 2>&5
17430 ac_status=$?
17431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17432 test $ac_status = 0; }; then
17433 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "gmodule-2.0 gio-unix-2.0 >= 2.34" 2>/dev/null`
17434 test "x$?" != "x0" && pkg_failed=yes
17435 else
17436 pkg_failed=yes
17437 fi
17438 else
17439 pkg_failed=untried
17440 fi
17441
17442
17443
17444 if test $pkg_failed = yes; then
17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17446 printf "%s\n" "no" >&6; }
17447
17448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17449 _pkg_short_errors_supported=yes
17450 else
17451 _pkg_short_errors_supported=no
17452 fi
17453 if test $_pkg_short_errors_supported = yes; then
17454 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0 gio-unix-2.0 >= 2.34" 2>&1`
17455 else
17456 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0 gio-unix-2.0 >= 2.34" 2>&1`
17457 fi
17458 # Put the nasty error message in config.log where it belongs
17459 echo "$GLIB_PKG_ERRORS" >&5
17460
17461 as_fn_error $? "Package requirements (gmodule-2.0 gio-unix-2.0 >= 2.34) were not met:
17462
17463 $GLIB_PKG_ERRORS
17464
17465 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17466 installed software in a non-standard prefix.
17467
17468 Alternatively, you may set the environment variables GLIB_CFLAGS
17469 and GLIB_LIBS to avoid the need to call pkg-config.
17470 See the pkg-config man page for more details." "$LINENO" 5
17471 elif test $pkg_failed = untried; then
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17473 printf "%s\n" "no" >&6; }
17474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17476 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17477 is in your PATH or set the PKG_CONFIG environment variable to the full
17478 path to pkg-config.
17479
17480 Alternatively, you may set the environment variables GLIB_CFLAGS
17481 and GLIB_LIBS to avoid the need to call pkg-config.
17482 See the pkg-config man page for more details.
17483
17484 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17485 See \`config.log' for more details" "$LINENO" 5; }
17486 else
17487 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
17488 GLIB_LIBS=$pkg_cv_GLIB_LIBS
17489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17490 printf "%s\n" "yes" >&6; }
17491
17492 fi
17493 GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_34"
17494 GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_34"
17495
17496 if test x"$with_gnome" != xno; then
17497
17498 pkg_failed=no
17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
17500 printf %s "checking for GTK... " >&6; }
17501
17502 if test -n "$GTK_CFLAGS"; then
17503 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
17504 elif test -n "$PKG_CONFIG"; then
17505 if test -n "$PKG_CONFIG" && \
17506 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
17507 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
17508 ac_status=$?
17509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17510 test $ac_status = 0; }; then
17511 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.4" 2>/dev/null`
17512 test "x$?" != "x0" && pkg_failed=yes
17513 else
17514 pkg_failed=yes
17515 fi
17516 else
17517 pkg_failed=untried
17518 fi
17519 if test -n "$GTK_LIBS"; then
17520 pkg_cv_GTK_LIBS="$GTK_LIBS"
17521 elif test -n "$PKG_CONFIG"; then
17522 if test -n "$PKG_CONFIG" && \
17523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
17524 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
17525 ac_status=$?
17526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17527 test $ac_status = 0; }; then
17528 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.4" 2>/dev/null`
17529 test "x$?" != "x0" && pkg_failed=yes
17530 else
17531 pkg_failed=yes
17532 fi
17533 else
17534 pkg_failed=untried
17535 fi
17536
17537
17538
17539 if test $pkg_failed = yes; then
17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541 printf "%s\n" "no" >&6; }
17542
17543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17544 _pkg_short_errors_supported=yes
17545 else
17546 _pkg_short_errors_supported=no
17547 fi
17548 if test $_pkg_short_errors_supported = yes; then
17549 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.4" 2>&1`
17550 else
17551 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.4" 2>&1`
17552 fi
17553 # Put the nasty error message in config.log where it belongs
17554 echo "$GTK_PKG_ERRORS" >&5
17555
17556 as_fn_error $? "Package requirements (gtk+-3.0 >= 3.4) were not met:
17557
17558 $GTK_PKG_ERRORS
17559
17560 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17561 installed software in a non-standard prefix.
17562
17563 Alternatively, you may set the environment variables GTK_CFLAGS
17564 and GTK_LIBS to avoid the need to call pkg-config.
17565 See the pkg-config man page for more details." "$LINENO" 5
17566 elif test $pkg_failed = untried; then
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568 printf "%s\n" "no" >&6; }
17569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17570 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17571 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17572 is in your PATH or set the PKG_CONFIG environment variable to the full
17573 path to pkg-config.
17574
17575 Alternatively, you may set the environment variables GTK_CFLAGS
17576 and GTK_LIBS to avoid the need to call pkg-config.
17577 See the pkg-config man page for more details.
17578
17579 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17580 See \`config.log' for more details" "$LINENO" 5; }
17581 else
17582 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
17583 GTK_LIBS=$pkg_cv_GTK_LIBS
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17585 printf "%s\n" "yes" >&6; }
17586
17587 fi
17588 GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4"
17589 GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4"
17590
17591
17592 pkg_failed=no
17593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBNMA" >&5
17594 printf %s "checking for LIBNMA... " >&6; }
17595
17596 if test -n "$LIBNMA_CFLAGS"; then
17597 pkg_cv_LIBNMA_CFLAGS="$LIBNMA_CFLAGS"
17598 elif test -n "$PKG_CONFIG"; then
17599 if test -n "$PKG_CONFIG" && \
17600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma >= 1.2.0\""; } >&5
17601 ($PKG_CONFIG --exists --print-errors "libnma >= 1.2.0") 2>&5
17602 ac_status=$?
17603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17604 test $ac_status = 0; }; then
17605 pkg_cv_LIBNMA_CFLAGS=`$PKG_CONFIG --cflags "libnma >= 1.2.0" 2>/dev/null`
17606 test "x$?" != "x0" && pkg_failed=yes
17607 else
17608 pkg_failed=yes
17609 fi
17610 else
17611 pkg_failed=untried
17612 fi
17613 if test -n "$LIBNMA_LIBS"; then
17614 pkg_cv_LIBNMA_LIBS="$LIBNMA_LIBS"
17615 elif test -n "$PKG_CONFIG"; then
17616 if test -n "$PKG_CONFIG" && \
17617 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma >= 1.2.0\""; } >&5
17618 ($PKG_CONFIG --exists --print-errors "libnma >= 1.2.0") 2>&5
17619 ac_status=$?
17620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17621 test $ac_status = 0; }; then
17622 pkg_cv_LIBNMA_LIBS=`$PKG_CONFIG --libs "libnma >= 1.2.0" 2>/dev/null`
17623 test "x$?" != "x0" && pkg_failed=yes
17624 else
17625 pkg_failed=yes
17626 fi
17627 else
17628 pkg_failed=untried
17629 fi
17630
17631
17632
17633 if test $pkg_failed = yes; then
17634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17635 printf "%s\n" "no" >&6; }
17636
17637 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17638 _pkg_short_errors_supported=yes
17639 else
17640 _pkg_short_errors_supported=no
17641 fi
17642 if test $_pkg_short_errors_supported = yes; then
17643 LIBNMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnma >= 1.2.0" 2>&1`
17644 else
17645 LIBNMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnma >= 1.2.0" 2>&1`
17646 fi
17647 # Put the nasty error message in config.log where it belongs
17648 echo "$LIBNMA_PKG_ERRORS" >&5
17649
17650 as_fn_error $? "Package requirements (libnma >= 1.2.0) were not met:
17651
17652 $LIBNMA_PKG_ERRORS
17653
17654 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17655 installed software in a non-standard prefix.
17656
17657 Alternatively, you may set the environment variables LIBNMA_CFLAGS
17658 and LIBNMA_LIBS to avoid the need to call pkg-config.
17659 See the pkg-config man page for more details." "$LINENO" 5
17660 elif test $pkg_failed = untried; then
17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17662 printf "%s\n" "no" >&6; }
17663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17664 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17665 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17666 is in your PATH or set the PKG_CONFIG environment variable to the full
17667 path to pkg-config.
17668
17669 Alternatively, you may set the environment variables LIBNMA_CFLAGS
17670 and LIBNMA_LIBS to avoid the need to call pkg-config.
17671 See the pkg-config man page for more details.
17672
17673 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17674 See \`config.log' for more details" "$LINENO" 5; }
17675 else
17676 LIBNMA_CFLAGS=$pkg_cv_LIBNMA_CFLAGS
17677 LIBNMA_LIBS=$pkg_cv_LIBNMA_LIBS
17678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17679 printf "%s\n" "yes" >&6; }
17680
17681 fi
17682
17683 pkg_failed=no
17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBSECRET" >&5
17685 printf %s "checking for LIBSECRET... " >&6; }
17686
17687 if test -n "$LIBSECRET_CFLAGS"; then
17688 pkg_cv_LIBSECRET_CFLAGS="$LIBSECRET_CFLAGS"
17689 elif test -n "$PKG_CONFIG"; then
17690 if test -n "$PKG_CONFIG" && \
17691 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1 >= 0.18\""; } >&5
17692 ($PKG_CONFIG --exists --print-errors "libsecret-1 >= 0.18") 2>&5
17693 ac_status=$?
17694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17695 test $ac_status = 0; }; then
17696 pkg_cv_LIBSECRET_CFLAGS=`$PKG_CONFIG --cflags "libsecret-1 >= 0.18" 2>/dev/null`
17697 test "x$?" != "x0" && pkg_failed=yes
17698 else
17699 pkg_failed=yes
17700 fi
17701 else
17702 pkg_failed=untried
17703 fi
17704 if test -n "$LIBSECRET_LIBS"; then
17705 pkg_cv_LIBSECRET_LIBS="$LIBSECRET_LIBS"
17706 elif test -n "$PKG_CONFIG"; then
17707 if test -n "$PKG_CONFIG" && \
17708 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1 >= 0.18\""; } >&5
17709 ($PKG_CONFIG --exists --print-errors "libsecret-1 >= 0.18") 2>&5
17710 ac_status=$?
17711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17712 test $ac_status = 0; }; then
17713 pkg_cv_LIBSECRET_LIBS=`$PKG_CONFIG --libs "libsecret-1 >= 0.18" 2>/dev/null`
17714 test "x$?" != "x0" && pkg_failed=yes
17715 else
17716 pkg_failed=yes
17717 fi
17718 else
17719 pkg_failed=untried
17720 fi
17721
17722
17723
17724 if test $pkg_failed = yes; then
17725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17726 printf "%s\n" "no" >&6; }
17727
17728 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17729 _pkg_short_errors_supported=yes
17730 else
17731 _pkg_short_errors_supported=no
17732 fi
17733 if test $_pkg_short_errors_supported = yes; then
17734 LIBSECRET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsecret-1 >= 0.18" 2>&1`
17735 else
17736 LIBSECRET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsecret-1 >= 0.18" 2>&1`
17737 fi
17738 # Put the nasty error message in config.log where it belongs
17739 echo "$LIBSECRET_PKG_ERRORS" >&5
17740
17741 as_fn_error $? "Package requirements (libsecret-1 >= 0.18) were not met:
17742
17743 $LIBSECRET_PKG_ERRORS
17744
17745 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17746 installed software in a non-standard prefix.
17747
17748 Alternatively, you may set the environment variables LIBSECRET_CFLAGS
17749 and LIBSECRET_LIBS to avoid the need to call pkg-config.
17750 See the pkg-config man page for more details." "$LINENO" 5
17751 elif test $pkg_failed = untried; then
17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17753 printf "%s\n" "no" >&6; }
17754 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17755 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17756 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17757 is in your PATH or set the PKG_CONFIG environment variable to the full
17758 path to pkg-config.
17759
17760 Alternatively, you may set the environment variables LIBSECRET_CFLAGS
17761 and LIBSECRET_LIBS to avoid the need to call pkg-config.
17762 See the pkg-config man page for more details.
17763
17764 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17765 See \`config.log' for more details" "$LINENO" 5; }
17766 else
17767 LIBSECRET_CFLAGS=$pkg_cv_LIBSECRET_CFLAGS
17768 LIBSECRET_LIBS=$pkg_cv_LIBSECRET_LIBS
17769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17770 printf "%s\n" "yes" >&6; }
17771
17772 fi
17773 fi
17774 if test x"$with_gtk4" != xno; then
17775
17776 pkg_failed=no
17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK4" >&5
17778 printf %s "checking for GTK4... " >&6; }
17779
17780 if test -n "$GTK4_CFLAGS"; then
17781 pkg_cv_GTK4_CFLAGS="$GTK4_CFLAGS"
17782 elif test -n "$PKG_CONFIG"; then
17783 if test -n "$PKG_CONFIG" && \
17784 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4 >= 4.0\""; } >&5
17785 ($PKG_CONFIG --exists --print-errors "gtk4 >= 4.0") 2>&5
17786 ac_status=$?
17787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17788 test $ac_status = 0; }; then
17789 pkg_cv_GTK4_CFLAGS=`$PKG_CONFIG --cflags "gtk4 >= 4.0" 2>/dev/null`
17790 test "x$?" != "x0" && pkg_failed=yes
17791 else
17792 pkg_failed=yes
17793 fi
17794 else
17795 pkg_failed=untried
17796 fi
17797 if test -n "$GTK4_LIBS"; then
17798 pkg_cv_GTK4_LIBS="$GTK4_LIBS"
17799 elif test -n "$PKG_CONFIG"; then
17800 if test -n "$PKG_CONFIG" && \
17801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4 >= 4.0\""; } >&5
17802 ($PKG_CONFIG --exists --print-errors "gtk4 >= 4.0") 2>&5
17803 ac_status=$?
17804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17805 test $ac_status = 0; }; then
17806 pkg_cv_GTK4_LIBS=`$PKG_CONFIG --libs "gtk4 >= 4.0" 2>/dev/null`
17807 test "x$?" != "x0" && pkg_failed=yes
17808 else
17809 pkg_failed=yes
17810 fi
17811 else
17812 pkg_failed=untried
17813 fi
17814
17815
17816
17817 if test $pkg_failed = yes; then
17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17819 printf "%s\n" "no" >&6; }
17820
17821 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17822 _pkg_short_errors_supported=yes
17823 else
17824 _pkg_short_errors_supported=no
17825 fi
17826 if test $_pkg_short_errors_supported = yes; then
17827 GTK4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk4 >= 4.0" 2>&1`
17828 else
17829 GTK4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk4 >= 4.0" 2>&1`
17830 fi
17831 # Put the nasty error message in config.log where it belongs
17832 echo "$GTK4_PKG_ERRORS" >&5
17833
17834 as_fn_error $? "Package requirements (gtk4 >= 4.0) were not met:
17835
17836 $GTK4_PKG_ERRORS
17837
17838 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17839 installed software in a non-standard prefix.
17840
17841 Alternatively, you may set the environment variables GTK4_CFLAGS
17842 and GTK4_LIBS to avoid the need to call pkg-config.
17843 See the pkg-config man page for more details." "$LINENO" 5
17844 elif test $pkg_failed = untried; then
17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17846 printf "%s\n" "no" >&6; }
17847 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17848 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17849 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17850 is in your PATH or set the PKG_CONFIG environment variable to the full
17851 path to pkg-config.
17852
17853 Alternatively, you may set the environment variables GTK4_CFLAGS
17854 and GTK4_LIBS to avoid the need to call pkg-config.
17855 See the pkg-config man page for more details.
17856
17857 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17858 See \`config.log' for more details" "$LINENO" 5; }
17859 else
17860 GTK4_CFLAGS=$pkg_cv_GTK4_CFLAGS
17861 GTK4_LIBS=$pkg_cv_GTK4_LIBS
17862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17863 printf "%s\n" "yes" >&6; }
17864
17865 fi
17866 GTK4_CFLAGS="$GTK4_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_4_0"
17867 GTK4_CFLAGS="$GTK4_CFLAGS -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_4_0"
17868
17869 pkg_failed=no
17870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBNMA_GTK4" >&5
17871 printf %s "checking for LIBNMA_GTK4... " >&6; }
17872
17873 if test -n "$LIBNMA_GTK4_CFLAGS"; then
17874 pkg_cv_LIBNMA_GTK4_CFLAGS="$LIBNMA_GTK4_CFLAGS"
17875 elif test -n "$PKG_CONFIG"; then
17876 if test -n "$PKG_CONFIG" && \
17877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma-gtk4 >= 1.8.33\""; } >&5
17878 ($PKG_CONFIG --exists --print-errors "libnma-gtk4 >= 1.8.33") 2>&5
17879 ac_status=$?
17880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17881 test $ac_status = 0; }; then
17882 pkg_cv_LIBNMA_GTK4_CFLAGS=`$PKG_CONFIG --cflags "libnma-gtk4 >= 1.8.33" 2>/dev/null`
17883 test "x$?" != "x0" && pkg_failed=yes
17884 else
17885 pkg_failed=yes
17886 fi
17887 else
17888 pkg_failed=untried
17889 fi
17890 if test -n "$LIBNMA_GTK4_LIBS"; then
17891 pkg_cv_LIBNMA_GTK4_LIBS="$LIBNMA_GTK4_LIBS"
17892 elif test -n "$PKG_CONFIG"; then
17893 if test -n "$PKG_CONFIG" && \
17894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnma-gtk4 >= 1.8.33\""; } >&5
17895 ($PKG_CONFIG --exists --print-errors "libnma-gtk4 >= 1.8.33") 2>&5
17896 ac_status=$?
17897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898 test $ac_status = 0; }; then
17899 pkg_cv_LIBNMA_GTK4_LIBS=`$PKG_CONFIG --libs "libnma-gtk4 >= 1.8.33" 2>/dev/null`
17900 test "x$?" != "x0" && pkg_failed=yes
17901 else
17902 pkg_failed=yes
17903 fi
17904 else
17905 pkg_failed=untried
17906 fi
17907
17908
17909
17910 if test $pkg_failed = yes; then
17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 printf "%s\n" "no" >&6; }
17913
17914 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17915 _pkg_short_errors_supported=yes
17916 else
17917 _pkg_short_errors_supported=no
17918 fi
17919 if test $_pkg_short_errors_supported = yes; then
17920 LIBNMA_GTK4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnma-gtk4 >= 1.8.33" 2>&1`
17921 else
17922 LIBNMA_GTK4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnma-gtk4 >= 1.8.33" 2>&1`
17923 fi
17924 # Put the nasty error message in config.log where it belongs
17925 echo "$LIBNMA_GTK4_PKG_ERRORS" >&5
17926
17927 as_fn_error $? "Package requirements (libnma-gtk4 >= 1.8.33) were not met:
17928
17929 $LIBNMA_GTK4_PKG_ERRORS
17930
17931 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17932 installed software in a non-standard prefix.
17933
17934 Alternatively, you may set the environment variables LIBNMA_GTK4_CFLAGS
17935 and LIBNMA_GTK4_LIBS to avoid the need to call pkg-config.
17936 See the pkg-config man page for more details." "$LINENO" 5
17937 elif test $pkg_failed = untried; then
17938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17939 printf "%s\n" "no" >&6; }
17940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17941 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17942 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17943 is in your PATH or set the PKG_CONFIG environment variable to the full
17944 path to pkg-config.
17945
17946 Alternatively, you may set the environment variables LIBNMA_GTK4_CFLAGS
17947 and LIBNMA_GTK4_LIBS to avoid the need to call pkg-config.
17948 See the pkg-config man page for more details.
17949
17950 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17951 See \`config.log' for more details" "$LINENO" 5; }
17952 else
17953 LIBNMA_GTK4_CFLAGS=$pkg_cv_LIBNMA_GTK4_CFLAGS
17954 LIBNMA_GTK4_LIBS=$pkg_cv_LIBNMA_GTK4_LIBS
17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17956 printf "%s\n" "yes" >&6; }
17957
17958 fi
17959 fi
17960
17961
17962 pkg_failed=no
17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBNM" >&5
17964 printf %s "checking for LIBNM... " >&6; }
17965
17966 if test -n "$LIBNM_CFLAGS"; then
17967 pkg_cv_LIBNM_CFLAGS="$LIBNM_CFLAGS"
17968 elif test -n "$PKG_CONFIG"; then
17969 if test -n "$PKG_CONFIG" && \
17970 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.2.0\""; } >&5
17971 ($PKG_CONFIG --exists --print-errors "libnm >= 1.2.0") 2>&5
17972 ac_status=$?
17973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17974 test $ac_status = 0; }; then
17975 pkg_cv_LIBNM_CFLAGS=`$PKG_CONFIG --cflags "libnm >= 1.2.0" 2>/dev/null`
17976 test "x$?" != "x0" && pkg_failed=yes
17977 else
17978 pkg_failed=yes
17979 fi
17980 else
17981 pkg_failed=untried
17982 fi
17983 if test -n "$LIBNM_LIBS"; then
17984 pkg_cv_LIBNM_LIBS="$LIBNM_LIBS"
17985 elif test -n "$PKG_CONFIG"; then
17986 if test -n "$PKG_CONFIG" && \
17987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm >= 1.2.0\""; } >&5
17988 ($PKG_CONFIG --exists --print-errors "libnm >= 1.2.0") 2>&5
17989 ac_status=$?
17990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17991 test $ac_status = 0; }; then
17992 pkg_cv_LIBNM_LIBS=`$PKG_CONFIG --libs "libnm >= 1.2.0" 2>/dev/null`
17993 test "x$?" != "x0" && pkg_failed=yes
17994 else
17995 pkg_failed=yes
17996 fi
17997 else
17998 pkg_failed=untried
17999 fi
18000
18001
18002
18003 if test $pkg_failed = yes; then
18004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 printf "%s\n" "no" >&6; }
18006
18007 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18008 _pkg_short_errors_supported=yes
18009 else
18010 _pkg_short_errors_supported=no
18011 fi
18012 if test $_pkg_short_errors_supported = yes; then
18013 LIBNM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnm >= 1.2.0" 2>&1`
18014 else
18015 LIBNM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnm >= 1.2.0" 2>&1`
18016 fi
18017 # Put the nasty error message in config.log where it belongs
18018 echo "$LIBNM_PKG_ERRORS" >&5
18019
18020 as_fn_error $? "Package requirements (libnm >= 1.2.0) were not met:
18021
18022 $LIBNM_PKG_ERRORS
18023
18024 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18025 installed software in a non-standard prefix.
18026
18027 Alternatively, you may set the environment variables LIBNM_CFLAGS
18028 and LIBNM_LIBS to avoid the need to call pkg-config.
18029 See the pkg-config man page for more details." "$LINENO" 5
18030 elif test $pkg_failed = untried; then
18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18032 printf "%s\n" "no" >&6; }
18033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18034 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18035 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18036 is in your PATH or set the PKG_CONFIG environment variable to the full
18037 path to pkg-config.
18038
18039 Alternatively, you may set the environment variables LIBNM_CFLAGS
18040 and LIBNM_LIBS to avoid the need to call pkg-config.
18041 See the pkg-config man page for more details.
18042
18043 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18044 See \`config.log' for more details" "$LINENO" 5; }
18045 else
18046 LIBNM_CFLAGS=$pkg_cv_LIBNM_CFLAGS
18047 LIBNM_LIBS=$pkg_cv_LIBNM_LIBS
18048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18049 printf "%s\n" "yes" >&6; }
18050
18051 fi
18052 LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MIN_REQUIRED=NM_VERSION_1_2"
18053 LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MAX_ALLOWED=NM_VERSION_1_2"
18054
18055 NM_VPN_SERVICE_DIR=`$PKG_CONFIG --define-variable prefix='\${prefix}' --variable vpnservicedir libnm`
18056
18057
18058 # Check whether --enable-more-warnings was given.
18059 if test ${enable_more_warnings+y}
18060 then :
18061 enableval=$enable_more_warnings; set_more_warnings="$enableval"
18062 else $as_nop
18063 set_more_warnings=yes
18064 fi
18065
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for more warnings" >&5
18067 printf %s "checking for more warnings... " >&6; }
18068 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18070 printf "%s\n" "yes" >&6; }
18071
18072 CFLAGS_SAVED="$CFLAGS"
18073 CFLAGS="$CFLAGS -Qunused-arguments"
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h. */
18076
18077 _ACEOF
18078 if ac_fn_c_try_compile "$LINENO"
18079 then :
18080
18081 else $as_nop
18082 CFLAGS="$CFLAGS_SAVED"
18083 fi
18084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18085 unset CFLAGS_SAVED
18086
18087
18088
18089 CFLAGS_SAVED="$CFLAGS"
18090 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunknown-warning-option"
18091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunknown-warning-option works as expected" >&5
18092 printf %s "checking whether -Wunknown-warning-option works as expected... " >&6; }
18093
18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18096
18097 _ACEOF
18098 if ac_fn_c_try_compile "$LINENO"
18099 then :
18100
18101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18103
18104 _ACEOF
18105 if ac_fn_c_try_compile "$LINENO"
18106 then :
18107
18108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18109 printf "%s\n" "yes" >&6; }
18110 CFLAGS="$CFLAGS_SAVED"
18111 CFLAGS="$CFLAGS -Wunknown-warning-option"
18112
18113 else $as_nop
18114
18115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18116 printf "%s\n" "no" >&6; }
18117 CFLAGS="$CFLAGS_SAVED"
18118 CFLAGS="$CFLAGS -Wno-unknown-warning-option"
18119
18120 fi
18121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18122
18123 else $as_nop
18124
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
18126 printf "%s\n" "not supported" >&6; }
18127 CFLAGS="$CFLAGS_SAVED"
18128
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18131
18132
18133
18134 CFLAGS_MORE_WARNINGS="-Wall -std=gnu99"
18135
18136 if test "x$set_more_warnings" = xerror; then
18137 CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS -Werror"
18138 fi
18139
18140 for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
18141 -Wdeclaration-after-statement -Wformat-security \
18142 -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
18143 -Wno-duplicate-decl-specifier \
18144 -Wstrict-prototypes \
18145 -Wno-unused-but-set-variable \
18146 -Wno-format-y2k \
18147 -Wundef -Wimplicit-function-declaration \
18148 -Wpointer-arith -Winit-self -Wformat-nonliteral \
18149 -Wmissing-include-dirs -Wno-pragmas; do
18150
18151 CFLAGS_SAVED="$CFLAGS"
18152 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror $(printf '%s' "$option" | sed 's/^-Wno-/-W/')"
18153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $(printf '%s' \"$option\" | sed 's/^-Wno-/-W/') works as expected" >&5
18154 printf %s "checking whether $(printf '%s' \"$option\" | sed 's/^-Wno-/-W/') works as expected... " >&6; }
18155
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h. */
18158
18159 _ACEOF
18160 if ac_fn_c_try_compile "$LINENO"
18161 then :
18162
18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h. */
18165
18166 _ACEOF
18167 if ac_fn_c_try_compile "$LINENO"
18168 then :
18169
18170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18171 printf "%s\n" "yes" >&6; }
18172 CFLAGS="$CFLAGS_SAVED"
18173 CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS $option"
18174
18175 else $as_nop
18176
18177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178 printf "%s\n" "no" >&6; }
18179 CFLAGS="$CFLAGS_SAVED"
18180
18181
18182 fi
18183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18184
18185 else $as_nop
18186
18187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
18188 printf "%s\n" "not supported" >&6; }
18189 CFLAGS="$CFLAGS_SAVED"
18190
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18193
18194 done
18195 unset option
18196
18197
18198
18199
18200 CFLAGS_SAVED="$CFLAGS"
18201 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunknown-attributes"
18202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunknown-attributes works as expected" >&5
18203 printf %s "checking whether -Wunknown-attributes works as expected... " >&6; }
18204
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18207
18208 _ACEOF
18209 if ac_fn_c_try_compile "$LINENO"
18210 then :
18211
18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h. */
18214 #include <glib.h>
18215 _ACEOF
18216 if ac_fn_c_try_compile "$LINENO"
18217 then :
18218
18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18220 printf "%s\n" "yes" >&6; }
18221 CFLAGS="$CFLAGS_SAVED"
18222 CFLAGS="$CFLAGS -Wunknown-attributes"
18223
18224 else $as_nop
18225
18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 printf "%s\n" "no" >&6; }
18228 CFLAGS="$CFLAGS_SAVED"
18229 CFLAGS="$CFLAGS -Wno-unknown-attributes"
18230
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18233
18234 else $as_nop
18235
18236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
18237 printf "%s\n" "not supported" >&6; }
18238 CFLAGS="$CFLAGS_SAVED"
18239
18240 fi
18241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18242
18243
18244
18245
18246
18247 CFLAGS_SAVED="$CFLAGS"
18248 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wtypedef-redefinition"
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wtypedef-redefinition works as expected" >&5
18250 printf %s "checking whether -Wtypedef-redefinition works as expected... " >&6; }
18251
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254
18255 _ACEOF
18256 if ac_fn_c_try_compile "$LINENO"
18257 then :
18258
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261 #include <gio/gio.h>
18262 _ACEOF
18263 if ac_fn_c_try_compile "$LINENO"
18264 then :
18265
18266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18267 printf "%s\n" "yes" >&6; }
18268 CFLAGS="$CFLAGS_SAVED"
18269 CFLAGS="$CFLAGS -Wtypedef-redefinition"
18270
18271 else $as_nop
18272
18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274 printf "%s\n" "no" >&6; }
18275 CFLAGS="$CFLAGS_SAVED"
18276 CFLAGS="$CFLAGS -Wno-typedef-redefinition"
18277
18278 fi
18279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18280
18281 else $as_nop
18282
18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
18284 printf "%s\n" "not supported" >&6; }
18285 CFLAGS="$CFLAGS_SAVED"
18286
18287 fi
18288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18289
18290
18291
18292
18293
18294 CFLAGS_SAVED="$CFLAGS"
18295 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Warray-bounds"
18296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Warray-bounds works as expected" >&5
18297 printf %s "checking whether -Warray-bounds works as expected... " >&6; }
18298
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18301
18302 _ACEOF
18303 if ac_fn_c_try_compile "$LINENO"
18304 then :
18305
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18308 #include <string.h>
18309 void f () { strcmp ("something", "0"); }
18310
18311 _ACEOF
18312 if ac_fn_c_try_compile "$LINENO"
18313 then :
18314
18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316 printf "%s\n" "yes" >&6; }
18317 CFLAGS="$CFLAGS_SAVED"
18318 CFLAGS="$CFLAGS -Warray-bounds"
18319
18320 else $as_nop
18321
18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323 printf "%s\n" "no" >&6; }
18324 CFLAGS="$CFLAGS_SAVED"
18325 CFLAGS="$CFLAGS -Wno-array-bounds"
18326
18327 fi
18328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18329
18330 else $as_nop
18331
18332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
18333 printf "%s\n" "not supported" >&6; }
18334 CFLAGS="$CFLAGS_SAVED"
18335
18336 fi
18337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18338
18339
18340
18341
18342
18343 CFLAGS_SAVED="$CFLAGS"
18344 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wparentheses-equality"
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wparentheses-equality works as expected" >&5
18346 printf %s "checking whether -Wparentheses-equality works as expected... " >&6; }
18347
18348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349 /* end confdefs.h. */
18350
18351 _ACEOF
18352 if ac_fn_c_try_compile "$LINENO"
18353 then :
18354
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18357 #include <sys/wait.h>
18358 void f () { if (WIFCONTINUED(0)) return; }
18359
18360 _ACEOF
18361 if ac_fn_c_try_compile "$LINENO"
18362 then :
18363
18364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18365 printf "%s\n" "yes" >&6; }
18366 CFLAGS="$CFLAGS_SAVED"
18367 CFLAGS="$CFLAGS -Wparentheses-equality"
18368
18369 else $as_nop
18370
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372 printf "%s\n" "no" >&6; }
18373 CFLAGS="$CFLAGS_SAVED"
18374 CFLAGS="$CFLAGS -Wno-parentheses-equality"
18375
18376 fi
18377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18378
18379 else $as_nop
18380
18381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
18382 printf "%s\n" "not supported" >&6; }
18383 CFLAGS="$CFLAGS_SAVED"
18384
18385 fi
18386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18387
18388
18389
18390
18391
18392 CFLAGS_SAVED="$CFLAGS"
18393 CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror -Wunused-value"
18394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-value works as expected" >&5
18395 printf %s "checking whether -Wunused-value works as expected... " >&6; }
18396
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399
18400 _ACEOF
18401 if ac_fn_c_try_compile "$LINENO"
18402 then :
18403
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 #define yolo ({ (666 + 666); })
18407 int f () { int i = yolo; yolo; return i; }
18408
18409 _ACEOF
18410 if ac_fn_c_try_compile "$LINENO"
18411 then :
18412
18413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18414 printf "%s\n" "yes" >&6; }
18415 CFLAGS="$CFLAGS_SAVED"
18416 CFLAGS="$CFLAGS -Wunused-value"
18417
18418 else $as_nop
18419
18420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18421 printf "%s\n" "no" >&6; }
18422 CFLAGS="$CFLAGS_SAVED"
18423 CFLAGS="$CFLAGS -Wno-unused-value"
18424
18425 fi
18426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18427
18428 else $as_nop
18429
18430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
18431 printf "%s\n" "not supported" >&6; }
18432 CFLAGS="$CFLAGS_SAVED"
18433
18434 fi
18435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18436
18437
18438
18439 CFLAGS="$CFLAGS_MORE_WARNINGS $CFLAGS"
18440 else
18441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18442 printf "%s\n" "no" >&6; }
18443 fi
18444
18445
18446 NM_PLUGIN_DIR="$libdir/NetworkManager"
18447
18448 if test x"$enable_absolute_paths" == x"yes"; then
18449 NM_PLUGIN_DIR_NAME_FILE="$NM_PLUGIN_DIR/"
18450 else
18451 enable_absolute_paths=no
18452 NM_PLUGIN_DIR_NAME_FILE=""
18453 fi
18454
18455
18456
18457 # Check whether --with-dist-version was given.
18458 if test ${with_dist_version+y}
18459 then :
18460 withval=$with_dist_version; ac_distver=$withval
18461 else $as_nop
18462 ac_distver=""
18463 fi
18464
18465 if ! test x"$ac_distver" = x""; then
18466
18467 printf "%s\n" "#define DIST_VERSION \"$ac_distver\"" >>confdefs.h
18468
18469 fi
18470
18471 ac_config_files="$ac_config_files Makefile po/Makefile.in"
18472
18473 cat >confcache <<\_ACEOF
18474 # This file is a shell script that caches the results of configure
18475 # tests run on this system so they can be shared between configure
18476 # scripts and configure runs, see configure's option --config-cache.
18477 # It is not useful on other systems. If it contains results you don't
18478 # want to keep, you may remove or edit it.
18479 #
18480 # config.status only pays attention to the cache file if you give it
18481 # the --recheck option to rerun configure.
18482 #
18483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18485 # following values.
18486
18487 _ACEOF
18488
18489 # The following way of writing the cache mishandles newlines in values,
18490 # but we know of no workaround that is simple, portable, and efficient.
18491 # So, we kill variables containing newlines.
18492 # Ultrix sh set writes to stderr and can't be redirected directly,
18493 # and sets the high bit in the cache file unless we assign to the vars.
18494 (
18495 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18496 eval ac_val=\$$ac_var
18497 case $ac_val in #(
18498 *${as_nl}*)
18499 case $ac_var in #(
18500 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18501 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18502 esac
18503 case $ac_var in #(
18504 _ | IFS | as_nl) ;; #(
18505 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18506 *) { eval $ac_var=; unset $ac_var;} ;;
18507 esac ;;
18508 esac
18509 done
18510
18511 (set) 2>&1 |
18512 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18513 *${as_nl}ac_space=\ *)
18514 # `set' does not quote correctly, so add quotes: double-quote
18515 # substitution turns \\\\ into \\, and sed turns \\ into \.
18516 sed -n \
18517 "s/'/'\\\\''/g;
18518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18519 ;; #(
18520 *)
18521 # `set' quotes correctly as required by POSIX, so do not add quotes.
18522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18523 ;;
18524 esac |
18525 sort
18526 ) |
18527 sed '
18528 /^ac_cv_env_/b end
18529 t clear
18530 :clear
18531 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18532 t end
18533 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18534 :end' >>confcache
18535 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18536 if test -w "$cache_file"; then
18537 if test "x$cache_file" != "x/dev/null"; then
18538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18539 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18540 if test ! -f "$cache_file" || test -h "$cache_file"; then
18541 cat confcache >"$cache_file"
18542 else
18543 case $cache_file in #(
18544 */* | ?:*)
18545 mv -f confcache "$cache_file"$$ &&
18546 mv -f "$cache_file"$$ "$cache_file" ;; #(
18547 *)
18548 mv -f confcache "$cache_file" ;;
18549 esac
18550 fi
18551 fi
18552 else
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18554 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18555 fi
18556 fi
18557 rm -f confcache
18558
18559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18560 # Let make expand exec_prefix.
18561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18562
18563 DEFS=-DHAVE_CONFIG_H
18564
18565 ac_libobjs=
18566 ac_ltlibobjs=
18567 U=
18568 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18569 # 1. Remove the extension, and $U if already installed.
18570 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18571 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18572 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18573 # will be set to the directory where LIBOBJS objects are built.
18574 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18575 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18576 done
18577 LIBOBJS=$ac_libobjs
18578
18579 LTLIBOBJS=$ac_ltlibobjs
18580
18581
18582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18583 printf %s "checking that generated files are newer than configure... " >&6; }
18584 if test -n "$am_sleep_pid"; then
18585 # Hide warnings about reused PIDs.
18586 wait $am_sleep_pid 2>/dev/null
18587 fi
18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18589 printf "%s\n" "done" >&6; }
18590 if test -n "$EXEEXT"; then
18591 am__EXEEXT_TRUE=
18592 am__EXEEXT_FALSE='#'
18593 else
18594 am__EXEEXT_TRUE='#'
18595 am__EXEEXT_FALSE=
18596 fi
18597
18598 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18599 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18601 fi
18602 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18603 as_fn_error $? "conditional \"AMDEP\" was never defined.
18604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18605 fi
18606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18607 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18609 fi
18610 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18611 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18613 fi
18614 if test -z "${WITH_GNOME_TRUE}" && test -z "${WITH_GNOME_FALSE}"; then
18615 as_fn_error $? "conditional \"WITH_GNOME\" was never defined.
18616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18617 fi
18618 if test -z "${WITH_GTK4_TRUE}" && test -z "${WITH_GTK4_FALSE}"; then
18619 as_fn_error $? "conditional \"WITH_GTK4\" was never defined.
18620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18621 fi
18622
18623 : "${CONFIG_STATUS=./config.status}"
18624 ac_write_fail=0
18625 ac_clean_files_save=$ac_clean_files
18626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18628 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18629 as_write_fail=0
18630 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18631 #! $SHELL
18632 # Generated by $as_me.
18633 # Run this file to recreate the current configuration.
18634 # Compiler output produced by configure, useful for debugging
18635 # configure, is in config.log if it exists.
18636
18637 debug=false
18638 ac_cs_recheck=false
18639 ac_cs_silent=false
18640
18641 SHELL=\${CONFIG_SHELL-$SHELL}
18642 export SHELL
18643 _ASEOF
18644 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18645 ## -------------------- ##
18646 ## M4sh Initialization. ##
18647 ## -------------------- ##
18648
18649 # Be more Bourne compatible
18650 DUALCASE=1; export DUALCASE # for MKS sh
18651 as_nop=:
18652 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18653 then :
18654 emulate sh
18655 NULLCMD=:
18656 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18657 # is contrary to our usage. Disable this feature.
18658 alias -g '${1+"$@"}'='"$@"'
18659 setopt NO_GLOB_SUBST
18660 else $as_nop
18661 case `(set -o) 2>/dev/null` in #(
18662 *posix*) :
18663 set -o posix ;; #(
18664 *) :
18665 ;;
18666 esac
18667 fi
18668
18669
18670
18671 # Reset variables that may have inherited troublesome values from
18672 # the environment.
18673
18674 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18675 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18676 # side effect of setting IFS to empty, thus disabling word splitting.)
18677 # Quoting is to prevent editors from complaining about space-tab.
18678 as_nl='
18679 '
18680 export as_nl
18681 IFS=" "" $as_nl"
18682
18683 PS1='$ '
18684 PS2='> '
18685 PS4='+ '
18686
18687 # Ensure predictable behavior from utilities with locale-dependent output.
18688 LC_ALL=C
18689 export LC_ALL
18690 LANGUAGE=C
18691 export LANGUAGE
18692
18693 # We cannot yet rely on "unset" to work, but we need these variables
18694 # to be unset--not just set to an empty or harmless value--now, to
18695 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18696 # also avoids known problems related to "unset" and subshell syntax
18697 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18698 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18699 do eval test \${$as_var+y} \
18700 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18701 done
18702
18703 # Ensure that fds 0, 1, and 2 are open.
18704 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18705 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18706 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18707
18708 # The user is always right.
18709 if ${PATH_SEPARATOR+false} :; then
18710 PATH_SEPARATOR=:
18711 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18712 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18713 PATH_SEPARATOR=';'
18714 }
18715 fi
18716
18717
18718 # Find who we are. Look in the path if we contain no directory separator.
18719 as_myself=
18720 case $0 in #((
18721 *[\\/]* ) as_myself=$0 ;;
18722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723 for as_dir in $PATH
18724 do
18725 IFS=$as_save_IFS
18726 case $as_dir in #(((
18727 '') as_dir=./ ;;
18728 */) ;;
18729 *) as_dir=$as_dir/ ;;
18730 esac
18731 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18732 done
18733 IFS=$as_save_IFS
18734
18735 ;;
18736 esac
18737 # We did not find ourselves, most probably we were run as `sh COMMAND'
18738 # in which case we are not to be found in the path.
18739 if test "x$as_myself" = x; then
18740 as_myself=$0
18741 fi
18742 if test ! -f "$as_myself"; then
18743 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18744 exit 1
18745 fi
18746
18747
18748
18749 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18750 # ----------------------------------------
18751 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18752 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18753 # script with STATUS, using 1 if that was 0.
18754 as_fn_error ()
18755 {
18756 as_status=$1; test $as_status -eq 0 && as_status=1
18757 if test "$4"; then
18758 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18760 fi
18761 printf "%s\n" "$as_me: error: $2" >&2
18762 as_fn_exit $as_status
18763 } # as_fn_error
18764
18765
18766
18767 # as_fn_set_status STATUS
18768 # -----------------------
18769 # Set $? to STATUS, without forking.
18770 as_fn_set_status ()
18771 {
18772 return $1
18773 } # as_fn_set_status
18774
18775 # as_fn_exit STATUS
18776 # -----------------
18777 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18778 as_fn_exit ()
18779 {
18780 set +e
18781 as_fn_set_status $1
18782 exit $1
18783 } # as_fn_exit
18784
18785 # as_fn_unset VAR
18786 # ---------------
18787 # Portably unset VAR.
18788 as_fn_unset ()
18789 {
18790 { eval $1=; unset $1;}
18791 }
18792 as_unset=as_fn_unset
18793
18794 # as_fn_append VAR VALUE
18795 # ----------------------
18796 # Append the text in VALUE to the end of the definition contained in VAR. Take
18797 # advantage of any shell optimizations that allow amortized linear growth over
18798 # repeated appends, instead of the typical quadratic growth present in naive
18799 # implementations.
18800 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18801 then :
18802 eval 'as_fn_append ()
18803 {
18804 eval $1+=\$2
18805 }'
18806 else $as_nop
18807 as_fn_append ()
18808 {
18809 eval $1=\$$1\$2
18810 }
18811 fi # as_fn_append
18812
18813 # as_fn_arith ARG...
18814 # ------------------
18815 # Perform arithmetic evaluation on the ARGs, and store the result in the
18816 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18817 # must be portable across $(()) and expr.
18818 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18819 then :
18820 eval 'as_fn_arith ()
18821 {
18822 as_val=$(( $* ))
18823 }'
18824 else $as_nop
18825 as_fn_arith ()
18826 {
18827 as_val=`expr "$@" || test $? -eq 1`
18828 }
18829 fi # as_fn_arith
18830
18831
18832 if expr a : '\(a\)' >/dev/null 2>&1 &&
18833 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18834 as_expr=expr
18835 else
18836 as_expr=false
18837 fi
18838
18839 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18840 as_basename=basename
18841 else
18842 as_basename=false
18843 fi
18844
18845 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18846 as_dirname=dirname
18847 else
18848 as_dirname=false
18849 fi
18850
18851 as_me=`$as_basename -- "$0" ||
18852 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18853 X"$0" : 'X\(//\)$' \| \
18854 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18855 printf "%s\n" X/"$0" |
18856 sed '/^.*\/\([^/][^/]*\)\/*$/{
18857 s//\1/
18858 q
18859 }
18860 /^X\/\(\/\/\)$/{
18861 s//\1/
18862 q
18863 }
18864 /^X\/\(\/\).*/{
18865 s//\1/
18866 q
18867 }
18868 s/.*/./; q'`
18869
18870 # Avoid depending upon Character Ranges.
18871 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18872 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18873 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18874 as_cr_digits='0123456789'
18875 as_cr_alnum=$as_cr_Letters$as_cr_digits
18876
18877
18878 # Determine whether it's possible to make 'echo' print without a newline.
18879 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18880 # for compatibility with existing Makefiles.
18881 ECHO_C= ECHO_N= ECHO_T=
18882 case `echo -n x` in #(((((
18883 -n*)
18884 case `echo 'xy\c'` in
18885 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18886 xy) ECHO_C='\c';;
18887 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18888 ECHO_T=' ';;
18889 esac;;
18890 *)
18891 ECHO_N='-n';;
18892 esac
18893
18894 # For backward compatibility with old third-party macros, we provide
18895 # the shell variables $as_echo and $as_echo_n. New code should use
18896 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18897 as_echo='printf %s\n'
18898 as_echo_n='printf %s'
18899
18900 rm -f conf$$ conf$$.exe conf$$.file
18901 if test -d conf$$.dir; then
18902 rm -f conf$$.dir/conf$$.file
18903 else
18904 rm -f conf$$.dir
18905 mkdir conf$$.dir 2>/dev/null
18906 fi
18907 if (echo >conf$$.file) 2>/dev/null; then
18908 if ln -s conf$$.file conf$$ 2>/dev/null; then
18909 as_ln_s='ln -s'
18910 # ... but there are two gotchas:
18911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18913 # In both cases, we have to default to `cp -pR'.
18914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18915 as_ln_s='cp -pR'
18916 elif ln conf$$.file conf$$ 2>/dev/null; then
18917 as_ln_s=ln
18918 else
18919 as_ln_s='cp -pR'
18920 fi
18921 else
18922 as_ln_s='cp -pR'
18923 fi
18924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18925 rmdir conf$$.dir 2>/dev/null
18926
18927
18928 # as_fn_mkdir_p
18929 # -------------
18930 # Create "$as_dir" as a directory, including parents if necessary.
18931 as_fn_mkdir_p ()
18932 {
18933
18934 case $as_dir in #(
18935 -*) as_dir=./$as_dir;;
18936 esac
18937 test -d "$as_dir" || eval $as_mkdir_p || {
18938 as_dirs=
18939 while :; do
18940 case $as_dir in #(
18941 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18942 *) as_qdir=$as_dir;;
18943 esac
18944 as_dirs="'$as_qdir' $as_dirs"
18945 as_dir=`$as_dirname -- "$as_dir" ||
18946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18947 X"$as_dir" : 'X\(//\)[^/]' \| \
18948 X"$as_dir" : 'X\(//\)$' \| \
18949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18950 printf "%s\n" X"$as_dir" |
18951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18952 s//\1/
18953 q
18954 }
18955 /^X\(\/\/\)[^/].*/{
18956 s//\1/
18957 q
18958 }
18959 /^X\(\/\/\)$/{
18960 s//\1/
18961 q
18962 }
18963 /^X\(\/\).*/{
18964 s//\1/
18965 q
18966 }
18967 s/.*/./; q'`
18968 test -d "$as_dir" && break
18969 done
18970 test -z "$as_dirs" || eval "mkdir $as_dirs"
18971 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18972
18973
18974 } # as_fn_mkdir_p
18975 if mkdir -p . 2>/dev/null; then
18976 as_mkdir_p='mkdir -p "$as_dir"'
18977 else
18978 test -d ./-p && rmdir ./-p
18979 as_mkdir_p=false
18980 fi
18981
18982
18983 # as_fn_executable_p FILE
18984 # -----------------------
18985 # Test if FILE is an executable regular file.
18986 as_fn_executable_p ()
18987 {
18988 test -f "$1" && test -x "$1"
18989 } # as_fn_executable_p
18990 as_test_x='test -x'
18991 as_executable_p=as_fn_executable_p
18992
18993 # Sed expression to map a string onto a valid CPP name.
18994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18995
18996 # Sed expression to map a string onto a valid variable name.
18997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18998
18999
19000 exec 6>&1
19001 ## ----------------------------------- ##
19002 ## Main body of $CONFIG_STATUS script. ##
19003 ## ----------------------------------- ##
19004 _ASEOF
19005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19006
19007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19008 # Save the log message, to keep $0 and so on meaningful, and to
19009 # report actual input values of CONFIG_FILES etc. instead of their
19010 # values after options handling.
19011 ac_log="
19012 This file was extended by NetworkManager-pptp $as_me 1.2.12, which was
19013 generated by GNU Autoconf 2.71. Invocation command line was
19014
19015 CONFIG_FILES = $CONFIG_FILES
19016 CONFIG_HEADERS = $CONFIG_HEADERS
19017 CONFIG_LINKS = $CONFIG_LINKS
19018 CONFIG_COMMANDS = $CONFIG_COMMANDS
19019 $ $0 $@
19020
19021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19022 "
19023
19024 _ACEOF
19025
19026 case $ac_config_files in *"
19027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19028 esac
19029
19030 case $ac_config_headers in *"
19031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19032 esac
19033
19034
19035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19036 # Files that config.status was made for.
19037 config_files="$ac_config_files"
19038 config_headers="$ac_config_headers"
19039 config_commands="$ac_config_commands"
19040
19041 _ACEOF
19042
19043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19044 ac_cs_usage="\
19045 \`$as_me' instantiates files and other configuration actions
19046 from templates according to the current configuration. Unless the files
19047 and actions are specified as TAGs, all are instantiated by default.
19048
19049 Usage: $0 [OPTION]... [TAG]...
19050
19051 -h, --help print this help, then exit
19052 -V, --version print version number and configuration settings, then exit
19053 --config print configuration, then exit
19054 -q, --quiet, --silent
19055 do not print progress messages
19056 -d, --debug don't remove temporary files
19057 --recheck update $as_me by reconfiguring in the same conditions
19058 --file=FILE[:TEMPLATE]
19059 instantiate the configuration file FILE
19060 --header=FILE[:TEMPLATE]
19061 instantiate the configuration header FILE
19062
19063 Configuration files:
19064 $config_files
19065
19066 Configuration headers:
19067 $config_headers
19068
19069 Configuration commands:
19070 $config_commands
19071
19072 Report bugs to <https://gitlab.gnome.org/GNOME/NetworkManager-pptp/issues>."
19073
19074 _ACEOF
19075 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19076 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19078 ac_cs_config='$ac_cs_config_escaped'
19079 ac_cs_version="\\
19080 NetworkManager-pptp config.status 1.2.12
19081 configured by $0, generated by GNU Autoconf 2.71,
19082 with options \\"\$ac_cs_config\\"
19083
19084 Copyright (C) 2021 Free Software Foundation, Inc.
19085 This config.status script is free software; the Free Software Foundation
19086 gives unlimited permission to copy, distribute and modify it."
19087
19088 ac_pwd='$ac_pwd'
19089 srcdir='$srcdir'
19090 INSTALL='$INSTALL'
19091 MKDIR_P='$MKDIR_P'
19092 AWK='$AWK'
19093 test -n "\$AWK" || AWK=awk
19094 _ACEOF
19095
19096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19097 # The default lists apply if the user does not specify any file.
19098 ac_need_defaults=:
19099 while test $# != 0
19100 do
19101 case $1 in
19102 --*=?*)
19103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19105 ac_shift=:
19106 ;;
19107 --*=)
19108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19109 ac_optarg=
19110 ac_shift=:
19111 ;;
19112 *)
19113 ac_option=$1
19114 ac_optarg=$2
19115 ac_shift=shift
19116 ;;
19117 esac
19118
19119 case $ac_option in
19120 # Handling of the options.
19121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19122 ac_cs_recheck=: ;;
19123 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19124 printf "%s\n" "$ac_cs_version"; exit ;;
19125 --config | --confi | --conf | --con | --co | --c )
19126 printf "%s\n" "$ac_cs_config"; exit ;;
19127 --debug | --debu | --deb | --de | --d | -d )
19128 debug=: ;;
19129 --file | --fil | --fi | --f )
19130 $ac_shift
19131 case $ac_optarg in
19132 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19133 '') as_fn_error $? "missing file argument" ;;
19134 esac
19135 as_fn_append CONFIG_FILES " '$ac_optarg'"
19136 ac_need_defaults=false;;
19137 --header | --heade | --head | --hea )
19138 $ac_shift
19139 case $ac_optarg in
19140 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19141 esac
19142 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19143 ac_need_defaults=false;;
19144 --he | --h)
19145 # Conflict between --help and --header
19146 as_fn_error $? "ambiguous option: \`$1'
19147 Try \`$0 --help' for more information.";;
19148 --help | --hel | -h )
19149 printf "%s\n" "$ac_cs_usage"; exit ;;
19150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19152 ac_cs_silent=: ;;
19153
19154 # This is an error.
19155 -*) as_fn_error $? "unrecognized option: \`$1'
19156 Try \`$0 --help' for more information." ;;
19157
19158 *) as_fn_append ac_config_targets " $1"
19159 ac_need_defaults=false ;;
19160
19161 esac
19162 shift
19163 done
19164
19165 ac_configure_extra_args=
19166
19167 if $ac_cs_silent; then
19168 exec 6>/dev/null
19169 ac_configure_extra_args="$ac_configure_extra_args --silent"
19170 fi
19171
19172 _ACEOF
19173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19174 if \$ac_cs_recheck; then
19175 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19176 shift
19177 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19178 CONFIG_SHELL='$SHELL'
19179 export CONFIG_SHELL
19180 exec "\$@"
19181 fi
19182
19183 _ACEOF
19184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19185 exec 5>>config.log
19186 {
19187 echo
19188 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19189 ## Running $as_me. ##
19190 _ASBOX
19191 printf "%s\n" "$ac_log"
19192 } >&5
19193
19194 _ACEOF
19195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19196 #
19197 # INIT-COMMANDS
19198 #
19199 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19200
19201
19202 # The HP-UX ksh and POSIX shell print the target directory to stdout
19203 # if CDPATH is set.
19204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19205
19206 sed_quote_subst='$sed_quote_subst'
19207 double_quote_subst='$double_quote_subst'
19208 delay_variable_subst='$delay_variable_subst'
19209 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19210 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19211 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19212 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19213 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19214 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19215 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19216 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19217 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19218 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19219 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19220 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19221 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19222 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19223 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19224 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19225 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19226 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19227 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19228 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19229 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19230 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19231 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19232 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19233 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19234 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19235 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19236 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19237 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19238 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19239 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19240 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19241 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19242 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19243 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
19244 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19245 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19246 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19247 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19248 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19249 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19250 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19251 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19252 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19253 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19254 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19255 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19256 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19257 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19258 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19259 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19260 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19261 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19262 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19263 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19264 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19265 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19266 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19267 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19268 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19269 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"`'
19270 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19271 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19272 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19273 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19274 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19275 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19276 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19277 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19278 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19279 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19280 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19281 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19282 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19283 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19284 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19285 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19286 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19287 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19288 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19289 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19290 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19291 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19292 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19293 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19294 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19295 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19296 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19297 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19298 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19299 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19300 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19301 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19302 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19303 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19304 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19305 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19306 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19307 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19308 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19309 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19310 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19311 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19312 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19313 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19314 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19315 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19316 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19317 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19318 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19319 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19320 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19321 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19322 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19323 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19324 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19325 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19326 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19327 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19328 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19329 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19330 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19331 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19332 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19333 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19334 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19335 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19336 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19337 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19338 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19339 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19340 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19341 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19342 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19343 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19344 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19345 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19346
19347 LTCC='$LTCC'
19348 LTCFLAGS='$LTCFLAGS'
19349 compiler='$compiler_DEFAULT'
19350
19351 # A function that is used when there is no print builtin or printf.
19352 func_fallback_echo ()
19353 {
19354 eval 'cat <<_LTECHO_EOF
19355 \$1
19356 _LTECHO_EOF'
19357 }
19358
19359 # Quote evaled strings.
19360 for var in SHELL \
19361 ECHO \
19362 PATH_SEPARATOR \
19363 SED \
19364 GREP \
19365 EGREP \
19366 FGREP \
19367 LD \
19368 NM \
19369 LN_S \
19370 lt_SP2NL \
19371 lt_NL2SP \
19372 reload_flag \
19373 FILECMD \
19374 OBJDUMP \
19375 deplibs_check_method \
19376 file_magic_cmd \
19377 file_magic_glob \
19378 want_nocaseglob \
19379 DLLTOOL \
19380 sharedlib_from_linklib_cmd \
19381 AR \
19382 archiver_list_spec \
19383 STRIP \
19384 RANLIB \
19385 CC \
19386 CFLAGS \
19387 compiler \
19388 lt_cv_sys_global_symbol_pipe \
19389 lt_cv_sys_global_symbol_to_cdecl \
19390 lt_cv_sys_global_symbol_to_import \
19391 lt_cv_sys_global_symbol_to_c_name_address \
19392 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19393 lt_cv_nm_interface \
19394 nm_file_list_spec \
19395 lt_cv_truncate_bin \
19396 lt_prog_compiler_no_builtin_flag \
19397 lt_prog_compiler_pic \
19398 lt_prog_compiler_wl \
19399 lt_prog_compiler_static \
19400 lt_cv_prog_compiler_c_o \
19401 need_locks \
19402 MANIFEST_TOOL \
19403 DSYMUTIL \
19404 NMEDIT \
19405 LIPO \
19406 OTOOL \
19407 OTOOL64 \
19408 shrext_cmds \
19409 export_dynamic_flag_spec \
19410 whole_archive_flag_spec \
19411 compiler_needs_object \
19412 with_gnu_ld \
19413 allow_undefined_flag \
19414 no_undefined_flag \
19415 hardcode_libdir_flag_spec \
19416 hardcode_libdir_separator \
19417 exclude_expsyms \
19418 include_expsyms \
19419 file_list_spec \
19420 variables_saved_for_relink \
19421 libname_spec \
19422 library_names_spec \
19423 soname_spec \
19424 install_override_mode \
19425 finish_eval \
19426 old_striplib \
19427 striplib; do
19428 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19429 *[\\\\\\\`\\"\\\$]*)
19430 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19431 ;;
19432 *)
19433 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19434 ;;
19435 esac
19436 done
19437
19438 # Double-quote double-evaled strings.
19439 for var in reload_cmds \
19440 old_postinstall_cmds \
19441 old_postuninstall_cmds \
19442 old_archive_cmds \
19443 extract_expsyms_cmds \
19444 old_archive_from_new_cmds \
19445 old_archive_from_expsyms_cmds \
19446 archive_cmds \
19447 archive_expsym_cmds \
19448 module_cmds \
19449 module_expsym_cmds \
19450 export_symbols_cmds \
19451 prelink_cmds \
19452 postlink_cmds \
19453 postinstall_cmds \
19454 postuninstall_cmds \
19455 finish_cmds \
19456 sys_lib_search_path_spec \
19457 configure_time_dlsearch_path \
19458 configure_time_lt_sys_library_path; do
19459 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19460 *[\\\\\\\`\\"\\\$]*)
19461 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19462 ;;
19463 *)
19464 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19465 ;;
19466 esac
19467 done
19468
19469 ac_aux_dir='$ac_aux_dir'
19470
19471 # See if we are running on zsh, and set the options that allow our
19472 # commands through without removal of \ escapes INIT.
19473 if test -n "\${ZSH_VERSION+set}"; then
19474 setopt NO_GLOB_SUBST
19475 fi
19476
19477
19478 PACKAGE='$PACKAGE'
19479 VERSION='$VERSION'
19480 RM='$RM'
19481 ofile='$ofile'
19482
19483
19484
19485 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19486 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
19487 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
19488 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19489 LINGUAS="${LINGUAS-%UNSET%}"
19490
19491
19492 _ACEOF
19493
19494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19495
19496 # Handling of arguments.
19497 for ac_config_target in $ac_config_targets
19498 do
19499 case $ac_config_target in
19500 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19501 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19502 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19503 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19504 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19505 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19506
19507 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19508 esac
19509 done
19510
19511
19512 # If the user did not use the arguments to specify the items to instantiate,
19513 # then the envvar interface is used. Set only those that are not.
19514 # We use the long form for the default assignment because of an extremely
19515 # bizarre bug on SunOS 4.1.3.
19516 if $ac_need_defaults; then
19517 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19518 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19519 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19520 fi
19521
19522 # Have a temporary directory for convenience. Make it in the build tree
19523 # simply because there is no reason against having it here, and in addition,
19524 # creating and moving files from /tmp can sometimes cause problems.
19525 # Hook for its removal unless debugging.
19526 # Note that there is a small window in which the directory will not be cleaned:
19527 # after its creation but before its name has been assigned to `$tmp'.
19528 $debug ||
19529 {
19530 tmp= ac_tmp=
19531 trap 'exit_status=$?
19532 : "${ac_tmp:=$tmp}"
19533 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19534 ' 0
19535 trap 'as_fn_exit 1' 1 2 13 15
19536 }
19537 # Create a (secure) tmp directory for tmp files.
19538
19539 {
19540 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19541 test -d "$tmp"
19542 } ||
19543 {
19544 tmp=./conf$$-$RANDOM
19545 (umask 077 && mkdir "$tmp")
19546 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19547 ac_tmp=$tmp
19548
19549 # Set up the scripts for CONFIG_FILES section.
19550 # No need to generate them if there are no CONFIG_FILES.
19551 # This happens for instance with `./config.status config.h'.
19552 if test -n "$CONFIG_FILES"; then
19553
19554
19555 ac_cr=`echo X | tr X '\015'`
19556 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19557 # But we know of no other shell where ac_cr would be empty at this
19558 # point, so we can use a bashism as a fallback.
19559 if test "x$ac_cr" = x; then
19560 eval ac_cr=\$\'\\r\'
19561 fi
19562 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19563 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19564 ac_cs_awk_cr='\\r'
19565 else
19566 ac_cs_awk_cr=$ac_cr
19567 fi
19568
19569 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19570 _ACEOF
19571
19572
19573 {
19574 echo "cat >conf$$subs.awk <<_ACEOF" &&
19575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19576 echo "_ACEOF"
19577 } >conf$$subs.sh ||
19578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19579 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19580 ac_delim='%!_!# '
19581 for ac_last_try in false false false false false :; do
19582 . ./conf$$subs.sh ||
19583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19584
19585 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19586 if test $ac_delim_n = $ac_delim_num; then
19587 break
19588 elif $ac_last_try; then
19589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19590 else
19591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19592 fi
19593 done
19594 rm -f conf$$subs.sh
19595
19596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19597 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19598 _ACEOF
19599 sed -n '
19600 h
19601 s/^/S["/; s/!.*/"]=/
19602 p
19603 g
19604 s/^[^!]*!//
19605 :repl
19606 t repl
19607 s/'"$ac_delim"'$//
19608 t delim
19609 :nl
19610 h
19611 s/\(.\{148\}\)..*/\1/
19612 t more1
19613 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19614 p
19615 n
19616 b repl
19617 :more1
19618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19619 p
19620 g
19621 s/.\{148\}//
19622 t nl
19623 :delim
19624 h
19625 s/\(.\{148\}\)..*/\1/
19626 t more2
19627 s/["\\]/\\&/g; s/^/"/; s/$/"/
19628 p
19629 b
19630 :more2
19631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19632 p
19633 g
19634 s/.\{148\}//
19635 t delim
19636 ' <conf$$subs.awk | sed '
19637 /^[^""]/{
19638 N
19639 s/\n//
19640 }
19641 ' >>$CONFIG_STATUS || ac_write_fail=1
19642 rm -f conf$$subs.awk
19643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19644 _ACAWK
19645 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19646 for (key in S) S_is_set[key] = 1
19647 FS = ""
19648
19649 }
19650 {
19651 line = $ 0
19652 nfields = split(line, field, "@")
19653 substed = 0
19654 len = length(field[1])
19655 for (i = 2; i < nfields; i++) {
19656 key = field[i]
19657 keylen = length(key)
19658 if (S_is_set[key]) {
19659 value = S[key]
19660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19661 len += length(value) + length(field[++i])
19662 substed = 1
19663 } else
19664 len += 1 + keylen
19665 }
19666
19667 print line
19668 }
19669
19670 _ACAWK
19671 _ACEOF
19672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19674 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19675 else
19676 cat
19677 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19678 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19679 _ACEOF
19680
19681 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19682 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19683 # trailing colons and then remove the whole line if VPATH becomes empty
19684 # (actually we leave an empty line to preserve line numbers).
19685 if test "x$srcdir" = x.; then
19686 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19687 h
19688 s///
19689 s/^/:/
19690 s/[ ]*$/:/
19691 s/:\$(srcdir):/:/g
19692 s/:\${srcdir}:/:/g
19693 s/:@srcdir@:/:/g
19694 s/^:*//
19695 s/:*$//
19696 x
19697 s/\(=[ ]*\).*/\1/
19698 G
19699 s/\n//
19700 s/^[^=]*=[ ]*$//
19701 }'
19702 fi
19703
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19705 fi # test -n "$CONFIG_FILES"
19706
19707 # Set up the scripts for CONFIG_HEADERS section.
19708 # No need to generate them if there are no CONFIG_HEADERS.
19709 # This happens for instance with `./config.status Makefile'.
19710 if test -n "$CONFIG_HEADERS"; then
19711 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19712 BEGIN {
19713 _ACEOF
19714
19715 # Transform confdefs.h into an awk script `defines.awk', embedded as
19716 # here-document in config.status, that substitutes the proper values into
19717 # config.h.in to produce config.h.
19718
19719 # Create a delimiter string that does not exist in confdefs.h, to ease
19720 # handling of long lines.
19721 ac_delim='%!_!# '
19722 for ac_last_try in false false :; do
19723 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19724 if test -z "$ac_tt"; then
19725 break
19726 elif $ac_last_try; then
19727 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19728 else
19729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19730 fi
19731 done
19732
19733 # For the awk script, D is an array of macro values keyed by name,
19734 # likewise P contains macro parameters if any. Preserve backslash
19735 # newline sequences.
19736
19737 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19738 sed -n '
19739 s/.\{148\}/&'"$ac_delim"'/g
19740 t rset
19741 :rset
19742 s/^[ ]*#[ ]*define[ ][ ]*/ /
19743 t def
19744 d
19745 :def
19746 s/\\$//
19747 t bsnl
19748 s/["\\]/\\&/g
19749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19750 D["\1"]=" \3"/p
19751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19752 d
19753 :bsnl
19754 s/["\\]/\\&/g
19755 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19756 D["\1"]=" \3\\\\\\n"\\/p
19757 t cont
19758 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19759 t cont
19760 d
19761 :cont
19762 n
19763 s/.\{148\}/&'"$ac_delim"'/g
19764 t clear
19765 :clear
19766 s/\\$//
19767 t bsnlc
19768 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19769 d
19770 :bsnlc
19771 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19772 b cont
19773 ' <confdefs.h | sed '
19774 s/'"$ac_delim"'/"\\\
19775 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19776
19777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19778 for (key in D) D_is_set[key] = 1
19779 FS = ""
19780 }
19781 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19782 line = \$ 0
19783 split(line, arg, " ")
19784 if (arg[1] == "#") {
19785 defundef = arg[2]
19786 mac1 = arg[3]
19787 } else {
19788 defundef = substr(arg[1], 2)
19789 mac1 = arg[2]
19790 }
19791 split(mac1, mac2, "(") #)
19792 macro = mac2[1]
19793 prefix = substr(line, 1, index(line, defundef) - 1)
19794 if (D_is_set[macro]) {
19795 # Preserve the white space surrounding the "#".
19796 print prefix "define", macro P[macro] D[macro]
19797 next
19798 } else {
19799 # Replace #undef with comments. This is necessary, for example,
19800 # in the case of _POSIX_SOURCE, which is predefined and required
19801 # on some systems where configure will not decide to define it.
19802 if (defundef == "undef") {
19803 print "/*", prefix defundef, macro, "*/"
19804 next
19805 }
19806 }
19807 }
19808 { print }
19809 _ACAWK
19810 _ACEOF
19811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19812 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19813 fi # test -n "$CONFIG_HEADERS"
19814
19815
19816 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19817 shift
19818 for ac_tag
19819 do
19820 case $ac_tag in
19821 :[FHLC]) ac_mode=$ac_tag; continue;;
19822 esac
19823 case $ac_mode$ac_tag in
19824 :[FHL]*:*);;
19825 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19826 :[FH]-) ac_tag=-:-;;
19827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19828 esac
19829 ac_save_IFS=$IFS
19830 IFS=:
19831 set x $ac_tag
19832 IFS=$ac_save_IFS
19833 shift
19834 ac_file=$1
19835 shift
19836
19837 case $ac_mode in
19838 :L) ac_source=$1;;
19839 :[FH])
19840 ac_file_inputs=
19841 for ac_f
19842 do
19843 case $ac_f in
19844 -) ac_f="$ac_tmp/stdin";;
19845 *) # Look for the file first in the build tree, then in the source tree
19846 # (if the path is not absolute). The absolute path cannot be DOS-style,
19847 # because $ac_f cannot contain `:'.
19848 test -f "$ac_f" ||
19849 case $ac_f in
19850 [\\/$]*) false;;
19851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19852 esac ||
19853 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19854 esac
19855 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19856 as_fn_append ac_file_inputs " '$ac_f'"
19857 done
19858
19859 # Let's still pretend it is `configure' which instantiates (i.e., don't
19860 # use $as_me), people would be surprised to read:
19861 # /* config.h. Generated by config.status. */
19862 configure_input='Generated from '`
19863 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19864 `' by configure.'
19865 if test x"$ac_file" != x-; then
19866 configure_input="$ac_file. $configure_input"
19867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19868 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19869 fi
19870 # Neutralize special characters interpreted by sed in replacement strings.
19871 case $configure_input in #(
19872 *\&* | *\|* | *\\* )
19873 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19874 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19875 *) ac_sed_conf_input=$configure_input;;
19876 esac
19877
19878 case $ac_tag in
19879 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19881 esac
19882 ;;
19883 esac
19884
19885 ac_dir=`$as_dirname -- "$ac_file" ||
19886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19887 X"$ac_file" : 'X\(//\)[^/]' \| \
19888 X"$ac_file" : 'X\(//\)$' \| \
19889 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19890 printf "%s\n" X"$ac_file" |
19891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19892 s//\1/
19893 q
19894 }
19895 /^X\(\/\/\)[^/].*/{
19896 s//\1/
19897 q
19898 }
19899 /^X\(\/\/\)$/{
19900 s//\1/
19901 q
19902 }
19903 /^X\(\/\).*/{
19904 s//\1/
19905 q
19906 }
19907 s/.*/./; q'`
19908 as_dir="$ac_dir"; as_fn_mkdir_p
19909 ac_builddir=.
19910
19911 case "$ac_dir" in
19912 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19913 *)
19914 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19915 # A ".." for each directory in $ac_dir_suffix.
19916 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19917 case $ac_top_builddir_sub in
19918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19920 esac ;;
19921 esac
19922 ac_abs_top_builddir=$ac_pwd
19923 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19924 # for backward compatibility:
19925 ac_top_builddir=$ac_top_build_prefix
19926
19927 case $srcdir in
19928 .) # We are building in place.
19929 ac_srcdir=.
19930 ac_top_srcdir=$ac_top_builddir_sub
19931 ac_abs_top_srcdir=$ac_pwd ;;
19932 [\\/]* | ?:[\\/]* ) # Absolute name.
19933 ac_srcdir=$srcdir$ac_dir_suffix;
19934 ac_top_srcdir=$srcdir
19935 ac_abs_top_srcdir=$srcdir ;;
19936 *) # Relative name.
19937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19938 ac_top_srcdir=$ac_top_build_prefix$srcdir
19939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19940 esac
19941 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19942
19943
19944 case $ac_mode in
19945 :F)
19946 #
19947 # CONFIG_FILE
19948 #
19949
19950 case $INSTALL in
19951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19952 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19953 esac
19954 ac_MKDIR_P=$MKDIR_P
19955 case $MKDIR_P in
19956 [\\/$]* | ?:[\\/]* ) ;;
19957 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19958 esac
19959 _ACEOF
19960
19961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19962 # If the template does not know about datarootdir, expand it.
19963 # FIXME: This hack should be removed a few years after 2.60.
19964 ac_datarootdir_hack=; ac_datarootdir_seen=
19965 ac_sed_dataroot='
19966 /datarootdir/ {
19967 p
19968 q
19969 }
19970 /@datadir@/p
19971 /@docdir@/p
19972 /@infodir@/p
19973 /@localedir@/p
19974 /@mandir@/p'
19975 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19976 *datarootdir*) ac_datarootdir_seen=yes;;
19977 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19979 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19980 _ACEOF
19981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19982 ac_datarootdir_hack='
19983 s&@datadir@&$datadir&g
19984 s&@docdir@&$docdir&g
19985 s&@infodir@&$infodir&g
19986 s&@localedir@&$localedir&g
19987 s&@mandir@&$mandir&g
19988 s&\\\${datarootdir}&$datarootdir&g' ;;
19989 esac
19990 _ACEOF
19991
19992 # Neutralize VPATH when `$srcdir' = `.'.
19993 # Shell code in configure.ac might set extrasub.
19994 # FIXME: do we really want to maintain this feature?
19995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19996 ac_sed_extra="$ac_vpsub
19997 $extrasub
19998 _ACEOF
19999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20000 :t
20001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20002 s|@configure_input@|$ac_sed_conf_input|;t t
20003 s&@top_builddir@&$ac_top_builddir_sub&;t t
20004 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20005 s&@srcdir@&$ac_srcdir&;t t
20006 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20007 s&@top_srcdir@&$ac_top_srcdir&;t t
20008 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20009 s&@builddir@&$ac_builddir&;t t
20010 s&@abs_builddir@&$ac_abs_builddir&;t t
20011 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20012 s&@INSTALL@&$ac_INSTALL&;t t
20013 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20014 $ac_datarootdir_hack
20015 "
20016 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20017 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20018
20019 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20020 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20021 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20022 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20024 which seems to be undefined. Please make sure it is defined" >&5
20025 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20026 which seems to be undefined. Please make sure it is defined" >&2;}
20027
20028 rm -f "$ac_tmp/stdin"
20029 case $ac_file in
20030 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20031 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20032 esac \
20033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20034 ;;
20035 :H)
20036 #
20037 # CONFIG_HEADER
20038 #
20039 if test x"$ac_file" != x-; then
20040 {
20041 printf "%s\n" "/* $configure_input */" >&1 \
20042 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20043 } >"$ac_tmp/config.h" \
20044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20045 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20047 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20048 else
20049 rm -f "$ac_file"
20050 mv "$ac_tmp/config.h" "$ac_file" \
20051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20052 fi
20053 else
20054 printf "%s\n" "/* $configure_input */" >&1 \
20055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20056 || as_fn_error $? "could not create -" "$LINENO" 5
20057 fi
20058 # Compute "$ac_file"'s index in $config_headers.
20059 _am_arg="$ac_file"
20060 _am_stamp_count=1
20061 for _am_header in $config_headers :; do
20062 case $_am_header in
20063 $_am_arg | $_am_arg:* )
20064 break ;;
20065 * )
20066 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20067 esac
20068 done
20069 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20070 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20071 X"$_am_arg" : 'X\(//\)[^/]' \| \
20072 X"$_am_arg" : 'X\(//\)$' \| \
20073 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20074 printf "%s\n" X"$_am_arg" |
20075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20076 s//\1/
20077 q
20078 }
20079 /^X\(\/\/\)[^/].*/{
20080 s//\1/
20081 q
20082 }
20083 /^X\(\/\/\)$/{
20084 s//\1/
20085 q
20086 }
20087 /^X\(\/\).*/{
20088 s//\1/
20089 q
20090 }
20091 s/.*/./; q'`/stamp-h$_am_stamp_count
20092 ;;
20093
20094 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20095 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20096 ;;
20097 esac
20098
20099
20100 case $ac_file$ac_mode in
20101 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20102 # Older Autoconf quotes --file arguments for eval, but not when files
20103 # are listed without --file. Let's play safe and only enable the eval
20104 # if we detect the quoting.
20105 # TODO: see whether this extra hack can be removed once we start
20106 # requiring Autoconf 2.70 or later.
20107 case $CONFIG_FILES in #(
20108 *\'*) :
20109 eval set x "$CONFIG_FILES" ;; #(
20110 *) :
20111 set x $CONFIG_FILES ;; #(
20112 *) :
20113 ;;
20114 esac
20115 shift
20116 # Used to flag and report bootstrapping failures.
20117 am_rc=0
20118 for am_mf
20119 do
20120 # Strip MF so we end up with the name of the file.
20121 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20122 # Check whether this is an Automake generated Makefile which includes
20123 # dependency-tracking related rules and includes.
20124 # Grep'ing the whole file directly is not great: AIX grep has a line
20125 # limit of 2048, but all sed's we know have understand at least 4000.
20126 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20127 || continue
20128 am_dirpart=`$as_dirname -- "$am_mf" ||
20129 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20130 X"$am_mf" : 'X\(//\)[^/]' \| \
20131 X"$am_mf" : 'X\(//\)$' \| \
20132 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20133 printf "%s\n" X"$am_mf" |
20134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20135 s//\1/
20136 q
20137 }
20138 /^X\(\/\/\)[^/].*/{
20139 s//\1/
20140 q
20141 }
20142 /^X\(\/\/\)$/{
20143 s//\1/
20144 q
20145 }
20146 /^X\(\/\).*/{
20147 s//\1/
20148 q
20149 }
20150 s/.*/./; q'`
20151 am_filepart=`$as_basename -- "$am_mf" ||
20152 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20153 X"$am_mf" : 'X\(//\)$' \| \
20154 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20155 printf "%s\n" X/"$am_mf" |
20156 sed '/^.*\/\([^/][^/]*\)\/*$/{
20157 s//\1/
20158 q
20159 }
20160 /^X\/\(\/\/\)$/{
20161 s//\1/
20162 q
20163 }
20164 /^X\/\(\/\).*/{
20165 s//\1/
20166 q
20167 }
20168 s/.*/./; q'`
20169 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20170 && sed -e '/# am--include-marker/d' "$am_filepart" \
20171 | $MAKE -f - am--depfiles" >&5
20172 (cd "$am_dirpart" \
20173 && sed -e '/# am--include-marker/d' "$am_filepart" \
20174 | $MAKE -f - am--depfiles) >&5 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } || am_rc=$?
20178 done
20179 if test $am_rc -ne 0; then
20180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20181 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20182 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20183 for automatic dependency tracking. If GNU make was not used, consider
20184 re-running the configure script with MAKE=\"gmake\" (or whatever is
20185 necessary). You can also try re-running configure with the
20186 '--disable-dependency-tracking' option to at least be able to build
20187 the package (albeit without support for automatic dependency tracking).
20188 See \`config.log' for more details" "$LINENO" 5; }
20189 fi
20190 { am_dirpart=; unset am_dirpart;}
20191 { am_filepart=; unset am_filepart;}
20192 { am_mf=; unset am_mf;}
20193 { am_rc=; unset am_rc;}
20194 rm -f conftest-deps.mk
20195 }
20196 ;;
20197 "libtool":C)
20198
20199 # See if we are running on zsh, and set the options that allow our
20200 # commands through without removal of \ escapes.
20201 if test -n "${ZSH_VERSION+set}"; then
20202 setopt NO_GLOB_SUBST
20203 fi
20204
20205 cfgfile=${ofile}T
20206 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20207 $RM "$cfgfile"
20208
20209 cat <<_LT_EOF >> "$cfgfile"
20210 #! $SHELL
20211 # Generated automatically by $as_me ($PACKAGE) $VERSION
20212 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20213 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20214
20215 # Provide generalized library-building support services.
20216 # Written by Gordon Matzigkeit, 1996
20217
20218 # Copyright (C) 2014 Free Software Foundation, Inc.
20219 # This is free software; see the source for copying conditions. There is NO
20220 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20221
20222 # GNU Libtool is free software; you can redistribute it and/or modify
20223 # it under the terms of the GNU General Public License as published by
20224 # the Free Software Foundation; either version 2 of of the License, or
20225 # (at your option) any later version.
20226 #
20227 # As a special exception to the GNU General Public License, if you
20228 # distribute this file as part of a program or library that is built
20229 # using GNU Libtool, you may include this file under the same
20230 # distribution terms that you use for the rest of that program.
20231 #
20232 # GNU Libtool is distributed in the hope that it will be useful, but
20233 # WITHOUT ANY WARRANTY; without even the implied warranty of
20234 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20235 # GNU General Public License for more details.
20236 #
20237 # You should have received a copy of the GNU General Public License
20238 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20239
20240
20241 # The names of the tagged configurations supported by this script.
20242 available_tags=''
20243
20244 # Configured defaults for sys_lib_dlsearch_path munging.
20245 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20246
20247 # ### BEGIN LIBTOOL CONFIG
20248
20249 # Which release of libtool.m4 was used?
20250 macro_version=$macro_version
20251 macro_revision=$macro_revision
20252
20253 # Whether or not to build static libraries.
20254 build_old_libs=$enable_static
20255
20256 # Whether or not to build shared libraries.
20257 build_libtool_libs=$enable_shared
20258
20259 # What type of objects to build.
20260 pic_mode=$pic_mode
20261
20262 # Whether or not to optimize for fast installation.
20263 fast_install=$enable_fast_install
20264
20265 # Shared archive member basename,for filename based shared library versioning on AIX.
20266 shared_archive_member_spec=$shared_archive_member_spec
20267
20268 # Shell to use when invoking shell scripts.
20269 SHELL=$lt_SHELL
20270
20271 # An echo program that protects backslashes.
20272 ECHO=$lt_ECHO
20273
20274 # The PATH separator for the build system.
20275 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20276
20277 # The host system.
20278 host_alias=$host_alias
20279 host=$host
20280 host_os=$host_os
20281
20282 # The build system.
20283 build_alias=$build_alias
20284 build=$build
20285 build_os=$build_os
20286
20287 # A sed program that does not truncate output.
20288 SED=$lt_SED
20289
20290 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20291 Xsed="\$SED -e 1s/^X//"
20292
20293 # A grep program that handles long lines.
20294 GREP=$lt_GREP
20295
20296 # An ERE matcher.
20297 EGREP=$lt_EGREP
20298
20299 # A literal string matcher.
20300 FGREP=$lt_FGREP
20301
20302 # A BSD- or MS-compatible name lister.
20303 NM=$lt_NM
20304
20305 # Whether we need soft or hard links.
20306 LN_S=$lt_LN_S
20307
20308 # What is the maximum length of a command?
20309 max_cmd_len=$max_cmd_len
20310
20311 # Object file suffix (normally "o").
20312 objext=$ac_objext
20313
20314 # Executable file suffix (normally "").
20315 exeext=$exeext
20316
20317 # whether the shell understands "unset".
20318 lt_unset=$lt_unset
20319
20320 # turn spaces into newlines.
20321 SP2NL=$lt_lt_SP2NL
20322
20323 # turn newlines into spaces.
20324 NL2SP=$lt_lt_NL2SP
20325
20326 # convert \$build file names to \$host format.
20327 to_host_file_cmd=$lt_cv_to_host_file_cmd
20328
20329 # convert \$build files to toolchain format.
20330 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20331
20332 # A file(cmd) program that detects file types.
20333 FILECMD=$lt_FILECMD
20334
20335 # An object symbol dumper.
20336 OBJDUMP=$lt_OBJDUMP
20337
20338 # Method to check whether dependent libraries are shared objects.
20339 deplibs_check_method=$lt_deplibs_check_method
20340
20341 # Command to use when deplibs_check_method = "file_magic".
20342 file_magic_cmd=$lt_file_magic_cmd
20343
20344 # How to find potential files when deplibs_check_method = "file_magic".
20345 file_magic_glob=$lt_file_magic_glob
20346
20347 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20348 want_nocaseglob=$lt_want_nocaseglob
20349
20350 # DLL creation program.
20351 DLLTOOL=$lt_DLLTOOL
20352
20353 # Command to associate shared and link libraries.
20354 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20355
20356 # The archiver.
20357 AR=$lt_AR
20358
20359 # Flags to create an archive (by configure).
20360 lt_ar_flags=$lt_ar_flags
20361
20362 # Flags to create an archive.
20363 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20364
20365 # How to feed a file listing to the archiver.
20366 archiver_list_spec=$lt_archiver_list_spec
20367
20368 # A symbol stripping program.
20369 STRIP=$lt_STRIP
20370
20371 # Commands used to install an old-style archive.
20372 RANLIB=$lt_RANLIB
20373 old_postinstall_cmds=$lt_old_postinstall_cmds
20374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20375
20376 # Whether to use a lock for old archive extraction.
20377 lock_old_archive_extraction=$lock_old_archive_extraction
20378
20379 # A C compiler.
20380 LTCC=$lt_CC
20381
20382 # LTCC compiler flags.
20383 LTCFLAGS=$lt_CFLAGS
20384
20385 # Take the output of nm and produce a listing of raw symbols and C names.
20386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20387
20388 # Transform the output of nm in a proper C declaration.
20389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20390
20391 # Transform the output of nm into a list of symbols to manually relocate.
20392 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20393
20394 # Transform the output of nm in a C name address pair.
20395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20396
20397 # Transform the output of nm in a C name address pair when lib prefix is needed.
20398 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20399
20400 # The name lister interface.
20401 nm_interface=$lt_lt_cv_nm_interface
20402
20403 # Specify filename containing input files for \$NM.
20404 nm_file_list_spec=$lt_nm_file_list_spec
20405
20406 # The root where to search for dependent libraries,and where our libraries should be installed.
20407 lt_sysroot=$lt_sysroot
20408
20409 # Command to truncate a binary pipe.
20410 lt_truncate_bin=$lt_lt_cv_truncate_bin
20411
20412 # The name of the directory that contains temporary libtool files.
20413 objdir=$objdir
20414
20415 # Used to examine libraries when file_magic_cmd begins with "file".
20416 MAGIC_CMD=$MAGIC_CMD
20417
20418 # Must we lock files when doing compilation?
20419 need_locks=$lt_need_locks
20420
20421 # Manifest tool.
20422 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20423
20424 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20425 DSYMUTIL=$lt_DSYMUTIL
20426
20427 # Tool to change global to local symbols on Mac OS X.
20428 NMEDIT=$lt_NMEDIT
20429
20430 # Tool to manipulate fat objects and archives on Mac OS X.
20431 LIPO=$lt_LIPO
20432
20433 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20434 OTOOL=$lt_OTOOL
20435
20436 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20437 OTOOL64=$lt_OTOOL64
20438
20439 # Old archive suffix (normally "a").
20440 libext=$libext
20441
20442 # Shared library suffix (normally ".so").
20443 shrext_cmds=$lt_shrext_cmds
20444
20445 # The commands to extract the exported symbol list from a shared archive.
20446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20447
20448 # Variables whose values should be saved in libtool wrapper scripts and
20449 # restored at link time.
20450 variables_saved_for_relink=$lt_variables_saved_for_relink
20451
20452 # Do we need the "lib" prefix for modules?
20453 need_lib_prefix=$need_lib_prefix
20454
20455 # Do we need a version for libraries?
20456 need_version=$need_version
20457
20458 # Library versioning type.
20459 version_type=$version_type
20460
20461 # Shared library runtime path variable.
20462 runpath_var=$runpath_var
20463
20464 # Shared library path variable.
20465 shlibpath_var=$shlibpath_var
20466
20467 # Is shlibpath searched before the hard-coded library search path?
20468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20469
20470 # Format of library name prefix.
20471 libname_spec=$lt_libname_spec
20472
20473 # List of archive names. First name is the real one, the rest are links.
20474 # The last name is the one that the linker finds with -lNAME
20475 library_names_spec=$lt_library_names_spec
20476
20477 # The coded name of the library, if different from the real name.
20478 soname_spec=$lt_soname_spec
20479
20480 # Permission mode override for installation of shared libraries.
20481 install_override_mode=$lt_install_override_mode
20482
20483 # Command to use after installation of a shared archive.
20484 postinstall_cmds=$lt_postinstall_cmds
20485
20486 # Command to use after uninstallation of a shared archive.
20487 postuninstall_cmds=$lt_postuninstall_cmds
20488
20489 # Commands used to finish a libtool library installation in a directory.
20490 finish_cmds=$lt_finish_cmds
20491
20492 # As "finish_cmds", except a single script fragment to be evaled but
20493 # not shown.
20494 finish_eval=$lt_finish_eval
20495
20496 # Whether we should hardcode library paths into libraries.
20497 hardcode_into_libs=$hardcode_into_libs
20498
20499 # Compile-time system search path for libraries.
20500 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20501
20502 # Detected run-time system search path for libraries.
20503 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20504
20505 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20506 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20507
20508 # Whether dlopen is supported.
20509 dlopen_support=$enable_dlopen
20510
20511 # Whether dlopen of programs is supported.
20512 dlopen_self=$enable_dlopen_self
20513
20514 # Whether dlopen of statically linked programs is supported.
20515 dlopen_self_static=$enable_dlopen_self_static
20516
20517 # Commands to strip libraries.
20518 old_striplib=$lt_old_striplib
20519 striplib=$lt_striplib
20520
20521
20522 # The linker used to build libraries.
20523 LD=$lt_LD
20524
20525 # How to create reloadable object files.
20526 reload_flag=$lt_reload_flag
20527 reload_cmds=$lt_reload_cmds
20528
20529 # Commands used to build an old-style archive.
20530 old_archive_cmds=$lt_old_archive_cmds
20531
20532 # A language specific compiler.
20533 CC=$lt_compiler
20534
20535 # Is the compiler the GNU compiler?
20536 with_gcc=$GCC
20537
20538 # Compiler flag to turn off builtin functions.
20539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20540
20541 # Additional compiler flags for building library objects.
20542 pic_flag=$lt_lt_prog_compiler_pic
20543
20544 # How to pass a linker flag through the compiler.
20545 wl=$lt_lt_prog_compiler_wl
20546
20547 # Compiler flag to prevent dynamic linking.
20548 link_static_flag=$lt_lt_prog_compiler_static
20549
20550 # Does compiler simultaneously support -c and -o options?
20551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20552
20553 # Whether or not to add -lc for building shared libraries.
20554 build_libtool_need_lc=$archive_cmds_need_lc
20555
20556 # Whether or not to disallow shared libs when runtime libs are static.
20557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20558
20559 # Compiler flag to allow reflexive dlopens.
20560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20561
20562 # Compiler flag to generate shared objects directly from archives.
20563 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20564
20565 # Whether the compiler copes with passing no objects directly.
20566 compiler_needs_object=$lt_compiler_needs_object
20567
20568 # Create an old-style archive from a shared archive.
20569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20570
20571 # Create a temporary old-style archive to link instead of a shared archive.
20572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20573
20574 # Commands used to build a shared archive.
20575 archive_cmds=$lt_archive_cmds
20576 archive_expsym_cmds=$lt_archive_expsym_cmds
20577
20578 # Commands used to build a loadable module if different from building
20579 # a shared archive.
20580 module_cmds=$lt_module_cmds
20581 module_expsym_cmds=$lt_module_expsym_cmds
20582
20583 # Whether we are building with GNU ld or not.
20584 with_gnu_ld=$lt_with_gnu_ld
20585
20586 # Flag that allows shared libraries with undefined symbols to be built.
20587 allow_undefined_flag=$lt_allow_undefined_flag
20588
20589 # Flag that enforces no undefined symbols.
20590 no_undefined_flag=$lt_no_undefined_flag
20591
20592 # Flag to hardcode \$libdir into a binary during linking.
20593 # This must work even if \$libdir does not exist
20594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20595
20596 # Whether we need a single "-rpath" flag with a separated argument.
20597 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20598
20599 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20600 # DIR into the resulting binary.
20601 hardcode_direct=$hardcode_direct
20602
20603 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20604 # DIR into the resulting binary and the resulting library dependency is
20605 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20606 # library is relocated.
20607 hardcode_direct_absolute=$hardcode_direct_absolute
20608
20609 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20610 # into the resulting binary.
20611 hardcode_minus_L=$hardcode_minus_L
20612
20613 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20614 # into the resulting binary.
20615 hardcode_shlibpath_var=$hardcode_shlibpath_var
20616
20617 # Set to "yes" if building a shared library automatically hardcodes DIR
20618 # into the library and all subsequent libraries and executables linked
20619 # against it.
20620 hardcode_automatic=$hardcode_automatic
20621
20622 # Set to yes if linker adds runtime paths of dependent libraries
20623 # to runtime path list.
20624 inherit_rpath=$inherit_rpath
20625
20626 # Whether libtool must link a program against all its dependency libraries.
20627 link_all_deplibs=$link_all_deplibs
20628
20629 # Set to "yes" if exported symbols are required.
20630 always_export_symbols=$always_export_symbols
20631
20632 # The commands to list exported symbols.
20633 export_symbols_cmds=$lt_export_symbols_cmds
20634
20635 # Symbols that should not be listed in the preloaded symbols.
20636 exclude_expsyms=$lt_exclude_expsyms
20637
20638 # Symbols that must always be exported.
20639 include_expsyms=$lt_include_expsyms
20640
20641 # Commands necessary for linking programs (against libraries) with templates.
20642 prelink_cmds=$lt_prelink_cmds
20643
20644 # Commands necessary for finishing linking programs.
20645 postlink_cmds=$lt_postlink_cmds
20646
20647 # Specify filename containing input files.
20648 file_list_spec=$lt_file_list_spec
20649
20650 # How to hardcode a shared library path into an executable.
20651 hardcode_action=$hardcode_action
20652
20653 # ### END LIBTOOL CONFIG
20654
20655 _LT_EOF
20656
20657 cat <<'_LT_EOF' >> "$cfgfile"
20658
20659 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20660
20661 # func_munge_path_list VARIABLE PATH
20662 # -----------------------------------
20663 # VARIABLE is name of variable containing _space_ separated list of
20664 # directories to be munged by the contents of PATH, which is string
20665 # having a format:
20666 # "DIR[:DIR]:"
20667 # string "DIR[ DIR]" will be prepended to VARIABLE
20668 # ":DIR[:DIR]"
20669 # string "DIR[ DIR]" will be appended to VARIABLE
20670 # "DIRP[:DIRP]::[DIRA:]DIRA"
20671 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20672 # "DIRA[ DIRA]" will be appended to VARIABLE
20673 # "DIR[:DIR]"
20674 # VARIABLE will be replaced by "DIR[ DIR]"
20675 func_munge_path_list ()
20676 {
20677 case x$2 in
20678 x)
20679 ;;
20680 *:)
20681 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20682 ;;
20683 x:*)
20684 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20685 ;;
20686 *::*)
20687 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20688 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20689 ;;
20690 *)
20691 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20692 ;;
20693 esac
20694 }
20695
20696
20697 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20698 func_cc_basename ()
20699 {
20700 for cc_temp in $*""; do
20701 case $cc_temp in
20702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20704 \-*) ;;
20705 *) break;;
20706 esac
20707 done
20708 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20709 }
20710
20711
20712 # ### END FUNCTIONS SHARED WITH CONFIGURE
20713
20714 _LT_EOF
20715
20716 case $host_os in
20717 aix3*)
20718 cat <<\_LT_EOF >> "$cfgfile"
20719 # AIX sometimes has problems with the GCC collect2 program. For some
20720 # reason, if we set the COLLECT_NAMES environment variable, the problems
20721 # vanish in a puff of smoke.
20722 if test set != "${COLLECT_NAMES+set}"; then
20723 COLLECT_NAMES=
20724 export COLLECT_NAMES
20725 fi
20726 _LT_EOF
20727 ;;
20728 esac
20729
20730
20731
20732 ltmain=$ac_aux_dir/ltmain.sh
20733
20734
20735 # We use sed instead of cat because bash on DJGPP gets confused if
20736 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20737 # text mode, it properly converts lines to CR/LF. This bash problem
20738 # is reportedly fixed, but why not run on old versions too?
20739 $SED '$q' "$ltmain" >> "$cfgfile" \
20740 || (rm -f "$cfgfile"; exit 1)
20741
20742 mv -f "$cfgfile" "$ofile" ||
20743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20744 chmod +x "$ofile"
20745
20746 ;;
20747 "po-directories":C)
20748 for ac_file in $CONFIG_FILES; do
20749 # Support "outfile[:infile[:infile...]]"
20750 case "$ac_file" in
20751 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20752 esac
20753 # PO directories have a Makefile.in generated from Makefile.in.in.
20754 case "$ac_file" in */Makefile.in)
20755 # Adjust a relative srcdir.
20756 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20757 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20758 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20759 # In autoconf-2.13 it is called $ac_given_srcdir.
20760 # In autoconf-2.50 it is called $srcdir.
20761 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20762 case "$ac_given_srcdir" in
20763 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20764 /*) top_srcdir="$ac_given_srcdir" ;;
20765 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20766 esac
20767 # Treat a directory as a PO directory if and only if it has a
20768 # POTFILES.in file. This allows packages to have multiple PO
20769 # directories under different names or in different locations.
20770 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20771 rm -f "$ac_dir/POTFILES"
20772 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20773 gt_tab=`printf '\t'`
20774 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"
20775 POMAKEFILEDEPS="POTFILES.in"
20776 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20777 # on $ac_dir but don't depend on user-specified configuration
20778 # parameters.
20779 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20780 # The LINGUAS file contains the set of available languages.
20781 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20782 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20783 fi
20784 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20785 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20786 else
20787 # The set of available languages was given in configure.in.
20788 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
20789 fi
20790 # Compute POFILES
20791 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20792 # Compute UPDATEPOFILES
20793 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20794 # Compute DUMMYPOFILES
20795 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20796 # Compute GMOFILES
20797 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20798 case "$ac_given_srcdir" in
20799 .) srcdirpre= ;;
20800 *) srcdirpre='$(srcdir)/' ;;
20801 esac
20802 POFILES=
20803 UPDATEPOFILES=
20804 DUMMYPOFILES=
20805 GMOFILES=
20806 for lang in $ALL_LINGUAS; do
20807 POFILES="$POFILES $srcdirpre$lang.po"
20808 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20809 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20810 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20811 done
20812 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20813 # environment variable.
20814 INST_LINGUAS=
20815 if test -n "$ALL_LINGUAS"; then
20816 for presentlang in $ALL_LINGUAS; do
20817 useit=no
20818 if test "%UNSET%" != "$LINGUAS"; then
20819 desiredlanguages="$LINGUAS"
20820 else
20821 desiredlanguages="$ALL_LINGUAS"
20822 fi
20823 for desiredlang in $desiredlanguages; do
20824 # Use the presentlang catalog if desiredlang is
20825 # a. equal to presentlang, or
20826 # b. a variant of presentlang (because in this case,
20827 # presentlang can be used as a fallback for messages
20828 # which are not translated in the desiredlang catalog).
20829 case "$desiredlang" in
20830 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
20831 useit=yes
20832 ;;
20833 esac
20834 done
20835 if test $useit = yes; then
20836 INST_LINGUAS="$INST_LINGUAS $presentlang"
20837 fi
20838 done
20839 fi
20840 CATALOGS=
20841 if test -n "$INST_LINGUAS"; then
20842 for lang in $INST_LINGUAS; do
20843 CATALOGS="$CATALOGS $lang.gmo"
20844 done
20845 fi
20846 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20847 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"
20848 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20849 if test -f "$f"; then
20850 case "$f" in
20851 *.orig | *.bak | *~) ;;
20852 *) cat "$f" >> "$ac_dir/Makefile" ;;
20853 esac
20854 fi
20855 done
20856 fi
20857 ;;
20858 esac
20859 done ;;
20860
20861 esac
20862 done # for ac_tag
20863
20864
20865 as_fn_exit 0
20866 _ACEOF
20867 ac_clean_files=$ac_clean_files_save
20868
20869 test $ac_write_fail = 0 ||
20870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20871
20872
20873 # configure is writing to config.log, and then calls config.status.
20874 # config.status does its own redirection, appending to config.log.
20875 # Unfortunately, on DOS this fails, as config.log is still kept open
20876 # by configure, so config.status won't be able to write to it; its
20877 # output is simply discarded. So we exec the FD to /dev/null,
20878 # effectively closing config.log, so it can be properly (re)opened and
20879 # appended to by config.status. When coming back to configure, we
20880 # need to make the FD available again.
20881 if test "$no_create" != yes; then
20882 ac_cs_success=:
20883 ac_config_status_args=
20884 test "$silent" = yes &&
20885 ac_config_status_args="$ac_config_status_args --quiet"
20886 exec 5>/dev/null
20887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20888 exec 5>>config.log
20889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20890 # would make configure fail if this is the last instruction.
20891 $ac_cs_success || as_fn_exit 1
20892 fi
20893 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20895 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20896 fi
20897
20898
20899 echo ""
20900 echo "Build configuration: "
20901 echo " --with-dist-version=$ac_distver"
20902 echo " --with-gnome=$with_gnome"
20903 echo " --with-gtk4=$with_gtk4"
20904 echo " --with-pppd-plugin-dir=$PPPD_PLUGIN_DIR"
20905 echo " --enable-absolute-paths=$enable_absolute_paths"
20906 echo " --enable-more-warnings=$set_more_warnings"
20907