Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for lua-lxc 3.0.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='lua-lxc'
589 PACKAGE_TARNAME='lua-lxc'
590 PACKAGE_VERSION='3.0.2'
591 PACKAGE_STRING='lua-lxc 3.0.2'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="configure.ac"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 LXCPATH
637 INCLUDEDIR
638 LIBEXECDIR
639 SBINDIR
640 BINDIR
641 LIBDIR
642 PREFIX
643 LUA_SHAREDIR
644 LUA_LIBDIR
645 LUA_VERSION
646 LUA_LIBS
647 LUA_CFLAGS
648 ENABLE_EXAMPLES_FALSE
649 ENABLE_EXAMPLES_TRUE
650 LIBTOOL_DEPS
651 LT_SYS_LIBRARY_PATH
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 SED
670 LIBTOOL
671 EGREP
672 GREP
673 CPP
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 PKG_CONFIG_LIBDIR
727 PKG_CONFIG_PATH
728 PKG_CONFIG
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 runstatedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_dependency_tracking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_aix_soname
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 enable_werror
782 enable_examples
783 with_lua_pc
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 PKG_CONFIG
789 PKG_CONFIG_PATH
790 PKG_CONFIG_LIBDIR
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CPP
797 LT_SYS_LIBRARY_PATH
798 LUA_CFLAGS
799 LUA_LIBS
800 LUA_VERSION'
801
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 runstatedir='${localstatedir}/run'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
844 htmldir='${docdir}'
845 dvidir='${docdir}'
846 pdfdir='${docdir}'
847 psdir='${docdir}'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
851
852 ac_prev=
853 ac_dashdash=
854 for ac_option
855 do
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
859 ac_prev=
860 continue
861 fi
862
863 case $ac_option in
864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 *=) ac_optarg= ;;
866 *) ac_optarg=yes ;;
867 esac
868
869 # Accept the important Cygnus configure options, so we can diagnose typos.
870
871 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -runstatedir | --runstatedir | --runstatedi | --runstated \
1093 | --runstate | --runstat | --runsta | --runst | --runs \
1094 | --run | --ru | --r)
1095 ac_prev=runstatedir ;;
1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098 | --run=* | --ru=* | --r=*)
1099 runstatedir=$ac_optarg ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1161
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1195
1196 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1198 ;;
1199
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1209
1210 *)
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 ;;
1217
1218 esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir runstatedir
1239 do
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1315 fi
1316 else
1317 ac_srcdir_defaulted=no
1318 fi
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 fi
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330 fi
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1343
1344 #
1345 # Report the --help message.
1346 #
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures lua-lxc 3.0.2 to adapt to many kinds of systems.
1352
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1357
1358 Defaults for the options are specified in brackets.
1359
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1376
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1381
1382 For better control, use the options below.
1383
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/lua-lxc]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of lua-lxc 3.0.2:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --disable-werror do not treat warnings as errors
1442 --enable-examples install examples [default=yes]
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-aix-soname=aix|svr4|both
1450 shared library versioning (aka "SONAME") variant to
1451 provide on AIX, [default=aix].
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1454 compiler's sysroot if not specified).
1455 --with-lua-pc=PKG Specify pkg-config package name for lua
1456
1457 Some influential environment variables:
1458 PKG_CONFIG path to pkg-config utility
1459 PKG_CONFIG_PATH
1460 directories to add to pkg-config's search path
1461 PKG_CONFIG_LIBDIR
1462 path overriding pkg-config's built-in search path
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 CPP C preprocessor
1471 LT_SYS_LIBRARY_PATH
1472 User-defined run-time library search path.
1473 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1474 LUA_LIBS linker flags for LUA, overriding pkg-config
1475 LUA_VERSION value of V for $LUAPKGCONFIG, overriding pkg-config
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to the package provider.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 lua-lxc configure 3.0.2
1544 generated by GNU Autoconf 2.69
1545
1546 Copyright (C) 2012 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_compile
1594
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_cpp
1631
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1636 # accordingly.
1637 ac_fn_c_check_header_mongrel ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if eval \${$3+:} false; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645 fi
1646 eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 else
1650 # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1660 else
1661 ac_header_compiler=no
1662 fi
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1666
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1676 else
1677 ac_header_preproc=no
1678 fi
1679 rm -f conftest.err conftest.i conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1682
1683 # So? What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1685 yes:no: )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ;;
1691 no:yes:* )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 esac
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 eval "$3=\$ac_header_compiler"
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 fi
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_mongrel
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754 fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 test -x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_func LINENO FUNC VAR
1839 # ----------------------------------
1840 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1841 ac_fn_c_check_func ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $2 (); below.
1857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858 <limits.h> exists even on freestanding compilers. */
1859
1860 #ifdef __STDC__
1861 # include <limits.h>
1862 #else
1863 # include <assert.h>
1864 #endif
1865
1866 #undef $2
1867
1868 /* Override any GCC internal prototype to avoid an error.
1869 Use char because int might match the return type of a GCC
1870 builtin and then its argument prototype would still apply. */
1871 #ifdef __cplusplus
1872 extern "C"
1873 #endif
1874 char $2 ();
1875 /* The GNU C library defines this for functions which it implements
1876 to always fail with ENOSYS. Some functions are actually named
1877 something starting with __ and the normal name is an alias. */
1878 #if defined __stub_$2 || defined __stub___$2
1879 choke me
1880 #endif
1881
1882 int
1883 main ()
1884 {
1885 return $2 ();
1886 ;
1887 return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_link "$LINENO"; then :
1891 eval "$3=yes"
1892 else
1893 eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext \
1896 conftest$ac_exeext conftest.$ac_ext
1897 fi
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_func
1904 cat >config.log <<_ACEOF
1905 This file contains any messages produced by compilers while
1906 running configure, to aid debugging if configure makes a mistake.
1907
1908 It was created by lua-lxc $as_me 3.0.2, which was
1909 generated by GNU Autoconf 2.69. Invocation command line was
1910
1911 $ $0 $@
1912
1913 _ACEOF
1914 exec 5>>config.log
1915 {
1916 cat <<_ASUNAME
1917 ## --------- ##
1918 ## Platform. ##
1919 ## --------- ##
1920
1921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1926
1927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1929
1930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1933 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1937
1938 _ASUNAME
1939
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 $as_echo "PATH: $as_dir"
1946 done
1947 IFS=$as_save_IFS
1948
1949 } >&5
1950
1951 cat >&5 <<_ACEOF
1952
1953
1954 ## ----------- ##
1955 ## Core tests. ##
1956 ## ----------- ##
1957
1958 _ACEOF
1959
1960
1961 # Keep a trace of the command line.
1962 # Strip out --no-create and --no-recursion so they do not pile up.
1963 # Strip out --silent because we don't want to record it for future runs.
1964 # Also quote any args containing shell meta-characters.
1965 # Make two passes to allow for proper duplicate-argument suppression.
1966 ac_configure_args=
1967 ac_configure_args0=
1968 ac_configure_args1=
1969 ac_must_keep_next=false
1970 for ac_pass in 1 2
1971 do
1972 for ac_arg
1973 do
1974 case $ac_arg in
1975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1977 | -silent | --silent | --silen | --sile | --sil)
1978 continue ;;
1979 *\'*)
1980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 esac
1982 case $ac_pass in
1983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1984 2)
1985 as_fn_append ac_configure_args1 " '$ac_arg'"
1986 if test $ac_must_keep_next = true; then
1987 ac_must_keep_next=false # Got value, back to normal.
1988 else
1989 case $ac_arg in
1990 *=* | --config-cache | -C | -disable-* | --disable-* \
1991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1993 | -with-* | --with-* | -without-* | --without-* | --x)
1994 case "$ac_configure_args0 " in
1995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1996 esac
1997 ;;
1998 -* ) ac_must_keep_next=true ;;
1999 esac
2000 fi
2001 as_fn_append ac_configure_args " '$ac_arg'"
2002 ;;
2003 esac
2004 done
2005 done
2006 { ac_configure_args0=; unset ac_configure_args0;}
2007 { ac_configure_args1=; unset ac_configure_args1;}
2008
2009 # When interrupted or exit'd, cleanup temporary files, and complete
2010 # config.log. We remove comments because anyway the quotes in there
2011 # would cause problems or look ugly.
2012 # WARNING: Use '\'' to represent an apostrophe within the trap.
2013 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2014 trap 'exit_status=$?
2015 # Save into config.log some information that might help in debugging.
2016 {
2017 echo
2018
2019 $as_echo "## ---------------- ##
2020 ## Cache variables. ##
2021 ## ---------------- ##"
2022 echo
2023 # The following way of writing the cache mishandles newlines in values,
2024 (
2025 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2026 eval ac_val=\$$ac_var
2027 case $ac_val in #(
2028 *${as_nl}*)
2029 case $ac_var in #(
2030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2032 esac
2033 case $ac_var in #(
2034 _ | IFS | as_nl) ;; #(
2035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2036 *) { eval $ac_var=; unset $ac_var;} ;;
2037 esac ;;
2038 esac
2039 done
2040 (set) 2>&1 |
2041 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2042 *${as_nl}ac_space=\ *)
2043 sed -n \
2044 "s/'\''/'\''\\\\'\'''\''/g;
2045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2046 ;; #(
2047 *)
2048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2049 ;;
2050 esac |
2051 sort
2052 )
2053 echo
2054
2055 $as_echo "## ----------------- ##
2056 ## Output variables. ##
2057 ## ----------------- ##"
2058 echo
2059 for ac_var in $ac_subst_vars
2060 do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
2066 done | sort
2067 echo
2068
2069 if test -n "$ac_subst_files"; then
2070 $as_echo "## ------------------- ##
2071 ## File substitutions. ##
2072 ## ------------------- ##"
2073 echo
2074 for ac_var in $ac_subst_files
2075 do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 $as_echo "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2083 fi
2084
2085 if test -s confdefs.h; then
2086 $as_echo "## ----------- ##
2087 ## confdefs.h. ##
2088 ## ----------- ##"
2089 echo
2090 cat confdefs.h
2091 echo
2092 fi
2093 test "$ac_signal" != 0 &&
2094 $as_echo "$as_me: caught signal $ac_signal"
2095 $as_echo "$as_me: exit $exit_status"
2096 } >&5
2097 rm -f core *.core core.conftest.* &&
2098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2099 exit $exit_status
2100 ' 0
2101 for ac_signal in 1 2 13 15; do
2102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103 done
2104 ac_signal=0
2105
2106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2107 rm -f -r conftest* confdefs.h
2108
2109 $as_echo "/* confdefs.h */" > confdefs.h
2110
2111 # Predefined preprocessor variables.
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_NAME "$PACKAGE_NAME"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_STRING "$PACKAGE_STRING"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_URL "$PACKAGE_URL"
2135 _ACEOF
2136
2137
2138 # Let the site file select an alternate cache file if it wants to.
2139 # Prefer an explicitly selected file to automatically selected ones.
2140 ac_site_file1=NONE
2141 ac_site_file2=NONE
2142 if test -n "$CONFIG_SITE"; then
2143 # We do not want a PATH search for config.site.
2144 case $CONFIG_SITE in #((
2145 -*) ac_site_file1=./$CONFIG_SITE;;
2146 */*) ac_site_file1=$CONFIG_SITE;;
2147 *) ac_site_file1=./$CONFIG_SITE;;
2148 esac
2149 elif test "x$prefix" != xNONE; then
2150 ac_site_file1=$prefix/share/config.site
2151 ac_site_file2=$prefix/etc/config.site
2152 else
2153 ac_site_file1=$ac_default_prefix/share/config.site
2154 ac_site_file2=$ac_default_prefix/etc/config.site
2155 fi
2156 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2157 do
2158 test "x$ac_site_file" = xNONE && continue
2159 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2161 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2162 sed 's/^/| /' "$ac_site_file" >&5
2163 . "$ac_site_file" \
2164 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166 as_fn_error $? "failed to load site script $ac_site_file
2167 See \`config.log' for more details" "$LINENO" 5; }
2168 fi
2169 done
2170
2171 if test -r "$cache_file"; then
2172 # Some versions of bash will fail to source /dev/null (special files
2173 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2176 $as_echo "$as_me: loading cache $cache_file" >&6;}
2177 case $cache_file in
2178 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2179 *) . "./$cache_file";;
2180 esac
2181 fi
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2184 $as_echo "$as_me: creating cache $cache_file" >&6;}
2185 >$cache_file
2186 fi
2187
2188 # Check that the precious variables saved in the cache have kept the same
2189 # value.
2190 ac_cache_corrupted=false
2191 for ac_var in $ac_precious_vars; do
2192 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2193 eval ac_new_set=\$ac_env_${ac_var}_set
2194 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2195 eval ac_new_val=\$ac_env_${ac_var}_value
2196 case $ac_old_set,$ac_new_set in
2197 set,)
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2200 ac_cache_corrupted=: ;;
2201 ,set)
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2204 ac_cache_corrupted=: ;;
2205 ,);;
2206 *)
2207 if test "x$ac_old_val" != "x$ac_new_val"; then
2208 # differences in whitespace do not lead to failure.
2209 ac_old_val_w=`echo x $ac_old_val`
2210 ac_new_val_w=`echo x $ac_new_val`
2211 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2213 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2214 ac_cache_corrupted=:
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2217 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2218 eval $ac_var=\$ac_old_val
2219 fi
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2221 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2223 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2224 fi;;
2225 esac
2226 # Pass precious variables to config.status.
2227 if test "$ac_new_set" = set; then
2228 case $ac_new_val in
2229 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 *) ac_arg=$ac_var=$ac_new_val ;;
2231 esac
2232 case " $ac_configure_args " in
2233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2234 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2235 esac
2236 fi
2237 done
2238 if $ac_cache_corrupted; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2242 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2243 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2244 fi
2245 ## -------------------- ##
2246 ## Main body of script. ##
2247 ## -------------------- ##
2248
2249 ac_ext=c
2250 ac_cpp='$CPP $CPPFLAGS'
2251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254
2255
2256
2257 # We need pkg-config
2258
2259
2260
2261
2262
2263
2264
2265 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 case $PKG_CONFIG in
2275 [\\/]* | ?:[\\/]*)
2276 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2277 ;;
2278 *)
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2289 fi
2290 done
2291 done
2292 IFS=$as_save_IFS
2293
2294 ;;
2295 esac
2296 fi
2297 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2298 if test -n "$PKG_CONFIG"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2300 $as_echo "$PKG_CONFIG" >&6; }
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2303 $as_echo "no" >&6; }
2304 fi
2305
2306
2307 fi
2308 if test -z "$ac_cv_path_PKG_CONFIG"; then
2309 ac_pt_PKG_CONFIG=$PKG_CONFIG
2310 # Extract the first word of "pkg-config", so it can be a program name with args.
2311 set dummy pkg-config; ac_word=$2
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2313 $as_echo_n "checking for $ac_word... " >&6; }
2314 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 case $ac_pt_PKG_CONFIG in
2318 [\\/]* | ?:[\\/]*)
2319 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2320 ;;
2321 *)
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2329 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2332 fi
2333 done
2334 done
2335 IFS=$as_save_IFS
2336
2337 ;;
2338 esac
2339 fi
2340 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2341 if test -n "$ac_pt_PKG_CONFIG"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2343 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2344 else
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2346 $as_echo "no" >&6; }
2347 fi
2348
2349 if test "x$ac_pt_PKG_CONFIG" = x; then
2350 PKG_CONFIG=""
2351 else
2352 case $cross_compiling:$ac_tool_warned in
2353 yes:)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2356 ac_tool_warned=yes ;;
2357 esac
2358 PKG_CONFIG=$ac_pt_PKG_CONFIG
2359 fi
2360 else
2361 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2362 fi
2363
2364 fi
2365 if test -n "$PKG_CONFIG"; then
2366 _pkg_min_version=0.9.0
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2368 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2369 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2371 $as_echo "yes" >&6; }
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2374 $as_echo "no" >&6; }
2375 PKG_CONFIG=""
2376 fi
2377 fi
2378
2379
2380 ac_aux_dir=
2381 for ac_dir in config "$srcdir"/config; do
2382 if test -f "$ac_dir/install-sh"; then
2383 ac_aux_dir=$ac_dir
2384 ac_install_sh="$ac_aux_dir/install-sh -c"
2385 break
2386 elif test -f "$ac_dir/install.sh"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/install.sh -c"
2389 break
2390 elif test -f "$ac_dir/shtool"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/shtool install -c"
2393 break
2394 fi
2395 done
2396 if test -z "$ac_aux_dir"; then
2397 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2398 fi
2399
2400 # These three variables are undocumented and unsupported,
2401 # and are intended to be withdrawn in a future Autoconf release.
2402 # They can cause serious problems if a builder's source tree is in a directory
2403 # whose full name contains unusual characters.
2404 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2405 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2406 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2407
2408
2409 ac_config_headers="$ac_config_headers src/config.h"
2410
2411 am__api_version='1.15'
2412
2413 # Find a good install program. We prefer a C program (faster),
2414 # so one script is as good as another. But avoid the broken or
2415 # incompatible versions:
2416 # SysV /etc/install, /usr/sbin/install
2417 # SunOS /usr/etc/install
2418 # IRIX /sbin/install
2419 # AIX /bin/install
2420 # AmigaOS /C/install, which installs bootblocks on floppy discs
2421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424 # OS/2's system install, which has a completely different semantic
2425 # ./install, which can be erroneously created by make from ./install.sh.
2426 # Reject install programs that cannot install multiple files.
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2429 if test -z "$INSTALL"; then
2430 if ${ac_cv_path_install+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 # Account for people who put trailing slashes in PATH elements.
2439 case $as_dir/ in #((
2440 ./ | .// | /[cC]/* | \
2441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2443 /usr/ucb/* ) ;;
2444 *)
2445 # OSF1 and SCO ODT 3.0 have their own names for install.
2446 # Don't use installbsd from OSF since it installs stuff as root
2447 # by default.
2448 for ac_prog in ginstall scoinst install; do
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2451 if test $ac_prog = install &&
2452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # AIX install. It has an incompatible calling convention.
2454 :
2455 elif test $ac_prog = install &&
2456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # program-specific install script used by HP pwplus--don't use.
2458 :
2459 else
2460 rm -rf conftest.one conftest.two conftest.dir
2461 echo one > conftest.one
2462 echo two > conftest.two
2463 mkdir conftest.dir
2464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465 test -s conftest.one && test -s conftest.two &&
2466 test -s conftest.dir/conftest.one &&
2467 test -s conftest.dir/conftest.two
2468 then
2469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2470 break 3
2471 fi
2472 fi
2473 fi
2474 done
2475 done
2476 ;;
2477 esac
2478
2479 done
2480 IFS=$as_save_IFS
2481
2482 rm -rf conftest.one conftest.two conftest.dir
2483
2484 fi
2485 if test "${ac_cv_path_install+set}" = set; then
2486 INSTALL=$ac_cv_path_install
2487 else
2488 # As a last resort, use the slow shell script. Don't cache a
2489 # value for INSTALL within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the value is a relative name.
2492 INSTALL=$ac_install_sh
2493 fi
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496 $as_echo "$INSTALL" >&6; }
2497
2498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499 # It thinks the first close brace ends the variable substitution.
2500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507 $as_echo_n "checking whether build environment is sane... " >&6; }
2508 # Reject unsafe characters in $srcdir or the absolute working directory
2509 # name. Accept space and tab only in the latter.
2510 am_lf='
2511 '
2512 case `pwd` in
2513 *[\\\"\#\$\&\'\`$am_lf]*)
2514 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2515 esac
2516 case $srcdir in
2517 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2518 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2519 esac
2520
2521 # Do 'set' in a subshell so we don't clobber the current shell's
2522 # arguments. Must try -L first in case configure is actually a
2523 # symlink; some systems play weird games with the mod time of symlinks
2524 # (eg FreeBSD returns the mod time of the symlink's containing
2525 # directory).
2526 if (
2527 am_has_slept=no
2528 for am_try in 1 2; do
2529 echo "timestamp, slept: $am_has_slept" > conftest.file
2530 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531 if test "$*" = "X"; then
2532 # -L didn't work.
2533 set X `ls -t "$srcdir/configure" conftest.file`
2534 fi
2535 if test "$*" != "X $srcdir/configure conftest.file" \
2536 && test "$*" != "X conftest.file $srcdir/configure"; then
2537
2538 # If neither matched, then we have a broken ls. This can happen
2539 # if, for instance, CONFIG_SHELL is bash and it inherits a
2540 # broken ls alias from the environment. This has actually
2541 # happened. Such a system could not be considered "sane".
2542 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2544 fi
2545 if test "$2" = conftest.file || test $am_try -eq 2; then
2546 break
2547 fi
2548 # Just in case.
2549 sleep 1
2550 am_has_slept=yes
2551 done
2552 test "$2" = conftest.file
2553 )
2554 then
2555 # Ok.
2556 :
2557 else
2558 as_fn_error $? "newly created file is older than distributed files!
2559 Check your system clock" "$LINENO" 5
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562 $as_echo "yes" >&6; }
2563 # If we didn't sleep, we still need to ensure time stamps of config.status and
2564 # generated files are strictly newer.
2565 am_sleep_pid=
2566 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2567 ( sleep 1 ) &
2568 am_sleep_pid=$!
2569 fi
2570
2571 rm -f conftest.file
2572
2573 test "$program_prefix" != NONE &&
2574 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2575 # Use a double $ so make ignores it.
2576 test "$program_suffix" != NONE &&
2577 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2578 # Double any \ or $.
2579 # By default was `s,x,x', remove it if useless.
2580 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2581 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2582
2583 # Expand $ac_aux_dir to an absolute path.
2584 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2585
2586 if test x"${MISSING+set}" != xset; then
2587 case $am_aux_dir in
2588 *\ * | *\ *)
2589 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2590 *)
2591 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2592 esac
2593 fi
2594 # Use eval to expand $SHELL
2595 if eval "$MISSING --is-lightweight"; then
2596 am_missing_run="$MISSING "
2597 else
2598 am_missing_run=
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2600 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2601 fi
2602
2603 if test x"${install_sh+set}" != xset; then
2604 case $am_aux_dir in
2605 *\ * | *\ *)
2606 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2607 *)
2608 install_sh="\${SHELL} $am_aux_dir/install-sh"
2609 esac
2610 fi
2611
2612 # Installed binaries are usually stripped using 'strip' when the user
2613 # run "make install-strip". However 'strip' might not be the right
2614 # tool to use in cross-compilation environments, therefore Automake
2615 # will honor the 'STRIP' environment variable to overrule this program.
2616 if test "$cross_compiling" != no; then
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}strip; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_STRIP+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test -n "$STRIP"; then
2626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 STRIP=$ac_cv_prog_STRIP
2646 if test -n "$STRIP"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2648 $as_echo "$STRIP" >&6; }
2649 else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655 fi
2656 if test -z "$ac_cv_prog_STRIP"; then
2657 ac_ct_STRIP=$STRIP
2658 # Extract the first word of "strip", so it can be a program name with args.
2659 set dummy strip; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test -n "$ac_ct_STRIP"; then
2666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_STRIP="strip"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2686 if test -n "$ac_ct_STRIP"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2688 $as_echo "$ac_ct_STRIP" >&6; }
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 fi
2693
2694 if test "x$ac_ct_STRIP" = x; then
2695 STRIP=":"
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698 yes:)
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701 ac_tool_warned=yes ;;
2702 esac
2703 STRIP=$ac_ct_STRIP
2704 fi
2705 else
2706 STRIP="$ac_cv_prog_STRIP"
2707 fi
2708
2709 fi
2710 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2711
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2713 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2714 if test -z "$MKDIR_P"; then
2715 if ${ac_cv_path_mkdir+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_prog in mkdir gmkdir; do
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2726 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2727 'mkdir (GNU coreutils) '* | \
2728 'mkdir (coreutils) '* | \
2729 'mkdir (fileutils) '4.1*)
2730 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2731 break 3;;
2732 esac
2733 done
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739
2740 test -d ./--version && rmdir ./--version
2741 if test "${ac_cv_path_mkdir+set}" = set; then
2742 MKDIR_P="$ac_cv_path_mkdir -p"
2743 else
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for MKDIR_P within a source directory, because that will
2746 # break other packages using the cache if that directory is
2747 # removed, or if the value is a relative name.
2748 MKDIR_P="$ac_install_sh -d"
2749 fi
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2752 $as_echo "$MKDIR_P" >&6; }
2753
2754 for ac_prog in gawk mawk nawk awk
2755 do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_AWK+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$AWK"; then
2764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_AWK="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 AWK=$ac_cv_prog_AWK
2784 if test -n "$AWK"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786 $as_echo "$AWK" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 test -n "$AWK" && break
2794 done
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2797 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798 set x ${MAKE-make}
2799 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2800 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 cat >conftest.make <<\_ACEOF
2804 SHELL = /bin/sh
2805 all:
2806 @echo '@@@%%%=$(MAKE)=@@@%%%'
2807 _ACEOF
2808 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2809 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810 *@@@%%%=?*=@@@%%%*)
2811 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 *)
2813 eval ac_cv_prog_make_${ac_make}_set=no;;
2814 esac
2815 rm -f conftest.make
2816 fi
2817 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819 $as_echo "yes" >&6; }
2820 SET_MAKE=
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 SET_MAKE="MAKE=${MAKE-make}"
2825 fi
2826
2827 rm -rf .tst 2>/dev/null
2828 mkdir .tst 2>/dev/null
2829 if test -d .tst; then
2830 am__leading_dot=.
2831 else
2832 am__leading_dot=_
2833 fi
2834 rmdir .tst 2>/dev/null
2835
2836 # Check whether --enable-silent-rules was given.
2837 if test "${enable_silent_rules+set}" = set; then :
2838 enableval=$enable_silent_rules;
2839 fi
2840
2841 case $enable_silent_rules in # (((
2842 yes) AM_DEFAULT_VERBOSITY=0;;
2843 no) AM_DEFAULT_VERBOSITY=1;;
2844 *) AM_DEFAULT_VERBOSITY=1;;
2845 esac
2846 am_make=${MAKE-make}
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2848 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2849 if ${am_cv_make_support_nested_variables+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if $as_echo 'TRUE=$(BAR$(V))
2853 BAR0=false
2854 BAR1=true
2855 V=1
2856 am__doit:
2857 @$(TRUE)
2858 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2859 am_cv_make_support_nested_variables=yes
2860 else
2861 am_cv_make_support_nested_variables=no
2862 fi
2863 fi
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2865 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2866 if test $am_cv_make_support_nested_variables = yes; then
2867 AM_V='$(V)'
2868 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2869 else
2870 AM_V=$AM_DEFAULT_VERBOSITY
2871 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2872 fi
2873 AM_BACKSLASH='\'
2874
2875 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2876 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2877 # is not polluted with repeated "-I."
2878 am__isrc=' -I$(srcdir)'
2879 # test to see if srcdir already configured
2880 if test -f $srcdir/config.status; then
2881 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2882 fi
2883 fi
2884
2885 # test whether we have cygpath
2886 if test -z "$CYGPATH_W"; then
2887 if (cygpath --version) >/dev/null 2>/dev/null; then
2888 CYGPATH_W='cygpath -w'
2889 else
2890 CYGPATH_W=echo
2891 fi
2892 fi
2893
2894
2895 # Define the identity of the package.
2896 PACKAGE='lua-lxc'
2897 VERSION='3.0.2'
2898
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE "$PACKAGE"
2902 _ACEOF
2903
2904
2905 cat >>confdefs.h <<_ACEOF
2906 #define VERSION "$VERSION"
2907 _ACEOF
2908
2909 # Some tools Automake needs.
2910
2911 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2912
2913
2914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2915
2916
2917 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2918
2919
2920 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2921
2922
2923 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2924
2925 # For better backward compatibility. To be removed once Automake 1.9.x
2926 # dies out for good. For more background, see:
2927 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2928 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2929 mkdir_p='$(MKDIR_P)'
2930
2931 # We need awk for the "check" target (and possibly the TAP driver). The
2932 # system "awk" is bad on some platforms.
2933 # Always define AMTAR for backward compatibility. Yes, it's still used
2934 # in the wild :-( We should find a proper way to deprecate it ...
2935 AMTAR='$${TAR-tar}'
2936
2937
2938 # We'll loop over all known methods to create a tar archive until one works.
2939 _am_tools='gnutar pax cpio none'
2940
2941 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2942
2943
2944
2945
2946
2947
2948 # POSIX will say in a future version that running "rm -f" with no argument
2949 # is OK; and we want to be able to make that assumption in our Makefile
2950 # recipes. So use an aggressive probe to check that the usage we want is
2951 # actually supported "in the wild" to an acceptable degree.
2952 # See automake bug#10828.
2953 # To make any issue more visible, cause the running configure to be aborted
2954 # by default if the 'rm' program in use doesn't match our expectations; the
2955 # user can still override this though.
2956 if rm -f && rm -fr && rm -rf; then : OK; else
2957 cat >&2 <<'END'
2958 Oops!
2959
2960 Your 'rm' program seems unable to run without file operands specified
2961 on the command line, even when the '-f' option is present. This is contrary
2962 to the behaviour of most rm programs out there, and not conforming with
2963 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2964
2965 Please tell [email protected] about your system, including the value
2966 of your $PATH and any error possibly output before this message. This
2967 can help us improve future automake versions.
2968
2969 END
2970 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2971 echo 'Configuration will proceed anyway, since you have set the' >&2
2972 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2973 echo >&2
2974 else
2975 cat >&2 <<'END'
2976 Aborting the configuration process, to ensure you take notice of the issue.
2977
2978 You can download and install GNU coreutils to get an 'rm' implementation
2979 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2980
2981 If you want to complete the configuration process using your problematic
2982 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2983 to "yes", and re-run configure.
2984
2985 END
2986 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2987 fi
2988 fi
2989
2990 # Make sure we can run config.sub.
2991 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2992 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2995 $as_echo_n "checking build system type... " >&6; }
2996 if ${ac_cv_build+:} false; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 ac_build_alias=$build_alias
3000 test "x$ac_build_alias" = x &&
3001 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3002 test "x$ac_build_alias" = x &&
3003 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3004 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3005 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3006
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3009 $as_echo "$ac_cv_build" >&6; }
3010 case $ac_cv_build in
3011 *-*-*) ;;
3012 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3013 esac
3014 build=$ac_cv_build
3015 ac_save_IFS=$IFS; IFS='-'
3016 set x $ac_cv_build
3017 shift
3018 build_cpu=$1
3019 build_vendor=$2
3020 shift; shift
3021 # Remember, the first character of IFS is used to create $*,
3022 # except with old shells:
3023 build_os=$*
3024 IFS=$ac_save_IFS
3025 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3026
3027
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3029 $as_echo_n "checking host system type... " >&6; }
3030 if ${ac_cv_host+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test "x$host_alias" = x; then
3034 ac_cv_host=$ac_cv_build
3035 else
3036 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3037 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3038 fi
3039
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3042 $as_echo "$ac_cv_host" >&6; }
3043 case $ac_cv_host in
3044 *-*-*) ;;
3045 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3046 esac
3047 host=$ac_cv_host
3048 ac_save_IFS=$IFS; IFS='-'
3049 set x $ac_cv_host
3050 shift
3051 host_cpu=$1
3052 host_vendor=$2
3053 shift; shift
3054 # Remember, the first character of IFS is used to create $*,
3055 # except with old shells:
3056 host_os=$*
3057 IFS=$ac_save_IFS
3058 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3059
3060
3061 DEPDIR="${am__leading_dot}deps"
3062
3063 ac_config_commands="$ac_config_commands depfiles"
3064
3065
3066 am_make=${MAKE-make}
3067 cat > confinc << 'END'
3068 am__doit:
3069 @echo this is the am__doit target
3070 .PHONY: am__doit
3071 END
3072 # If we don't find an include directive, just comment out the code.
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3074 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3075 am__include="#"
3076 am__quote=
3077 _am_result=none
3078 # First try GNU make style include.
3079 echo "include confinc" > confmf
3080 # Ignore all kinds of additional output from 'make'.
3081 case `$am_make -s -f confmf 2> /dev/null` in #(
3082 *the\ am__doit\ target*)
3083 am__include=include
3084 am__quote=
3085 _am_result=GNU
3086 ;;
3087 esac
3088 # Now try BSD make style include.
3089 if test "$am__include" = "#"; then
3090 echo '.include "confinc"' > confmf
3091 case `$am_make -s -f confmf 2> /dev/null` in #(
3092 *the\ am__doit\ target*)
3093 am__include=.include
3094 am__quote="\""
3095 _am_result=BSD
3096 ;;
3097 esac
3098 fi
3099
3100
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3102 $as_echo "$_am_result" >&6; }
3103 rm -f confinc confmf
3104
3105 # Check whether --enable-dependency-tracking was given.
3106 if test "${enable_dependency_tracking+set}" = set; then :
3107 enableval=$enable_dependency_tracking;
3108 fi
3109
3110 if test "x$enable_dependency_tracking" != xno; then
3111 am_depcomp="$ac_aux_dir/depcomp"
3112 AMDEPBACKSLASH='\'
3113 am__nodep='_no'
3114 fi
3115 if test "x$enable_dependency_tracking" != xno; then
3116 AMDEP_TRUE=
3117 AMDEP_FALSE='#'
3118 else
3119 AMDEP_TRUE='#'
3120 AMDEP_FALSE=
3121 fi
3122
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_CC+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167 fi
3168 if test -z "$ac_cv_prog_CC"; then
3169 ac_ct_CC=$CC
3170 # Extract the first word of "gcc", so it can be a program name with args.
3171 set dummy gcc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$ac_ct_CC"; then
3178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_ac_ct_CC="gcc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3198 if test -n "$ac_ct_CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3200 $as_echo "$ac_ct_CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206 if test "x$ac_ct_CC" = x; then
3207 CC=""
3208 else
3209 case $cross_compiling:$ac_tool_warned in
3210 yes:)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3214 esac
3215 CC=$ac_ct_CC
3216 fi
3217 else
3218 CC="$ac_cv_prog_CC"
3219 fi
3220
3221 if test -z "$CC"; then
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}cc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_CC+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_CC="${ac_tool_prefix}cc"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 break 2
3243 fi
3244 done
3245 done
3246 IFS=$as_save_IFS
3247
3248 fi
3249 fi
3250 CC=$ac_cv_prog_CC
3251 if test -n "$CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253 $as_echo "$CC" >&6; }
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 fi
3258
3259
3260 fi
3261 fi
3262 if test -z "$CC"; then
3263 # Extract the first word of "cc", so it can be a program name with args.
3264 set dummy cc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 ac_prog_rejected=no
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3282 ac_prog_rejected=yes
3283 continue
3284 fi
3285 ac_cv_prog_CC="cc"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 if test $ac_prog_rejected = yes; then
3294 # We found a bogon in the path, so make sure we never use it.
3295 set dummy $ac_cv_prog_CC
3296 shift
3297 if test $# != 0; then
3298 # We chose a different compiler from the bogus one.
3299 # However, it has the same basename, so the bogon will be chosen
3300 # first if we set CC to just the basename; use the full file name.
3301 shift
3302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3303 fi
3304 fi
3305 fi
3306 fi
3307 CC=$ac_cv_prog_CC
3308 if test -n "$CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 fi
3315
3316
3317 fi
3318 if test -z "$CC"; then
3319 if test -n "$ac_tool_prefix"; then
3320 for ac_prog in cl.exe
3321 do
3322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_CC+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if test -n "$CC"; then
3330 ac_cv_prog_CC="$CC" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 $as_echo "$CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 fi
3357
3358
3359 test -n "$CC" && break
3360 done
3361 fi
3362 if test -z "$CC"; then
3363 ac_ct_CC=$CC
3364 for ac_prog in cl.exe
3365 do
3366 # Extract the first word of "$ac_prog", so it can be a program name with args.
3367 set dummy $ac_prog; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test -n "$ac_ct_CC"; then
3374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_ac_ct_CC="$ac_prog"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 fi
3392 fi
3393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394 if test -n "$ac_ct_CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3396 $as_echo "$ac_ct_CC" >&6; }
3397 else
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402
3403 test -n "$ac_ct_CC" && break
3404 done
3405
3406 if test "x$ac_ct_CC" = x; then
3407 CC=""
3408 else
3409 case $cross_compiling:$ac_tool_warned in
3410 yes:)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3413 ac_tool_warned=yes ;;
3414 esac
3415 CC=$ac_ct_CC
3416 fi
3417 fi
3418
3419 fi
3420
3421
3422 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error $? "no acceptable C compiler found in \$PATH
3425 See \`config.log' for more details" "$LINENO" 5; }
3426
3427 # Provide some information about the compiler.
3428 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3429 set X $ac_compile
3430 ac_compiler=$2
3431 for ac_option in --version -v -V -qversion; do
3432 { { ac_try="$ac_compiler $ac_option >&5"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3440 ac_status=$?
3441 if test -s conftest.err; then
3442 sed '10a\
3443 ... rest of stderr output deleted ...
3444 10q' conftest.err >conftest.er1
3445 cat conftest.er1 >&5
3446 fi
3447 rm -f conftest.er1 conftest.err
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }
3450 done
3451
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 ac_clean_files_save=$ac_clean_files
3464 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3465 # Try to create an executable without -o first, disregard a.out.
3466 # It will help us diagnose broken compilers, and finding out an intuition
3467 # of exeext.
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3469 $as_echo_n "checking whether the C compiler works... " >&6; }
3470 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3471
3472 # The possible output files:
3473 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3474
3475 ac_rmfiles=
3476 for ac_file in $ac_files
3477 do
3478 case $ac_file in
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3481 esac
3482 done
3483 rm -f $ac_rmfiles
3484
3485 if { { ac_try="$ac_link_default"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_link_default") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; then :
3496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3498 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3499 # so that the user can short-circuit this test for compilers unknown to
3500 # Autoconf.
3501 for ac_file in $ac_files ''
3502 do
3503 test -f "$ac_file" || continue
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3506 ;;
3507 [ab].out )
3508 # We found the default executable, but exeext='' is most
3509 # certainly right.
3510 break;;
3511 *.* )
3512 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3513 then :; else
3514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515 fi
3516 # We set ac_cv_exeext here because the later test for it is not
3517 # safe: cross compilers may not add the suffix if given an `-o'
3518 # argument, so we may need to know it at that point already.
3519 # Even if this section looks crufty: it has the advantage of
3520 # actually working.
3521 break;;
3522 * )
3523 break;;
3524 esac
3525 done
3526 test "$ac_cv_exeext" = no && ac_cv_exeext=
3527
3528 else
3529 ac_file=''
3530 fi
3531 if test -z "$ac_file"; then :
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 $as_echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error 77 "C compiler cannot create executables
3540 See \`config.log' for more details" "$LINENO" 5; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543 $as_echo "yes" >&6; }
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3546 $as_echo_n "checking for C compiler default output file name... " >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3548 $as_echo "$ac_file" >&6; }
3549 ac_exeext=$ac_cv_exeext
3550
3551 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3552 ac_clean_files=$ac_clean_files_save
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3554 $as_echo_n "checking for suffix of executables... " >&6; }
3555 if { { ac_try="$ac_link"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; then :
3566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3568 # work properly (i.e., refer to `conftest.exe'), while it won't with
3569 # `rm'.
3570 for ac_file in conftest.exe conftest conftest.*; do
3571 test -f "$ac_file" || continue
3572 case $ac_file in
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3574 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3575 break;;
3576 * ) break;;
3577 esac
3578 done
3579 else
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3583 See \`config.log' for more details" "$LINENO" 5; }
3584 fi
3585 rm -f conftest conftest$ac_cv_exeext
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3587 $as_echo "$ac_cv_exeext" >&6; }
3588
3589 rm -f conftest.$ac_ext
3590 EXEEXT=$ac_cv_exeext
3591 ac_exeext=$EXEEXT
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594 #include <stdio.h>
3595 int
3596 main ()
3597 {
3598 FILE *f = fopen ("conftest.out", "w");
3599 return ferror (f) || fclose (f) != 0;
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 ac_clean_files="$ac_clean_files conftest.out"
3606 # Check that the compiler produces executables we can run. If not, either
3607 # the compiler is broken, or we cross compile.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3609 $as_echo_n "checking whether we are cross compiling... " >&6; }
3610 if test "$cross_compiling" != yes; then
3611 { { ac_try="$ac_link"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }
3622 if { ac_try='./conftest$ac_cv_exeext'
3623 { { case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_try") 2>&5
3630 ac_status=$?
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }; }; then
3633 cross_compiling=no
3634 else
3635 if test "$cross_compiling" = maybe; then
3636 cross_compiling=yes
3637 else
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error $? "cannot run C compiled programs.
3641 If you meant to cross compile, use \`--host'.
3642 See \`config.log' for more details" "$LINENO" 5; }
3643 fi
3644 fi
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3647 $as_echo "$cross_compiling" >&6; }
3648
3649 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3650 ac_clean_files=$ac_clean_files_save
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3652 $as_echo_n "checking for suffix of object files... " >&6; }
3653 if ${ac_cv_objext+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 rm -f conftest.o conftest.obj
3668 if { { ac_try="$ac_compile"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_compile") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; then :
3679 for ac_file in conftest.o conftest.obj conftest.*; do
3680 test -f "$ac_file" || continue;
3681 case $ac_file in
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3684 break;;
3685 esac
3686 done
3687 else
3688 $as_echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error $? "cannot compute suffix of object files: cannot compile
3694 See \`config.log' for more details" "$LINENO" 5; }
3695 fi
3696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3699 $as_echo "$ac_cv_objext" >&6; }
3700 OBJEXT=$ac_cv_objext
3701 ac_objext=$OBJEXT
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3703 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3704 if ${ac_cv_c_compiler_gnu+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main ()
3712 {
3713 #ifndef __GNUC__
3714 choke me
3715 #endif
3716
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_compiler_gnu=yes
3723 else
3724 ac_compiler_gnu=no
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3728
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3732 if test $ac_compiler_gnu = yes; then
3733 GCC=yes
3734 else
3735 GCC=
3736 fi
3737 ac_test_CFLAGS=${CFLAGS+set}
3738 ac_save_CFLAGS=$CFLAGS
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3741 if ${ac_cv_prog_cc_g+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 ac_save_c_werror_flag=$ac_c_werror_flag
3745 ac_c_werror_flag=yes
3746 ac_cv_prog_cc_g=no
3747 CFLAGS="-g"
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 int
3752 main ()
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_g=yes
3761 else
3762 CFLAGS=""
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765
3766 int
3767 main ()
3768 {
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775
3776 else
3777 ac_c_werror_flag=$ac_save_c_werror_flag
3778 CFLAGS="-g"
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_prog_cc_g=yes
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_c_werror_flag=$ac_save_c_werror_flag
3799 fi
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3801 $as_echo "$ac_cv_prog_cc_g" >&6; }
3802 if test "$ac_test_CFLAGS" = set; then
3803 CFLAGS=$ac_save_CFLAGS
3804 elif test $ac_cv_prog_cc_g = yes; then
3805 if test "$GCC" = yes; then
3806 CFLAGS="-g -O2"
3807 else
3808 CFLAGS="-g"
3809 fi
3810 else
3811 if test "$GCC" = yes; then
3812 CFLAGS="-O2"
3813 else
3814 CFLAGS=
3815 fi
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3819 if ${ac_cv_prog_cc_c89+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 ac_cv_prog_cc_c89=no
3823 ac_save_CC=$CC
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826 #include <stdarg.h>
3827 #include <stdio.h>
3828 struct stat;
3829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3830 struct buf { int x; };
3831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3832 static char *e (p, i)
3833 char **p;
3834 int i;
3835 {
3836 return p[i];
3837 }
3838 static char *f (char * (*g) (char **, int), char **p, ...)
3839 {
3840 char *s;
3841 va_list v;
3842 va_start (v,p);
3843 s = g (p, va_arg (v,int));
3844 va_end (v);
3845 return s;
3846 }
3847
3848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3849 function prototypes and stuff, but not '\xHH' hex character constants.
3850 These don't provoke an error unfortunately, instead are silently treated
3851 as 'x'. The following induces an error, until -std is added to get
3852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3853 array size at least. It's necessary to write '\x00'==0 to get something
3854 that's true only with -std. */
3855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3856
3857 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3858 inside strings and character constants. */
3859 #define FOO(x) 'x'
3860 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3861
3862 int test (int i, double x);
3863 struct s1 {int (*f) (int a);};
3864 struct s2 {int (*f) (double a);};
3865 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3866 int argc;
3867 char **argv;
3868 int
3869 main ()
3870 {
3871 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3878 do
3879 CC="$ac_save_CC $ac_arg"
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_cv_prog_cc_c89=$ac_arg
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext
3884 test "x$ac_cv_prog_cc_c89" != "xno" && break
3885 done
3886 rm -f conftest.$ac_ext
3887 CC=$ac_save_CC
3888
3889 fi
3890 # AC_CACHE_VAL
3891 case "x$ac_cv_prog_cc_c89" in
3892 x)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3894 $as_echo "none needed" >&6; } ;;
3895 xno)
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3897 $as_echo "unsupported" >&6; } ;;
3898 *)
3899 CC="$CC $ac_cv_prog_cc_c89"
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3902 esac
3903 if test "x$ac_cv_prog_cc_c89" != xno; then :
3904
3905 fi
3906
3907 ac_ext=c
3908 ac_cpp='$CPP $CPPFLAGS'
3909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912
3913 ac_ext=c
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3919 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3920 if ${am_cv_prog_cc_c_o+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925
3926 int
3927 main ()
3928 {
3929
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 # Make sure it works both with $CC and with simple cc.
3935 # Following AC_PROG_CC_C_O, we do the test twice because some
3936 # compilers refuse to overwrite an existing .o file with -o,
3937 # though they will create one.
3938 am_cv_prog_cc_c_o=yes
3939 for am_i in 1 2; do
3940 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3941 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } \
3945 && test -f conftest2.$ac_objext; then
3946 : OK
3947 else
3948 am_cv_prog_cc_c_o=no
3949 break
3950 fi
3951 done
3952 rm -f core conftest*
3953 unset am_i
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3956 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3957 if test "$am_cv_prog_cc_c_o" != yes; then
3958 # Losing compiler, so override with the script.
3959 # FIXME: It is wrong to rewrite CC.
3960 # But if we don't then we get into trouble of one sort or another.
3961 # A longer-term fix would be to have automake use am__CC in this case,
3962 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3963 CC="$am_aux_dir/compile $CC"
3964 fi
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970
3971
3972 depcc="$CC" am_compiler_list=
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3975 $as_echo_n "checking dependency style of $depcc... " >&6; }
3976 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3980 # We make a subdir and do the tests there. Otherwise we can end up
3981 # making bogus files that we don't know about and never remove. For
3982 # instance it was reported that on HP-UX the gcc test will end up
3983 # making a dummy file named 'D' -- because '-MD' means "put the output
3984 # in D".
3985 rm -rf conftest.dir
3986 mkdir conftest.dir
3987 # Copy depcomp to subdir because otherwise we won't find it if we're
3988 # using a relative directory.
3989 cp "$am_depcomp" conftest.dir
3990 cd conftest.dir
3991 # We will build objects and dependencies in a subdirectory because
3992 # it helps to detect inapplicable dependency modes. For instance
3993 # both Tru64's cc and ICC support -MD to output dependencies as a
3994 # side effect of compilation, but ICC will put the dependencies in
3995 # the current directory while Tru64 will put them in the object
3996 # directory.
3997 mkdir sub
3998
3999 am_cv_CC_dependencies_compiler_type=none
4000 if test "$am_compiler_list" = ""; then
4001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4002 fi
4003 am__universal=false
4004 case " $depcc " in #(
4005 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4006 esac
4007
4008 for depmode in $am_compiler_list; do
4009 # Setup a source with many dependencies, because some compilers
4010 # like to wrap large dependency lists on column 80 (with \), and
4011 # we should not choose a depcomp mode which is confused by this.
4012 #
4013 # We need to recreate these files for each test, as the compiler may
4014 # overwrite some of them when testing with obscure command lines.
4015 # This happens at least with the AIX C compiler.
4016 : > sub/conftest.c
4017 for i in 1 2 3 4 5 6; do
4018 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4019 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4020 # Solaris 10 /bin/sh.
4021 echo '/* dummy */' > sub/conftst$i.h
4022 done
4023 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4024
4025 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4026 # mode. It turns out that the SunPro C++ compiler does not properly
4027 # handle '-M -o', and we need to detect this. Also, some Intel
4028 # versions had trouble with output in subdirs.
4029 am__obj=sub/conftest.${OBJEXT-o}
4030 am__minus_obj="-o $am__obj"
4031 case $depmode in
4032 gcc)
4033 # This depmode causes a compiler race in universal mode.
4034 test "$am__universal" = false || continue
4035 ;;
4036 nosideeffect)
4037 # After this tag, mechanisms are not by side-effect, so they'll
4038 # only be used when explicitly requested.
4039 if test "x$enable_dependency_tracking" = xyes; then
4040 continue
4041 else
4042 break
4043 fi
4044 ;;
4045 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4046 # This compiler won't grok '-c -o', but also, the minuso test has
4047 # not run yet. These depmodes are late enough in the game, and
4048 # so weak that their functioning should not be impacted.
4049 am__obj=conftest.${OBJEXT-o}
4050 am__minus_obj=
4051 ;;
4052 none) break ;;
4053 esac
4054 if depmode=$depmode \
4055 source=sub/conftest.c object=$am__obj \
4056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4057 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4058 >/dev/null 2>conftest.err &&
4059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4061 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4063 # icc doesn't choke on unknown options, it will just issue warnings
4064 # or remarks (even with -Werror). So we grep stderr for any message
4065 # that says an option was ignored or not supported.
4066 # When given -MP, icc 7.0 and 7.1 complain thusly:
4067 # icc: Command line warning: ignoring option '-M'; no argument required
4068 # The diagnosis changed in icc 8.0:
4069 # icc: Command line remark: option '-MP' not supported
4070 if (grep 'ignoring option' conftest.err ||
4071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4072 am_cv_CC_dependencies_compiler_type=$depmode
4073 break
4074 fi
4075 fi
4076 done
4077
4078 cd ..
4079 rm -rf conftest.dir
4080 else
4081 am_cv_CC_dependencies_compiler_type=none
4082 fi
4083
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4086 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4087 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4088
4089 if
4090 test "x$enable_dependency_tracking" != xno \
4091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4092 am__fastdepCC_TRUE=
4093 am__fastdepCC_FALSE='#'
4094 else
4095 am__fastdepCC_TRUE='#'
4096 am__fastdepCC_FALSE=
4097 fi
4098
4099
4100
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4108 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4109 # On Suns, sometimes $CPP names a directory.
4110 if test -n "$CPP" && test -d "$CPP"; then
4111 CPP=
4112 fi
4113 if test -z "$CPP"; then
4114 if ${ac_cv_prog_CPP+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 # Double quotes because CPP needs to be expanded
4118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4119 do
4120 ac_preproc_ok=false
4121 for ac_c_preproc_warn_flag in '' yes
4122 do
4123 # Use a header file that comes with gcc, so configuring glibc
4124 # with a fresh cross-compiler works.
4125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126 # <limits.h> exists even on freestanding compilers.
4127 # On the NeXT, cc -E runs the code through the compiler's parser,
4128 # not just through cpp. "Syntax error" is here to catch this case.
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131 #ifdef __STDC__
4132 # include <limits.h>
4133 #else
4134 # include <assert.h>
4135 #endif
4136 Syntax error
4137 _ACEOF
4138 if ac_fn_c_try_cpp "$LINENO"; then :
4139
4140 else
4141 # Broken: fails on valid input.
4142 continue
4143 fi
4144 rm -f conftest.err conftest.i conftest.$ac_ext
4145
4146 # OK, works on sane cases. Now check whether nonexistent headers
4147 # can be detected and how.
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <ac_nonexistent.h>
4151 _ACEOF
4152 if ac_fn_c_try_cpp "$LINENO"; then :
4153 # Broken: success on invalid input.
4154 continue
4155 else
4156 # Passes both tests.
4157 ac_preproc_ok=:
4158 break
4159 fi
4160 rm -f conftest.err conftest.i conftest.$ac_ext
4161
4162 done
4163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4164 rm -f conftest.i conftest.err conftest.$ac_ext
4165 if $ac_preproc_ok; then :
4166 break
4167 fi
4168
4169 done
4170 ac_cv_prog_CPP=$CPP
4171
4172 fi
4173 CPP=$ac_cv_prog_CPP
4174 else
4175 ac_cv_prog_CPP=$CPP
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4178 $as_echo "$CPP" >&6; }
4179 ac_preproc_ok=false
4180 for ac_c_preproc_warn_flag in '' yes
4181 do
4182 # Use a header file that comes with gcc, so configuring glibc
4183 # with a fresh cross-compiler works.
4184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185 # <limits.h> exists even on freestanding compilers.
4186 # On the NeXT, cc -E runs the code through the compiler's parser,
4187 # not just through cpp. "Syntax error" is here to catch this case.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #ifdef __STDC__
4191 # include <limits.h>
4192 #else
4193 # include <assert.h>
4194 #endif
4195 Syntax error
4196 _ACEOF
4197 if ac_fn_c_try_cpp "$LINENO"; then :
4198
4199 else
4200 # Broken: fails on valid input.
4201 continue
4202 fi
4203 rm -f conftest.err conftest.i conftest.$ac_ext
4204
4205 # OK, works on sane cases. Now check whether nonexistent headers
4206 # can be detected and how.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <ac_nonexistent.h>
4210 _ACEOF
4211 if ac_fn_c_try_cpp "$LINENO"; then :
4212 # Broken: success on invalid input.
4213 continue
4214 else
4215 # Passes both tests.
4216 ac_preproc_ok=:
4217 break
4218 fi
4219 rm -f conftest.err conftest.i conftest.$ac_ext
4220
4221 done
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.i conftest.err conftest.$ac_ext
4224 if $ac_preproc_ok; then :
4225
4226 else
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4230 See \`config.log' for more details" "$LINENO" 5; }
4231 fi
4232
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4241 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4242 if ${ac_cv_path_GREP+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -z "$GREP"; then
4246 ac_path_GREP_found=false
4247 # Loop through the user's path and test for each of PROGNAME-LIST
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4250 do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_prog in grep ggrep; do
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4256 as_fn_executable_p "$ac_path_GREP" || continue
4257 # Check for GNU ac_path_GREP and select it if it is found.
4258 # Check for GNU $ac_path_GREP
4259 case `"$ac_path_GREP" --version 2>&1` in
4260 *GNU*)
4261 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4262 *)
4263 ac_count=0
4264 $as_echo_n 0123456789 >"conftest.in"
4265 while :
4266 do
4267 cat "conftest.in" "conftest.in" >"conftest.tmp"
4268 mv "conftest.tmp" "conftest.in"
4269 cp "conftest.in" "conftest.nl"
4270 $as_echo 'GREP' >> "conftest.nl"
4271 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4273 as_fn_arith $ac_count + 1 && ac_count=$as_val
4274 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4275 # Best one so far, save it but keep looking for a better one
4276 ac_cv_path_GREP="$ac_path_GREP"
4277 ac_path_GREP_max=$ac_count
4278 fi
4279 # 10*(2^10) chars as input seems more than enough
4280 test $ac_count -gt 10 && break
4281 done
4282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4283 esac
4284
4285 $ac_path_GREP_found && break 3
4286 done
4287 done
4288 done
4289 IFS=$as_save_IFS
4290 if test -z "$ac_cv_path_GREP"; then
4291 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4292 fi
4293 else
4294 ac_cv_path_GREP=$GREP
4295 fi
4296
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4299 $as_echo "$ac_cv_path_GREP" >&6; }
4300 GREP="$ac_cv_path_GREP"
4301
4302
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4304 $as_echo_n "checking for egrep... " >&6; }
4305 if ${ac_cv_path_EGREP+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4309 then ac_cv_path_EGREP="$GREP -E"
4310 else
4311 if test -z "$EGREP"; then
4312 ac_path_EGREP_found=false
4313 # Loop through the user's path and test for each of PROGNAME-LIST
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_prog in egrep; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4322 as_fn_executable_p "$ac_path_EGREP" || continue
4323 # Check for GNU ac_path_EGREP and select it if it is found.
4324 # Check for GNU $ac_path_EGREP
4325 case `"$ac_path_EGREP" --version 2>&1` in
4326 *GNU*)
4327 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4328 *)
4329 ac_count=0
4330 $as_echo_n 0123456789 >"conftest.in"
4331 while :
4332 do
4333 cat "conftest.in" "conftest.in" >"conftest.tmp"
4334 mv "conftest.tmp" "conftest.in"
4335 cp "conftest.in" "conftest.nl"
4336 $as_echo 'EGREP' >> "conftest.nl"
4337 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4339 as_fn_arith $ac_count + 1 && ac_count=$as_val
4340 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4341 # Best one so far, save it but keep looking for a better one
4342 ac_cv_path_EGREP="$ac_path_EGREP"
4343 ac_path_EGREP_max=$ac_count
4344 fi
4345 # 10*(2^10) chars as input seems more than enough
4346 test $ac_count -gt 10 && break
4347 done
4348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4349 esac
4350
4351 $ac_path_EGREP_found && break 3
4352 done
4353 done
4354 done
4355 IFS=$as_save_IFS
4356 if test -z "$ac_cv_path_EGREP"; then
4357 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4358 fi
4359 else
4360 ac_cv_path_EGREP=$EGREP
4361 fi
4362
4363 fi
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4366 $as_echo "$ac_cv_path_EGREP" >&6; }
4367 EGREP="$ac_cv_path_EGREP"
4368
4369
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4371 $as_echo_n "checking for ANSI C header files... " >&6; }
4372 if ${ac_cv_header_stdc+:} false; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 #include <stdlib.h>
4378 #include <stdarg.h>
4379 #include <string.h>
4380 #include <float.h>
4381
4382 int
4383 main ()
4384 {
4385
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_header_stdc=yes
4392 else
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396
4397 if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #include <string.h>
4402
4403 _ACEOF
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405 $EGREP "memchr" >/dev/null 2>&1; then :
4406
4407 else
4408 ac_cv_header_stdc=no
4409 fi
4410 rm -f conftest*
4411
4412 fi
4413
4414 if test $ac_cv_header_stdc = yes; then
4415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <stdlib.h>
4419
4420 _ACEOF
4421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4422 $EGREP "free" >/dev/null 2>&1; then :
4423
4424 else
4425 ac_cv_header_stdc=no
4426 fi
4427 rm -f conftest*
4428
4429 fi
4430
4431 if test $ac_cv_header_stdc = yes; then
4432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4433 if test "$cross_compiling" = yes; then :
4434 :
4435 else
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #include <ctype.h>
4439 #include <stdlib.h>
4440 #if ((' ' & 0x0FF) == 0x020)
4441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4443 #else
4444 # define ISLOWER(c) \
4445 (('a' <= (c) && (c) <= 'i') \
4446 || ('j' <= (c) && (c) <= 'r') \
4447 || ('s' <= (c) && (c) <= 'z'))
4448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4449 #endif
4450
4451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4452 int
4453 main ()
4454 {
4455 int i;
4456 for (i = 0; i < 256; i++)
4457 if (XOR (islower (i), ISLOWER (i))
4458 || toupper (i) != TOUPPER (i))
4459 return 2;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_run "$LINENO"; then :
4464
4465 else
4466 ac_cv_header_stdc=no
4467 fi
4468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4469 conftest.$ac_objext conftest.beam conftest.$ac_ext
4470 fi
4471
4472 fi
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4475 $as_echo "$ac_cv_header_stdc" >&6; }
4476 if test $ac_cv_header_stdc = yes; then
4477
4478 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4479
4480 fi
4481
4482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4484 inttypes.h stdint.h unistd.h
4485 do :
4486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4488 "
4489 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4490 cat >>confdefs.h <<_ACEOF
4491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4492 _ACEOF
4493
4494 fi
4495
4496 done
4497
4498
4499
4500 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4501 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4502 MINIX=yes
4503 else
4504 MINIX=
4505 fi
4506
4507
4508 if test "$MINIX" = yes; then
4509
4510 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4511
4512
4513 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4514
4515
4516 $as_echo "#define _MINIX 1" >>confdefs.h
4517
4518 fi
4519
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4522 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4523 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528
4529 # define __EXTENSIONS__ 1
4530 $ac_includes_default
4531 int
4532 main ()
4533 {
4534
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 ac_cv_safe_to_define___extensions__=yes
4541 else
4542 ac_cv_safe_to_define___extensions__=no
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4547 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4548 test $ac_cv_safe_to_define___extensions__ = yes &&
4549 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4550
4551 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4552
4553 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4554
4555 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4556
4557 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4558
4559
4560
4561
4562 # libtool
4563 case `pwd` in
4564 *\ * | *\ *)
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4566 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4567 esac
4568
4569
4570
4571 macro_version='2.4.6'
4572 macro_revision='2.4.6'
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586 ltmain=$ac_aux_dir/ltmain.sh
4587
4588 # Backslashify metacharacters that are still active within
4589 # double-quoted strings.
4590 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4591
4592 # Same as above, but do not quote variable references.
4593 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4594
4595 # Sed substitution to delay expansion of an escaped shell variable in a
4596 # double_quote_subst'ed string.
4597 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4598
4599 # Sed substitution to delay expansion of an escaped single quote.
4600 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4601
4602 # Sed substitution to avoid accidental globbing in evaled expressions
4603 no_glob_subst='s/\*/\\\*/g'
4604
4605 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4607 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4610 $as_echo_n "checking how to print strings... " >&6; }
4611 # Test print first, because it will be a builtin if present.
4612 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4613 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4614 ECHO='print -r --'
4615 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4616 ECHO='printf %s\n'
4617 else
4618 # Use this function as a fallback that always works.
4619 func_fallback_echo ()
4620 {
4621 eval 'cat <<_LTECHO_EOF
4622 $1
4623 _LTECHO_EOF'
4624 }
4625 ECHO='func_fallback_echo'
4626 fi
4627
4628 # func_echo_all arg...
4629 # Invoke $ECHO with all args, space-separated.
4630 func_echo_all ()
4631 {
4632 $ECHO ""
4633 }
4634
4635 case $ECHO in
4636 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4637 $as_echo "printf" >&6; } ;;
4638 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4639 $as_echo "print -r" >&6; } ;;
4640 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4641 $as_echo "cat" >&6; } ;;
4642 esac
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4659 if ${ac_cv_path_SED+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4663 for ac_i in 1 2 3 4 5 6 7; do
4664 ac_script="$ac_script$as_nl$ac_script"
4665 done
4666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4667 { ac_script=; unset ac_script;}
4668 if test -z "$SED"; then
4669 ac_path_SED_found=false
4670 # Loop through the user's path and test for each of PROGNAME-LIST
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_prog in sed gsed; do
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4679 as_fn_executable_p "$ac_path_SED" || continue
4680 # Check for GNU ac_path_SED and select it if it is found.
4681 # Check for GNU $ac_path_SED
4682 case `"$ac_path_SED" --version 2>&1` in
4683 *GNU*)
4684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4685 *)
4686 ac_count=0
4687 $as_echo_n 0123456789 >"conftest.in"
4688 while :
4689 do
4690 cat "conftest.in" "conftest.in" >"conftest.tmp"
4691 mv "conftest.tmp" "conftest.in"
4692 cp "conftest.in" "conftest.nl"
4693 $as_echo '' >> "conftest.nl"
4694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696 as_fn_arith $ac_count + 1 && ac_count=$as_val
4697 if test $ac_count -gt ${ac_path_SED_max-0}; then
4698 # Best one so far, save it but keep looking for a better one
4699 ac_cv_path_SED="$ac_path_SED"
4700 ac_path_SED_max=$ac_count
4701 fi
4702 # 10*(2^10) chars as input seems more than enough
4703 test $ac_count -gt 10 && break
4704 done
4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4707
4708 $ac_path_SED_found && break 3
4709 done
4710 done
4711 done
4712 IFS=$as_save_IFS
4713 if test -z "$ac_cv_path_SED"; then
4714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4715 fi
4716 else
4717 ac_cv_path_SED=$SED
4718 fi
4719
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4722 $as_echo "$ac_cv_path_SED" >&6; }
4723 SED="$ac_cv_path_SED"
4724 rm -f conftest.sed
4725
4726 test -z "$SED" && SED=sed
4727 Xsed="$SED -e 1s/^X//"
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4740 $as_echo_n "checking for fgrep... " >&6; }
4741 if ${ac_cv_path_FGREP+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4745 then ac_cv_path_FGREP="$GREP -F"
4746 else
4747 if test -z "$FGREP"; then
4748 ac_path_FGREP_found=false
4749 # Loop through the user's path and test for each of PROGNAME-LIST
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4752 do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_prog in fgrep; do
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4758 as_fn_executable_p "$ac_path_FGREP" || continue
4759 # Check for GNU ac_path_FGREP and select it if it is found.
4760 # Check for GNU $ac_path_FGREP
4761 case `"$ac_path_FGREP" --version 2>&1` in
4762 *GNU*)
4763 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4764 *)
4765 ac_count=0
4766 $as_echo_n 0123456789 >"conftest.in"
4767 while :
4768 do
4769 cat "conftest.in" "conftest.in" >"conftest.tmp"
4770 mv "conftest.tmp" "conftest.in"
4771 cp "conftest.in" "conftest.nl"
4772 $as_echo 'FGREP' >> "conftest.nl"
4773 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775 as_fn_arith $ac_count + 1 && ac_count=$as_val
4776 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4777 # Best one so far, save it but keep looking for a better one
4778 ac_cv_path_FGREP="$ac_path_FGREP"
4779 ac_path_FGREP_max=$ac_count
4780 fi
4781 # 10*(2^10) chars as input seems more than enough
4782 test $ac_count -gt 10 && break
4783 done
4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785 esac
4786
4787 $ac_path_FGREP_found && break 3
4788 done
4789 done
4790 done
4791 IFS=$as_save_IFS
4792 if test -z "$ac_cv_path_FGREP"; then
4793 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4794 fi
4795 else
4796 ac_cv_path_FGREP=$FGREP
4797 fi
4798
4799 fi
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4802 $as_echo "$ac_cv_path_FGREP" >&6; }
4803 FGREP="$ac_cv_path_FGREP"
4804
4805
4806 test -z "$GREP" && GREP=grep
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 # Check whether --with-gnu-ld was given.
4827 if test "${with_gnu_ld+set}" = set; then :
4828 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4829 else
4830 with_gnu_ld=no
4831 fi
4832
4833 ac_prog=ld
4834 if test yes = "$GCC"; then
4835 # Check if gcc -print-prog-name=ld gives a path.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4837 $as_echo_n "checking for ld used by $CC... " >&6; }
4838 case $host in
4839 *-*-mingw*)
4840 # gcc leaves a trailing carriage return, which upsets mingw
4841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4842 *)
4843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4844 esac
4845 case $ac_prog in
4846 # Accept absolute paths.
4847 [\\/]* | ?:[\\/]*)
4848 re_direlt='/[^/][^/]*/\.\./'
4849 # Canonicalize the pathname of ld
4850 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4851 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4852 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4853 done
4854 test -z "$LD" && LD=$ac_prog
4855 ;;
4856 "")
4857 # If it fails, then pretend we aren't using GCC.
4858 ac_prog=ld
4859 ;;
4860 *)
4861 # If it is relative, then search for the first ld in PATH.
4862 with_gnu_ld=unknown
4863 ;;
4864 esac
4865 elif test yes = "$with_gnu_ld"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4867 $as_echo_n "checking for GNU ld... " >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4870 $as_echo_n "checking for non-GNU ld... " >&6; }
4871 fi
4872 if ${lt_cv_path_LD+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -z "$LD"; then
4876 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4877 for ac_dir in $PATH; do
4878 IFS=$lt_save_ifs
4879 test -z "$ac_dir" && ac_dir=.
4880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4881 lt_cv_path_LD=$ac_dir/$ac_prog
4882 # Check to see if the program is GNU ld. I'd rather use --version,
4883 # but apparently some variants of GNU ld only accept -v.
4884 # Break only if it was the GNU/non-GNU ld that we prefer.
4885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4886 *GNU* | *'with BFD'*)
4887 test no != "$with_gnu_ld" && break
4888 ;;
4889 *)
4890 test yes != "$with_gnu_ld" && break
4891 ;;
4892 esac
4893 fi
4894 done
4895 IFS=$lt_save_ifs
4896 else
4897 lt_cv_path_LD=$LD # Let the user override the test with a path.
4898 fi
4899 fi
4900
4901 LD=$lt_cv_path_LD
4902 if test -n "$LD"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4904 $as_echo "$LD" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4911 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4912 if ${lt_cv_prog_gnu_ld+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4916 case `$LD -v 2>&1 </dev/null` in
4917 *GNU* | *'with BFD'*)
4918 lt_cv_prog_gnu_ld=yes
4919 ;;
4920 *)
4921 lt_cv_prog_gnu_ld=no
4922 ;;
4923 esac
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4926 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4927 with_gnu_ld=$lt_cv_prog_gnu_ld
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4938 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4939 if ${lt_cv_path_NM+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$NM"; then
4943 # Let the user override the test.
4944 lt_cv_path_NM=$NM
4945 else
4946 lt_nm_to_check=${ac_tool_prefix}nm
4947 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4948 lt_nm_to_check="$lt_nm_to_check nm"
4949 fi
4950 for lt_tmp_nm in $lt_nm_to_check; do
4951 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4952 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4953 IFS=$lt_save_ifs
4954 test -z "$ac_dir" && ac_dir=.
4955 tmp_nm=$ac_dir/$lt_tmp_nm
4956 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4957 # Check to see if the nm accepts a BSD-compat flag.
4958 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4959 # nm: unknown option "B" ignored
4960 # Tru64's nm complains that /dev/null is an invalid object file
4961 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4962 case $build_os in
4963 mingw*) lt_bad_file=conftest.nm/nofile ;;
4964 *) lt_bad_file=/dev/null ;;
4965 esac
4966 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4967 *$lt_bad_file* | *'Invalid file or object type'*)
4968 lt_cv_path_NM="$tmp_nm -B"
4969 break 2
4970 ;;
4971 *)
4972 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4973 */dev/null*)
4974 lt_cv_path_NM="$tmp_nm -p"
4975 break 2
4976 ;;
4977 *)
4978 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4979 continue # so that we can try to find one that supports BSD flags
4980 ;;
4981 esac
4982 ;;
4983 esac
4984 fi
4985 done
4986 IFS=$lt_save_ifs
4987 done
4988 : ${lt_cv_path_NM=no}
4989 fi
4990 fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4992 $as_echo "$lt_cv_path_NM" >&6; }
4993 if test no != "$lt_cv_path_NM"; then
4994 NM=$lt_cv_path_NM
4995 else
4996 # Didn't find any BSD compatible name lister, look for dumpbin.
4997 if test -n "$DUMPBIN"; then :
4998 # Let the user override the test.
4999 else
5000 if test -n "$ac_tool_prefix"; then
5001 for ac_prog in dumpbin "link -dump"
5002 do
5003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_prog_DUMPBIN+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 if test -n "$DUMPBIN"; then
5011 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024 done
5025 done
5026 IFS=$as_save_IFS
5027
5028 fi
5029 fi
5030 DUMPBIN=$ac_cv_prog_DUMPBIN
5031 if test -n "$DUMPBIN"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5033 $as_echo "$DUMPBIN" >&6; }
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038
5039
5040 test -n "$DUMPBIN" && break
5041 done
5042 fi
5043 if test -z "$DUMPBIN"; then
5044 ac_ct_DUMPBIN=$DUMPBIN
5045 for ac_prog in dumpbin "link -dump"
5046 do
5047 # Extract the first word of "$ac_prog", so it can be a program name with args.
5048 set dummy $ac_prog; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$ac_ct_DUMPBIN"; then
5055 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
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 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5075 if test -n "$ac_ct_DUMPBIN"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5077 $as_echo "$ac_ct_DUMPBIN" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 test -n "$ac_ct_DUMPBIN" && break
5085 done
5086
5087 if test "x$ac_ct_DUMPBIN" = x; then
5088 DUMPBIN=":"
5089 else
5090 case $cross_compiling:$ac_tool_warned in
5091 yes:)
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5094 ac_tool_warned=yes ;;
5095 esac
5096 DUMPBIN=$ac_ct_DUMPBIN
5097 fi
5098 fi
5099
5100 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5101 *COFF*)
5102 DUMPBIN="$DUMPBIN -symbols -headers"
5103 ;;
5104 *)
5105 DUMPBIN=:
5106 ;;
5107 esac
5108 fi
5109
5110 if test : != "$DUMPBIN"; then
5111 NM=$DUMPBIN
5112 fi
5113 fi
5114 test -z "$NM" && NM=nm
5115
5116
5117
5118
5119
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5122 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5123 if ${lt_cv_nm_interface+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 lt_cv_nm_interface="BSD nm"
5127 echo "int some_variable = 0;" > conftest.$ac_ext
5128 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5129 (eval "$ac_compile" 2>conftest.err)
5130 cat conftest.err >&5
5131 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5132 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5133 cat conftest.err >&5
5134 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5135 cat conftest.out >&5
5136 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5137 lt_cv_nm_interface="MS dumpbin"
5138 fi
5139 rm -f conftest*
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5142 $as_echo "$lt_cv_nm_interface" >&6; }
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5145 $as_echo_n "checking whether ln -s works... " >&6; }
5146 LN_S=$as_ln_s
5147 if test "$LN_S" = "ln -s"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149 $as_echo "yes" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5152 $as_echo "no, using $LN_S" >&6; }
5153 fi
5154
5155 # find the maximum length of command line arguments
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5157 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5158 if ${lt_cv_sys_max_cmd_len+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 i=0
5162 teststring=ABCD
5163
5164 case $build_os in
5165 msdosdjgpp*)
5166 # On DJGPP, this test can blow up pretty badly due to problems in libc
5167 # (any single argument exceeding 2000 bytes causes a buffer overrun
5168 # during glob expansion). Even if it were fixed, the result of this
5169 # check would be larger than it should be.
5170 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5171 ;;
5172
5173 gnu*)
5174 # Under GNU Hurd, this test is not required because there is
5175 # no limit to the length of command line arguments.
5176 # Libtool will interpret -1 as no limit whatsoever
5177 lt_cv_sys_max_cmd_len=-1;
5178 ;;
5179
5180 cygwin* | mingw* | cegcc*)
5181 # On Win9x/ME, this test blows up -- it succeeds, but takes
5182 # about 5 minutes as the teststring grows exponentially.
5183 # Worse, since 9x/ME are not pre-emptively multitasking,
5184 # you end up with a "frozen" computer, even though with patience
5185 # the test eventually succeeds (with a max line length of 256k).
5186 # Instead, let's just punt: use the minimum linelength reported by
5187 # all of the supported platforms: 8192 (on NT/2K/XP).
5188 lt_cv_sys_max_cmd_len=8192;
5189 ;;
5190
5191 mint*)
5192 # On MiNT this can take a long time and run out of memory.
5193 lt_cv_sys_max_cmd_len=8192;
5194 ;;
5195
5196 amigaos*)
5197 # On AmigaOS with pdksh, this test takes hours, literally.
5198 # So we just punt and use a minimum line length of 8192.
5199 lt_cv_sys_max_cmd_len=8192;
5200 ;;
5201
5202 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5203 # This has been around since 386BSD, at least. Likely further.
5204 if test -x /sbin/sysctl; then
5205 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5206 elif test -x /usr/sbin/sysctl; then
5207 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5208 else
5209 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5210 fi
5211 # And add a safety zone
5212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5214 ;;
5215
5216 interix*)
5217 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5218 lt_cv_sys_max_cmd_len=196608
5219 ;;
5220
5221 os2*)
5222 # The test takes a long time on OS/2.
5223 lt_cv_sys_max_cmd_len=8192
5224 ;;
5225
5226 osf*)
5227 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5228 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5229 # nice to cause kernel panics so lets avoid the loop below.
5230 # First set a reasonable default.
5231 lt_cv_sys_max_cmd_len=16384
5232 #
5233 if test -x /sbin/sysconfig; then
5234 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5235 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5236 esac
5237 fi
5238 ;;
5239 sco3.2v5*)
5240 lt_cv_sys_max_cmd_len=102400
5241 ;;
5242 sysv5* | sco5v6* | sysv4.2uw2*)
5243 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5244 if test -n "$kargmax"; then
5245 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5246 else
5247 lt_cv_sys_max_cmd_len=32768
5248 fi
5249 ;;
5250 *)
5251 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5252 if test -n "$lt_cv_sys_max_cmd_len" && \
5253 test undefined != "$lt_cv_sys_max_cmd_len"; then
5254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5256 else
5257 # Make teststring a little bigger before we do anything with it.
5258 # a 1K string should be a reasonable start.
5259 for i in 1 2 3 4 5 6 7 8; do
5260 teststring=$teststring$teststring
5261 done
5262 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5263 # If test is not a shell built-in, we'll probably end up computing a
5264 # maximum length that is only half of the actual maximum length, but
5265 # we can't tell.
5266 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5267 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5268 test 17 != "$i" # 1/2 MB should be enough
5269 do
5270 i=`expr $i + 1`
5271 teststring=$teststring$teststring
5272 done
5273 # Only check the string length outside the loop.
5274 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5275 teststring=
5276 # Add a significant safety factor because C++ compilers can tack on
5277 # massive amounts of additional arguments before passing them to the
5278 # linker. It appears as though 1/2 is a usable value.
5279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5280 fi
5281 ;;
5282 esac
5283
5284 fi
5285
5286 if test -n "$lt_cv_sys_max_cmd_len"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5288 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5291 $as_echo "none" >&6; }
5292 fi
5293 max_cmd_len=$lt_cv_sys_max_cmd_len
5294
5295
5296
5297
5298
5299
5300 : ${CP="cp -f"}
5301 : ${MV="mv -f"}
5302 : ${RM="rm -f"}
5303
5304 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5305 lt_unset=unset
5306 else
5307 lt_unset=false
5308 fi
5309
5310
5311
5312
5313
5314 # test EBCDIC or ASCII
5315 case `echo X|tr X '\101'` in
5316 A) # ASCII based system
5317 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5318 lt_SP2NL='tr \040 \012'
5319 lt_NL2SP='tr \015\012 \040\040'
5320 ;;
5321 *) # EBCDIC based system
5322 lt_SP2NL='tr \100 \n'
5323 lt_NL2SP='tr \r\n \100\100'
5324 ;;
5325 esac
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5336 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5337 if ${lt_cv_to_host_file_cmd+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 case $host in
5341 *-*-mingw* )
5342 case $build in
5343 *-*-mingw* ) # actually msys
5344 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5345 ;;
5346 *-*-cygwin* )
5347 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5348 ;;
5349 * ) # otherwise, assume *nix
5350 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5351 ;;
5352 esac
5353 ;;
5354 *-*-cygwin* )
5355 case $build in
5356 *-*-mingw* ) # actually msys
5357 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5358 ;;
5359 *-*-cygwin* )
5360 lt_cv_to_host_file_cmd=func_convert_file_noop
5361 ;;
5362 * ) # otherwise, assume *nix
5363 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5364 ;;
5365 esac
5366 ;;
5367 * ) # unhandled hosts (and "normal" native builds)
5368 lt_cv_to_host_file_cmd=func_convert_file_noop
5369 ;;
5370 esac
5371
5372 fi
5373
5374 to_host_file_cmd=$lt_cv_to_host_file_cmd
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5376 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5377
5378
5379
5380
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5383 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5384 if ${lt_cv_to_tool_file_cmd+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 #assume ordinary cross tools, or native build.
5388 lt_cv_to_tool_file_cmd=func_convert_file_noop
5389 case $host in
5390 *-*-mingw* )
5391 case $build in
5392 *-*-mingw* ) # actually msys
5393 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5394 ;;
5395 esac
5396 ;;
5397 esac
5398
5399 fi
5400
5401 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5403 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5404
5405
5406
5407
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5410 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5411 if ${lt_cv_ld_reload_flag+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 lt_cv_ld_reload_flag='-r'
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5417 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5418 reload_flag=$lt_cv_ld_reload_flag
5419 case $reload_flag in
5420 "" | " "*) ;;
5421 *) reload_flag=" $reload_flag" ;;
5422 esac
5423 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5424 case $host_os in
5425 cygwin* | mingw* | pw32* | cegcc*)
5426 if test yes != "$GCC"; then
5427 reload_cmds=false
5428 fi
5429 ;;
5430 darwin*)
5431 if test yes = "$GCC"; then
5432 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5433 else
5434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5435 fi
5436 ;;
5437 esac
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447 if test -n "$ac_tool_prefix"; then
5448 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5449 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if ${ac_cv_prog_OBJDUMP+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$OBJDUMP"; then
5456 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 fi
5474 fi
5475 OBJDUMP=$ac_cv_prog_OBJDUMP
5476 if test -n "$OBJDUMP"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5478 $as_echo "$OBJDUMP" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483
5484
5485 fi
5486 if test -z "$ac_cv_prog_OBJDUMP"; then
5487 ac_ct_OBJDUMP=$OBJDUMP
5488 # Extract the first word of "objdump", so it can be a program name with args.
5489 set dummy objdump; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -n "$ac_ct_OBJDUMP"; then
5496 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5508 fi
5509 done
5510 done
5511 IFS=$as_save_IFS
5512
5513 fi
5514 fi
5515 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5516 if test -n "$ac_ct_OBJDUMP"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5518 $as_echo "$ac_ct_OBJDUMP" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523
5524 if test "x$ac_ct_OBJDUMP" = x; then
5525 OBJDUMP="false"
5526 else
5527 case $cross_compiling:$ac_tool_warned in
5528 yes:)
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5531 ac_tool_warned=yes ;;
5532 esac
5533 OBJDUMP=$ac_ct_OBJDUMP
5534 fi
5535 else
5536 OBJDUMP="$ac_cv_prog_OBJDUMP"
5537 fi
5538
5539 test -z "$OBJDUMP" && OBJDUMP=objdump
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5550 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5551 if ${lt_cv_deplibs_check_method+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 lt_cv_file_magic_cmd='$MAGIC_CMD'
5555 lt_cv_file_magic_test_file=
5556 lt_cv_deplibs_check_method='unknown'
5557 # Need to set the preceding variable on all platforms that support
5558 # interlibrary dependencies.
5559 # 'none' -- dependencies not supported.
5560 # 'unknown' -- same as none, but documents that we really don't know.
5561 # 'pass_all' -- all dependencies passed with no checks.
5562 # 'test_compile' -- check by making test program.
5563 # 'file_magic [[regex]]' -- check by looking for files in library path
5564 # that responds to the $file_magic_cmd with a given extended regex.
5565 # If you have 'file' or equivalent on your system and you're not sure
5566 # whether 'pass_all' will *always* work, you probably want this one.
5567
5568 case $host_os in
5569 aix[4-9]*)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
5573 beos*)
5574 lt_cv_deplibs_check_method=pass_all
5575 ;;
5576
5577 bsdi[45]*)
5578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5579 lt_cv_file_magic_cmd='/usr/bin/file -L'
5580 lt_cv_file_magic_test_file=/shlib/libc.so
5581 ;;
5582
5583 cygwin*)
5584 # func_win32_libid is a shell function defined in ltmain.sh
5585 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5586 lt_cv_file_magic_cmd='func_win32_libid'
5587 ;;
5588
5589 mingw* | pw32*)
5590 # Base MSYS/MinGW do not provide the 'file' command needed by
5591 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5592 # unless we find 'file', for example because we are cross-compiling.
5593 if ( file / ) >/dev/null 2>&1; then
5594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5595 lt_cv_file_magic_cmd='func_win32_libid'
5596 else
5597 # Keep this pattern in sync with the one in func_win32_libid.
5598 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5599 lt_cv_file_magic_cmd='$OBJDUMP -f'
5600 fi
5601 ;;
5602
5603 cegcc*)
5604 # use the weaker test based on 'objdump'. See mingw*.
5605 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5606 lt_cv_file_magic_cmd='$OBJDUMP -f'
5607 ;;
5608
5609 darwin* | rhapsody*)
5610 lt_cv_deplibs_check_method=pass_all
5611 ;;
5612
5613 freebsd* | dragonfly*)
5614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5615 case $host_cpu in
5616 i*86 )
5617 # Not sure whether the presence of OpenBSD here was a mistake.
5618 # Let's accept both of them until this is cleared up.
5619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5620 lt_cv_file_magic_cmd=/usr/bin/file
5621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5622 ;;
5623 esac
5624 else
5625 lt_cv_deplibs_check_method=pass_all
5626 fi
5627 ;;
5628
5629 haiku*)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632
5633 hpux10.20* | hpux11*)
5634 lt_cv_file_magic_cmd=/usr/bin/file
5635 case $host_cpu in
5636 ia64*)
5637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5638 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5639 ;;
5640 hppa*64*)
5641 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]'
5642 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5643 ;;
5644 *)
5645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5646 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5647 ;;
5648 esac
5649 ;;
5650
5651 interix[3-9]*)
5652 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5654 ;;
5655
5656 irix5* | irix6* | nonstopux*)
5657 case $LD in
5658 *-32|*"-32 ") libmagic=32-bit;;
5659 *-n32|*"-n32 ") libmagic=N32;;
5660 *-64|*"-64 ") libmagic=64-bit;;
5661 *) libmagic=never-match;;
5662 esac
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665
5666 # This must be glibc/ELF.
5667 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670
5671 netbsd* | netbsdelf*-gnu)
5672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5674 else
5675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5676 fi
5677 ;;
5678
5679 newos6*)
5680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5681 lt_cv_file_magic_cmd=/usr/bin/file
5682 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5683 ;;
5684
5685 *nto* | *qnx*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689 openbsd* | bitrig*)
5690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5692 else
5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5694 fi
5695 ;;
5696
5697 osf3* | osf4* | osf5*)
5698 lt_cv_deplibs_check_method=pass_all
5699 ;;
5700
5701 rdos*)
5702 lt_cv_deplibs_check_method=pass_all
5703 ;;
5704
5705 solaris*)
5706 lt_cv_deplibs_check_method=pass_all
5707 ;;
5708
5709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713 sysv4 | sysv4.3*)
5714 case $host_vendor in
5715 motorola)
5716 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]'
5717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5718 ;;
5719 ncr)
5720 lt_cv_deplibs_check_method=pass_all
5721 ;;
5722 sequent)
5723 lt_cv_file_magic_cmd='/bin/file'
5724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5725 ;;
5726 sni)
5727 lt_cv_file_magic_cmd='/bin/file'
5728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5729 lt_cv_file_magic_test_file=/lib/libc.so
5730 ;;
5731 siemens)
5732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734 pc)
5735 lt_cv_deplibs_check_method=pass_all
5736 ;;
5737 esac
5738 ;;
5739
5740 tpf*)
5741 lt_cv_deplibs_check_method=pass_all
5742 ;;
5743 os2*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746 esac
5747
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5750 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5751
5752 file_magic_glob=
5753 want_nocaseglob=no
5754 if test "$build" = "$host"; then
5755 case $host_os in
5756 mingw* | pw32*)
5757 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5758 want_nocaseglob=yes
5759 else
5760 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5761 fi
5762 ;;
5763 esac
5764 fi
5765
5766 file_magic_cmd=$lt_cv_file_magic_cmd
5767 deplibs_check_method=$lt_cv_deplibs_check_method
5768 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_DLLTOOL+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$DLLTOOL"; then
5800 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 DLLTOOL=$ac_cv_prog_DLLTOOL
5820 if test -n "$DLLTOOL"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5822 $as_echo "$DLLTOOL" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828
5829 fi
5830 if test -z "$ac_cv_prog_DLLTOOL"; then
5831 ac_ct_DLLTOOL=$DLLTOOL
5832 # Extract the first word of "dlltool", so it can be a program name with args.
5833 set dummy dlltool; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$ac_ct_DLLTOOL"; then
5840 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5860 if test -n "$ac_ct_DLLTOOL"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5862 $as_echo "$ac_ct_DLLTOOL" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868 if test "x$ac_ct_DLLTOOL" = x; then
5869 DLLTOOL="false"
5870 else
5871 case $cross_compiling:$ac_tool_warned in
5872 yes:)
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5876 esac
5877 DLLTOOL=$ac_ct_DLLTOOL
5878 fi
5879 else
5880 DLLTOOL="$ac_cv_prog_DLLTOOL"
5881 fi
5882
5883 test -z "$DLLTOOL" && DLLTOOL=dlltool
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5895 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5896 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 lt_cv_sharedlib_from_linklib_cmd='unknown'
5900
5901 case $host_os in
5902 cygwin* | mingw* | pw32* | cegcc*)
5903 # two different shell functions defined in ltmain.sh;
5904 # decide which one to use based on capabilities of $DLLTOOL
5905 case `$DLLTOOL --help 2>&1` in
5906 *--identify-strict*)
5907 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5908 ;;
5909 *)
5910 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5911 ;;
5912 esac
5913 ;;
5914 *)
5915 # fallback: assume linklib IS sharedlib
5916 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5917 ;;
5918 esac
5919
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5922 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5923 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5924 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5925
5926
5927
5928
5929
5930
5931
5932 if test -n "$ac_tool_prefix"; then
5933 for ac_prog in ar
5934 do
5935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_prog_AR+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test -n "$AR"; then
5943 ac_cv_prog_AR="$AR" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 AR=$ac_cv_prog_AR
5963 if test -n "$AR"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5965 $as_echo "$AR" >&6; }
5966 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 fi
5970
5971
5972 test -n "$AR" && break
5973 done
5974 fi
5975 if test -z "$AR"; then
5976 ac_ct_AR=$AR
5977 for ac_prog in ar
5978 do
5979 # Extract the first word of "$ac_prog", so it can be a program name with args.
5980 set dummy $ac_prog; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if test -n "$ac_ct_AR"; then
5987 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5991 do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_ac_ct_AR="$ac_prog"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
5999 fi
6000 done
6001 done
6002 IFS=$as_save_IFS
6003
6004 fi
6005 fi
6006 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6007 if test -n "$ac_ct_AR"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6009 $as_echo "$ac_ct_AR" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6013 fi
6014
6015
6016 test -n "$ac_ct_AR" && break
6017 done
6018
6019 if test "x$ac_ct_AR" = x; then
6020 AR="false"
6021 else
6022 case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6027 esac
6028 AR=$ac_ct_AR
6029 fi
6030 fi
6031
6032 : ${AR=ar}
6033 : ${AR_FLAGS=cru}
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6046 $as_echo_n "checking for archiver @FILE support... " >&6; }
6047 if ${lt_cv_ar_at_file+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 lt_cv_ar_at_file=no
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053
6054 int
6055 main ()
6056 {
6057
6058 ;
6059 return 0;
6060 }
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063 echo conftest.$ac_objext > conftest.lst
6064 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6066 (eval $lt_ar_try) 2>&5
6067 ac_status=$?
6068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6069 test $ac_status = 0; }
6070 if test 0 -eq "$ac_status"; then
6071 # Ensure the archiver fails upon bogus file names.
6072 rm -f conftest.$ac_objext libconftest.a
6073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6074 (eval $lt_ar_try) 2>&5
6075 ac_status=$?
6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6077 test $ac_status = 0; }
6078 if test 0 -ne "$ac_status"; then
6079 lt_cv_ar_at_file=@
6080 fi
6081 fi
6082 rm -f conftest.* libconftest.a
6083
6084 fi
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6089 $as_echo "$lt_cv_ar_at_file" >&6; }
6090
6091 if test no = "$lt_cv_ar_at_file"; then
6092 archiver_list_spec=
6093 else
6094 archiver_list_spec=$lt_cv_ar_at_file
6095 fi
6096
6097
6098
6099
6100
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}strip; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_STRIP+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$STRIP"; then
6112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 STRIP=$ac_cv_prog_STRIP
6132 if test -n "$STRIP"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6134 $as_echo "$STRIP" >&6; }
6135 else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_STRIP"; then
6143 ac_ct_STRIP=$STRIP
6144 # Extract the first word of "strip", so it can be a program name with args.
6145 set dummy strip; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$ac_ct_STRIP"; then
6152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_ac_ct_STRIP="strip"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6172 if test -n "$ac_ct_STRIP"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6174 $as_echo "$ac_ct_STRIP" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180 if test "x$ac_ct_STRIP" = x; then
6181 STRIP=":"
6182 else
6183 case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189 STRIP=$ac_ct_STRIP
6190 fi
6191 else
6192 STRIP="$ac_cv_prog_STRIP"
6193 fi
6194
6195 test -z "$STRIP" && STRIP=:
6196
6197
6198
6199
6200
6201
6202 if test -n "$ac_tool_prefix"; then
6203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_RANLIB+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 if test -n "$RANLIB"; then
6211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 RANLIB=$ac_cv_prog_RANLIB
6231 if test -n "$RANLIB"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6233 $as_echo "$RANLIB" >&6; }
6234 else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238
6239
6240 fi
6241 if test -z "$ac_cv_prog_RANLIB"; then
6242 ac_ct_RANLIB=$RANLIB
6243 # Extract the first word of "ranlib", so it can be a program name with args.
6244 set dummy ranlib; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 if test -n "$ac_ct_RANLIB"; then
6251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_ac_ct_RANLIB="ranlib"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6271 if test -n "$ac_ct_RANLIB"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6273 $as_echo "$ac_ct_RANLIB" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279 if test "x$ac_ct_RANLIB" = x; then
6280 RANLIB=":"
6281 else
6282 case $cross_compiling:$ac_tool_warned in
6283 yes:)
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286 ac_tool_warned=yes ;;
6287 esac
6288 RANLIB=$ac_ct_RANLIB
6289 fi
6290 else
6291 RANLIB="$ac_cv_prog_RANLIB"
6292 fi
6293
6294 test -z "$RANLIB" && RANLIB=:
6295
6296
6297
6298
6299
6300
6301 # Determine commands to create old-style static archives.
6302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6303 old_postinstall_cmds='chmod 644 $oldlib'
6304 old_postuninstall_cmds=
6305
6306 if test -n "$RANLIB"; then
6307 case $host_os in
6308 bitrig* | openbsd*)
6309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6310 ;;
6311 *)
6312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6313 ;;
6314 esac
6315 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6316 fi
6317
6318 case $host_os in
6319 darwin*)
6320 lock_old_archive_extraction=yes ;;
6321 *)
6322 lock_old_archive_extraction=no ;;
6323 esac
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 # If no C compiler was specified, use CC.
6364 LTCC=${LTCC-"$CC"}
6365
6366 # If no C compiler flags were specified, use CFLAGS.
6367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6368
6369 # Allow CC to be a program name with arguments.
6370 compiler=$CC
6371
6372
6373 # Check for command to grab the raw symbol name followed by C symbol from nm.
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6375 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6376 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379
6380 # These are sane defaults that work on at least a few old systems.
6381 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6382
6383 # Character class describing NM global symbol codes.
6384 symcode='[BCDEGRST]'
6385
6386 # Regexp to match symbols that can be accessed directly from C.
6387 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6388
6389 # Define system-specific variables.
6390 case $host_os in
6391 aix*)
6392 symcode='[BCDT]'
6393 ;;
6394 cygwin* | mingw* | pw32* | cegcc*)
6395 symcode='[ABCDGISTW]'
6396 ;;
6397 hpux*)
6398 if test ia64 = "$host_cpu"; then
6399 symcode='[ABCDEGRST]'
6400 fi
6401 ;;
6402 irix* | nonstopux*)
6403 symcode='[BCDEGRST]'
6404 ;;
6405 osf*)
6406 symcode='[BCDEGQRST]'
6407 ;;
6408 solaris*)
6409 symcode='[BDRT]'
6410 ;;
6411 sco3.2v5*)
6412 symcode='[DT]'
6413 ;;
6414 sysv4.2uw2*)
6415 symcode='[DT]'
6416 ;;
6417 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6418 symcode='[ABDT]'
6419 ;;
6420 sysv4)
6421 symcode='[DFNSTU]'
6422 ;;
6423 esac
6424
6425 # If we're using GNU nm, then use its standard symbol codes.
6426 case `$NM -V 2>&1` in
6427 *GNU* | *'with BFD'*)
6428 symcode='[ABCDGIRSTW]' ;;
6429 esac
6430
6431 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6432 # Gets list of data symbols to import.
6433 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6434 # Adjust the below global symbol transforms to fixup imported variables.
6435 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6436 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6437 lt_c_name_lib_hook="\
6438 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6439 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6440 else
6441 # Disable hooks by default.
6442 lt_cv_sys_global_symbol_to_import=
6443 lt_cdecl_hook=
6444 lt_c_name_hook=
6445 lt_c_name_lib_hook=
6446 fi
6447
6448 # Transform an extracted symbol line into a proper C declaration.
6449 # Some systems (esp. on ia64) link data and code symbols differently,
6450 # so use this general approach.
6451 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6452 $lt_cdecl_hook\
6453 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6454 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6455
6456 # Transform an extracted symbol line into symbol name and symbol address
6457 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6458 $lt_c_name_hook\
6459 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6460 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6461
6462 # Transform an extracted symbol line into symbol name with lib prefix and
6463 # symbol address.
6464 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6465 $lt_c_name_lib_hook\
6466 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6467 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6468 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6469
6470 # Handle CRLF in mingw tool chain
6471 opt_cr=
6472 case $build_os in
6473 mingw*)
6474 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6475 ;;
6476 esac
6477
6478 # Try without a prefix underscore, then with it.
6479 for ac_symprfx in "" "_"; do
6480
6481 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6482 symxfrm="\\1 $ac_symprfx\\2 \\2"
6483
6484 # Write the raw and C identifiers.
6485 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6486 # Fake it for dumpbin and say T for any non-static function,
6487 # D for any global variable and I for any imported variable.
6488 # Also find C++ and __fastcall symbols from MSVC++,
6489 # which start with @ or ?.
6490 lt_cv_sys_global_symbol_pipe="$AWK '"\
6491 " {last_section=section; section=\$ 3};"\
6492 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6493 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6494 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6495 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6496 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6497 " \$ 0!~/External *\|/{next};"\
6498 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6499 " {if(hide[section]) next};"\
6500 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6501 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6502 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6503 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6504 " ' prfx=^$ac_symprfx"
6505 else
6506 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6507 fi
6508 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6509
6510 # Check to see that the pipe works correctly.
6511 pipe_works=no
6512
6513 rm -f conftest*
6514 cat > conftest.$ac_ext <<_LT_EOF
6515 #ifdef __cplusplus
6516 extern "C" {
6517 #endif
6518 char nm_test_var;
6519 void nm_test_func(void);
6520 void nm_test_func(void){}
6521 #ifdef __cplusplus
6522 }
6523 #endif
6524 int main(){nm_test_var='a';nm_test_func();return(0);}
6525 _LT_EOF
6526
6527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6528 (eval $ac_compile) 2>&5
6529 ac_status=$?
6530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6531 test $ac_status = 0; }; then
6532 # Now try to grab the symbols.
6533 nlist=conftest.nm
6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6535 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6536 ac_status=$?
6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538 test $ac_status = 0; } && test -s "$nlist"; then
6539 # Try sorting and uniquifying the output.
6540 if sort "$nlist" | uniq > "$nlist"T; then
6541 mv -f "$nlist"T "$nlist"
6542 else
6543 rm -f "$nlist"T
6544 fi
6545
6546 # Make sure that we snagged all the symbols we need.
6547 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6548 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6549 cat <<_LT_EOF > conftest.$ac_ext
6550 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6551 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6552 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6553 relocations are performed -- see ld's documentation on pseudo-relocs. */
6554 # define LT_DLSYM_CONST
6555 #elif defined __osf__
6556 /* This system does not cope well with relocations in const data. */
6557 # define LT_DLSYM_CONST
6558 #else
6559 # define LT_DLSYM_CONST const
6560 #endif
6561
6562 #ifdef __cplusplus
6563 extern "C" {
6564 #endif
6565
6566 _LT_EOF
6567 # Now generate the symbol file.
6568 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6569
6570 cat <<_LT_EOF >> conftest.$ac_ext
6571
6572 /* The mapping between symbol names and symbols. */
6573 LT_DLSYM_CONST struct {
6574 const char *name;
6575 void *address;
6576 }
6577 lt__PROGRAM__LTX_preloaded_symbols[] =
6578 {
6579 { "@PROGRAM@", (void *) 0 },
6580 _LT_EOF
6581 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6582 cat <<\_LT_EOF >> conftest.$ac_ext
6583 {0, (void *) 0}
6584 };
6585
6586 /* This works around a problem in FreeBSD linker */
6587 #ifdef FREEBSD_WORKAROUND
6588 static const void *lt_preloaded_setup() {
6589 return lt__PROGRAM__LTX_preloaded_symbols;
6590 }
6591 #endif
6592
6593 #ifdef __cplusplus
6594 }
6595 #endif
6596 _LT_EOF
6597 # Now try linking the two files.
6598 mv conftest.$ac_objext conftstm.$ac_objext
6599 lt_globsym_save_LIBS=$LIBS
6600 lt_globsym_save_CFLAGS=$CFLAGS
6601 LIBS=conftstm.$ac_objext
6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6604 (eval $ac_link) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6608 pipe_works=yes
6609 fi
6610 LIBS=$lt_globsym_save_LIBS
6611 CFLAGS=$lt_globsym_save_CFLAGS
6612 else
6613 echo "cannot find nm_test_func in $nlist" >&5
6614 fi
6615 else
6616 echo "cannot find nm_test_var in $nlist" >&5
6617 fi
6618 else
6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620 fi
6621 else
6622 echo "$progname: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 fi
6625 rm -rf conftest* conftst*
6626
6627 # Do not use the global_symbol_pipe unless it works.
6628 if test yes = "$pipe_works"; then
6629 break
6630 else
6631 lt_cv_sys_global_symbol_pipe=
6632 fi
6633 done
6634
6635 fi
6636
6637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638 lt_cv_sys_global_symbol_to_cdecl=
6639 fi
6640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6642 $as_echo "failed" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6645 $as_echo "ok" >&6; }
6646 fi
6647
6648 # Response file support.
6649 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6650 nm_file_list_spec='@'
6651 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6652 nm_file_list_spec='@'
6653 fi
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6692 $as_echo_n "checking for sysroot... " >&6; }
6693
6694 # Check whether --with-sysroot was given.
6695 if test "${with_sysroot+set}" = set; then :
6696 withval=$with_sysroot;
6697 else
6698 with_sysroot=no
6699 fi
6700
6701
6702 lt_sysroot=
6703 case $with_sysroot in #(
6704 yes)
6705 if test yes = "$GCC"; then
6706 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6707 fi
6708 ;; #(
6709 /*)
6710 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6711 ;; #(
6712 no|'')
6713 ;; #(
6714 *)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6716 $as_echo "$with_sysroot" >&6; }
6717 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6718 ;;
6719 esac
6720
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6722 $as_echo "${lt_sysroot:-no}" >&6; }
6723
6724
6725
6726
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6729 $as_echo_n "checking for a working dd... " >&6; }
6730 if ${ac_cv_path_lt_DD+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 printf 0123456789abcdef0123456789abcdef >conftest.i
6734 cat conftest.i conftest.i >conftest2.i
6735 : ${lt_DD:=$DD}
6736 if test -z "$lt_DD"; then
6737 ac_path_lt_DD_found=false
6738 # Loop through the user's path and test for each of PROGNAME-LIST
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_prog in dd; do
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6747 as_fn_executable_p "$ac_path_lt_DD" || continue
6748 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6749 cmp -s conftest.i conftest.out \
6750 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6751 fi
6752 $ac_path_lt_DD_found && break 3
6753 done
6754 done
6755 done
6756 IFS=$as_save_IFS
6757 if test -z "$ac_cv_path_lt_DD"; then
6758 :
6759 fi
6760 else
6761 ac_cv_path_lt_DD=$lt_DD
6762 fi
6763
6764 rm -f conftest.i conftest2.i conftest.out
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6767 $as_echo "$ac_cv_path_lt_DD" >&6; }
6768
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6771 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6772 if ${lt_cv_truncate_bin+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 printf 0123456789abcdef0123456789abcdef >conftest.i
6776 cat conftest.i conftest.i >conftest2.i
6777 lt_cv_truncate_bin=
6778 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6779 cmp -s conftest.i conftest.out \
6780 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6781 fi
6782 rm -f conftest.i conftest2.i conftest.out
6783 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6786 $as_echo "$lt_cv_truncate_bin" >&6; }
6787
6788
6789
6790
6791
6792
6793
6794 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6795 func_cc_basename ()
6796 {
6797 for cc_temp in $*""; do
6798 case $cc_temp in
6799 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6800 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6801 \-*) ;;
6802 *) break;;
6803 esac
6804 done
6805 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6806 }
6807
6808 # Check whether --enable-libtool-lock was given.
6809 if test "${enable_libtool_lock+set}" = set; then :
6810 enableval=$enable_libtool_lock;
6811 fi
6812
6813 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6814
6815 # Some flags need to be propagated to the compiler or linker for good
6816 # libtool support.
6817 case $host in
6818 ia64-*-hpux*)
6819 # Find out what ABI is being produced by ac_compile, and set mode
6820 # options accordingly.
6821 echo 'int i;' > conftest.$ac_ext
6822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6823 (eval $ac_compile) 2>&5
6824 ac_status=$?
6825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6826 test $ac_status = 0; }; then
6827 case `/usr/bin/file conftest.$ac_objext` in
6828 *ELF-32*)
6829 HPUX_IA64_MODE=32
6830 ;;
6831 *ELF-64*)
6832 HPUX_IA64_MODE=64
6833 ;;
6834 esac
6835 fi
6836 rm -rf conftest*
6837 ;;
6838 *-*-irix6*)
6839 # Find out what ABI is being produced by ac_compile, and set linker
6840 # options accordingly.
6841 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6843 (eval $ac_compile) 2>&5
6844 ac_status=$?
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }; then
6847 if test yes = "$lt_cv_prog_gnu_ld"; then
6848 case `/usr/bin/file conftest.$ac_objext` in
6849 *32-bit*)
6850 LD="${LD-ld} -melf32bsmip"
6851 ;;
6852 *N32*)
6853 LD="${LD-ld} -melf32bmipn32"
6854 ;;
6855 *64-bit*)
6856 LD="${LD-ld} -melf64bmip"
6857 ;;
6858 esac
6859 else
6860 case `/usr/bin/file conftest.$ac_objext` in
6861 *32-bit*)
6862 LD="${LD-ld} -32"
6863 ;;
6864 *N32*)
6865 LD="${LD-ld} -n32"
6866 ;;
6867 *64-bit*)
6868 LD="${LD-ld} -64"
6869 ;;
6870 esac
6871 fi
6872 fi
6873 rm -rf conftest*
6874 ;;
6875
6876 mips64*-*linux*)
6877 # Find out what ABI is being produced by ac_compile, and set linker
6878 # options accordingly.
6879 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6881 (eval $ac_compile) 2>&5
6882 ac_status=$?
6883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6884 test $ac_status = 0; }; then
6885 emul=elf
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *32-bit*)
6888 emul="${emul}32"
6889 ;;
6890 *64-bit*)
6891 emul="${emul}64"
6892 ;;
6893 esac
6894 case `/usr/bin/file conftest.$ac_objext` in
6895 *MSB*)
6896 emul="${emul}btsmip"
6897 ;;
6898 *LSB*)
6899 emul="${emul}ltsmip"
6900 ;;
6901 esac
6902 case `/usr/bin/file conftest.$ac_objext` in
6903 *N32*)
6904 emul="${emul}n32"
6905 ;;
6906 esac
6907 LD="${LD-ld} -m $emul"
6908 fi
6909 rm -rf conftest*
6910 ;;
6911
6912 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6913 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6914 # Find out what ABI is being produced by ac_compile, and set linker
6915 # options accordingly. Note that the listed cases only cover the
6916 # situations where additional linker options are needed (such as when
6917 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6918 # vice versa); the common cases where no linker options are needed do
6919 # not appear in the list.
6920 echo 'int i;' > conftest.$ac_ext
6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922 (eval $ac_compile) 2>&5
6923 ac_status=$?
6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925 test $ac_status = 0; }; then
6926 case `/usr/bin/file conftest.o` in
6927 *32-bit*)
6928 case $host in
6929 x86_64-*kfreebsd*-gnu)
6930 LD="${LD-ld} -m elf_i386_fbsd"
6931 ;;
6932 x86_64-*linux*)
6933 case `/usr/bin/file conftest.o` in
6934 *x86-64*)
6935 LD="${LD-ld} -m elf32_x86_64"
6936 ;;
6937 *)
6938 LD="${LD-ld} -m elf_i386"
6939 ;;
6940 esac
6941 ;;
6942 powerpc64le-*linux*)
6943 LD="${LD-ld} -m elf32lppclinux"
6944 ;;
6945 powerpc64-*linux*)
6946 LD="${LD-ld} -m elf32ppclinux"
6947 ;;
6948 s390x-*linux*)
6949 LD="${LD-ld} -m elf_s390"
6950 ;;
6951 sparc64-*linux*)
6952 LD="${LD-ld} -m elf32_sparc"
6953 ;;
6954 esac
6955 ;;
6956 *64-bit*)
6957 case $host in
6958 x86_64-*kfreebsd*-gnu)
6959 LD="${LD-ld} -m elf_x86_64_fbsd"
6960 ;;
6961 x86_64-*linux*)
6962 LD="${LD-ld} -m elf_x86_64"
6963 ;;
6964 powerpcle-*linux*)
6965 LD="${LD-ld} -m elf64lppc"
6966 ;;
6967 powerpc-*linux*)
6968 LD="${LD-ld} -m elf64ppc"
6969 ;;
6970 s390*-*linux*|s390*-*tpf*)
6971 LD="${LD-ld} -m elf64_s390"
6972 ;;
6973 sparc*-*linux*)
6974 LD="${LD-ld} -m elf64_sparc"
6975 ;;
6976 esac
6977 ;;
6978 esac
6979 fi
6980 rm -rf conftest*
6981 ;;
6982
6983 *-*-sco3.2v5*)
6984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6985 SAVE_CFLAGS=$CFLAGS
6986 CFLAGS="$CFLAGS -belf"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6988 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6989 if ${lt_cv_cc_needs_belf+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 ac_ext=c
6993 ac_cpp='$CPP $CPPFLAGS'
6994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7000
7001 int
7002 main ()
7003 {
7004
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 if ac_fn_c_try_link "$LINENO"; then :
7010 lt_cv_cc_needs_belf=yes
7011 else
7012 lt_cv_cc_needs_belf=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016 ac_ext=c
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7024 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7025 if test yes != "$lt_cv_cc_needs_belf"; then
7026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7027 CFLAGS=$SAVE_CFLAGS
7028 fi
7029 ;;
7030 *-*solaris*)
7031 # Find out what ABI is being produced by ac_compile, and set linker
7032 # options accordingly.
7033 echo 'int i;' > conftest.$ac_ext
7034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7035 (eval $ac_compile) 2>&5
7036 ac_status=$?
7037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038 test $ac_status = 0; }; then
7039 case `/usr/bin/file conftest.o` in
7040 *64-bit*)
7041 case $lt_cv_prog_gnu_ld in
7042 yes*)
7043 case $host in
7044 i?86-*-solaris*|x86_64-*-solaris*)
7045 LD="${LD-ld} -m elf_x86_64"
7046 ;;
7047 sparc*-*-solaris*)
7048 LD="${LD-ld} -m elf64_sparc"
7049 ;;
7050 esac
7051 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7052 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7053 LD=${LD-ld}_sol2
7054 fi
7055 ;;
7056 *)
7057 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7058 LD="${LD-ld} -64"
7059 fi
7060 ;;
7061 esac
7062 ;;
7063 esac
7064 fi
7065 rm -rf conftest*
7066 ;;
7067 esac
7068
7069 need_locks=$enable_libtool_lock
7070
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}mt; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 if test -n "$MANIFEST_TOOL"; then
7080 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 fi
7098 fi
7099 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7100 if test -n "$MANIFEST_TOOL"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7102 $as_echo "$MANIFEST_TOOL" >&6; }
7103 else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7106 fi
7107
7108
7109 fi
7110 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7111 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7112 # Extract the first word of "mt", so it can be a program name with args.
7113 set dummy mt; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 if test -n "$ac_ct_MANIFEST_TOOL"; then
7120 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7140 if test -n "$ac_ct_MANIFEST_TOOL"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7142 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7143 else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7149 MANIFEST_TOOL=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152 yes:)
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155 ac_tool_warned=yes ;;
7156 esac
7157 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7158 fi
7159 else
7160 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7161 fi
7162
7163 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7165 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7166 if ${lt_cv_path_mainfest_tool+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 lt_cv_path_mainfest_tool=no
7170 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7171 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7172 cat conftest.err >&5
7173 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7174 lt_cv_path_mainfest_tool=yes
7175 fi
7176 rm -f conftest*
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7179 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7180 if test yes != "$lt_cv_path_mainfest_tool"; then
7181 MANIFEST_TOOL=:
7182 fi
7183
7184
7185
7186
7187
7188
7189 case $host_os in
7190 rhapsody* | darwin*)
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$DSYMUTIL"; then
7200 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7220 if test -n "$DSYMUTIL"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7222 $as_echo "$DSYMUTIL" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228
7229 fi
7230 if test -z "$ac_cv_prog_DSYMUTIL"; then
7231 ac_ct_DSYMUTIL=$DSYMUTIL
7232 # Extract the first word of "dsymutil", so it can be a program name with args.
7233 set dummy dsymutil; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 if test -n "$ac_ct_DSYMUTIL"; then
7240 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257 fi
7258 fi
7259 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7260 if test -n "$ac_ct_DSYMUTIL"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7262 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7266 fi
7267
7268 if test "x$ac_ct_DSYMUTIL" = x; then
7269 DSYMUTIL=":"
7270 else
7271 case $cross_compiling:$ac_tool_warned in
7272 yes:)
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7275 ac_tool_warned=yes ;;
7276 esac
7277 DSYMUTIL=$ac_ct_DSYMUTIL
7278 fi
7279 else
7280 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7281 fi
7282
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if ${ac_cv_prog_NMEDIT+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 if test -n "$NMEDIT"; then
7292 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 NMEDIT=$ac_cv_prog_NMEDIT
7312 if test -n "$NMEDIT"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7314 $as_echo "$NMEDIT" >&6; }
7315 else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320
7321 fi
7322 if test -z "$ac_cv_prog_NMEDIT"; then
7323 ac_ct_NMEDIT=$NMEDIT
7324 # Extract the first word of "nmedit", so it can be a program name with args.
7325 set dummy nmedit; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$ac_ct_NMEDIT"; then
7332 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7352 if test -n "$ac_ct_NMEDIT"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7354 $as_echo "$ac_ct_NMEDIT" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360 if test "x$ac_ct_NMEDIT" = x; then
7361 NMEDIT=":"
7362 else
7363 case $cross_compiling:$ac_tool_warned in
7364 yes:)
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369 NMEDIT=$ac_ct_NMEDIT
7370 fi
7371 else
7372 NMEDIT="$ac_cv_prog_NMEDIT"
7373 fi
7374
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_LIPO+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$LIPO"; then
7384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 LIPO=$ac_cv_prog_LIPO
7404 if test -n "$LIPO"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7406 $as_echo "$LIPO" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412
7413 fi
7414 if test -z "$ac_cv_prog_LIPO"; then
7415 ac_ct_LIPO=$LIPO
7416 # Extract the first word of "lipo", so it can be a program name with args.
7417 set dummy lipo; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 if test -n "$ac_ct_LIPO"; then
7424 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_ac_ct_LIPO="lipo"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7444 if test -n "$ac_ct_LIPO"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7446 $as_echo "$ac_ct_LIPO" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452 if test "x$ac_ct_LIPO" = x; then
7453 LIPO=":"
7454 else
7455 case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461 LIPO=$ac_ct_LIPO
7462 fi
7463 else
7464 LIPO="$ac_cv_prog_LIPO"
7465 fi
7466
7467 if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7469 set dummy ${ac_tool_prefix}otool; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_prog_OTOOL+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$OTOOL"; then
7476 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 OTOOL=$ac_cv_prog_OTOOL
7496 if test -n "$OTOOL"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7498 $as_echo "$OTOOL" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504
7505 fi
7506 if test -z "$ac_cv_prog_OTOOL"; then
7507 ac_ct_OTOOL=$OTOOL
7508 # Extract the first word of "otool", so it can be a program name with args.
7509 set dummy otool; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 if test -n "$ac_ct_OTOOL"; then
7516 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525 ac_cv_prog_ac_ct_OTOOL="otool"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 break 2
7528 fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7536 if test -n "$ac_ct_OTOOL"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7538 $as_echo "$ac_ct_OTOOL" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544 if test "x$ac_ct_OTOOL" = x; then
7545 OTOOL=":"
7546 else
7547 case $cross_compiling:$ac_tool_warned in
7548 yes:)
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551 ac_tool_warned=yes ;;
7552 esac
7553 OTOOL=$ac_ct_OTOOL
7554 fi
7555 else
7556 OTOOL="$ac_cv_prog_OTOOL"
7557 fi
7558
7559 if test -n "$ac_tool_prefix"; then
7560 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7561 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_OTOOL64+:} false; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 if test -n "$OTOOL64"; then
7568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7577 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581 done
7582 done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 OTOOL64=$ac_cv_prog_OTOOL64
7588 if test -n "$OTOOL64"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7590 $as_echo "$OTOOL64" >&6; }
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595
7596
7597 fi
7598 if test -z "$ac_cv_prog_OTOOL64"; then
7599 ac_ct_OTOOL64=$OTOOL64
7600 # Extract the first word of "otool64", so it can be a program name with args.
7601 set dummy otool64; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 if test -n "$ac_ct_OTOOL64"; then
7608 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_prog_ac_ct_OTOOL64="otool64"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7620 fi
7621 done
7622 done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7628 if test -n "$ac_ct_OTOOL64"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7630 $as_echo "$ac_ct_OTOOL64" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636 if test "x$ac_ct_OTOOL64" = x; then
7637 OTOOL64=":"
7638 else
7639 case $cross_compiling:$ac_tool_warned in
7640 yes:)
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7643 ac_tool_warned=yes ;;
7644 esac
7645 OTOOL64=$ac_ct_OTOOL64
7646 fi
7647 else
7648 OTOOL64="$ac_cv_prog_OTOOL64"
7649 fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7678 $as_echo_n "checking for -single_module linker flag... " >&6; }
7679 if ${lt_cv_apple_cc_single_mod+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 lt_cv_apple_cc_single_mod=no
7683 if test -z "$LT_MULTI_MODULE"; then
7684 # By default we will add the -single_module flag. You can override
7685 # by either setting the environment variable LT_MULTI_MODULE
7686 # non-empty at configure time, or by adding -multi_module to the
7687 # link flags.
7688 rm -rf libconftest.dylib*
7689 echo "int foo(void){return 1;}" > conftest.c
7690 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7691 -dynamiclib -Wl,-single_module conftest.c" >&5
7692 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7693 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7694 _lt_result=$?
7695 # If there is a non-empty error log, and "single_module"
7696 # appears in it, assume the flag caused a linker warning
7697 if test -s conftest.err && $GREP single_module conftest.err; then
7698 cat conftest.err >&5
7699 # Otherwise, if the output was created with a 0 exit code from
7700 # the compiler, it worked.
7701 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7702 lt_cv_apple_cc_single_mod=yes
7703 else
7704 cat conftest.err >&5
7705 fi
7706 rm -rf libconftest.dylib*
7707 rm -f conftest.*
7708 fi
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7711 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7712
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7714 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7715 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 lt_cv_ld_exported_symbols_list=no
7719 save_LDFLAGS=$LDFLAGS
7720 echo "_main" > conftest.sym
7721 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724
7725 int
7726 main ()
7727 {
7728
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"; then :
7734 lt_cv_ld_exported_symbols_list=yes
7735 else
7736 lt_cv_ld_exported_symbols_list=no
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7740 LDFLAGS=$save_LDFLAGS
7741
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7744 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7745
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7747 $as_echo_n "checking for -force_load linker flag... " >&6; }
7748 if ${lt_cv_ld_force_load+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 lt_cv_ld_force_load=no
7752 cat > conftest.c << _LT_EOF
7753 int forced_loaded() { return 2;}
7754 _LT_EOF
7755 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7756 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7757 echo "$AR cru libconftest.a conftest.o" >&5
7758 $AR cru libconftest.a conftest.o 2>&5
7759 echo "$RANLIB libconftest.a" >&5
7760 $RANLIB libconftest.a 2>&5
7761 cat > conftest.c << _LT_EOF
7762 int main() { return 0;}
7763 _LT_EOF
7764 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7765 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7766 _lt_result=$?
7767 if test -s conftest.err && $GREP force_load conftest.err; then
7768 cat conftest.err >&5
7769 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7770 lt_cv_ld_force_load=yes
7771 else
7772 cat conftest.err >&5
7773 fi
7774 rm -f conftest.err libconftest.a conftest conftest.c
7775 rm -rf conftest.dSYM
7776
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7779 $as_echo "$lt_cv_ld_force_load" >&6; }
7780 case $host_os in
7781 rhapsody* | darwin1.[012])
7782 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7783 darwin1.*)
7784 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7785 darwin*) # darwin 5.x on
7786 # if running on 10.5 or later, the deployment target defaults
7787 # to the OS version, if on x86, and 10.4, the deployment
7788 # target defaults to 10.4. Don't you love it?
7789 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7790 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7791 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7792 10.[012][,.]*)
7793 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7794 10.*)
7795 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7796 esac
7797 ;;
7798 esac
7799 if test yes = "$lt_cv_apple_cc_single_mod"; then
7800 _lt_dar_single_mod='$single_module'
7801 fi
7802 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7803 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7804 else
7805 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7806 fi
7807 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7808 _lt_dsymutil='~$DSYMUTIL $lib || :'
7809 else
7810 _lt_dsymutil=
7811 fi
7812 ;;
7813 esac
7814
7815 # func_munge_path_list VARIABLE PATH
7816 # -----------------------------------
7817 # VARIABLE is name of variable containing _space_ separated list of
7818 # directories to be munged by the contents of PATH, which is string
7819 # having a format:
7820 # "DIR[:DIR]:"
7821 # string "DIR[ DIR]" will be prepended to VARIABLE
7822 # ":DIR[:DIR]"
7823 # string "DIR[ DIR]" will be appended to VARIABLE
7824 # "DIRP[:DIRP]::[DIRA:]DIRA"
7825 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7826 # "DIRA[ DIRA]" will be appended to VARIABLE
7827 # "DIR[:DIR]"
7828 # VARIABLE will be replaced by "DIR[ DIR]"
7829 func_munge_path_list ()
7830 {
7831 case x$2 in
7832 x)
7833 ;;
7834 *:)
7835 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7836 ;;
7837 x:*)
7838 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7839 ;;
7840 *::*)
7841 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7842 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7843 ;;
7844 *)
7845 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7846 ;;
7847 esac
7848 }
7849
7850 for ac_header in dlfcn.h
7851 do :
7852 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7853 "
7854 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7855 cat >>confdefs.h <<_ACEOF
7856 #define HAVE_DLFCN_H 1
7857 _ACEOF
7858
7859 fi
7860
7861 done
7862
7863
7864
7865
7866
7867 # Set options
7868
7869
7870
7871 enable_dlopen=no
7872
7873
7874 enable_win32_dll=no
7875
7876
7877 # Check whether --enable-shared was given.
7878 if test "${enable_shared+set}" = set; then :
7879 enableval=$enable_shared; p=${PACKAGE-default}
7880 case $enableval in
7881 yes) enable_shared=yes ;;
7882 no) enable_shared=no ;;
7883 *)
7884 enable_shared=no
7885 # Look at the argument we got. We use all the common list separators.
7886 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7887 for pkg in $enableval; do
7888 IFS=$lt_save_ifs
7889 if test "X$pkg" = "X$p"; then
7890 enable_shared=yes
7891 fi
7892 done
7893 IFS=$lt_save_ifs
7894 ;;
7895 esac
7896 else
7897 enable_shared=yes
7898 fi
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 # Check whether --enable-static was given.
7909 if test "${enable_static+set}" = set; then :
7910 enableval=$enable_static; p=${PACKAGE-default}
7911 case $enableval in
7912 yes) enable_static=yes ;;
7913 no) enable_static=no ;;
7914 *)
7915 enable_static=no
7916 # Look at the argument we got. We use all the common list separators.
7917 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7918 for pkg in $enableval; do
7919 IFS=$lt_save_ifs
7920 if test "X$pkg" = "X$p"; then
7921 enable_static=yes
7922 fi
7923 done
7924 IFS=$lt_save_ifs
7925 ;;
7926 esac
7927 else
7928 enable_static=yes
7929 fi
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940 # Check whether --with-pic was given.
7941 if test "${with_pic+set}" = set; then :
7942 withval=$with_pic; lt_p=${PACKAGE-default}
7943 case $withval in
7944 yes|no) pic_mode=$withval ;;
7945 *)
7946 pic_mode=default
7947 # Look at the argument we got. We use all the common list separators.
7948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7949 for lt_pkg in $withval; do
7950 IFS=$lt_save_ifs
7951 if test "X$lt_pkg" = "X$lt_p"; then
7952 pic_mode=yes
7953 fi
7954 done
7955 IFS=$lt_save_ifs
7956 ;;
7957 esac
7958 else
7959 pic_mode=default
7960 fi
7961
7962
7963
7964
7965
7966
7967
7968
7969 # Check whether --enable-fast-install was given.
7970 if test "${enable_fast_install+set}" = set; then :
7971 enableval=$enable_fast_install; p=${PACKAGE-default}
7972 case $enableval in
7973 yes) enable_fast_install=yes ;;
7974 no) enable_fast_install=no ;;
7975 *)
7976 enable_fast_install=no
7977 # Look at the argument we got. We use all the common list separators.
7978 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7979 for pkg in $enableval; do
7980 IFS=$lt_save_ifs
7981 if test "X$pkg" = "X$p"; then
7982 enable_fast_install=yes
7983 fi
7984 done
7985 IFS=$lt_save_ifs
7986 ;;
7987 esac
7988 else
7989 enable_fast_install=yes
7990 fi
7991
7992
7993
7994
7995
7996
7997
7998
7999 shared_archive_member_spec=
8000 case $host,$enable_shared in
8001 power*-*-aix[5-9]*,yes)
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8003 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8004
8005 # Check whether --with-aix-soname was given.
8006 if test "${with_aix_soname+set}" = set; then :
8007 withval=$with_aix_soname; case $withval in
8008 aix|svr4|both)
8009 ;;
8010 *)
8011 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8012 ;;
8013 esac
8014 lt_cv_with_aix_soname=$with_aix_soname
8015 else
8016 if ${lt_cv_with_aix_soname+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 lt_cv_with_aix_soname=aix
8020 fi
8021
8022 with_aix_soname=$lt_cv_with_aix_soname
8023 fi
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8026 $as_echo "$with_aix_soname" >&6; }
8027 if test aix != "$with_aix_soname"; then
8028 # For the AIX way of multilib, we name the shared archive member
8029 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8030 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8031 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8032 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8033 if test 64 = "${OBJECT_MODE-32}"; then
8034 shared_archive_member_spec=shr_64
8035 else
8036 shared_archive_member_spec=shr
8037 fi
8038 fi
8039 ;;
8040 *)
8041 with_aix_soname=aix
8042 ;;
8043 esac
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054 # This can be used to rebuild libtool when needed
8055 LIBTOOL_DEPS=$ltmain
8056
8057 # Always use our own libtool.
8058 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089 test -z "$LN_S" && LN_S="ln -s"
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104 if test -n "${ZSH_VERSION+set}"; then
8105 setopt NO_GLOB_SUBST
8106 fi
8107
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8109 $as_echo_n "checking for objdir... " >&6; }
8110 if ${lt_cv_objdir+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 rm -f .libs 2>/dev/null
8114 mkdir .libs 2>/dev/null
8115 if test -d .libs; then
8116 lt_cv_objdir=.libs
8117 else
8118 # MS-DOS does not allow filenames that begin with a dot.
8119 lt_cv_objdir=_libs
8120 fi
8121 rmdir .libs 2>/dev/null
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8124 $as_echo "$lt_cv_objdir" >&6; }
8125 objdir=$lt_cv_objdir
8126
8127
8128
8129
8130
8131 cat >>confdefs.h <<_ACEOF
8132 #define LT_OBJDIR "$lt_cv_objdir/"
8133 _ACEOF
8134
8135
8136
8137
8138 case $host_os in
8139 aix3*)
8140 # AIX sometimes has problems with the GCC collect2 program. For some
8141 # reason, if we set the COLLECT_NAMES environment variable, the problems
8142 # vanish in a puff of smoke.
8143 if test set != "${COLLECT_NAMES+set}"; then
8144 COLLECT_NAMES=
8145 export COLLECT_NAMES
8146 fi
8147 ;;
8148 esac
8149
8150 # Global variables:
8151 ofile=libtool
8152 can_build_shared=yes
8153
8154 # All known linkers require a '.a' archive for static linking (except MSVC,
8155 # which needs '.lib').
8156 libext=a
8157
8158 with_gnu_ld=$lt_cv_prog_gnu_ld
8159
8160 old_CC=$CC
8161 old_CFLAGS=$CFLAGS
8162
8163 # Set sane defaults for various variables
8164 test -z "$CC" && CC=cc
8165 test -z "$LTCC" && LTCC=$CC
8166 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8167 test -z "$LD" && LD=ld
8168 test -z "$ac_objext" && ac_objext=o
8169
8170 func_cc_basename $compiler
8171 cc_basename=$func_cc_basename_result
8172
8173
8174 # Only perform the check for file, if the check method requires it
8175 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8176 case $deplibs_check_method in
8177 file_magic*)
8178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8180 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8181 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 case $MAGIC_CMD in
8185 [\\/*] | ?:[\\/]*)
8186 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8187 ;;
8188 *)
8189 lt_save_MAGIC_CMD=$MAGIC_CMD
8190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8192 for ac_dir in $ac_dummy; do
8193 IFS=$lt_save_ifs
8194 test -z "$ac_dir" && ac_dir=.
8195 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8196 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8197 if test -n "$file_magic_test_file"; then
8198 case $deplibs_check_method in
8199 "file_magic "*)
8200 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8201 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8203 $EGREP "$file_magic_regex" > /dev/null; then
8204 :
8205 else
8206 cat <<_LT_EOF 1>&2
8207
8208 *** Warning: the command libtool uses to detect shared libraries,
8209 *** $file_magic_cmd, produces output that libtool cannot recognize.
8210 *** The result is that libtool may fail to recognize shared libraries
8211 *** as such. This will affect the creation of libtool libraries that
8212 *** depend on shared libraries, but programs linked with such libtool
8213 *** libraries will work regardless of this problem. Nevertheless, you
8214 *** may want to report the problem to your system manager and/or to
8215 *** [email protected]
8216
8217 _LT_EOF
8218 fi ;;
8219 esac
8220 fi
8221 break
8222 fi
8223 done
8224 IFS=$lt_save_ifs
8225 MAGIC_CMD=$lt_save_MAGIC_CMD
8226 ;;
8227 esac
8228 fi
8229
8230 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8231 if test -n "$MAGIC_CMD"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8233 $as_echo "$MAGIC_CMD" >&6; }
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239
8240
8241
8242
8243 if test -z "$lt_cv_path_MAGIC_CMD"; then
8244 if test -n "$ac_tool_prefix"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8246 $as_echo_n "checking for file... " >&6; }
8247 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 case $MAGIC_CMD in
8251 [\\/*] | ?:[\\/]*)
8252 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8253 ;;
8254 *)
8255 lt_save_MAGIC_CMD=$MAGIC_CMD
8256 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8257 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8258 for ac_dir in $ac_dummy; do
8259 IFS=$lt_save_ifs
8260 test -z "$ac_dir" && ac_dir=.
8261 if test -f "$ac_dir/file"; then
8262 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8263 if test -n "$file_magic_test_file"; then
8264 case $deplibs_check_method in
8265 "file_magic "*)
8266 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8267 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8268 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8269 $EGREP "$file_magic_regex" > /dev/null; then
8270 :
8271 else
8272 cat <<_LT_EOF 1>&2
8273
8274 *** Warning: the command libtool uses to detect shared libraries,
8275 *** $file_magic_cmd, produces output that libtool cannot recognize.
8276 *** The result is that libtool may fail to recognize shared libraries
8277 *** as such. This will affect the creation of libtool libraries that
8278 *** depend on shared libraries, but programs linked with such libtool
8279 *** libraries will work regardless of this problem. Nevertheless, you
8280 *** may want to report the problem to your system manager and/or to
8281 *** [email protected]
8282
8283 _LT_EOF
8284 fi ;;
8285 esac
8286 fi
8287 break
8288 fi
8289 done
8290 IFS=$lt_save_ifs
8291 MAGIC_CMD=$lt_save_MAGIC_CMD
8292 ;;
8293 esac
8294 fi
8295
8296 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8297 if test -n "$MAGIC_CMD"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8299 $as_echo "$MAGIC_CMD" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304
8305
8306 else
8307 MAGIC_CMD=:
8308 fi
8309 fi
8310
8311 fi
8312 ;;
8313 esac
8314
8315 # Use C for the default configuration in the libtool script
8316
8317 lt_save_CC=$CC
8318 ac_ext=c
8319 ac_cpp='$CPP $CPPFLAGS'
8320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8323
8324
8325 # Source file extension for C test sources.
8326 ac_ext=c
8327
8328 # Object file extension for compiled C test sources.
8329 objext=o
8330 objext=$objext
8331
8332 # Code to be used in simple compile tests
8333 lt_simple_compile_test_code="int some_variable = 0;"
8334
8335 # Code to be used in simple link tests
8336 lt_simple_link_test_code='int main(){return(0);}'
8337
8338
8339
8340
8341
8342
8343
8344 # If no C compiler was specified, use CC.
8345 LTCC=${LTCC-"$CC"}
8346
8347 # If no C compiler flags were specified, use CFLAGS.
8348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8349
8350 # Allow CC to be a program name with arguments.
8351 compiler=$CC
8352
8353 # Save the default compiler, since it gets overwritten when the other
8354 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8355 compiler_DEFAULT=$CC
8356
8357 # save warnings/boilerplate of simple test code
8358 ac_outfile=conftest.$ac_objext
8359 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8361 _lt_compiler_boilerplate=`cat conftest.err`
8362 $RM conftest*
8363
8364 ac_outfile=conftest.$ac_objext
8365 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8367 _lt_linker_boilerplate=`cat conftest.err`
8368 $RM -r conftest*
8369
8370
8371 ## CAVEAT EMPTOR:
8372 ## There is no encapsulation within the following macros, do not change
8373 ## the running order or otherwise move them around unless you know exactly
8374 ## what you are doing...
8375 if test -n "$compiler"; then
8376
8377 lt_prog_compiler_no_builtin_flag=
8378
8379 if test yes = "$GCC"; then
8380 case $cc_basename in
8381 nvcc*)
8382 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8383 *)
8384 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8385 esac
8386
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8388 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8389 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 lt_cv_prog_compiler_rtti_exceptions=no
8393 ac_outfile=conftest.$ac_objext
8394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8395 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8396 # Insert the option either (1) after the last *FLAGS variable, or
8397 # (2) before a word containing "conftest.", or (3) at the end.
8398 # Note that $ac_compile itself does not contain backslashes and begins
8399 # with a dollar sign (not a hyphen), so the echo should work correctly.
8400 # The option is referenced via a variable to avoid confusing sed.
8401 lt_compile=`echo "$ac_compile" | $SED \
8402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8404 -e 's:$: $lt_compiler_flag:'`
8405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8406 (eval "$lt_compile" 2>conftest.err)
8407 ac_status=$?
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 if (exit $ac_status) && test -s "$ac_outfile"; then
8411 # The compiler can only warn and ignore the option if not recognized
8412 # So say no if there are warnings other than the usual output.
8413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8416 lt_cv_prog_compiler_rtti_exceptions=yes
8417 fi
8418 fi
8419 $RM conftest*
8420
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8423 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8424
8425 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8426 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8427 else
8428 :
8429 fi
8430
8431 fi
8432
8433
8434
8435
8436
8437
8438 lt_prog_compiler_wl=
8439 lt_prog_compiler_pic=
8440 lt_prog_compiler_static=
8441
8442
8443 if test yes = "$GCC"; then
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_static='-static'
8446
8447 case $host_os in
8448 aix*)
8449 # All AIX code is PIC.
8450 if test ia64 = "$host_cpu"; then
8451 # AIX 5 now supports IA64 processor
8452 lt_prog_compiler_static='-Bstatic'
8453 fi
8454 lt_prog_compiler_pic='-fPIC'
8455 ;;
8456
8457 amigaos*)
8458 case $host_cpu in
8459 powerpc)
8460 # see comment about AmigaOS4 .so support
8461 lt_prog_compiler_pic='-fPIC'
8462 ;;
8463 m68k)
8464 # FIXME: we need at least 68020 code to build shared libraries, but
8465 # adding the '-m68020' flag to GCC prevents building anything better,
8466 # like '-m68040'.
8467 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8468 ;;
8469 esac
8470 ;;
8471
8472 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8473 # PIC is the default for these OSes.
8474 ;;
8475
8476 mingw* | cygwin* | pw32* | os2* | cegcc*)
8477 # This hack is so that the source file can tell whether it is being
8478 # built for inclusion in a dll (and should export symbols for example).
8479 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8480 # (--disable-auto-import) libraries
8481 lt_prog_compiler_pic='-DDLL_EXPORT'
8482 case $host_os in
8483 os2*)
8484 lt_prog_compiler_static='$wl-static'
8485 ;;
8486 esac
8487 ;;
8488
8489 darwin* | rhapsody*)
8490 # PIC is the default on this platform
8491 # Common symbols not allowed in MH_DYLIB files
8492 lt_prog_compiler_pic='-fno-common'
8493 ;;
8494
8495 haiku*)
8496 # PIC is the default for Haiku.
8497 # The "-static" flag exists, but is broken.
8498 lt_prog_compiler_static=
8499 ;;
8500
8501 hpux*)
8502 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8503 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8504 # sets the default TLS model and affects inlining.
8505 case $host_cpu in
8506 hppa*64*)
8507 # +Z the default
8508 ;;
8509 *)
8510 lt_prog_compiler_pic='-fPIC'
8511 ;;
8512 esac
8513 ;;
8514
8515 interix[3-9]*)
8516 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8517 # Instead, we relocate shared libraries at runtime.
8518 ;;
8519
8520 msdosdjgpp*)
8521 # Just because we use GCC doesn't mean we suddenly get shared libraries
8522 # on systems that don't support them.
8523 lt_prog_compiler_can_build_shared=no
8524 enable_shared=no
8525 ;;
8526
8527 *nto* | *qnx*)
8528 # QNX uses GNU C++, but need to define -shared option too, otherwise
8529 # it will coredump.
8530 lt_prog_compiler_pic='-fPIC -shared'
8531 ;;
8532
8533 sysv4*MP*)
8534 if test -d /usr/nec; then
8535 lt_prog_compiler_pic=-Kconform_pic
8536 fi
8537 ;;
8538
8539 *)
8540 lt_prog_compiler_pic='-fPIC'
8541 ;;
8542 esac
8543
8544 case $cc_basename in
8545 nvcc*) # Cuda Compiler Driver 2.2
8546 lt_prog_compiler_wl='-Xlinker '
8547 if test -n "$lt_prog_compiler_pic"; then
8548 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8549 fi
8550 ;;
8551 esac
8552 else
8553 # PORTME Check for flag to pass linker flags through the system compiler.
8554 case $host_os in
8555 aix*)
8556 lt_prog_compiler_wl='-Wl,'
8557 if test ia64 = "$host_cpu"; then
8558 # AIX 5 now supports IA64 processor
8559 lt_prog_compiler_static='-Bstatic'
8560 else
8561 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8562 fi
8563 ;;
8564
8565 darwin* | rhapsody*)
8566 # PIC is the default on this platform
8567 # Common symbols not allowed in MH_DYLIB files
8568 lt_prog_compiler_pic='-fno-common'
8569 case $cc_basename in
8570 nagfor*)
8571 # NAG Fortran compiler
8572 lt_prog_compiler_wl='-Wl,-Wl,,'
8573 lt_prog_compiler_pic='-PIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576 esac
8577 ;;
8578
8579 mingw* | cygwin* | pw32* | os2* | cegcc*)
8580 # This hack is so that the source file can tell whether it is being
8581 # built for inclusion in a dll (and should export symbols for example).
8582 lt_prog_compiler_pic='-DDLL_EXPORT'
8583 case $host_os in
8584 os2*)
8585 lt_prog_compiler_static='$wl-static'
8586 ;;
8587 esac
8588 ;;
8589
8590 hpux9* | hpux10* | hpux11*)
8591 lt_prog_compiler_wl='-Wl,'
8592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8593 # not for PA HP-UX.
8594 case $host_cpu in
8595 hppa*64*|ia64*)
8596 # +Z the default
8597 ;;
8598 *)
8599 lt_prog_compiler_pic='+Z'
8600 ;;
8601 esac
8602 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8603 lt_prog_compiler_static='$wl-a ${wl}archive'
8604 ;;
8605
8606 irix5* | irix6* | nonstopux*)
8607 lt_prog_compiler_wl='-Wl,'
8608 # PIC (with -KPIC) is the default.
8609 lt_prog_compiler_static='-non_shared'
8610 ;;
8611
8612 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8613 case $cc_basename in
8614 # old Intel for x86_64, which still supported -KPIC.
8615 ecc*)
8616 lt_prog_compiler_wl='-Wl,'
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-static'
8619 ;;
8620 # icc used to be incompatible with GCC.
8621 # ICC 10 doesn't accept -KPIC any more.
8622 icc* | ifort*)
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_pic='-fPIC'
8625 lt_prog_compiler_static='-static'
8626 ;;
8627 # Lahey Fortran 8.1.
8628 lf95*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='--shared'
8631 lt_prog_compiler_static='--static'
8632 ;;
8633 nagfor*)
8634 # NAG Fortran compiler
8635 lt_prog_compiler_wl='-Wl,-Wl,,'
8636 lt_prog_compiler_pic='-PIC'
8637 lt_prog_compiler_static='-Bstatic'
8638 ;;
8639 tcc*)
8640 # Fabrice Bellard et al's Tiny C Compiler
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-fPIC'
8643 lt_prog_compiler_static='-static'
8644 ;;
8645 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8646 # Portland Group compilers (*not* the Pentium gcc compiler,
8647 # which looks to be a dead project)
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_pic='-fpic'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
8652 ccc*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # All Alpha code is PIC.
8655 lt_prog_compiler_static='-non_shared'
8656 ;;
8657 xl* | bgxl* | bgf* | mpixl*)
8658 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-qpic'
8661 lt_prog_compiler_static='-qstaticlink'
8662 ;;
8663 *)
8664 case `$CC -V 2>&1 | sed 5q` in
8665 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8666 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 lt_prog_compiler_wl=''
8670 ;;
8671 *Sun\ F* | *Sun*Fortran*)
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 lt_prog_compiler_wl='-Qoption ld '
8675 ;;
8676 *Sun\ C*)
8677 # Sun C 5.9
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 lt_prog_compiler_wl='-Wl,'
8681 ;;
8682 *Intel*\ [CF]*Compiler*)
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_pic='-fPIC'
8685 lt_prog_compiler_static='-static'
8686 ;;
8687 *Portland\ Group*)
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_pic='-fpic'
8690 lt_prog_compiler_static='-Bstatic'
8691 ;;
8692 esac
8693 ;;
8694 esac
8695 ;;
8696
8697 newsos6)
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 ;;
8701
8702 *nto* | *qnx*)
8703 # QNX uses GNU C++, but need to define -shared option too, otherwise
8704 # it will coredump.
8705 lt_prog_compiler_pic='-fPIC -shared'
8706 ;;
8707
8708 osf3* | osf4* | osf5*)
8709 lt_prog_compiler_wl='-Wl,'
8710 # All OSF/1 code is PIC.
8711 lt_prog_compiler_static='-non_shared'
8712 ;;
8713
8714 rdos*)
8715 lt_prog_compiler_static='-non_shared'
8716 ;;
8717
8718 solaris*)
8719 lt_prog_compiler_pic='-KPIC'
8720 lt_prog_compiler_static='-Bstatic'
8721 case $cc_basename in
8722 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8723 lt_prog_compiler_wl='-Qoption ld ';;
8724 *)
8725 lt_prog_compiler_wl='-Wl,';;
8726 esac
8727 ;;
8728
8729 sunos4*)
8730 lt_prog_compiler_wl='-Qoption ld '
8731 lt_prog_compiler_pic='-PIC'
8732 lt_prog_compiler_static='-Bstatic'
8733 ;;
8734
8735 sysv4 | sysv4.2uw2* | sysv4.3*)
8736 lt_prog_compiler_wl='-Wl,'
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 ;;
8740
8741 sysv4*MP*)
8742 if test -d /usr/nec; then
8743 lt_prog_compiler_pic='-Kconform_pic'
8744 lt_prog_compiler_static='-Bstatic'
8745 fi
8746 ;;
8747
8748 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8749 lt_prog_compiler_wl='-Wl,'
8750 lt_prog_compiler_pic='-KPIC'
8751 lt_prog_compiler_static='-Bstatic'
8752 ;;
8753
8754 unicos*)
8755 lt_prog_compiler_wl='-Wl,'
8756 lt_prog_compiler_can_build_shared=no
8757 ;;
8758
8759 uts4*)
8760 lt_prog_compiler_pic='-pic'
8761 lt_prog_compiler_static='-Bstatic'
8762 ;;
8763
8764 *)
8765 lt_prog_compiler_can_build_shared=no
8766 ;;
8767 esac
8768 fi
8769
8770 case $host_os in
8771 # For platforms that do not support PIC, -DPIC is meaningless:
8772 *djgpp*)
8773 lt_prog_compiler_pic=
8774 ;;
8775 *)
8776 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8777 ;;
8778 esac
8779
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8781 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8782 if ${lt_cv_prog_compiler_pic+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8788 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8789 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8790
8791 #
8792 # Check to make sure the PIC flag actually works.
8793 #
8794 if test -n "$lt_prog_compiler_pic"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8796 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8797 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 lt_cv_prog_compiler_pic_works=no
8801 ac_outfile=conftest.$ac_objext
8802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8803 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8804 # Insert the option either (1) after the last *FLAGS variable, or
8805 # (2) before a word containing "conftest.", or (3) at the end.
8806 # Note that $ac_compile itself does not contain backslashes and begins
8807 # with a dollar sign (not a hyphen), so the echo should work correctly.
8808 # The option is referenced via a variable to avoid confusing sed.
8809 lt_compile=`echo "$ac_compile" | $SED \
8810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8812 -e 's:$: $lt_compiler_flag:'`
8813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8814 (eval "$lt_compile" 2>conftest.err)
8815 ac_status=$?
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 if (exit $ac_status) && test -s "$ac_outfile"; then
8819 # The compiler can only warn and ignore the option if not recognized
8820 # So say no if there are warnings other than the usual output.
8821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8824 lt_cv_prog_compiler_pic_works=yes
8825 fi
8826 fi
8827 $RM conftest*
8828
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8831 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8832
8833 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8834 case $lt_prog_compiler_pic in
8835 "" | " "*) ;;
8836 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8837 esac
8838 else
8839 lt_prog_compiler_pic=
8840 lt_prog_compiler_can_build_shared=no
8841 fi
8842
8843 fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855 #
8856 # Check to make sure the static flag actually works.
8857 #
8858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8860 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8861 if ${lt_cv_prog_compiler_static_works+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 lt_cv_prog_compiler_static_works=no
8865 save_LDFLAGS=$LDFLAGS
8866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8869 # The linker can only warn and ignore the option if not recognized
8870 # So say no if there are warnings
8871 if test -s conftest.err; then
8872 # Append any errors to the config.log.
8873 cat conftest.err 1>&5
8874 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8876 if diff conftest.exp conftest.er2 >/dev/null; then
8877 lt_cv_prog_compiler_static_works=yes
8878 fi
8879 else
8880 lt_cv_prog_compiler_static_works=yes
8881 fi
8882 fi
8883 $RM -r conftest*
8884 LDFLAGS=$save_LDFLAGS
8885
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8888 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8889
8890 if test yes = "$lt_cv_prog_compiler_static_works"; then
8891 :
8892 else
8893 lt_prog_compiler_static=
8894 fi
8895
8896
8897
8898
8899
8900
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8903 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8904 if ${lt_cv_prog_compiler_c_o+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 lt_cv_prog_compiler_c_o=no
8908 $RM -r conftest 2>/dev/null
8909 mkdir conftest
8910 cd conftest
8911 mkdir out
8912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8913
8914 lt_compiler_flag="-o out/conftest2.$ac_objext"
8915 # Insert the option either (1) after the last *FLAGS variable, or
8916 # (2) before a word containing "conftest.", or (3) at the end.
8917 # Note that $ac_compile itself does not contain backslashes and begins
8918 # with a dollar sign (not a hyphen), so the echo should work correctly.
8919 lt_compile=`echo "$ac_compile" | $SED \
8920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8922 -e 's:$: $lt_compiler_flag:'`
8923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8924 (eval "$lt_compile" 2>out/conftest.err)
8925 ac_status=$?
8926 cat out/conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8929 then
8930 # The compiler can only warn and ignore the option if not recognized
8931 # So say no if there are warnings
8932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8935 lt_cv_prog_compiler_c_o=yes
8936 fi
8937 fi
8938 chmod u+w . 2>&5
8939 $RM conftest*
8940 # SGI C++ compiler will create directory out/ii_files/ for
8941 # template instantiation
8942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8943 $RM out/* && rmdir out
8944 cd ..
8945 $RM -r conftest
8946 $RM conftest*
8947
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8951
8952
8953
8954
8955
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8958 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8959 if ${lt_cv_prog_compiler_c_o+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 lt_cv_prog_compiler_c_o=no
8963 $RM -r conftest 2>/dev/null
8964 mkdir conftest
8965 cd conftest
8966 mkdir out
8967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8968
8969 lt_compiler_flag="-o out/conftest2.$ac_objext"
8970 # Insert the option either (1) after the last *FLAGS variable, or
8971 # (2) before a word containing "conftest.", or (3) at the end.
8972 # Note that $ac_compile itself does not contain backslashes and begins
8973 # with a dollar sign (not a hyphen), so the echo should work correctly.
8974 lt_compile=`echo "$ac_compile" | $SED \
8975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977 -e 's:$: $lt_compiler_flag:'`
8978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8979 (eval "$lt_compile" 2>out/conftest.err)
8980 ac_status=$?
8981 cat out/conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8984 then
8985 # The compiler can only warn and ignore the option if not recognized
8986 # So say no if there are warnings
8987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8990 lt_cv_prog_compiler_c_o=yes
8991 fi
8992 fi
8993 chmod u+w . 2>&5
8994 $RM conftest*
8995 # SGI C++ compiler will create directory out/ii_files/ for
8996 # template instantiation
8997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8998 $RM out/* && rmdir out
8999 cd ..
9000 $RM -r conftest
9001 $RM conftest*
9002
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9006
9007
9008
9009
9010 hard_links=nottested
9011 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9012 # do not overwrite the value of need_locks provided by the user
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9014 $as_echo_n "checking if we can lock with hard links... " >&6; }
9015 hard_links=yes
9016 $RM conftest*
9017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9018 touch conftest.a
9019 ln conftest.a conftest.b 2>&5 || hard_links=no
9020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9022 $as_echo "$hard_links" >&6; }
9023 if test no = "$hard_links"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9025 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9026 need_locks=warn
9027 fi
9028 else
9029 need_locks=no
9030 fi
9031
9032
9033
9034
9035
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9038 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9039
9040 runpath_var=
9041 allow_undefined_flag=
9042 always_export_symbols=no
9043 archive_cmds=
9044 archive_expsym_cmds=
9045 compiler_needs_object=no
9046 enable_shared_with_static_runtimes=no
9047 export_dynamic_flag_spec=
9048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9049 hardcode_automatic=no
9050 hardcode_direct=no
9051 hardcode_direct_absolute=no
9052 hardcode_libdir_flag_spec=
9053 hardcode_libdir_separator=
9054 hardcode_minus_L=no
9055 hardcode_shlibpath_var=unsupported
9056 inherit_rpath=no
9057 link_all_deplibs=unknown
9058 module_cmds=
9059 module_expsym_cmds=
9060 old_archive_from_new_cmds=
9061 old_archive_from_expsyms_cmds=
9062 thread_safe_flag_spec=
9063 whole_archive_flag_spec=
9064 # include_expsyms should be a list of space-separated symbols to be *always*
9065 # included in the symbol list
9066 include_expsyms=
9067 # exclude_expsyms can be an extended regexp of symbols to exclude
9068 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9069 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9070 # as well as any symbol that contains 'd'.
9071 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9073 # platforms (ab)use it in PIC code, but their linkers get confused if
9074 # the symbol is explicitly referenced. Since portable code cannot
9075 # rely on this symbol name, it's probably fine to never include it in
9076 # preloaded symbol tables.
9077 # Exclude shared library initialization/finalization symbols.
9078 extract_expsyms_cmds=
9079
9080 case $host_os in
9081 cygwin* | mingw* | pw32* | cegcc*)
9082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9083 # When not using gcc, we currently assume that we are using
9084 # Microsoft Visual C++.
9085 if test yes != "$GCC"; then
9086 with_gnu_ld=no
9087 fi
9088 ;;
9089 interix*)
9090 # we just hope/assume this is gcc and not c89 (= MSVC++)
9091 with_gnu_ld=yes
9092 ;;
9093 openbsd* | bitrig*)
9094 with_gnu_ld=no
9095 ;;
9096 linux* | k*bsd*-gnu | gnu*)
9097 link_all_deplibs=no
9098 ;;
9099 esac
9100
9101 ld_shlibs=yes
9102
9103 # On some targets, GNU ld is compatible enough with the native linker
9104 # that we're better off using the native interface for both.
9105 lt_use_gnu_ld_interface=no
9106 if test yes = "$with_gnu_ld"; then
9107 case $host_os in
9108 aix*)
9109 # The AIX port of GNU ld has always aspired to compatibility
9110 # with the native linker. However, as the warning in the GNU ld
9111 # block says, versions before 2.19.5* couldn't really create working
9112 # shared libraries, regardless of the interface used.
9113 case `$LD -v 2>&1` in
9114 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9115 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9116 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9117 *)
9118 lt_use_gnu_ld_interface=yes
9119 ;;
9120 esac
9121 ;;
9122 *)
9123 lt_use_gnu_ld_interface=yes
9124 ;;
9125 esac
9126 fi
9127
9128 if test yes = "$lt_use_gnu_ld_interface"; then
9129 # If archive_cmds runs LD, not CC, wlarc should be empty
9130 wlarc='$wl'
9131
9132 # Set some defaults for GNU ld with shared library support. These
9133 # are reset later if shared libraries are not supported. Putting them
9134 # here allows them to be overridden if necessary.
9135 runpath_var=LD_RUN_PATH
9136 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9137 export_dynamic_flag_spec='$wl--export-dynamic'
9138 # ancient GNU ld didn't support --whole-archive et. al.
9139 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9140 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9141 else
9142 whole_archive_flag_spec=
9143 fi
9144 supports_anon_versioning=no
9145 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9146 *GNU\ gold*) supports_anon_versioning=yes ;;
9147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9150 *\ 2.11.*) ;; # other 2.11 versions
9151 *) supports_anon_versioning=yes ;;
9152 esac
9153
9154 # See if GNU ld supports shared libraries.
9155 case $host_os in
9156 aix[3-9]*)
9157 # On AIX/PPC, the GNU linker is very broken
9158 if test ia64 != "$host_cpu"; then
9159 ld_shlibs=no
9160 cat <<_LT_EOF 1>&2
9161
9162 *** Warning: the GNU linker, at least up to release 2.19, is reported
9163 *** to be unable to reliably create shared libraries on AIX.
9164 *** Therefore, libtool is disabling shared libraries support. If you
9165 *** really care for shared libraries, you may want to install binutils
9166 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9167 *** You will then need to restart the configuration process.
9168
9169 _LT_EOF
9170 fi
9171 ;;
9172
9173 amigaos*)
9174 case $host_cpu in
9175 powerpc)
9176 # see comment about AmigaOS4 .so support
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9178 archive_expsym_cmds=''
9179 ;;
9180 m68k)
9181 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)'
9182 hardcode_libdir_flag_spec='-L$libdir'
9183 hardcode_minus_L=yes
9184 ;;
9185 esac
9186 ;;
9187
9188 beos*)
9189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190 allow_undefined_flag=unsupported
9191 # Joseph Beckenbach <[email protected]> says some releases of gcc
9192 # support --undefined. This deserves some investigation. FIXME
9193 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9194 else
9195 ld_shlibs=no
9196 fi
9197 ;;
9198
9199 cygwin* | mingw* | pw32* | cegcc*)
9200 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9201 # as there is no search path for DLLs.
9202 hardcode_libdir_flag_spec='-L$libdir'
9203 export_dynamic_flag_spec='$wl--export-all-symbols'
9204 allow_undefined_flag=unsupported
9205 always_export_symbols=no
9206 enable_shared_with_static_runtimes=yes
9207 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'
9208 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9209
9210 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9212 # If the export-symbols file already is a .def file, use it as
9213 # is; otherwise, prepend EXPORTS...
9214 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9215 cp $export_symbols $output_objdir/$soname.def;
9216 else
9217 echo EXPORTS > $output_objdir/$soname.def;
9218 cat $export_symbols >> $output_objdir/$soname.def;
9219 fi~
9220 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9221 else
9222 ld_shlibs=no
9223 fi
9224 ;;
9225
9226 haiku*)
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9228 link_all_deplibs=yes
9229 ;;
9230
9231 os2*)
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 hardcode_minus_L=yes
9234 allow_undefined_flag=unsupported
9235 shrext_cmds=.dll
9236 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9237 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9238 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9239 $ECHO EXPORTS >> $output_objdir/$libname.def~
9240 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9241 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9242 emximp -o $lib $output_objdir/$libname.def'
9243 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9244 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9245 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9246 $ECHO EXPORTS >> $output_objdir/$libname.def~
9247 prefix_cmds="$SED"~
9248 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9249 prefix_cmds="$prefix_cmds -e 1d";
9250 fi~
9251 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9252 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9254 emximp -o $lib $output_objdir/$libname.def'
9255 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9256 enable_shared_with_static_runtimes=yes
9257 ;;
9258
9259 interix[3-9]*)
9260 hardcode_direct=no
9261 hardcode_shlibpath_var=no
9262 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9263 export_dynamic_flag_spec='$wl-E'
9264 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9265 # Instead, shared libraries are loaded at an image base (0x10000000 by
9266 # default) and relocated if they conflict, which is a slow very memory
9267 # consuming and fragmenting process. To avoid this, we pick a random,
9268 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9269 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9270 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9271 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'
9272 ;;
9273
9274 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9275 tmp_diet=no
9276 if test linux-dietlibc = "$host_os"; then
9277 case $cc_basename in
9278 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9279 esac
9280 fi
9281 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9282 && test no = "$tmp_diet"
9283 then
9284 tmp_addflag=' $pic_flag'
9285 tmp_sharedflag='-shared'
9286 case $cc_basename,$host_cpu in
9287 pgcc*) # Portland Group C compiler
9288 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'
9289 tmp_addflag=' $pic_flag'
9290 ;;
9291 pgf77* | pgf90* | pgf95* | pgfortran*)
9292 # Portland Group f77 and f90 compilers
9293 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'
9294 tmp_addflag=' $pic_flag -Mnomain' ;;
9295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9296 tmp_addflag=' -i_dynamic' ;;
9297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9298 tmp_addflag=' -i_dynamic -nofor_main' ;;
9299 ifc* | ifort*) # Intel Fortran compiler
9300 tmp_addflag=' -nofor_main' ;;
9301 lf95*) # Lahey Fortran 8.1
9302 whole_archive_flag_spec=
9303 tmp_sharedflag='--shared' ;;
9304 nagfor*) # NAGFOR 5.3
9305 tmp_sharedflag='-Wl,-shared' ;;
9306 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9307 tmp_sharedflag='-qmkshrobj'
9308 tmp_addflag= ;;
9309 nvcc*) # Cuda Compiler Driver 2.2
9310 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'
9311 compiler_needs_object=yes
9312 ;;
9313 esac
9314 case `$CC -V 2>&1 | sed 5q` in
9315 *Sun\ C*) # Sun C 5.9
9316 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'
9317 compiler_needs_object=yes
9318 tmp_sharedflag='-G' ;;
9319 *Sun\ F*) # Sun Fortran 8.3
9320 tmp_sharedflag='-G' ;;
9321 esac
9322 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9323
9324 if test yes = "$supports_anon_versioning"; then
9325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9327 echo "local: *; };" >> $output_objdir/$libname.ver~
9328 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9329 fi
9330
9331 case $cc_basename in
9332 tcc*)
9333 export_dynamic_flag_spec='-rdynamic'
9334 ;;
9335 xlf* | bgf* | bgxlf* | mpixlf*)
9336 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9337 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9338 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9339 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9340 if test yes = "$supports_anon_versioning"; then
9341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9343 echo "local: *; };" >> $output_objdir/$libname.ver~
9344 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9345 fi
9346 ;;
9347 esac
9348 else
9349 ld_shlibs=no
9350 fi
9351 ;;
9352
9353 netbsd* | netbsdelf*-gnu)
9354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9355 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9356 wlarc=
9357 else
9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9359 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9360 fi
9361 ;;
9362
9363 solaris*)
9364 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9365 ld_shlibs=no
9366 cat <<_LT_EOF 1>&2
9367
9368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9369 *** create shared libraries on Solaris systems. Therefore, libtool
9370 *** is disabling shared libraries support. We urge you to upgrade GNU
9371 *** binutils to release 2.9.1 or newer. Another option is to modify
9372 *** your PATH or compiler configuration so that the native linker is
9373 *** used, and then restart.
9374
9375 _LT_EOF
9376 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383
9384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9385 case `$LD -v 2>&1` in
9386 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9387 ld_shlibs=no
9388 cat <<_LT_EOF 1>&2
9389
9390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9391 *** reliably create shared libraries on SCO systems. Therefore, libtool
9392 *** is disabling shared libraries support. We urge you to upgrade GNU
9393 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9394 *** your PATH or compiler configuration so that the native linker is
9395 *** used, and then restart.
9396
9397 _LT_EOF
9398 ;;
9399 *)
9400 # For security reasons, it is highly recommended that you always
9401 # use absolute paths for naming shared libraries, and exclude the
9402 # DT_RUNPATH tag from executables and libraries. But doing so
9403 # requires that you compile everything twice, which is a pain.
9404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9408 else
9409 ld_shlibs=no
9410 fi
9411 ;;
9412 esac
9413 ;;
9414
9415 sunos4*)
9416 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9417 wlarc=
9418 hardcode_direct=yes
9419 hardcode_shlibpath_var=no
9420 ;;
9421
9422 *)
9423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9424 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9425 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9426 else
9427 ld_shlibs=no
9428 fi
9429 ;;
9430 esac
9431
9432 if test no = "$ld_shlibs"; then
9433 runpath_var=
9434 hardcode_libdir_flag_spec=
9435 export_dynamic_flag_spec=
9436 whole_archive_flag_spec=
9437 fi
9438 else
9439 # PORTME fill in a description of your system's linker (not GNU ld)
9440 case $host_os in
9441 aix3*)
9442 allow_undefined_flag=unsupported
9443 always_export_symbols=yes
9444 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'
9445 # Note: this linker hardcodes the directories in LIBPATH if there
9446 # are no directories specified by -L.
9447 hardcode_minus_L=yes
9448 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9449 # Neither direct hardcoding nor static linking is supported with a
9450 # broken collect2.
9451 hardcode_direct=unsupported
9452 fi
9453 ;;
9454
9455 aix[4-9]*)
9456 if test ia64 = "$host_cpu"; then
9457 # On IA64, the linker does run time linking by default, so we don't
9458 # have to do anything special.
9459 aix_use_runtimelinking=no
9460 exp_sym_flag='-Bexport'
9461 no_entry_flag=
9462 else
9463 # If we're using GNU nm, then we don't want the "-C" option.
9464 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9465 # Without the "-l" option, or with the "-B" option, AIX nm treats
9466 # weak defined symbols like other global defined symbols, whereas
9467 # GNU nm marks them as "W".
9468 # While the 'weak' keyword is ignored in the Export File, we need
9469 # it in the Import File for the 'aix-soname' feature, so we have
9470 # to replace the "-B" option with "-P" for AIX nm.
9471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9472 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'
9473 else
9474 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 == "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'
9475 fi
9476 aix_use_runtimelinking=no
9477
9478 # Test if we are trying to use run time linking or normal
9479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9480 # have runtime linking enabled, and use it for executables.
9481 # For shared libraries, we enable/disable runtime linking
9482 # depending on the kind of the shared library created -
9483 # when "with_aix_soname,aix_use_runtimelinking" is:
9484 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9485 # "aix,yes" lib.so shared, rtl:yes, for executables
9486 # lib.a static archive
9487 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9488 # lib.a(lib.so.V) shared, rtl:no, for executables
9489 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9490 # lib.a(lib.so.V) shared, rtl:no
9491 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9492 # lib.a static archive
9493 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9494 for ld_flag in $LDFLAGS; do
9495 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9496 aix_use_runtimelinking=yes
9497 break
9498 fi
9499 done
9500 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9501 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9502 # so we don't have lib.a shared libs to link our executables.
9503 # We have to force runtime linking in this case.
9504 aix_use_runtimelinking=yes
9505 LDFLAGS="$LDFLAGS -Wl,-brtl"
9506 fi
9507 ;;
9508 esac
9509
9510 exp_sym_flag='-bexport'
9511 no_entry_flag='-bnoentry'
9512 fi
9513
9514 # When large executables or shared objects are built, AIX ld can
9515 # have problems creating the table of contents. If linking a library
9516 # or program results in "error TOC overflow" add -mminimal-toc to
9517 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9518 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9519
9520 archive_cmds=''
9521 hardcode_direct=yes
9522 hardcode_direct_absolute=yes
9523 hardcode_libdir_separator=':'
9524 link_all_deplibs=yes
9525 file_list_spec='$wl-f,'
9526 case $with_aix_soname,$aix_use_runtimelinking in
9527 aix,*) ;; # traditional, no import file
9528 svr4,* | *,yes) # use import file
9529 # The Import File defines what to hardcode.
9530 hardcode_direct=no
9531 hardcode_direct_absolute=no
9532 ;;
9533 esac
9534
9535 if test yes = "$GCC"; then
9536 case $host_os in aix4.[012]|aix4.[012].*)
9537 # We only want to do this on AIX 4.2 and lower, the check
9538 # below for broken collect2 doesn't work under 4.3+
9539 collect2name=`$CC -print-prog-name=collect2`
9540 if test -f "$collect2name" &&
9541 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9542 then
9543 # We have reworked collect2
9544 :
9545 else
9546 # We have old collect2
9547 hardcode_direct=unsupported
9548 # It fails to find uninstalled libraries when the uninstalled
9549 # path is not listed in the libpath. Setting hardcode_minus_L
9550 # to unsupported forces relinking
9551 hardcode_minus_L=yes
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_libdir_separator=
9554 fi
9555 ;;
9556 esac
9557 shared_flag='-shared'
9558 if test yes = "$aix_use_runtimelinking"; then
9559 shared_flag="$shared_flag "'$wl-G'
9560 fi
9561 # Need to ensure runtime linking is disabled for the traditional
9562 # shared library, or the linker may eventually find shared libraries
9563 # /with/ Import File - we do not want to mix them.
9564 shared_flag_aix='-shared'
9565 shared_flag_svr4='-shared $wl-G'
9566 else
9567 # not using gcc
9568 if test ia64 = "$host_cpu"; then
9569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9570 # chokes on -Wl,-G. The following line is correct:
9571 shared_flag='-G'
9572 else
9573 if test yes = "$aix_use_runtimelinking"; then
9574 shared_flag='$wl-G'
9575 else
9576 shared_flag='$wl-bM:SRE'
9577 fi
9578 shared_flag_aix='$wl-bM:SRE'
9579 shared_flag_svr4='$wl-G'
9580 fi
9581 fi
9582
9583 export_dynamic_flag_spec='$wl-bexpall'
9584 # It seems that -bexpall does not export symbols beginning with
9585 # underscore (_), so it is better to generate a list of symbols to export.
9586 always_export_symbols=yes
9587 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9588 # Warning - without using the other runtime loading flags (-brtl),
9589 # -berok will link without error, but may produce a broken library.
9590 allow_undefined_flag='-berok'
9591 # Determine the default libpath from the value encoded in an
9592 # empty executable.
9593 if test set = "${lt_cv_aix_libpath+set}"; then
9594 aix_libpath=$lt_cv_aix_libpath
9595 else
9596 if ${lt_cv_aix_libpath_+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601
9602 int
9603 main ()
9604 {
9605
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_link "$LINENO"; then :
9611
9612 lt_aix_libpath_sed='
9613 /Import File Strings/,/^$/ {
9614 /^0/ {
9615 s/^0 *\([^ ]*\) *$/\1/
9616 p
9617 }
9618 }'
9619 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9620 # Check for a 64-bit object if we didn't find anything.
9621 if test -z "$lt_cv_aix_libpath_"; then
9622 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9623 fi
9624 fi
9625 rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 if test -z "$lt_cv_aix_libpath_"; then
9628 lt_cv_aix_libpath_=/usr/lib:/lib
9629 fi
9630
9631 fi
9632
9633 aix_libpath=$lt_cv_aix_libpath_
9634 fi
9635
9636 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9637 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
9638 else
9639 if test ia64 = "$host_cpu"; then
9640 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9641 allow_undefined_flag="-z nodefs"
9642 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"
9643 else
9644 # Determine the default libpath from the value encoded in an
9645 # empty executable.
9646 if test set = "${lt_cv_aix_libpath+set}"; then
9647 aix_libpath=$lt_cv_aix_libpath
9648 else
9649 if ${lt_cv_aix_libpath_+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654
9655 int
9656 main ()
9657 {
9658
9659 ;
9660 return 0;
9661 }
9662 _ACEOF
9663 if ac_fn_c_try_link "$LINENO"; then :
9664
9665 lt_aix_libpath_sed='
9666 /Import File Strings/,/^$/ {
9667 /^0/ {
9668 s/^0 *\([^ ]*\) *$/\1/
9669 p
9670 }
9671 }'
9672 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9673 # Check for a 64-bit object if we didn't find anything.
9674 if test -z "$lt_cv_aix_libpath_"; then
9675 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9676 fi
9677 fi
9678 rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9680 if test -z "$lt_cv_aix_libpath_"; then
9681 lt_cv_aix_libpath_=/usr/lib:/lib
9682 fi
9683
9684 fi
9685
9686 aix_libpath=$lt_cv_aix_libpath_
9687 fi
9688
9689 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9690 # Warning - without using the other run time loading flags,
9691 # -berok will link without error, but may produce a broken library.
9692 no_undefined_flag=' $wl-bernotok'
9693 allow_undefined_flag=' $wl-berok'
9694 if test yes = "$with_gnu_ld"; then
9695 # We only use this code for GNU lds that support --whole-archive.
9696 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9697 else
9698 # Exported symbols can be pulled into shared objects from archives
9699 whole_archive_flag_spec='$convenience'
9700 fi
9701 archive_cmds_need_lc=yes
9702 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9703 # -brtl affects multiple linker settings, -berok does not and is overridden later
9704 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9705 if test svr4 != "$with_aix_soname"; then
9706 # This is similar to how AIX traditionally builds its shared libraries.
9707 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'
9708 fi
9709 if test aix != "$with_aix_soname"; then
9710 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'
9711 else
9712 # used by -dlpreopen to get the symbols
9713 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9714 fi
9715 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9716 fi
9717 fi
9718 ;;
9719
9720 amigaos*)
9721 case $host_cpu in
9722 powerpc)
9723 # see comment about AmigaOS4 .so support
9724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9725 archive_expsym_cmds=''
9726 ;;
9727 m68k)
9728 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)'
9729 hardcode_libdir_flag_spec='-L$libdir'
9730 hardcode_minus_L=yes
9731 ;;
9732 esac
9733 ;;
9734
9735 bsdi[45]*)
9736 export_dynamic_flag_spec=-rdynamic
9737 ;;
9738
9739 cygwin* | mingw* | pw32* | cegcc*)
9740 # When not using gcc, we currently assume that we are using
9741 # Microsoft Visual C++.
9742 # hardcode_libdir_flag_spec is actually meaningless, as there is
9743 # no search path for DLLs.
9744 case $cc_basename in
9745 cl*)
9746 # Native MSVC
9747 hardcode_libdir_flag_spec=' '
9748 allow_undefined_flag=unsupported
9749 always_export_symbols=yes
9750 file_list_spec='@'
9751 # Tell ltmain to make .lib files, not .a files.
9752 libext=lib
9753 # Tell ltmain to make .dll files, not .so files.
9754 shrext_cmds=.dll
9755 # FIXME: Setting linknames here is a bad hack.
9756 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9757 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9758 cp "$export_symbols" "$output_objdir/$soname.def";
9759 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9760 else
9761 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9762 fi~
9763 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9764 linknames='
9765 # The linker will not automatically build a static lib if we build a DLL.
9766 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9767 enable_shared_with_static_runtimes=yes
9768 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9769 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9770 # Don't use ranlib
9771 old_postinstall_cmds='chmod 644 $oldlib'
9772 postlink_cmds='lt_outputfile="@OUTPUT@"~
9773 lt_tool_outputfile="@TOOL_OUTPUT@"~
9774 case $lt_outputfile in
9775 *.exe|*.EXE) ;;
9776 *)
9777 lt_outputfile=$lt_outputfile.exe
9778 lt_tool_outputfile=$lt_tool_outputfile.exe
9779 ;;
9780 esac~
9781 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9782 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9783 $RM "$lt_outputfile.manifest";
9784 fi'
9785 ;;
9786 *)
9787 # Assume MSVC wrapper
9788 hardcode_libdir_flag_spec=' '
9789 allow_undefined_flag=unsupported
9790 # Tell ltmain to make .lib files, not .a files.
9791 libext=lib
9792 # Tell ltmain to make .dll files, not .so files.
9793 shrext_cmds=.dll
9794 # FIXME: Setting linknames here is a bad hack.
9795 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9796 # The linker will automatically build a .lib file if we build a DLL.
9797 old_archive_from_new_cmds='true'
9798 # FIXME: Should let the user specify the lib program.
9799 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9800 enable_shared_with_static_runtimes=yes
9801 ;;
9802 esac
9803 ;;
9804
9805 darwin* | rhapsody*)
9806
9807
9808 archive_cmds_need_lc=no
9809 hardcode_direct=no
9810 hardcode_automatic=yes
9811 hardcode_shlibpath_var=unsupported
9812 if test yes = "$lt_cv_ld_force_load"; then
9813 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\"`'
9814
9815 else
9816 whole_archive_flag_spec=''
9817 fi
9818 link_all_deplibs=yes
9819 allow_undefined_flag=$_lt_dar_allow_undefined
9820 case $cc_basename in
9821 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9822 *) _lt_dar_can_shared=$GCC ;;
9823 esac
9824 if test yes = "$_lt_dar_can_shared"; then
9825 output_verbose_link_cmd=func_echo_all
9826 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9827 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9828 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"
9829 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"
9830
9831 else
9832 ld_shlibs=no
9833 fi
9834
9835 ;;
9836
9837 dgux*)
9838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_libdir_flag_spec='-L$libdir'
9840 hardcode_shlibpath_var=no
9841 ;;
9842
9843 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9844 # support. Future versions do this automatically, but an explicit c++rt0.o
9845 # does not break anything, and helps significantly (at the cost of a little
9846 # extra space).
9847 freebsd2.2*)
9848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9849 hardcode_libdir_flag_spec='-R$libdir'
9850 hardcode_direct=yes
9851 hardcode_shlibpath_var=no
9852 ;;
9853
9854 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9855 freebsd2.*)
9856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_direct=yes
9858 hardcode_minus_L=yes
9859 hardcode_shlibpath_var=no
9860 ;;
9861
9862 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9863 freebsd* | dragonfly*)
9864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9865 hardcode_libdir_flag_spec='-R$libdir'
9866 hardcode_direct=yes
9867 hardcode_shlibpath_var=no
9868 ;;
9869
9870 hpux9*)
9871 if test yes = "$GCC"; then
9872 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'
9873 else
9874 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'
9875 fi
9876 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9877 hardcode_libdir_separator=:
9878 hardcode_direct=yes
9879
9880 # hardcode_minus_L: Not really in the search PATH,
9881 # but as the default location of the library.
9882 hardcode_minus_L=yes
9883 export_dynamic_flag_spec='$wl-E'
9884 ;;
9885
9886 hpux10*)
9887 if test yes,no = "$GCC,$with_gnu_ld"; then
9888 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9889 else
9890 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9891 fi
9892 if test no = "$with_gnu_ld"; then
9893 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9894 hardcode_libdir_separator=:
9895 hardcode_direct=yes
9896 hardcode_direct_absolute=yes
9897 export_dynamic_flag_spec='$wl-E'
9898 # hardcode_minus_L: Not really in the search PATH,
9899 # but as the default location of the library.
9900 hardcode_minus_L=yes
9901 fi
9902 ;;
9903
9904 hpux11*)
9905 if test yes,no = "$GCC,$with_gnu_ld"; then
9906 case $host_cpu in
9907 hppa*64*)
9908 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9909 ;;
9910 ia64*)
9911 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9912 ;;
9913 *)
9914 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9915 ;;
9916 esac
9917 else
9918 case $host_cpu in
9919 hppa*64*)
9920 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 ;;
9922 ia64*)
9923 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9924 ;;
9925 *)
9926
9927 # Older versions of the 11.00 compiler do not understand -b yet
9928 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9930 $as_echo_n "checking if $CC understands -b... " >&6; }
9931 if ${lt_cv_prog_compiler__b+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 lt_cv_prog_compiler__b=no
9935 save_LDFLAGS=$LDFLAGS
9936 LDFLAGS="$LDFLAGS -b"
9937 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9939 # The linker can only warn and ignore the option if not recognized
9940 # So say no if there are warnings
9941 if test -s conftest.err; then
9942 # Append any errors to the config.log.
9943 cat conftest.err 1>&5
9944 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9946 if diff conftest.exp conftest.er2 >/dev/null; then
9947 lt_cv_prog_compiler__b=yes
9948 fi
9949 else
9950 lt_cv_prog_compiler__b=yes
9951 fi
9952 fi
9953 $RM -r conftest*
9954 LDFLAGS=$save_LDFLAGS
9955
9956 fi
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9958 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9959
9960 if test yes = "$lt_cv_prog_compiler__b"; then
9961 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9962 else
9963 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9964 fi
9965
9966 ;;
9967 esac
9968 fi
9969 if test no = "$with_gnu_ld"; then
9970 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9971 hardcode_libdir_separator=:
9972
9973 case $host_cpu in
9974 hppa*64*|ia64*)
9975 hardcode_direct=no
9976 hardcode_shlibpath_var=no
9977 ;;
9978 *)
9979 hardcode_direct=yes
9980 hardcode_direct_absolute=yes
9981 export_dynamic_flag_spec='$wl-E'
9982
9983 # hardcode_minus_L: Not really in the search PATH,
9984 # but as the default location of the library.
9985 hardcode_minus_L=yes
9986 ;;
9987 esac
9988 fi
9989 ;;
9990
9991 irix5* | irix6* | nonstopux*)
9992 if test yes = "$GCC"; then
9993 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'
9994 # Try to use the -exported_symbol ld option, if it does not
9995 # work, assume that -exports_file does not work either and
9996 # implicitly export all symbols.
9997 # This should be the same for all languages, so no per-tag cache variable.
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9999 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10000 if ${lt_cv_irix_exported_symbol+:} false; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 save_LDFLAGS=$LDFLAGS
10004 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 int foo (void) { return 0; }
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 lt_cv_irix_exported_symbol=yes
10011 else
10012 lt_cv_irix_exported_symbol=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LDFLAGS=$save_LDFLAGS
10017 fi
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10019 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10020 if test yes = "$lt_cv_irix_exported_symbol"; then
10021 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'
10022 fi
10023 link_all_deplibs=no
10024 else
10025 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'
10026 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'
10027 fi
10028 archive_cmds_need_lc='no'
10029 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10030 hardcode_libdir_separator=:
10031 inherit_rpath=yes
10032 link_all_deplibs=yes
10033 ;;
10034
10035 linux*)
10036 case $cc_basename in
10037 tcc*)
10038 # Fabrice Bellard et al's Tiny C Compiler
10039 ld_shlibs=yes
10040 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10041 ;;
10042 esac
10043 ;;
10044
10045 netbsd* | netbsdelf*-gnu)
10046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10048 else
10049 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10050 fi
10051 hardcode_libdir_flag_spec='-R$libdir'
10052 hardcode_direct=yes
10053 hardcode_shlibpath_var=no
10054 ;;
10055
10056 newsos6)
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_direct=yes
10059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10060 hardcode_libdir_separator=:
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 *nto* | *qnx*)
10065 ;;
10066
10067 openbsd* | bitrig*)
10068 if test -f /usr/libexec/ld.so; then
10069 hardcode_direct=yes
10070 hardcode_shlibpath_var=no
10071 hardcode_direct_absolute=yes
10072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10075 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10076 export_dynamic_flag_spec='$wl-E'
10077 else
10078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10079 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10080 fi
10081 else
10082 ld_shlibs=no
10083 fi
10084 ;;
10085
10086 os2*)
10087 hardcode_libdir_flag_spec='-L$libdir'
10088 hardcode_minus_L=yes
10089 allow_undefined_flag=unsupported
10090 shrext_cmds=.dll
10091 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10092 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10093 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10094 $ECHO EXPORTS >> $output_objdir/$libname.def~
10095 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10096 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10097 emximp -o $lib $output_objdir/$libname.def'
10098 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10099 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10100 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10101 $ECHO EXPORTS >> $output_objdir/$libname.def~
10102 prefix_cmds="$SED"~
10103 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10104 prefix_cmds="$prefix_cmds -e 1d";
10105 fi~
10106 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10107 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10108 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10109 emximp -o $lib $output_objdir/$libname.def'
10110 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10111 enable_shared_with_static_runtimes=yes
10112 ;;
10113
10114 osf3*)
10115 if test yes = "$GCC"; then
10116 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10117 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'
10118 else
10119 allow_undefined_flag=' -expect_unresolved \*'
10120 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'
10121 fi
10122 archive_cmds_need_lc='no'
10123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10124 hardcode_libdir_separator=:
10125 ;;
10126
10127 osf4* | osf5*) # as osf3* with the addition of -msym flag
10128 if test yes = "$GCC"; then
10129 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10130 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'
10131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10132 else
10133 allow_undefined_flag=' -expect_unresolved \*'
10134 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'
10135 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~
10136 $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'
10137
10138 # Both c and cxx compiler support -rpath directly
10139 hardcode_libdir_flag_spec='-rpath $libdir'
10140 fi
10141 archive_cmds_need_lc='no'
10142 hardcode_libdir_separator=:
10143 ;;
10144
10145 solaris*)
10146 no_undefined_flag=' -z defs'
10147 if test yes = "$GCC"; then
10148 wlarc='$wl'
10149 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10151 $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'
10152 else
10153 case `$CC -V 2>&1` in
10154 *"Compilers 5.0"*)
10155 wlarc=''
10156 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10158 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10159 ;;
10160 *)
10161 wlarc='$wl'
10162 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10164 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10165 ;;
10166 esac
10167 fi
10168 hardcode_libdir_flag_spec='-R$libdir'
10169 hardcode_shlibpath_var=no
10170 case $host_os in
10171 solaris2.[0-5] | solaris2.[0-5].*) ;;
10172 *)
10173 # The compiler driver will combine and reorder linker options,
10174 # but understands '-z linker_flag'. GCC discards it without '$wl',
10175 # but is careful enough not to reorder.
10176 # Supported since Solaris 2.6 (maybe 2.5.1?)
10177 if test yes = "$GCC"; then
10178 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10179 else
10180 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10181 fi
10182 ;;
10183 esac
10184 link_all_deplibs=yes
10185 ;;
10186
10187 sunos4*)
10188 if test sequent = "$host_vendor"; then
10189 # Use $CC to link under sequent, because it throws in some extra .o
10190 # files that make .init and .fini sections work.
10191 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10192 else
10193 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10194 fi
10195 hardcode_libdir_flag_spec='-L$libdir'
10196 hardcode_direct=yes
10197 hardcode_minus_L=yes
10198 hardcode_shlibpath_var=no
10199 ;;
10200
10201 sysv4)
10202 case $host_vendor in
10203 sni)
10204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10205 hardcode_direct=yes # is this really true???
10206 ;;
10207 siemens)
10208 ## LD is ld it makes a PLAMLIB
10209 ## CC just makes a GrossModule.
10210 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10211 reload_cmds='$CC -r -o $output$reload_objs'
10212 hardcode_direct=no
10213 ;;
10214 motorola)
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10217 ;;
10218 esac
10219 runpath_var='LD_RUN_PATH'
10220 hardcode_shlibpath_var=no
10221 ;;
10222
10223 sysv4.3*)
10224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225 hardcode_shlibpath_var=no
10226 export_dynamic_flag_spec='-Bexport'
10227 ;;
10228
10229 sysv4*MP*)
10230 if test -d /usr/nec; then
10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_shlibpath_var=no
10233 runpath_var=LD_RUN_PATH
10234 hardcode_runpath_var=yes
10235 ld_shlibs=yes
10236 fi
10237 ;;
10238
10239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10240 no_undefined_flag='$wl-z,text'
10241 archive_cmds_need_lc=no
10242 hardcode_shlibpath_var=no
10243 runpath_var='LD_RUN_PATH'
10244
10245 if test yes = "$GCC"; then
10246 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 else
10249 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 fi
10252 ;;
10253
10254 sysv5* | sco3.2v5* | sco5v6*)
10255 # Note: We CANNOT use -z defs as we might desire, because we do not
10256 # link with -lc, and that would cause any symbols used from libc to
10257 # always be unresolved, which means just about no library would
10258 # ever link correctly. If we're not using GNU ld we use -z text
10259 # though, which does catch some bad symbols but isn't as heavy-handed
10260 # as -z defs.
10261 no_undefined_flag='$wl-z,text'
10262 allow_undefined_flag='$wl-z,nodefs'
10263 archive_cmds_need_lc=no
10264 hardcode_shlibpath_var=no
10265 hardcode_libdir_flag_spec='$wl-R,$libdir'
10266 hardcode_libdir_separator=':'
10267 link_all_deplibs=yes
10268 export_dynamic_flag_spec='$wl-Bexport'
10269 runpath_var='LD_RUN_PATH'
10270
10271 if test yes = "$GCC"; then
10272 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 else
10275 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 fi
10278 ;;
10279
10280 uts4*)
10281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10282 hardcode_libdir_flag_spec='-L$libdir'
10283 hardcode_shlibpath_var=no
10284 ;;
10285
10286 *)
10287 ld_shlibs=no
10288 ;;
10289 esac
10290
10291 if test sni = "$host_vendor"; then
10292 case $host in
10293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10294 export_dynamic_flag_spec='$wl-Blargedynsym'
10295 ;;
10296 esac
10297 fi
10298 fi
10299
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10301 $as_echo "$ld_shlibs" >&6; }
10302 test no = "$ld_shlibs" && can_build_shared=no
10303
10304 with_gnu_ld=$with_gnu_ld
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 #
10321 # Do we need to explicitly link libc?
10322 #
10323 case "x$archive_cmds_need_lc" in
10324 x|xyes)
10325 # Assume -lc should be added
10326 archive_cmds_need_lc=yes
10327
10328 if test yes,yes = "$GCC,$enable_shared"; then
10329 case $archive_cmds in
10330 *'~'*)
10331 # FIXME: we may have to deal with multi-command sequences.
10332 ;;
10333 '$CC '*)
10334 # Test whether the compiler implicitly links with -lc since on some
10335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10336 # to ld, don't add -lc before -lgcc.
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10338 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10339 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 $RM conftest*
10343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10344
10345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10346 (eval $ac_compile) 2>&5
10347 ac_status=$?
10348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10349 test $ac_status = 0; } 2>conftest.err; then
10350 soname=conftest
10351 lib=conftest
10352 libobjs=conftest.$ac_objext
10353 deplibs=
10354 wl=$lt_prog_compiler_wl
10355 pic_flag=$lt_prog_compiler_pic
10356 compiler_flags=-v
10357 linker_flags=-v
10358 verstring=
10359 output_objdir=.
10360 libname=conftest
10361 lt_save_allow_undefined_flag=$allow_undefined_flag
10362 allow_undefined_flag=
10363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10364 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10365 ac_status=$?
10366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10367 test $ac_status = 0; }
10368 then
10369 lt_cv_archive_cmds_need_lc=no
10370 else
10371 lt_cv_archive_cmds_need_lc=yes
10372 fi
10373 allow_undefined_flag=$lt_save_allow_undefined_flag
10374 else
10375 cat conftest.err 1>&5
10376 fi
10377 $RM conftest*
10378
10379 fi
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10381 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10382 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10383 ;;
10384 esac
10385 fi
10386 ;;
10387 esac
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10541 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10542
10543 if test yes = "$GCC"; then
10544 case $host_os in
10545 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10546 *) lt_awk_arg='/^libraries:/' ;;
10547 esac
10548 case $host_os in
10549 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10550 *) lt_sed_strip_eq='s|=/|/|g' ;;
10551 esac
10552 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10553 case $lt_search_path_spec in
10554 *\;*)
10555 # if the path contains ";" then we assume it to be the separator
10556 # otherwise default to the standard path separator (i.e. ":") - it is
10557 # assumed that no part of a normal pathname contains ";" but that should
10558 # okay in the real world where ";" in dirpaths is itself problematic.
10559 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10560 ;;
10561 *)
10562 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10563 ;;
10564 esac
10565 # Ok, now we have the path, separated by spaces, we can step through it
10566 # and add multilib dir if necessary...
10567 lt_tmp_lt_search_path_spec=
10568 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10569 # ...but if some path component already ends with the multilib dir we assume
10570 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10571 case "$lt_multi_os_dir; $lt_search_path_spec " in
10572 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10573 lt_multi_os_dir=
10574 ;;
10575 esac
10576 for lt_sys_path in $lt_search_path_spec; do
10577 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10578 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10579 elif test -n "$lt_multi_os_dir"; then
10580 test -d "$lt_sys_path" && \
10581 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10582 fi
10583 done
10584 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10585 BEGIN {RS = " "; FS = "/|\n";} {
10586 lt_foo = "";
10587 lt_count = 0;
10588 for (lt_i = NF; lt_i > 0; lt_i--) {
10589 if ($lt_i != "" && $lt_i != ".") {
10590 if ($lt_i == "..") {
10591 lt_count++;
10592 } else {
10593 if (lt_count == 0) {
10594 lt_foo = "/" $lt_i lt_foo;
10595 } else {
10596 lt_count--;
10597 }
10598 }
10599 }
10600 }
10601 if (lt_foo != "") { lt_freq[lt_foo]++; }
10602 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10603 }'`
10604 # AWK program above erroneously prepends '/' to C:/dos/paths
10605 # for these hosts.
10606 case $host_os in
10607 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10608 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10609 esac
10610 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10611 else
10612 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10613 fi
10614 library_names_spec=
10615 libname_spec='lib$name'
10616 soname_spec=
10617 shrext_cmds=.so
10618 postinstall_cmds=
10619 postuninstall_cmds=
10620 finish_cmds=
10621 finish_eval=
10622 shlibpath_var=
10623 shlibpath_overrides_runpath=unknown
10624 version_type=none
10625 dynamic_linker="$host_os ld.so"
10626 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10627 need_lib_prefix=unknown
10628 hardcode_into_libs=no
10629
10630 # when you set need_version to no, make sure it does not cause -set_version
10631 # flags to be left without arguments
10632 need_version=unknown
10633
10634
10635
10636 case $host_os in
10637 aix3*)
10638 version_type=linux # correct to gnu/linux during the next big refactor
10639 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10640 shlibpath_var=LIBPATH
10641
10642 # AIX 3 has no versioning support, so we append a major version to the name.
10643 soname_spec='$libname$release$shared_ext$major'
10644 ;;
10645
10646 aix[4-9]*)
10647 version_type=linux # correct to gnu/linux during the next big refactor
10648 need_lib_prefix=no
10649 need_version=no
10650 hardcode_into_libs=yes
10651 if test ia64 = "$host_cpu"; then
10652 # AIX 5 supports IA64
10653 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 else
10656 # With GCC up to 2.95.x, collect2 would create an import file
10657 # for dependence libraries. The import file would start with
10658 # the line '#! .'. This would cause the generated library to
10659 # depend on '.', always an invalid library. This was fixed in
10660 # development snapshots of GCC prior to 3.0.
10661 case $host_os in
10662 aix4 | aix4.[01] | aix4.[01].*)
10663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10664 echo ' yes '
10665 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10666 :
10667 else
10668 can_build_shared=no
10669 fi
10670 ;;
10671 esac
10672 # Using Import Files as archive members, it is possible to support
10673 # filename-based versioning of shared library archives on AIX. While
10674 # this would work for both with and without runtime linking, it will
10675 # prevent static linking of such archives. So we do filename-based
10676 # shared library versioning with .so extension only, which is used
10677 # when both runtime linking and shared linking is enabled.
10678 # Unfortunately, runtime linking may impact performance, so we do
10679 # not want this to be the default eventually. Also, we use the
10680 # versioned .so libs for executables only if there is the -brtl
10681 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10682 # To allow for filename-based versioning support, we need to create
10683 # libNAME.so.V as an archive file, containing:
10684 # *) an Import File, referring to the versioned filename of the
10685 # archive as well as the shared archive member, telling the
10686 # bitwidth (32 or 64) of that shared object, and providing the
10687 # list of exported symbols of that shared object, eventually
10688 # decorated with the 'weak' keyword
10689 # *) the shared object with the F_LOADONLY flag set, to really avoid
10690 # it being seen by the linker.
10691 # At run time we better use the real file rather than another symlink,
10692 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10693
10694 case $with_aix_soname,$aix_use_runtimelinking in
10695 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10696 # soname into executable. Probably we can add versioning support to
10697 # collect2, so additional links can be useful in future.
10698 aix,yes) # traditional libtool
10699 dynamic_linker='AIX unversionable lib.so'
10700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10701 # instead of lib<name>.a to let people know that these are not
10702 # typical AIX shared libraries.
10703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10704 ;;
10705 aix,no) # traditional AIX only
10706 dynamic_linker='AIX lib.a(lib.so.V)'
10707 # We preserve .a as extension for shared libraries through AIX4.2
10708 # and later when we are not doing run time linking.
10709 library_names_spec='$libname$release.a $libname.a'
10710 soname_spec='$libname$release$shared_ext$major'
10711 ;;
10712 svr4,*) # full svr4 only
10713 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10714 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10715 # We do not specify a path in Import Files, so LIBPATH fires.
10716 shlibpath_overrides_runpath=yes
10717 ;;
10718 *,yes) # both, prefer svr4
10719 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10720 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10721 # unpreferred sharedlib libNAME.a needs extra handling
10722 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"'
10723 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"'
10724 # We do not specify a path in Import Files, so LIBPATH fires.
10725 shlibpath_overrides_runpath=yes
10726 ;;
10727 *,no) # both, prefer aix
10728 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10729 library_names_spec='$libname$release.a $libname.a'
10730 soname_spec='$libname$release$shared_ext$major'
10731 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10732 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)'
10733 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"'
10734 ;;
10735 esac
10736 shlibpath_var=LIBPATH
10737 fi
10738 ;;
10739
10740 amigaos*)
10741 case $host_cpu in
10742 powerpc)
10743 # Since July 2007 AmigaOS4 officially supports .so libraries.
10744 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10746 ;;
10747 m68k)
10748 library_names_spec='$libname.ixlibrary $libname.a'
10749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10750 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'
10751 ;;
10752 esac
10753 ;;
10754
10755 beos*)
10756 library_names_spec='$libname$shared_ext'
10757 dynamic_linker="$host_os ld.so"
10758 shlibpath_var=LIBRARY_PATH
10759 ;;
10760
10761 bsdi[45]*)
10762 version_type=linux # correct to gnu/linux during the next big refactor
10763 need_version=no
10764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10765 soname_spec='$libname$release$shared_ext$major'
10766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10770 # the default ld.so.conf also contains /usr/contrib/lib and
10771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10772 # libtool to hard-code these into programs
10773 ;;
10774
10775 cygwin* | mingw* | pw32* | cegcc*)
10776 version_type=windows
10777 shrext_cmds=.dll
10778 need_version=no
10779 need_lib_prefix=no
10780
10781 case $GCC,$cc_basename in
10782 yes,*)
10783 # gcc
10784 library_names_spec='$libname.dll.a'
10785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10786 postinstall_cmds='base_file=`basename \$file`~
10787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10788 dldir=$destdir/`dirname \$dlpath`~
10789 test -d \$dldir || mkdir -p \$dldir~
10790 $install_prog $dir/$dlname \$dldir/$dlname~
10791 chmod a+x \$dldir/$dlname~
10792 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10793 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10794 fi'
10795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10796 dlpath=$dir/\$dldll~
10797 $RM \$dlpath'
10798 shlibpath_overrides_runpath=yes
10799
10800 case $host_os in
10801 cygwin*)
10802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10803 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10804
10805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10806 ;;
10807 mingw* | cegcc*)
10808 # MinGW DLLs use traditional 'lib' prefix
10809 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10810 ;;
10811 pw32*)
10812 # pw32 DLLs use 'pw' prefix rather than 'lib'
10813 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10814 ;;
10815 esac
10816 dynamic_linker='Win32 ld.exe'
10817 ;;
10818
10819 *,cl*)
10820 # Native MSVC
10821 libname_spec='$name'
10822 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10823 library_names_spec='$libname.dll.lib'
10824
10825 case $build_os in
10826 mingw*)
10827 sys_lib_search_path_spec=
10828 lt_save_ifs=$IFS
10829 IFS=';'
10830 for lt_path in $LIB
10831 do
10832 IFS=$lt_save_ifs
10833 # Let DOS variable expansion print the short 8.3 style file name.
10834 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10835 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10836 done
10837 IFS=$lt_save_ifs
10838 # Convert to MSYS style.
10839 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10840 ;;
10841 cygwin*)
10842 # Convert to unix form, then to dos form, then back to unix form
10843 # but this time dos style (no spaces!) so that the unix form looks
10844 # like /cygdrive/c/PROGRA~1:/cygdr...
10845 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10846 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10847 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10848 ;;
10849 *)
10850 sys_lib_search_path_spec=$LIB
10851 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10852 # It is most probably a Windows format PATH.
10853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10854 else
10855 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10856 fi
10857 # FIXME: find the short name or the path components, as spaces are
10858 # common. (e.g. "Program Files" -> "PROGRA~1")
10859 ;;
10860 esac
10861
10862 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10863 postinstall_cmds='base_file=`basename \$file`~
10864 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10865 dldir=$destdir/`dirname \$dlpath`~
10866 test -d \$dldir || mkdir -p \$dldir~
10867 $install_prog $dir/$dlname \$dldir/$dlname'
10868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10869 dlpath=$dir/\$dldll~
10870 $RM \$dlpath'
10871 shlibpath_overrides_runpath=yes
10872 dynamic_linker='Win32 link.exe'
10873 ;;
10874
10875 *)
10876 # Assume MSVC wrapper
10877 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10878 dynamic_linker='Win32 ld.exe'
10879 ;;
10880 esac
10881 # FIXME: first we should search . and the directory the executable is in
10882 shlibpath_var=PATH
10883 ;;
10884
10885 darwin* | rhapsody*)
10886 dynamic_linker="$host_os dyld"
10887 version_type=darwin
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10891 soname_spec='$libname$release$major$shared_ext'
10892 shlibpath_overrides_runpath=yes
10893 shlibpath_var=DYLD_LIBRARY_PATH
10894 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10895
10896 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10898 ;;
10899
10900 dgux*)
10901 version_type=linux # correct to gnu/linux during the next big refactor
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10905 soname_spec='$libname$release$shared_ext$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 ;;
10908
10909 freebsd* | dragonfly*)
10910 # DragonFly does not have aout. When/if they implement a new
10911 # versioning mechanism, adjust this.
10912 if test -x /usr/bin/objformat; then
10913 objformat=`/usr/bin/objformat`
10914 else
10915 case $host_os in
10916 freebsd[23].*) objformat=aout ;;
10917 *) objformat=elf ;;
10918 esac
10919 fi
10920 version_type=freebsd-$objformat
10921 case $version_type in
10922 freebsd-elf*)
10923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10924 soname_spec='$libname$release$shared_ext$major'
10925 need_version=no
10926 need_lib_prefix=no
10927 ;;
10928 freebsd-*)
10929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10930 need_version=yes
10931 ;;
10932 esac
10933 shlibpath_var=LD_LIBRARY_PATH
10934 case $host_os in
10935 freebsd2.*)
10936 shlibpath_overrides_runpath=yes
10937 ;;
10938 freebsd3.[01]* | freebsdelf3.[01]*)
10939 shlibpath_overrides_runpath=yes
10940 hardcode_into_libs=yes
10941 ;;
10942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10944 shlibpath_overrides_runpath=no
10945 hardcode_into_libs=yes
10946 ;;
10947 *) # from 4.6 on, and DragonFly
10948 shlibpath_overrides_runpath=yes
10949 hardcode_into_libs=yes
10950 ;;
10951 esac
10952 ;;
10953
10954 haiku*)
10955 version_type=linux # correct to gnu/linux during the next big refactor
10956 need_lib_prefix=no
10957 need_version=no
10958 dynamic_linker="$host_os runtime_loader"
10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960 soname_spec='$libname$release$shared_ext$major'
10961 shlibpath_var=LIBRARY_PATH
10962 shlibpath_overrides_runpath=no
10963 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10964 hardcode_into_libs=yes
10965 ;;
10966
10967 hpux9* | hpux10* | hpux11*)
10968 # Give a soname corresponding to the major version so that dld.sl refuses to
10969 # link against other versions.
10970 version_type=sunos
10971 need_lib_prefix=no
10972 need_version=no
10973 case $host_cpu in
10974 ia64*)
10975 shrext_cmds='.so'
10976 hardcode_into_libs=yes
10977 dynamic_linker="$host_os dld.so"
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10981 soname_spec='$libname$release$shared_ext$major'
10982 if test 32 = "$HPUX_IA64_MODE"; then
10983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10984 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10985 else
10986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10987 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10988 fi
10989 ;;
10990 hppa*64*)
10991 shrext_cmds='.sl'
10992 hardcode_into_libs=yes
10993 dynamic_linker="$host_os dld.sl"
10994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10997 soname_spec='$libname$release$shared_ext$major'
10998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11000 ;;
11001 *)
11002 shrext_cmds='.sl'
11003 dynamic_linker="$host_os dld.sl"
11004 shlibpath_var=SHLIB_PATH
11005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11007 soname_spec='$libname$release$shared_ext$major'
11008 ;;
11009 esac
11010 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11011 postinstall_cmds='chmod 555 $lib'
11012 # or fails outright, so override atomically:
11013 install_override_mode=555
11014 ;;
11015
11016 interix[3-9]*)
11017 version_type=linux # correct to gnu/linux during the next big refactor
11018 need_lib_prefix=no
11019 need_version=no
11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11021 soname_spec='$libname$release$shared_ext$major'
11022 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=no
11025 hardcode_into_libs=yes
11026 ;;
11027
11028 irix5* | irix6* | nonstopux*)
11029 case $host_os in
11030 nonstopux*) version_type=nonstopux ;;
11031 *)
11032 if test yes = "$lt_cv_prog_gnu_ld"; then
11033 version_type=linux # correct to gnu/linux during the next big refactor
11034 else
11035 version_type=irix
11036 fi ;;
11037 esac
11038 need_lib_prefix=no
11039 need_version=no
11040 soname_spec='$libname$release$shared_ext$major'
11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11042 case $host_os in
11043 irix5* | nonstopux*)
11044 libsuff= shlibsuff=
11045 ;;
11046 *)
11047 case $LD in # libtool.m4 will add one of these switches to LD
11048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11049 libsuff= shlibsuff= libmagic=32-bit;;
11050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11051 libsuff=32 shlibsuff=N32 libmagic=N32;;
11052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11054 *) libsuff= shlibsuff= libmagic=never-match;;
11055 esac
11056 ;;
11057 esac
11058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11059 shlibpath_overrides_runpath=no
11060 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11061 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11062 hardcode_into_libs=yes
11063 ;;
11064
11065 # No shared lib support for Linux oldld, aout, or coff.
11066 linux*oldld* | linux*aout* | linux*coff*)
11067 dynamic_linker=no
11068 ;;
11069
11070 linux*android*)
11071 version_type=none # Android doesn't support versioned libraries.
11072 need_lib_prefix=no
11073 need_version=no
11074 library_names_spec='$libname$release$shared_ext'
11075 soname_spec='$libname$release$shared_ext'
11076 finish_cmds=
11077 shlibpath_var=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath=yes
11079
11080 # This implies no fast_install, which is unacceptable.
11081 # Some rework will be needed to allow for fast_install
11082 # before this can be enabled.
11083 hardcode_into_libs=yes
11084
11085 dynamic_linker='Android linker'
11086 # Don't embed -rpath directories since the linker doesn't support them.
11087 hardcode_libdir_flag_spec='-L$libdir'
11088 ;;
11089
11090 # This must be glibc/ELF.
11091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11092 version_type=linux # correct to gnu/linux during the next big refactor
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11096 soname_spec='$libname$release$shared_ext$major'
11097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=no
11100
11101 # Some binutils ld are patched to set DT_RUNPATH
11102 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 lt_cv_shlibpath_overrides_runpath=no
11106 save_LDFLAGS=$LDFLAGS
11107 save_libdir=$libdir
11108 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11109 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112
11113 int
11114 main ()
11115 {
11116
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"; then :
11122 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11123 lt_cv_shlibpath_overrides_runpath=yes
11124 fi
11125 fi
11126 rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LDFLAGS=$save_LDFLAGS
11129 libdir=$save_libdir
11130
11131 fi
11132
11133 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11134
11135 # This implies no fast_install, which is unacceptable.
11136 # Some rework will be needed to allow for fast_install
11137 # before this can be enabled.
11138 hardcode_into_libs=yes
11139
11140 # Ideally, we could use ldconfig to report *all* directores which are
11141 # searched for libraries, however this is still not possible. Aside from not
11142 # being certain /sbin/ldconfig is available, command
11143 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11144 # even though it is searched at run-time. Try to do the best guess by
11145 # appending ld.so.conf contents (and includes) to the search path.
11146 if test -f /etc/ld.so.conf; then
11147 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' ' '`
11148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11149 fi
11150
11151 # We used to test for /lib/ld.so.1 and disable shared libraries on
11152 # powerpc, because MkLinux only supported shared libraries with the
11153 # GNU dynamic linker. Since this was broken with cross compilers,
11154 # most powerpc-linux boxes support dynamic linking these days and
11155 # people can always --disable-shared, the test was removed, and we
11156 # assume the GNU/Linux dynamic linker is in use.
11157 dynamic_linker='GNU/Linux ld.so'
11158 ;;
11159
11160 netbsdelf*-gnu)
11161 version_type=linux
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=no
11168 hardcode_into_libs=yes
11169 dynamic_linker='NetBSD ld.elf_so'
11170 ;;
11171
11172 netbsd*)
11173 version_type=sunos
11174 need_lib_prefix=no
11175 need_version=no
11176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11177 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11179 dynamic_linker='NetBSD (a.out) ld.so'
11180 else
11181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11182 soname_spec='$libname$release$shared_ext$major'
11183 dynamic_linker='NetBSD ld.elf_so'
11184 fi
11185 shlibpath_var=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath=yes
11187 hardcode_into_libs=yes
11188 ;;
11189
11190 newsos6)
11191 version_type=linux # correct to gnu/linux during the next big refactor
11192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=yes
11195 ;;
11196
11197 *nto* | *qnx*)
11198 version_type=qnx
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202 soname_spec='$libname$release$shared_ext$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11206 dynamic_linker='ldqnx.so'
11207 ;;
11208
11209 openbsd* | bitrig*)
11210 version_type=sunos
11211 sys_lib_dlsearch_path_spec=/usr/lib
11212 need_lib_prefix=no
11213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11214 need_version=no
11215 else
11216 need_version=yes
11217 fi
11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath=yes
11222 ;;
11223
11224 os2*)
11225 libname_spec='$name'
11226 version_type=windows
11227 shrext_cmds=.dll
11228 need_version=no
11229 need_lib_prefix=no
11230 # OS/2 can only load a DLL with a base name of 8 characters or less.
11231 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11232 v=$($ECHO $release$versuffix | tr -d .-);
11233 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11234 $ECHO $n$v`$shared_ext'
11235 library_names_spec='${libname}_dll.$libext'
11236 dynamic_linker='OS/2 ld.exe'
11237 shlibpath_var=BEGINLIBPATH
11238 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11240 postinstall_cmds='base_file=`basename \$file`~
11241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11242 dldir=$destdir/`dirname \$dlpath`~
11243 test -d \$dldir || mkdir -p \$dldir~
11244 $install_prog $dir/$dlname \$dldir/$dlname~
11245 chmod a+x \$dldir/$dlname~
11246 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11247 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11248 fi'
11249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11250 dlpath=$dir/\$dldll~
11251 $RM \$dlpath'
11252 ;;
11253
11254 osf3* | osf4* | osf5*)
11255 version_type=osf
11256 need_lib_prefix=no
11257 need_version=no
11258 soname_spec='$libname$release$shared_ext$major'
11259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11263 ;;
11264
11265 rdos*)
11266 dynamic_linker=no
11267 ;;
11268
11269 solaris*)
11270 version_type=linux # correct to gnu/linux during the next big refactor
11271 need_lib_prefix=no
11272 need_version=no
11273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11274 soname_spec='$libname$release$shared_ext$major'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=yes
11277 hardcode_into_libs=yes
11278 # ldd complains unless libraries are executable
11279 postinstall_cmds='chmod +x $lib'
11280 ;;
11281
11282 sunos4*)
11283 version_type=sunos
11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 shlibpath_overrides_runpath=yes
11288 if test yes = "$with_gnu_ld"; then
11289 need_lib_prefix=no
11290 fi
11291 need_version=yes
11292 ;;
11293
11294 sysv4 | sysv4.3*)
11295 version_type=linux # correct to gnu/linux during the next big refactor
11296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11297 soname_spec='$libname$release$shared_ext$major'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 case $host_vendor in
11300 sni)
11301 shlibpath_overrides_runpath=no
11302 need_lib_prefix=no
11303 runpath_var=LD_RUN_PATH
11304 ;;
11305 siemens)
11306 need_lib_prefix=no
11307 ;;
11308 motorola)
11309 need_lib_prefix=no
11310 need_version=no
11311 shlibpath_overrides_runpath=no
11312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11313 ;;
11314 esac
11315 ;;
11316
11317 sysv4*MP*)
11318 if test -d /usr/nec; then
11319 version_type=linux # correct to gnu/linux during the next big refactor
11320 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11321 soname_spec='$libname$shared_ext.$major'
11322 shlibpath_var=LD_LIBRARY_PATH
11323 fi
11324 ;;
11325
11326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11327 version_type=sco
11328 need_lib_prefix=no
11329 need_version=no
11330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11331 soname_spec='$libname$release$shared_ext$major'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes
11334 hardcode_into_libs=yes
11335 if test yes = "$with_gnu_ld"; then
11336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11337 else
11338 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11339 case $host_os in
11340 sco3.2v5*)
11341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11342 ;;
11343 esac
11344 fi
11345 sys_lib_dlsearch_path_spec='/usr/lib'
11346 ;;
11347
11348 tpf*)
11349 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11350 version_type=linux # correct to gnu/linux during the next big refactor
11351 need_lib_prefix=no
11352 need_version=no
11353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11354 shlibpath_var=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath=no
11356 hardcode_into_libs=yes
11357 ;;
11358
11359 uts4*)
11360 version_type=linux # correct to gnu/linux during the next big refactor
11361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11362 soname_spec='$libname$release$shared_ext$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 ;;
11365
11366 *)
11367 dynamic_linker=no
11368 ;;
11369 esac
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11371 $as_echo "$dynamic_linker" >&6; }
11372 test no = "$dynamic_linker" && can_build_shared=no
11373
11374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11375 if test yes = "$GCC"; then
11376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11377 fi
11378
11379 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11380 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11381 fi
11382
11383 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11384 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11385 fi
11386
11387 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11388 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11389
11390 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11391 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11392
11393 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11394 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11493 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11494 hardcode_action=
11495 if test -n "$hardcode_libdir_flag_spec" ||
11496 test -n "$runpath_var" ||
11497 test yes = "$hardcode_automatic"; then
11498
11499 # We can hardcode non-existent directories.
11500 if test no != "$hardcode_direct" &&
11501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11502 # have to relink, otherwise we might link with an installed library
11503 # when we should be linking with a yet-to-be-installed one
11504 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11505 test no != "$hardcode_minus_L"; then
11506 # Linking always hardcodes the temporary library directory.
11507 hardcode_action=relink
11508 else
11509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11510 hardcode_action=immediate
11511 fi
11512 else
11513 # We cannot hardcode anything, or else we can only hardcode existing
11514 # directories.
11515 hardcode_action=unsupported
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11518 $as_echo "$hardcode_action" >&6; }
11519
11520 if test relink = "$hardcode_action" ||
11521 test yes = "$inherit_rpath"; then
11522 # Fast installation is not supported
11523 enable_fast_install=no
11524 elif test yes = "$shlibpath_overrides_runpath" ||
11525 test no = "$enable_shared"; then
11526 # Fast installation is not necessary
11527 enable_fast_install=needless
11528 fi
11529
11530
11531
11532
11533
11534
11535 if test yes != "$enable_dlopen"; then
11536 enable_dlopen=unknown
11537 enable_dlopen_self=unknown
11538 enable_dlopen_self_static=unknown
11539 else
11540 lt_cv_dlopen=no
11541 lt_cv_dlopen_libs=
11542
11543 case $host_os in
11544 beos*)
11545 lt_cv_dlopen=load_add_on
11546 lt_cv_dlopen_libs=
11547 lt_cv_dlopen_self=yes
11548 ;;
11549
11550 mingw* | pw32* | cegcc*)
11551 lt_cv_dlopen=LoadLibrary
11552 lt_cv_dlopen_libs=
11553 ;;
11554
11555 cygwin*)
11556 lt_cv_dlopen=dlopen
11557 lt_cv_dlopen_libs=
11558 ;;
11559
11560 darwin*)
11561 # if libdl is installed we need to link against it
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11564 if ${ac_cv_lib_dl_dlopen+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-ldl $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char dlopen ();
11579 int
11580 main ()
11581 {
11582 return dlopen ();
11583 ;
11584 return 0;
11585 }
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_lib_dl_dlopen=yes
11589 else
11590 ac_cv_lib_dl_dlopen=no
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11598 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11599 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11600 else
11601
11602 lt_cv_dlopen=dyld
11603 lt_cv_dlopen_libs=
11604 lt_cv_dlopen_self=yes
11605
11606 fi
11607
11608 ;;
11609
11610 tpf*)
11611 # Don't try to run any link tests for TPF. We know it's impossible
11612 # because TPF is a cross-compiler, and we know how we open DSOs.
11613 lt_cv_dlopen=dlopen
11614 lt_cv_dlopen_libs=
11615 lt_cv_dlopen_self=no
11616 ;;
11617
11618 *)
11619 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11620 if test "x$ac_cv_func_shl_load" = xyes; then :
11621 lt_cv_dlopen=shl_load
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11624 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11625 if ${ac_cv_lib_dld_shl_load+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-ldld $LIBS"
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char shl_load ();
11640 int
11641 main ()
11642 {
11643 return shl_load ();
11644 ;
11645 return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"; then :
11649 ac_cv_lib_dld_shl_load=yes
11650 else
11651 ac_cv_lib_dld_shl_load=no
11652 fi
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11656 fi
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11658 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11659 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11660 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11661 else
11662 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11663 if test "x$ac_cv_func_dlopen" = xyes; then :
11664 lt_cv_dlopen=dlopen
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11668 if ${ac_cv_lib_dl_dlopen+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 ac_check_lib_save_LIBS=$LIBS
11672 LIBS="-ldl $LIBS"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char dlopen ();
11683 int
11684 main ()
11685 {
11686 return dlopen ();
11687 ;
11688 return 0;
11689 }
11690 _ACEOF
11691 if ac_fn_c_try_link "$LINENO"; then :
11692 ac_cv_lib_dl_dlopen=yes
11693 else
11694 ac_cv_lib_dl_dlopen=no
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11702 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11703 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11706 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11707 if ${ac_cv_lib_svld_dlopen+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 ac_check_lib_save_LIBS=$LIBS
11711 LIBS="-lsvld $LIBS"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 char dlopen ();
11722 int
11723 main ()
11724 {
11725 return dlopen ();
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 ac_cv_lib_svld_dlopen=yes
11732 else
11733 ac_cv_lib_svld_dlopen=no
11734 fi
11735 rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LIBS=$ac_check_lib_save_LIBS
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11740 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11741 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11742 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11745 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11746 if ${ac_cv_lib_dld_dld_link+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-ldld $LIBS"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11753
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char dld_link ();
11761 int
11762 main ()
11763 {
11764 return dld_link ();
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770 ac_cv_lib_dld_dld_link=yes
11771 else
11772 ac_cv_lib_dld_dld_link=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11779 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11780 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11781 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11782 fi
11783
11784
11785 fi
11786
11787
11788 fi
11789
11790
11791 fi
11792
11793
11794 fi
11795
11796
11797 fi
11798
11799 ;;
11800 esac
11801
11802 if test no = "$lt_cv_dlopen"; then
11803 enable_dlopen=no
11804 else
11805 enable_dlopen=yes
11806 fi
11807
11808 case $lt_cv_dlopen in
11809 dlopen)
11810 save_CPPFLAGS=$CPPFLAGS
11811 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11812
11813 save_LDFLAGS=$LDFLAGS
11814 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11815
11816 save_LIBS=$LIBS
11817 LIBS="$lt_cv_dlopen_libs $LIBS"
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11820 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11821 if ${lt_cv_dlopen_self+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test yes = "$cross_compiling"; then :
11825 lt_cv_dlopen_self=cross
11826 else
11827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11828 lt_status=$lt_dlunknown
11829 cat > conftest.$ac_ext <<_LT_EOF
11830 #line $LINENO "configure"
11831 #include "confdefs.h"
11832
11833 #if HAVE_DLFCN_H
11834 #include <dlfcn.h>
11835 #endif
11836
11837 #include <stdio.h>
11838
11839 #ifdef RTLD_GLOBAL
11840 # define LT_DLGLOBAL RTLD_GLOBAL
11841 #else
11842 # ifdef DL_GLOBAL
11843 # define LT_DLGLOBAL DL_GLOBAL
11844 # else
11845 # define LT_DLGLOBAL 0
11846 # endif
11847 #endif
11848
11849 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11850 find out it does not work in some platform. */
11851 #ifndef LT_DLLAZY_OR_NOW
11852 # ifdef RTLD_LAZY
11853 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11854 # else
11855 # ifdef DL_LAZY
11856 # define LT_DLLAZY_OR_NOW DL_LAZY
11857 # else
11858 # ifdef RTLD_NOW
11859 # define LT_DLLAZY_OR_NOW RTLD_NOW
11860 # else
11861 # ifdef DL_NOW
11862 # define LT_DLLAZY_OR_NOW DL_NOW
11863 # else
11864 # define LT_DLLAZY_OR_NOW 0
11865 # endif
11866 # endif
11867 # endif
11868 # endif
11869 #endif
11870
11871 /* When -fvisibility=hidden is used, assume the code has been annotated
11872 correspondingly for the symbols needed. */
11873 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11874 int fnord () __attribute__((visibility("default")));
11875 #endif
11876
11877 int fnord () { return 42; }
11878 int main ()
11879 {
11880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11881 int status = $lt_dlunknown;
11882
11883 if (self)
11884 {
11885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11886 else
11887 {
11888 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11889 else puts (dlerror ());
11890 }
11891 /* dlclose (self); */
11892 }
11893 else
11894 puts (dlerror ());
11895
11896 return status;
11897 }
11898 _LT_EOF
11899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11900 (eval $ac_link) 2>&5
11901 ac_status=$?
11902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11903 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11904 (./conftest; exit; ) >&5 2>/dev/null
11905 lt_status=$?
11906 case x$lt_status in
11907 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11908 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11909 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11910 esac
11911 else :
11912 # compilation failed
11913 lt_cv_dlopen_self=no
11914 fi
11915 fi
11916 rm -fr conftest*
11917
11918
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11921 $as_echo "$lt_cv_dlopen_self" >&6; }
11922
11923 if test yes = "$lt_cv_dlopen_self"; then
11924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11926 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11927 if ${lt_cv_dlopen_self_static+:} false; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 if test yes = "$cross_compiling"; then :
11931 lt_cv_dlopen_self_static=cross
11932 else
11933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11934 lt_status=$lt_dlunknown
11935 cat > conftest.$ac_ext <<_LT_EOF
11936 #line $LINENO "configure"
11937 #include "confdefs.h"
11938
11939 #if HAVE_DLFCN_H
11940 #include <dlfcn.h>
11941 #endif
11942
11943 #include <stdio.h>
11944
11945 #ifdef RTLD_GLOBAL
11946 # define LT_DLGLOBAL RTLD_GLOBAL
11947 #else
11948 # ifdef DL_GLOBAL
11949 # define LT_DLGLOBAL DL_GLOBAL
11950 # else
11951 # define LT_DLGLOBAL 0
11952 # endif
11953 #endif
11954
11955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11956 find out it does not work in some platform. */
11957 #ifndef LT_DLLAZY_OR_NOW
11958 # ifdef RTLD_LAZY
11959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11960 # else
11961 # ifdef DL_LAZY
11962 # define LT_DLLAZY_OR_NOW DL_LAZY
11963 # else
11964 # ifdef RTLD_NOW
11965 # define LT_DLLAZY_OR_NOW RTLD_NOW
11966 # else
11967 # ifdef DL_NOW
11968 # define LT_DLLAZY_OR_NOW DL_NOW
11969 # else
11970 # define LT_DLLAZY_OR_NOW 0
11971 # endif
11972 # endif
11973 # endif
11974 # endif
11975 #endif
11976
11977 /* When -fvisibility=hidden is used, assume the code has been annotated
11978 correspondingly for the symbols needed. */
11979 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11980 int fnord () __attribute__((visibility("default")));
11981 #endif
11982
11983 int fnord () { return 42; }
11984 int main ()
11985 {
11986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11987 int status = $lt_dlunknown;
11988
11989 if (self)
11990 {
11991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11992 else
11993 {
11994 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11995 else puts (dlerror ());
11996 }
11997 /* dlclose (self); */
11998 }
11999 else
12000 puts (dlerror ());
12001
12002 return status;
12003 }
12004 _LT_EOF
12005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12006 (eval $ac_link) 2>&5
12007 ac_status=$?
12008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12009 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12010 (./conftest; exit; ) >&5 2>/dev/null
12011 lt_status=$?
12012 case x$lt_status in
12013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12015 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12016 esac
12017 else :
12018 # compilation failed
12019 lt_cv_dlopen_self_static=no
12020 fi
12021 fi
12022 rm -fr conftest*
12023
12024
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12027 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12028 fi
12029
12030 CPPFLAGS=$save_CPPFLAGS
12031 LDFLAGS=$save_LDFLAGS
12032 LIBS=$save_LIBS
12033 ;;
12034 esac
12035
12036 case $lt_cv_dlopen_self in
12037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12038 *) enable_dlopen_self=unknown ;;
12039 esac
12040
12041 case $lt_cv_dlopen_self_static in
12042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12043 *) enable_dlopen_self_static=unknown ;;
12044 esac
12045 fi
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063 striplib=
12064 old_striplib=
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12066 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12067 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12071 $as_echo "yes" >&6; }
12072 else
12073 # FIXME - insert some real tests, host_os isn't really good enough
12074 case $host_os in
12075 darwin*)
12076 if test -n "$STRIP"; then
12077 striplib="$STRIP -x"
12078 old_striplib="$STRIP -S"
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12080 $as_echo "yes" >&6; }
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 fi
12085 ;;
12086 *)
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 ;;
12090 esac
12091 fi
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104 # Report what library types will actually be built
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12106 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12108 $as_echo "$can_build_shared" >&6; }
12109
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12111 $as_echo_n "checking whether to build shared libraries... " >&6; }
12112 test no = "$can_build_shared" && enable_shared=no
12113
12114 # On AIX, shared libraries and static libraries use the same namespace, and
12115 # are all built from PIC.
12116 case $host_os in
12117 aix3*)
12118 test yes = "$enable_shared" && enable_static=no
12119 if test -n "$RANLIB"; then
12120 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12121 postinstall_cmds='$RANLIB $lib'
12122 fi
12123 ;;
12124
12125 aix[4-9]*)
12126 if test ia64 != "$host_cpu"; then
12127 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12128 yes,aix,yes) ;; # shared object as lib.so file only
12129 yes,svr4,*) ;; # shared object as lib.so archive member only
12130 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12131 esac
12132 fi
12133 ;;
12134 esac
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12136 $as_echo "$enable_shared" >&6; }
12137
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12139 $as_echo_n "checking whether to build static libraries... " >&6; }
12140 # Make sure either enable_shared or enable_static is yes.
12141 test yes = "$enable_shared" || enable_static=yes
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12143 $as_echo "$enable_static" >&6; }
12144
12145
12146
12147
12148 fi
12149 ac_ext=c
12150 ac_cpp='$CPP $CPPFLAGS'
12151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12154
12155 CC=$lt_save_CC
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171 ac_config_commands="$ac_config_commands libtool"
12172
12173
12174
12175
12176 # Only expand once:
12177
12178
12179
12180
12181 # Not in older autoconf versions
12182 # AS_VAR_COPY(DEST, SOURCE)
12183 # -------------------------
12184 # Set the polymorphic shell variable DEST to the contents of the polymorphic
12185 # shell variable SOURCE.
12186
12187
12188
12189
12190 # Check whether --enable-werror was given.
12191 if test "${enable_werror+set}" = set; then :
12192 enableval=$enable_werror;
12193 else
12194 enable_werror=yes
12195 fi
12196
12197
12198 # Configuration examples
12199 # Check whether --enable-examples was given.
12200 if test "${enable_examples+set}" = set; then :
12201 enableval=$enable_examples;
12202 else
12203 enable_examples=yes
12204 fi
12205
12206 if test "x$enable_examples" = "xyes"; then
12207 ENABLE_EXAMPLES_TRUE=
12208 ENABLE_EXAMPLES_FALSE='#'
12209 else
12210 ENABLE_EXAMPLES_TRUE='#'
12211 ENABLE_EXAMPLES_FALSE=
12212 fi
12213
12214
12215 # Lua module and scripts
12216
12217 # Check whether --with-lua-pc was given.
12218 if test "${with_lua_pc+set}" = set; then :
12219 withval=$with_lua_pc;
12220 else
12221 with_lua_pc=no
12222 fi
12223
12224
12225 if test "x$with_lua_pc" != "xno"; then
12226 # exit with error if not found
12227
12228 pkg_failed=no
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12230 $as_echo_n "checking for LUA... " >&6; }
12231
12232 if test -n "$LUA_CFLAGS"; then
12233 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12234 elif test -n "$PKG_CONFIG"; then
12235 if test -n "$PKG_CONFIG" && \
12236 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_lua_pc\""; } >&5
12237 ($PKG_CONFIG --exists --print-errors "$with_lua_pc") 2>&5
12238 ac_status=$?
12239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12240 test $ac_status = 0; }; then
12241 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$with_lua_pc" 2>/dev/null`
12242 test "x$?" != "x0" && pkg_failed=yes
12243 else
12244 pkg_failed=yes
12245 fi
12246 else
12247 pkg_failed=untried
12248 fi
12249 if test -n "$LUA_LIBS"; then
12250 pkg_cv_LUA_LIBS="$LUA_LIBS"
12251 elif test -n "$PKG_CONFIG"; then
12252 if test -n "$PKG_CONFIG" && \
12253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_lua_pc\""; } >&5
12254 ($PKG_CONFIG --exists --print-errors "$with_lua_pc") 2>&5
12255 ac_status=$?
12256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12257 test $ac_status = 0; }; then
12258 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$with_lua_pc" 2>/dev/null`
12259 test "x$?" != "x0" && pkg_failed=yes
12260 else
12261 pkg_failed=yes
12262 fi
12263 else
12264 pkg_failed=untried
12265 fi
12266
12267
12268
12269 if test $pkg_failed = yes; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12272
12273 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12274 _pkg_short_errors_supported=yes
12275 else
12276 _pkg_short_errors_supported=no
12277 fi
12278 if test $_pkg_short_errors_supported = yes; then
12279 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$with_lua_pc" 2>&1`
12280 else
12281 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$with_lua_pc" 2>&1`
12282 fi
12283 # Put the nasty error message in config.log where it belongs
12284 echo "$LUA_PKG_ERRORS" >&5
12285
12286 as_fn_error $? "Package requirements ($with_lua_pc) were not met:
12287
12288 $LUA_PKG_ERRORS
12289
12290 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12291 installed software in a non-standard prefix.
12292
12293 Alternatively, you may set the environment variables LUA_CFLAGS
12294 and LUA_LIBS to avoid the need to call pkg-config.
12295 See the pkg-config man page for more details." "$LINENO" 5
12296 elif test $pkg_failed = untried; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12301 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12302 is in your PATH or set the PKG_CONFIG environment variable to the full
12303 path to pkg-config.
12304
12305 Alternatively, you may set the environment variables LUA_CFLAGS
12306 and LUA_LIBS to avoid the need to call pkg-config.
12307 See the pkg-config man page for more details.
12308
12309 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12310 See \`config.log' for more details" "$LINENO" 5; }
12311 else
12312 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12313 LUA_LIBS=$pkg_cv_LUA_LIBS
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12315 $as_echo "yes" >&6; }
12316 LUAPKGCONFIG=$with_lua_pc
12317 fi
12318 fi
12319
12320 if "x$with_lua_pc" != "xno"; then
12321
12322 pkg_failed=no
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12324 $as_echo_n "checking for LUA... " >&6; }
12325
12326 if test -n "$LUA_CFLAGS"; then
12327 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12328 elif test -n "$PKG_CONFIG"; then
12329 if test -n "$PKG_CONFIG" && \
12330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_lua_pc\""; } >&5
12331 ($PKG_CONFIG --exists --print-errors "$with_lua_pc") 2>&5
12332 ac_status=$?
12333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334 test $ac_status = 0; }; then
12335 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$with_lua_pc" 2>/dev/null`
12336 test "x$?" != "x0" && pkg_failed=yes
12337 else
12338 pkg_failed=yes
12339 fi
12340 else
12341 pkg_failed=untried
12342 fi
12343 if test -n "$LUA_LIBS"; then
12344 pkg_cv_LUA_LIBS="$LUA_LIBS"
12345 elif test -n "$PKG_CONFIG"; then
12346 if test -n "$PKG_CONFIG" && \
12347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_lua_pc\""; } >&5
12348 ($PKG_CONFIG --exists --print-errors "$with_lua_pc") 2>&5
12349 ac_status=$?
12350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12351 test $ac_status = 0; }; then
12352 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$with_lua_pc" 2>/dev/null`
12353 test "x$?" != "x0" && pkg_failed=yes
12354 else
12355 pkg_failed=yes
12356 fi
12357 else
12358 pkg_failed=untried
12359 fi
12360
12361
12362
12363 if test $pkg_failed = yes; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366
12367 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12368 _pkg_short_errors_supported=yes
12369 else
12370 _pkg_short_errors_supported=no
12371 fi
12372 if test $_pkg_short_errors_supported = yes; then
12373 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$with_lua_pc" 2>&1`
12374 else
12375 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$with_lua_pc" 2>&1`
12376 fi
12377 # Put the nasty error message in config.log where it belongs
12378 echo "$LUA_PKG_ERRORS" >&5
12379
12380 enable_lua=no
12381 elif test $pkg_failed = untried; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12384 enable_lua=no
12385 else
12386 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12387 LUA_LIBS=$pkg_cv_LUA_LIBS
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12390 LUAPKGCONFIG=$with_lua_pc
12391 enable_lua=yes
12392 fi
12393 fi
12394
12395
12396 pkg_failed=no
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12398 $as_echo_n "checking for LUA... " >&6; }
12399
12400 if test -n "$LUA_CFLAGS"; then
12401 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12402 elif test -n "$PKG_CONFIG"; then
12403 if test -n "$PKG_CONFIG" && \
12404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
12405 ($PKG_CONFIG --exists --print-errors "lua") 2>&5
12406 ac_status=$?
12407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12408 test $ac_status = 0; }; then
12409 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
12410 test "x$?" != "x0" && pkg_failed=yes
12411 else
12412 pkg_failed=yes
12413 fi
12414 else
12415 pkg_failed=untried
12416 fi
12417 if test -n "$LUA_LIBS"; then
12418 pkg_cv_LUA_LIBS="$LUA_LIBS"
12419 elif test -n "$PKG_CONFIG"; then
12420 if test -n "$PKG_CONFIG" && \
12421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
12422 ($PKG_CONFIG --exists --print-errors "lua") 2>&5
12423 ac_status=$?
12424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12425 test $ac_status = 0; }; then
12426 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
12427 test "x$?" != "x0" && pkg_failed=yes
12428 else
12429 pkg_failed=yes
12430 fi
12431 else
12432 pkg_failed=untried
12433 fi
12434
12435
12436
12437 if test $pkg_failed = yes; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440
12441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12442 _pkg_short_errors_supported=yes
12443 else
12444 _pkg_short_errors_supported=no
12445 fi
12446 if test $_pkg_short_errors_supported = yes; then
12447 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua" 2>&1`
12448 else
12449 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua" 2>&1`
12450 fi
12451 # Put the nasty error message in config.log where it belongs
12452 echo "$LUA_PKG_ERRORS" >&5
12453
12454
12455 pkg_failed=no
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12457 $as_echo_n "checking for LUA... " >&6; }
12458
12459 if test -n "$LUA_CFLAGS"; then
12460 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12461 elif test -n "$PKG_CONFIG"; then
12462 if test -n "$PKG_CONFIG" && \
12463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
12464 ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
12465 ac_status=$?
12466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467 test $ac_status = 0; }; then
12468 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
12469 test "x$?" != "x0" && pkg_failed=yes
12470 else
12471 pkg_failed=yes
12472 fi
12473 else
12474 pkg_failed=untried
12475 fi
12476 if test -n "$LUA_LIBS"; then
12477 pkg_cv_LUA_LIBS="$LUA_LIBS"
12478 elif test -n "$PKG_CONFIG"; then
12479 if test -n "$PKG_CONFIG" && \
12480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
12481 ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
12482 ac_status=$?
12483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12484 test $ac_status = 0; }; then
12485 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
12486 test "x$?" != "x0" && pkg_failed=yes
12487 else
12488 pkg_failed=yes
12489 fi
12490 else
12491 pkg_failed=untried
12492 fi
12493
12494
12495
12496 if test $pkg_failed = yes; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12499
12500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12501 _pkg_short_errors_supported=yes
12502 else
12503 _pkg_short_errors_supported=no
12504 fi
12505 if test $_pkg_short_errors_supported = yes; then
12506 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
12507 else
12508 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
12509 fi
12510 # Put the nasty error message in config.log where it belongs
12511 echo "$LUA_PKG_ERRORS" >&5
12512
12513
12514 pkg_failed=no
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12516 $as_echo_n "checking for LUA... " >&6; }
12517
12518 if test -n "$LUA_CFLAGS"; then
12519 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12520 elif test -n "$PKG_CONFIG"; then
12521 if test -n "$PKG_CONFIG" && \
12522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12523 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12524 ac_status=$?
12525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12526 test $ac_status = 0; }; then
12527 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
12528 test "x$?" != "x0" && pkg_failed=yes
12529 else
12530 pkg_failed=yes
12531 fi
12532 else
12533 pkg_failed=untried
12534 fi
12535 if test -n "$LUA_LIBS"; then
12536 pkg_cv_LUA_LIBS="$LUA_LIBS"
12537 elif test -n "$PKG_CONFIG"; then
12538 if test -n "$PKG_CONFIG" && \
12539 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12540 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12541 ac_status=$?
12542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12543 test $ac_status = 0; }; then
12544 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
12545 test "x$?" != "x0" && pkg_failed=yes
12546 else
12547 pkg_failed=yes
12548 fi
12549 else
12550 pkg_failed=untried
12551 fi
12552
12553
12554
12555 if test $pkg_failed = yes; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12558
12559 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12560 _pkg_short_errors_supported=yes
12561 else
12562 _pkg_short_errors_supported=no
12563 fi
12564 if test $_pkg_short_errors_supported = yes; then
12565 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
12566 else
12567 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
12568 fi
12569 # Put the nasty error message in config.log where it belongs
12570 echo "$LUA_PKG_ERRORS" >&5
12571
12572 if test "x$enable_lua" = "xyes"; then :
12573 as_fn_error $? "Lua not found. Please use --with-lua-pc=PKG" "$LINENO" 5
12574 else
12575 enable_lua=no
12576 fi
12577
12578 elif test $pkg_failed = untried; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12581 if test "x$enable_lua" = "xyes"; then :
12582 as_fn_error $? "Lua not found. Please use --with-lua-pc=PKG" "$LINENO" 5
12583 else
12584 enable_lua=no
12585 fi
12586
12587 else
12588 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12589 LUA_LIBS=$pkg_cv_LUA_LIBS
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591 $as_echo "yes" >&6; }
12592 LUAPKGCONFIG=lua5.1
12593 fi
12594
12595 elif test $pkg_failed = untried; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12598
12599 pkg_failed=no
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12601 $as_echo_n "checking for LUA... " >&6; }
12602
12603 if test -n "$LUA_CFLAGS"; then
12604 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12605 elif test -n "$PKG_CONFIG"; then
12606 if test -n "$PKG_CONFIG" && \
12607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12608 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12609 ac_status=$?
12610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12611 test $ac_status = 0; }; then
12612 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
12613 test "x$?" != "x0" && pkg_failed=yes
12614 else
12615 pkg_failed=yes
12616 fi
12617 else
12618 pkg_failed=untried
12619 fi
12620 if test -n "$LUA_LIBS"; then
12621 pkg_cv_LUA_LIBS="$LUA_LIBS"
12622 elif test -n "$PKG_CONFIG"; then
12623 if test -n "$PKG_CONFIG" && \
12624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12625 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12626 ac_status=$?
12627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12628 test $ac_status = 0; }; then
12629 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
12630 test "x$?" != "x0" && pkg_failed=yes
12631 else
12632 pkg_failed=yes
12633 fi
12634 else
12635 pkg_failed=untried
12636 fi
12637
12638
12639
12640 if test $pkg_failed = yes; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12643
12644 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12645 _pkg_short_errors_supported=yes
12646 else
12647 _pkg_short_errors_supported=no
12648 fi
12649 if test $_pkg_short_errors_supported = yes; then
12650 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
12651 else
12652 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
12653 fi
12654 # Put the nasty error message in config.log where it belongs
12655 echo "$LUA_PKG_ERRORS" >&5
12656
12657 if test "x$enable_lua" = "xyes"; then :
12658 as_fn_error $? "Lua not found. Please use --with-lua-pc=PKG" "$LINENO" 5
12659 else
12660 enable_lua=no
12661 fi
12662
12663 elif test $pkg_failed = untried; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666 if test "x$enable_lua" = "xyes"; then :
12667 as_fn_error $? "Lua not found. Please use --with-lua-pc=PKG" "$LINENO" 5
12668 else
12669 enable_lua=no
12670 fi
12671
12672 else
12673 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12674 LUA_LIBS=$pkg_cv_LUA_LIBS
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12676 $as_echo "yes" >&6; }
12677 LUAPKGCONFIG=lua5.1
12678 fi
12679
12680 else
12681 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12682 LUA_LIBS=$pkg_cv_LUA_LIBS
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684 $as_echo "yes" >&6; }
12685 LUAPKGCONFIG=lua5.2
12686 fi
12687 elif test $pkg_failed = untried; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690
12691 pkg_failed=no
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12693 $as_echo_n "checking for LUA... " >&6; }
12694
12695 if test -n "$LUA_CFLAGS"; then
12696 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12697 elif test -n "$PKG_CONFIG"; then
12698 if test -n "$PKG_CONFIG" && \
12699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
12700 ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
12701 ac_status=$?
12702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12703 test $ac_status = 0; }; then
12704 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
12705 test "x$?" != "x0" && pkg_failed=yes
12706 else
12707 pkg_failed=yes
12708 fi
12709 else
12710 pkg_failed=untried
12711 fi
12712 if test -n "$LUA_LIBS"; then
12713 pkg_cv_LUA_LIBS="$LUA_LIBS"
12714 elif test -n "$PKG_CONFIG"; then
12715 if test -n "$PKG_CONFIG" && \
12716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
12717 ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
12718 ac_status=$?
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; then
12721 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
12722 test "x$?" != "x0" && pkg_failed=yes
12723 else
12724 pkg_failed=yes
12725 fi
12726 else
12727 pkg_failed=untried
12728 fi
12729
12730
12731
12732 if test $pkg_failed = yes; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735
12736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12737 _pkg_short_errors_supported=yes
12738 else
12739 _pkg_short_errors_supported=no
12740 fi
12741 if test $_pkg_short_errors_supported = yes; then
12742 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
12743 else
12744 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
12745 fi
12746 # Put the nasty error message in config.log where it belongs
12747 echo "$LUA_PKG_ERRORS" >&5
12748
12749
12750 pkg_failed=no
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12752 $as_echo_n "checking for LUA... " >&6; }
12753
12754 if test -n "$LUA_CFLAGS"; then
12755 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12756 elif test -n "$PKG_CONFIG"; then
12757 if test -n "$PKG_CONFIG" && \
12758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12759 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12760 ac_status=$?
12761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12762 test $ac_status = 0; }; then
12763 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
12764 test "x$?" != "x0" && pkg_failed=yes
12765 else
12766 pkg_failed=yes
12767 fi
12768 else
12769 pkg_failed=untried
12770 fi
12771 if test -n "$LUA_LIBS"; then
12772 pkg_cv_LUA_LIBS="$LUA_LIBS"
12773 elif test -n "$PKG_CONFIG"; then
12774 if test -n "$PKG_CONFIG" && \
12775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12776 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12777 ac_status=$?
12778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12779 test $ac_status = 0; }; then
12780 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
12781 test "x$?" != "x0" && pkg_failed=yes
12782 else
12783 pkg_failed=yes
12784 fi
12785 else
12786 pkg_failed=untried
12787 fi
12788
12789
12790
12791 if test $pkg_failed = yes; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794
12795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12796 _pkg_short_errors_supported=yes
12797 else
12798 _pkg_short_errors_supported=no
12799 fi
12800 if test $_pkg_short_errors_supported = yes; then
12801 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
12802 else
12803 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
12804 fi
12805 # Put the nasty error message in config.log where it belongs
12806 echo "$LUA_PKG_ERRORS" >&5
12807
12808 if test "x$enable_lua" = "xyes"; then :
12809 as_fn_error $? "Lua not found. Please use --with-lua-pc=PKG" "$LINENO" 5
12810 else
12811 enable_lua=no
12812 fi
12813
12814 elif test $pkg_failed = untried; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12817 if test "x$enable_lua" = "xyes"; then :
12818 as_fn_error $? "Lua not found. Please use --with-lua-pc=PKG" "$LINENO" 5
12819 else
12820 enable_lua=no
12821 fi
12822
12823 else
12824 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12825 LUA_LIBS=$pkg_cv_LUA_LIBS
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12827 $as_echo "yes" >&6; }
12828 LUAPKGCONFIG=lua5.1
12829 fi
12830
12831 elif test $pkg_failed = untried; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12834
12835 pkg_failed=no
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12837 $as_echo_n "checking for LUA... " >&6; }
12838
12839 if test -n "$LUA_CFLAGS"; then
12840 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12841 elif test -n "$PKG_CONFIG"; then
12842 if test -n "$PKG_CONFIG" && \
12843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12844 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12845 ac_status=$?
12846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12847 test $ac_status = 0; }; then
12848 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
12849 test "x$?" != "x0" && pkg_failed=yes
12850 else
12851 pkg_failed=yes
12852 fi
12853 else
12854 pkg_failed=untried
12855 fi
12856 if test -n "$LUA_LIBS"; then
12857 pkg_cv_LUA_LIBS="$LUA_LIBS"
12858 elif test -n "$PKG_CONFIG"; then
12859 if test -n "$PKG_CONFIG" && \
12860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12861 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; }; then
12865 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
12866 test "x$?" != "x0" && pkg_failed=yes
12867 else
12868 pkg_failed=yes
12869 fi
12870 else
12871 pkg_failed=untried
12872 fi
12873
12874
12875
12876 if test $pkg_failed = yes; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12879
12880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12881 _pkg_short_errors_supported=yes
12882 else
12883 _pkg_short_errors_supported=no
12884 fi
12885 if test $_pkg_short_errors_supported = yes; then
12886 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
12887 else
12888 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
12889 fi
12890 # Put the nasty error message in config.log where it belongs
12891 echo "$LUA_PKG_ERRORS" >&5
12892
12893 if test "x$enable_lua" = "xyes"; then :
12894 as_fn_error $? "Lua not found. Please use --with-lua-pc=PKG" "$LINENO" 5
12895 else
12896 enable_lua=no
12897 fi
12898
12899 elif test $pkg_failed = untried; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12902 if test "x$enable_lua" = "xyes"; then :
12903 as_fn_error $? "Lua not found. Please use --with-lua-pc=PKG" "$LINENO" 5
12904 else
12905 enable_lua=no
12906 fi
12907
12908 else
12909 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12910 LUA_LIBS=$pkg_cv_LUA_LIBS
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12912 $as_echo "yes" >&6; }
12913 LUAPKGCONFIG=lua5.1
12914 fi
12915
12916 else
12917 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12918 LUA_LIBS=$pkg_cv_LUA_LIBS
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12920 $as_echo "yes" >&6; }
12921 LUAPKGCONFIG=lua5.2
12922 fi
12923 else
12924 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12925 LUA_LIBS=$pkg_cv_LUA_LIBS
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12927 $as_echo "yes" >&6; }
12928 LUAPKGCONFIG=lua
12929 fi
12930
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
12932 $as_echo_n "checking Lua version... " >&6; }
12933
12934 if test -n "$LUA_VERSION"; then
12935 pkg_cv_LUA_VERSION="$LUA_VERSION"
12936 elif test -n "$PKG_CONFIG"; then
12937 if test -n "$PKG_CONFIG" && \
12938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LUAPKGCONFIG\""; } >&5
12939 ($PKG_CONFIG --exists --print-errors "$LUAPKGCONFIG") 2>&5
12940 ac_status=$?
12941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12942 test $ac_status = 0; }; then
12943 pkg_cv_LUA_VERSION=`$PKG_CONFIG --variable="V" "$LUAPKGCONFIG" 2>/dev/null`
12944 test "x$?" != "x0" && pkg_failed=yes
12945 else
12946 pkg_failed=yes
12947 fi
12948 else
12949 pkg_failed=untried
12950 fi
12951 LUA_VERSION=$pkg_cv_LUA_VERSION
12952
12953 if test "x$LUA_VERSION" = x""; then :
12954
12955 if test -n "$LUA_VERSION"; then
12956 pkg_cv_LUA_VERSION="$LUA_VERSION"
12957 elif test -n "$PKG_CONFIG"; then
12958 if test -n "$PKG_CONFIG" && \
12959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LUAPKGCONFIG\""; } >&5
12960 ($PKG_CONFIG --exists --print-errors "$LUAPKGCONFIG") 2>&5
12961 ac_status=$?
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; then
12964 pkg_cv_LUA_VERSION=`$PKG_CONFIG --variable="major_version" "$LUAPKGCONFIG" 2>/dev/null`
12965 test "x$?" != "x0" && pkg_failed=yes
12966 else
12967 pkg_failed=yes
12968 fi
12969 else
12970 pkg_failed=untried
12971 fi
12972 LUA_VERSION=$pkg_cv_LUA_VERSION
12973
12974 if test "x$LUA_VERSION" = x""; then :
12975
12976 fi
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_VERSION" >&5
12979 $as_echo "$LUA_VERSION" >&6; }
12980 LUA_LIBDIR=$libdir/lua/$LUA_VERSION
12981
12982 LUA_SHAREDIR=$datadir/lua/$LUA_VERSION
12983
12984
12985 # Expand some useful variables
12986
12987 EXP_VAR=PREFIX
12988 FROM_VAR="$prefix"
12989
12990 prefix_save=$prefix
12991 exec_prefix_save=$exec_prefix
12992
12993 if test "x$prefix" = "xNONE"; then
12994 prefix="$ac_default_prefix"
12995 fi
12996 if test "x$exec_prefix" = "xNONE"; then
12997 exec_prefix=$prefix
12998 fi
12999
13000 full_var="$FROM_VAR"
13001 while true; do
13002 new_full_var="`eval echo $full_var`"
13003 if test "x$new_full_var" = "x$full_var"; then break; fi
13004 full_var=$new_full_var
13005 done
13006
13007 full_var=$new_full_var
13008 PREFIX="$full_var"
13009
13010
13011 prefix=$prefix_save
13012 exec_prefix=$exec_prefix_save
13013
13014
13015 EXP_VAR=LIBDIR
13016 FROM_VAR="$libdir"
13017
13018 prefix_save=$prefix
13019 exec_prefix_save=$exec_prefix
13020
13021 if test "x$prefix" = "xNONE"; then
13022 prefix="$ac_default_prefix"
13023 fi
13024 if test "x$exec_prefix" = "xNONE"; then
13025 exec_prefix=$prefix
13026 fi
13027
13028 full_var="$FROM_VAR"
13029 while true; do
13030 new_full_var="`eval echo $full_var`"
13031 if test "x$new_full_var" = "x$full_var"; then break; fi
13032 full_var=$new_full_var
13033 done
13034
13035 full_var=$new_full_var
13036 LIBDIR="$full_var"
13037
13038
13039 prefix=$prefix_save
13040 exec_prefix=$exec_prefix_save
13041
13042
13043 EXP_VAR=BINDIR
13044 FROM_VAR="$bindir"
13045
13046 prefix_save=$prefix
13047 exec_prefix_save=$exec_prefix
13048
13049 if test "x$prefix" = "xNONE"; then
13050 prefix="$ac_default_prefix"
13051 fi
13052 if test "x$exec_prefix" = "xNONE"; then
13053 exec_prefix=$prefix
13054 fi
13055
13056 full_var="$FROM_VAR"
13057 while true; do
13058 new_full_var="`eval echo $full_var`"
13059 if test "x$new_full_var" = "x$full_var"; then break; fi
13060 full_var=$new_full_var
13061 done
13062
13063 full_var=$new_full_var
13064 BINDIR="$full_var"
13065
13066
13067 prefix=$prefix_save
13068 exec_prefix=$exec_prefix_save
13069
13070
13071 EXP_VAR=SBINDIR
13072 FROM_VAR="$sbindir"
13073
13074 prefix_save=$prefix
13075 exec_prefix_save=$exec_prefix
13076
13077 if test "x$prefix" = "xNONE"; then
13078 prefix="$ac_default_prefix"
13079 fi
13080 if test "x$exec_prefix" = "xNONE"; then
13081 exec_prefix=$prefix
13082 fi
13083
13084 full_var="$FROM_VAR"
13085 while true; do
13086 new_full_var="`eval echo $full_var`"
13087 if test "x$new_full_var" = "x$full_var"; then break; fi
13088 full_var=$new_full_var
13089 done
13090
13091 full_var=$new_full_var
13092 SBINDIR="$full_var"
13093
13094
13095 prefix=$prefix_save
13096 exec_prefix=$exec_prefix_save
13097
13098
13099 EXP_VAR=LIBEXECDIR
13100 FROM_VAR="$libexecdir"
13101
13102 prefix_save=$prefix
13103 exec_prefix_save=$exec_prefix
13104
13105 if test "x$prefix" = "xNONE"; then
13106 prefix="$ac_default_prefix"
13107 fi
13108 if test "x$exec_prefix" = "xNONE"; then
13109 exec_prefix=$prefix
13110 fi
13111
13112 full_var="$FROM_VAR"
13113 while true; do
13114 new_full_var="`eval echo $full_var`"
13115 if test "x$new_full_var" = "x$full_var"; then break; fi
13116 full_var=$new_full_var
13117 done
13118
13119 full_var=$new_full_var
13120 LIBEXECDIR="$full_var"
13121
13122
13123 prefix=$prefix_save
13124 exec_prefix=$exec_prefix_save
13125
13126
13127 EXP_VAR=INCLUDEDIR
13128 FROM_VAR="$includedir"
13129
13130 prefix_save=$prefix
13131 exec_prefix_save=$exec_prefix
13132
13133 if test "x$prefix" = "xNONE"; then
13134 prefix="$ac_default_prefix"
13135 fi
13136 if test "x$exec_prefix" = "xNONE"; then
13137 exec_prefix=$prefix
13138 fi
13139
13140 full_var="$FROM_VAR"
13141 while true; do
13142 new_full_var="`eval echo $full_var`"
13143 if test "x$new_full_var" = "x$full_var"; then break; fi
13144 full_var=$new_full_var
13145 done
13146
13147 full_var=$new_full_var
13148 INCLUDEDIR="$full_var"
13149
13150
13151 prefix=$prefix_save
13152 exec_prefix=$exec_prefix_save
13153
13154
13155 EXP_VAR=LXCPATH
13156 FROM_VAR="$with_config_path"
13157
13158 prefix_save=$prefix
13159 exec_prefix_save=$exec_prefix
13160
13161 if test "x$prefix" = "xNONE"; then
13162 prefix="$ac_default_prefix"
13163 fi
13164 if test "x$exec_prefix" = "xNONE"; then
13165 exec_prefix=$prefix
13166 fi
13167
13168 full_var="$FROM_VAR"
13169 while true; do
13170 new_full_var="`eval echo $full_var`"
13171 if test "x$new_full_var" = "x$full_var"; then break; fi
13172 full_var=$new_full_var
13173 done
13174
13175 full_var=$new_full_var
13176 LXCPATH="$full_var"
13177
13178
13179 prefix=$prefix_save
13180 exec_prefix=$exec_prefix_save
13181
13182
13183 # We need the install path so criu knows where to reference the hook scripts.
13184
13185 cat >>confdefs.h <<_ACEOF
13186 #define DATADIR "$DATADIR"
13187 _ACEOF
13188
13189
13190 # Check for some standard binaries
13191 if test $ac_cv_c_compiler_gnu = yes; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13193 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13194 if ${ac_cv_prog_gcc_traditional+:} false; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197 ac_pattern="Autoconf.*'x'"
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200 #include <sgtty.h>
13201 Autoconf TIOCGETP
13202 _ACEOF
13203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13204 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13205 ac_cv_prog_gcc_traditional=yes
13206 else
13207 ac_cv_prog_gcc_traditional=no
13208 fi
13209 rm -f conftest*
13210
13211
13212 if test $ac_cv_prog_gcc_traditional = no; then
13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13215 #include <termio.h>
13216 Autoconf TCGETA
13217 _ACEOF
13218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13219 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13220 ac_cv_prog_gcc_traditional=yes
13221 fi
13222 rm -f conftest*
13223
13224 fi
13225 fi
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13227 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13228 if test $ac_cv_prog_gcc_traditional = yes; then
13229 CC="$CC -traditional"
13230 fi
13231 fi
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13234 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13235 if ${ac_cv_path_SED+:} false; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13239 for ac_i in 1 2 3 4 5 6 7; do
13240 ac_script="$ac_script$as_nl$ac_script"
13241 done
13242 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13243 { ac_script=; unset ac_script;}
13244 if test -z "$SED"; then
13245 ac_path_SED_found=false
13246 # Loop through the user's path and test for each of PROGNAME-LIST
13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248 for as_dir in $PATH
13249 do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 for ac_prog in sed gsed; do
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13255 as_fn_executable_p "$ac_path_SED" || continue
13256 # Check for GNU ac_path_SED and select it if it is found.
13257 # Check for GNU $ac_path_SED
13258 case `"$ac_path_SED" --version 2>&1` in
13259 *GNU*)
13260 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13261 *)
13262 ac_count=0
13263 $as_echo_n 0123456789 >"conftest.in"
13264 while :
13265 do
13266 cat "conftest.in" "conftest.in" >"conftest.tmp"
13267 mv "conftest.tmp" "conftest.in"
13268 cp "conftest.in" "conftest.nl"
13269 $as_echo '' >> "conftest.nl"
13270 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13272 as_fn_arith $ac_count + 1 && ac_count=$as_val
13273 if test $ac_count -gt ${ac_path_SED_max-0}; then
13274 # Best one so far, save it but keep looking for a better one
13275 ac_cv_path_SED="$ac_path_SED"
13276 ac_path_SED_max=$ac_count
13277 fi
13278 # 10*(2^10) chars as input seems more than enough
13279 test $ac_count -gt 10 && break
13280 done
13281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13282 esac
13283
13284 $ac_path_SED_found && break 3
13285 done
13286 done
13287 done
13288 IFS=$as_save_IFS
13289 if test -z "$ac_cv_path_SED"; then
13290 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13291 fi
13292 else
13293 ac_cv_path_SED=$SED
13294 fi
13295
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13298 $as_echo "$ac_cv_path_SED" >&6; }
13299 SED="$ac_cv_path_SED"
13300 rm -f conftest.sed
13301
13302
13303 if test "x$GCC" = "xyes"; then
13304 CFLAGS="$CFLAGS -Wall"
13305 if test "x$enable_werror" = "xyes"; then
13306 CFLAGS="$CFLAGS -Werror"
13307 fi
13308 fi
13309
13310 # Files requiring some variable expansion
13311 ac_config_files="$ac_config_files Makefile src/Makefile"
13312
13313 ac_config_commands="$ac_config_commands default"
13314
13315 cat >confcache <<\_ACEOF
13316 # This file is a shell script that caches the results of configure
13317 # tests run on this system so they can be shared between configure
13318 # scripts and configure runs, see configure's option --config-cache.
13319 # It is not useful on other systems. If it contains results you don't
13320 # want to keep, you may remove or edit it.
13321 #
13322 # config.status only pays attention to the cache file if you give it
13323 # the --recheck option to rerun configure.
13324 #
13325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13327 # following values.
13328
13329 _ACEOF
13330
13331 # The following way of writing the cache mishandles newlines in values,
13332 # but we know of no workaround that is simple, portable, and efficient.
13333 # So, we kill variables containing newlines.
13334 # Ultrix sh set writes to stderr and can't be redirected directly,
13335 # and sets the high bit in the cache file unless we assign to the vars.
13336 (
13337 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13338 eval ac_val=\$$ac_var
13339 case $ac_val in #(
13340 *${as_nl}*)
13341 case $ac_var in #(
13342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13344 esac
13345 case $ac_var in #(
13346 _ | IFS | as_nl) ;; #(
13347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13348 *) { eval $ac_var=; unset $ac_var;} ;;
13349 esac ;;
13350 esac
13351 done
13352
13353 (set) 2>&1 |
13354 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13355 *${as_nl}ac_space=\ *)
13356 # `set' does not quote correctly, so add quotes: double-quote
13357 # substitution turns \\\\ into \\, and sed turns \\ into \.
13358 sed -n \
13359 "s/'/'\\\\''/g;
13360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13361 ;; #(
13362 *)
13363 # `set' quotes correctly as required by POSIX, so do not add quotes.
13364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13365 ;;
13366 esac |
13367 sort
13368 ) |
13369 sed '
13370 /^ac_cv_env_/b end
13371 t clear
13372 :clear
13373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13374 t end
13375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13376 :end' >>confcache
13377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13378 if test -w "$cache_file"; then
13379 if test "x$cache_file" != "x/dev/null"; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13381 $as_echo "$as_me: updating cache $cache_file" >&6;}
13382 if test ! -f "$cache_file" || test -h "$cache_file"; then
13383 cat confcache >"$cache_file"
13384 else
13385 case $cache_file in #(
13386 */* | ?:*)
13387 mv -f confcache "$cache_file"$$ &&
13388 mv -f "$cache_file"$$ "$cache_file" ;; #(
13389 *)
13390 mv -f confcache "$cache_file" ;;
13391 esac
13392 fi
13393 fi
13394 else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13396 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13397 fi
13398 fi
13399 rm -f confcache
13400
13401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13402 # Let make expand exec_prefix.
13403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13404
13405 DEFS=-DHAVE_CONFIG_H
13406
13407 ac_libobjs=
13408 ac_ltlibobjs=
13409 U=
13410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13411 # 1. Remove the extension, and $U if already installed.
13412 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13413 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13414 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13415 # will be set to the directory where LIBOBJS objects are built.
13416 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13417 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13418 done
13419 LIBOBJS=$ac_libobjs
13420
13421 LTLIBOBJS=$ac_ltlibobjs
13422
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13425 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13426 if test -n "$am_sleep_pid"; then
13427 # Hide warnings about reused PIDs.
13428 wait $am_sleep_pid 2>/dev/null
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13431 $as_echo "done" >&6; }
13432 if test -n "$EXEEXT"; then
13433 am__EXEEXT_TRUE=
13434 am__EXEEXT_FALSE='#'
13435 else
13436 am__EXEEXT_TRUE='#'
13437 am__EXEEXT_FALSE=
13438 fi
13439
13440 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13441 as_fn_error $? "conditional \"AMDEP\" was never defined.
13442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13443 fi
13444 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13445 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13447 fi
13448 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
13449 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
13450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13451 fi
13452
13453 : "${CONFIG_STATUS=./config.status}"
13454 ac_write_fail=0
13455 ac_clean_files_save=$ac_clean_files
13456 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13458 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13459 as_write_fail=0
13460 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13461 #! $SHELL
13462 # Generated by $as_me.
13463 # Run this file to recreate the current configuration.
13464 # Compiler output produced by configure, useful for debugging
13465 # configure, is in config.log if it exists.
13466
13467 debug=false
13468 ac_cs_recheck=false
13469 ac_cs_silent=false
13470
13471 SHELL=\${CONFIG_SHELL-$SHELL}
13472 export SHELL
13473 _ASEOF
13474 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13475 ## -------------------- ##
13476 ## M4sh Initialization. ##
13477 ## -------------------- ##
13478
13479 # Be more Bourne compatible
13480 DUALCASE=1; export DUALCASE # for MKS sh
13481 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13482 emulate sh
13483 NULLCMD=:
13484 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13485 # is contrary to our usage. Disable this feature.
13486 alias -g '${1+"$@"}'='"$@"'
13487 setopt NO_GLOB_SUBST
13488 else
13489 case `(set -o) 2>/dev/null` in #(
13490 *posix*) :
13491 set -o posix ;; #(
13492 *) :
13493 ;;
13494 esac
13495 fi
13496
13497
13498 as_nl='
13499 '
13500 export as_nl
13501 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13502 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13503 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13504 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13505 # Prefer a ksh shell builtin over an external printf program on Solaris,
13506 # but without wasting forks for bash or zsh.
13507 if test -z "$BASH_VERSION$ZSH_VERSION" \
13508 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13509 as_echo='print -r --'
13510 as_echo_n='print -rn --'
13511 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13512 as_echo='printf %s\n'
13513 as_echo_n='printf %s'
13514 else
13515 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13516 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13517 as_echo_n='/usr/ucb/echo -n'
13518 else
13519 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13520 as_echo_n_body='eval
13521 arg=$1;
13522 case $arg in #(
13523 *"$as_nl"*)
13524 expr "X$arg" : "X\\(.*\\)$as_nl";
13525 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13526 esac;
13527 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13528 '
13529 export as_echo_n_body
13530 as_echo_n='sh -c $as_echo_n_body as_echo'
13531 fi
13532 export as_echo_body
13533 as_echo='sh -c $as_echo_body as_echo'
13534 fi
13535
13536 # The user is always right.
13537 if test "${PATH_SEPARATOR+set}" != set; then
13538 PATH_SEPARATOR=:
13539 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13540 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13541 PATH_SEPARATOR=';'
13542 }
13543 fi
13544
13545
13546 # IFS
13547 # We need space, tab and new line, in precisely that order. Quoting is
13548 # there to prevent editors from complaining about space-tab.
13549 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13550 # splitting by setting IFS to empty value.)
13551 IFS=" "" $as_nl"
13552
13553 # Find who we are. Look in the path if we contain no directory separator.
13554 as_myself=
13555 case $0 in #((
13556 *[\\/]* ) as_myself=$0 ;;
13557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558 for as_dir in $PATH
13559 do
13560 IFS=$as_save_IFS
13561 test -z "$as_dir" && as_dir=.
13562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13563 done
13564 IFS=$as_save_IFS
13565
13566 ;;
13567 esac
13568 # We did not find ourselves, most probably we were run as `sh COMMAND'
13569 # in which case we are not to be found in the path.
13570 if test "x$as_myself" = x; then
13571 as_myself=$0
13572 fi
13573 if test ! -f "$as_myself"; then
13574 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13575 exit 1
13576 fi
13577
13578 # Unset variables that we do not need and which cause bugs (e.g. in
13579 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13580 # suppresses any "Segmentation fault" message there. '((' could
13581 # trigger a bug in pdksh 5.2.14.
13582 for as_var in BASH_ENV ENV MAIL MAILPATH
13583 do eval test x\${$as_var+set} = xset \
13584 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13585 done
13586 PS1='$ '
13587 PS2='> '
13588 PS4='+ '
13589
13590 # NLS nuisances.
13591 LC_ALL=C
13592 export LC_ALL
13593 LANGUAGE=C
13594 export LANGUAGE
13595
13596 # CDPATH.
13597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13598
13599
13600 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13601 # ----------------------------------------
13602 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13603 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13604 # script with STATUS, using 1 if that was 0.
13605 as_fn_error ()
13606 {
13607 as_status=$1; test $as_status -eq 0 && as_status=1
13608 if test "$4"; then
13609 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13610 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13611 fi
13612 $as_echo "$as_me: error: $2" >&2
13613 as_fn_exit $as_status
13614 } # as_fn_error
13615
13616
13617 # as_fn_set_status STATUS
13618 # -----------------------
13619 # Set $? to STATUS, without forking.
13620 as_fn_set_status ()
13621 {
13622 return $1
13623 } # as_fn_set_status
13624
13625 # as_fn_exit STATUS
13626 # -----------------
13627 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13628 as_fn_exit ()
13629 {
13630 set +e
13631 as_fn_set_status $1
13632 exit $1
13633 } # as_fn_exit
13634
13635 # as_fn_unset VAR
13636 # ---------------
13637 # Portably unset VAR.
13638 as_fn_unset ()
13639 {
13640 { eval $1=; unset $1;}
13641 }
13642 as_unset=as_fn_unset
13643 # as_fn_append VAR VALUE
13644 # ----------------------
13645 # Append the text in VALUE to the end of the definition contained in VAR. Take
13646 # advantage of any shell optimizations that allow amortized linear growth over
13647 # repeated appends, instead of the typical quadratic growth present in naive
13648 # implementations.
13649 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13650 eval 'as_fn_append ()
13651 {
13652 eval $1+=\$2
13653 }'
13654 else
13655 as_fn_append ()
13656 {
13657 eval $1=\$$1\$2
13658 }
13659 fi # as_fn_append
13660
13661 # as_fn_arith ARG...
13662 # ------------------
13663 # Perform arithmetic evaluation on the ARGs, and store the result in the
13664 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13665 # must be portable across $(()) and expr.
13666 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13667 eval 'as_fn_arith ()
13668 {
13669 as_val=$(( $* ))
13670 }'
13671 else
13672 as_fn_arith ()
13673 {
13674 as_val=`expr "$@" || test $? -eq 1`
13675 }
13676 fi # as_fn_arith
13677
13678
13679 if expr a : '\(a\)' >/dev/null 2>&1 &&
13680 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13681 as_expr=expr
13682 else
13683 as_expr=false
13684 fi
13685
13686 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13687 as_basename=basename
13688 else
13689 as_basename=false
13690 fi
13691
13692 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13693 as_dirname=dirname
13694 else
13695 as_dirname=false
13696 fi
13697
13698 as_me=`$as_basename -- "$0" ||
13699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13700 X"$0" : 'X\(//\)$' \| \
13701 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13702 $as_echo X/"$0" |
13703 sed '/^.*\/\([^/][^/]*\)\/*$/{
13704 s//\1/
13705 q
13706 }
13707 /^X\/\(\/\/\)$/{
13708 s//\1/
13709 q
13710 }
13711 /^X\/\(\/\).*/{
13712 s//\1/
13713 q
13714 }
13715 s/.*/./; q'`
13716
13717 # Avoid depending upon Character Ranges.
13718 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13719 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13720 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13721 as_cr_digits='0123456789'
13722 as_cr_alnum=$as_cr_Letters$as_cr_digits
13723
13724 ECHO_C= ECHO_N= ECHO_T=
13725 case `echo -n x` in #(((((
13726 -n*)
13727 case `echo 'xy\c'` in
13728 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13729 xy) ECHO_C='\c';;
13730 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13731 ECHO_T=' ';;
13732 esac;;
13733 *)
13734 ECHO_N='-n';;
13735 esac
13736
13737 rm -f conf$$ conf$$.exe conf$$.file
13738 if test -d conf$$.dir; then
13739 rm -f conf$$.dir/conf$$.file
13740 else
13741 rm -f conf$$.dir
13742 mkdir conf$$.dir 2>/dev/null
13743 fi
13744 if (echo >conf$$.file) 2>/dev/null; then
13745 if ln -s conf$$.file conf$$ 2>/dev/null; then
13746 as_ln_s='ln -s'
13747 # ... but there are two gotchas:
13748 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13749 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13750 # In both cases, we have to default to `cp -pR'.
13751 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13752 as_ln_s='cp -pR'
13753 elif ln conf$$.file conf$$ 2>/dev/null; then
13754 as_ln_s=ln
13755 else
13756 as_ln_s='cp -pR'
13757 fi
13758 else
13759 as_ln_s='cp -pR'
13760 fi
13761 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13762 rmdir conf$$.dir 2>/dev/null
13763
13764
13765 # as_fn_mkdir_p
13766 # -------------
13767 # Create "$as_dir" as a directory, including parents if necessary.
13768 as_fn_mkdir_p ()
13769 {
13770
13771 case $as_dir in #(
13772 -*) as_dir=./$as_dir;;
13773 esac
13774 test -d "$as_dir" || eval $as_mkdir_p || {
13775 as_dirs=
13776 while :; do
13777 case $as_dir in #(
13778 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13779 *) as_qdir=$as_dir;;
13780 esac
13781 as_dirs="'$as_qdir' $as_dirs"
13782 as_dir=`$as_dirname -- "$as_dir" ||
13783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13784 X"$as_dir" : 'X\(//\)[^/]' \| \
13785 X"$as_dir" : 'X\(//\)$' \| \
13786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13787 $as_echo X"$as_dir" |
13788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13789 s//\1/
13790 q
13791 }
13792 /^X\(\/\/\)[^/].*/{
13793 s//\1/
13794 q
13795 }
13796 /^X\(\/\/\)$/{
13797 s//\1/
13798 q
13799 }
13800 /^X\(\/\).*/{
13801 s//\1/
13802 q
13803 }
13804 s/.*/./; q'`
13805 test -d "$as_dir" && break
13806 done
13807 test -z "$as_dirs" || eval "mkdir $as_dirs"
13808 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13809
13810
13811 } # as_fn_mkdir_p
13812 if mkdir -p . 2>/dev/null; then
13813 as_mkdir_p='mkdir -p "$as_dir"'
13814 else
13815 test -d ./-p && rmdir ./-p
13816 as_mkdir_p=false
13817 fi
13818
13819
13820 # as_fn_executable_p FILE
13821 # -----------------------
13822 # Test if FILE is an executable regular file.
13823 as_fn_executable_p ()
13824 {
13825 test -f "$1" && test -x "$1"
13826 } # as_fn_executable_p
13827 as_test_x='test -x'
13828 as_executable_p=as_fn_executable_p
13829
13830 # Sed expression to map a string onto a valid CPP name.
13831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13832
13833 # Sed expression to map a string onto a valid variable name.
13834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13835
13836
13837 exec 6>&1
13838 ## ----------------------------------- ##
13839 ## Main body of $CONFIG_STATUS script. ##
13840 ## ----------------------------------- ##
13841 _ASEOF
13842 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13843
13844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845 # Save the log message, to keep $0 and so on meaningful, and to
13846 # report actual input values of CONFIG_FILES etc. instead of their
13847 # values after options handling.
13848 ac_log="
13849 This file was extended by lua-lxc $as_me 3.0.2, which was
13850 generated by GNU Autoconf 2.69. Invocation command line was
13851
13852 CONFIG_FILES = $CONFIG_FILES
13853 CONFIG_HEADERS = $CONFIG_HEADERS
13854 CONFIG_LINKS = $CONFIG_LINKS
13855 CONFIG_COMMANDS = $CONFIG_COMMANDS
13856 $ $0 $@
13857
13858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13859 "
13860
13861 _ACEOF
13862
13863 case $ac_config_files in *"
13864 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13865 esac
13866
13867 case $ac_config_headers in *"
13868 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13869 esac
13870
13871
13872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13873 # Files that config.status was made for.
13874 config_files="$ac_config_files"
13875 config_headers="$ac_config_headers"
13876 config_commands="$ac_config_commands"
13877
13878 _ACEOF
13879
13880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13881 ac_cs_usage="\
13882 \`$as_me' instantiates files and other configuration actions
13883 from templates according to the current configuration. Unless the files
13884 and actions are specified as TAGs, all are instantiated by default.
13885
13886 Usage: $0 [OPTION]... [TAG]...
13887
13888 -h, --help print this help, then exit
13889 -V, --version print version number and configuration settings, then exit
13890 --config print configuration, then exit
13891 -q, --quiet, --silent
13892 do not print progress messages
13893 -d, --debug don't remove temporary files
13894 --recheck update $as_me by reconfiguring in the same conditions
13895 --file=FILE[:TEMPLATE]
13896 instantiate the configuration file FILE
13897 --header=FILE[:TEMPLATE]
13898 instantiate the configuration header FILE
13899
13900 Configuration files:
13901 $config_files
13902
13903 Configuration headers:
13904 $config_headers
13905
13906 Configuration commands:
13907 $config_commands
13908
13909 Report bugs to the package provider."
13910
13911 _ACEOF
13912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13913 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13914 ac_cs_version="\\
13915 lua-lxc config.status 3.0.2
13916 configured by $0, generated by GNU Autoconf 2.69,
13917 with options \\"\$ac_cs_config\\"
13918
13919 Copyright (C) 2012 Free Software Foundation, Inc.
13920 This config.status script is free software; the Free Software Foundation
13921 gives unlimited permission to copy, distribute and modify it."
13922
13923 ac_pwd='$ac_pwd'
13924 srcdir='$srcdir'
13925 INSTALL='$INSTALL'
13926 MKDIR_P='$MKDIR_P'
13927 AWK='$AWK'
13928 test -n "\$AWK" || AWK=awk
13929 _ACEOF
13930
13931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13932 # The default lists apply if the user does not specify any file.
13933 ac_need_defaults=:
13934 while test $# != 0
13935 do
13936 case $1 in
13937 --*=?*)
13938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13939 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13940 ac_shift=:
13941 ;;
13942 --*=)
13943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13944 ac_optarg=
13945 ac_shift=:
13946 ;;
13947 *)
13948 ac_option=$1
13949 ac_optarg=$2
13950 ac_shift=shift
13951 ;;
13952 esac
13953
13954 case $ac_option in
13955 # Handling of the options.
13956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13957 ac_cs_recheck=: ;;
13958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13959 $as_echo "$ac_cs_version"; exit ;;
13960 --config | --confi | --conf | --con | --co | --c )
13961 $as_echo "$ac_cs_config"; exit ;;
13962 --debug | --debu | --deb | --de | --d | -d )
13963 debug=: ;;
13964 --file | --fil | --fi | --f )
13965 $ac_shift
13966 case $ac_optarg in
13967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13968 '') as_fn_error $? "missing file argument" ;;
13969 esac
13970 as_fn_append CONFIG_FILES " '$ac_optarg'"
13971 ac_need_defaults=false;;
13972 --header | --heade | --head | --hea )
13973 $ac_shift
13974 case $ac_optarg in
13975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13976 esac
13977 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13978 ac_need_defaults=false;;
13979 --he | --h)
13980 # Conflict between --help and --header
13981 as_fn_error $? "ambiguous option: \`$1'
13982 Try \`$0 --help' for more information.";;
13983 --help | --hel | -h )
13984 $as_echo "$ac_cs_usage"; exit ;;
13985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13987 ac_cs_silent=: ;;
13988
13989 # This is an error.
13990 -*) as_fn_error $? "unrecognized option: \`$1'
13991 Try \`$0 --help' for more information." ;;
13992
13993 *) as_fn_append ac_config_targets " $1"
13994 ac_need_defaults=false ;;
13995
13996 esac
13997 shift
13998 done
13999
14000 ac_configure_extra_args=
14001
14002 if $ac_cs_silent; then
14003 exec 6>/dev/null
14004 ac_configure_extra_args="$ac_configure_extra_args --silent"
14005 fi
14006
14007 _ACEOF
14008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14009 if \$ac_cs_recheck; then
14010 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14011 shift
14012 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14013 CONFIG_SHELL='$SHELL'
14014 export CONFIG_SHELL
14015 exec "\$@"
14016 fi
14017
14018 _ACEOF
14019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14020 exec 5>>config.log
14021 {
14022 echo
14023 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14024 ## Running $as_me. ##
14025 _ASBOX
14026 $as_echo "$ac_log"
14027 } >&5
14028
14029 _ACEOF
14030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14031 #
14032 # INIT-COMMANDS
14033 #
14034 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14035
14036
14037 # The HP-UX ksh and POSIX shell print the target directory to stdout
14038 # if CDPATH is set.
14039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14040
14041 sed_quote_subst='$sed_quote_subst'
14042 double_quote_subst='$double_quote_subst'
14043 delay_variable_subst='$delay_variable_subst'
14044 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14045 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14046 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14047 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14048 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14049 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14050 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14051 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14052 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14053 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14054 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14055 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14056 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14057 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14058 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14059 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14060 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14061 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14062 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14063 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14064 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14065 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14066 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14067 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14068 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14069 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14070 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14071 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14072 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14073 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14074 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14075 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14076 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14077 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14078 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14079 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14080 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14081 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14082 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14083 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14084 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14085 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14086 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14087 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14088 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14089 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14090 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14091 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14092 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14093 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14094 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14095 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14096 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14097 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14098 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14099 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14100 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14101 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14102 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"`'
14103 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14104 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14105 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14106 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14107 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14108 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14109 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14110 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14111 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14112 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14113 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14114 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14115 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14116 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14117 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14118 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14119 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14120 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14121 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14122 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14123 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14124 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14125 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14126 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14127 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14128 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14129 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14130 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14131 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14132 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14133 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14134 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14135 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14136 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14137 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14138 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14139 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14140 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14141 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14142 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14143 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14144 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14145 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14146 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14147 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14148 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14149 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14150 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14151 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14152 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14153 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14154 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14155 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14156 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14157 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14158 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14159 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14160 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14161 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14162 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14163 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14164 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14165 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14166 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14167 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14168 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14169 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14170 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14171 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14172 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14173 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14174 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14175 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14176 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14177 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14178 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14179
14180 LTCC='$LTCC'
14181 LTCFLAGS='$LTCFLAGS'
14182 compiler='$compiler_DEFAULT'
14183
14184 # A function that is used when there is no print builtin or printf.
14185 func_fallback_echo ()
14186 {
14187 eval 'cat <<_LTECHO_EOF
14188 \$1
14189 _LTECHO_EOF'
14190 }
14191
14192 # Quote evaled strings.
14193 for var in SHELL \
14194 ECHO \
14195 PATH_SEPARATOR \
14196 SED \
14197 GREP \
14198 EGREP \
14199 FGREP \
14200 LD \
14201 NM \
14202 LN_S \
14203 lt_SP2NL \
14204 lt_NL2SP \
14205 reload_flag \
14206 OBJDUMP \
14207 deplibs_check_method \
14208 file_magic_cmd \
14209 file_magic_glob \
14210 want_nocaseglob \
14211 DLLTOOL \
14212 sharedlib_from_linklib_cmd \
14213 AR \
14214 AR_FLAGS \
14215 archiver_list_spec \
14216 STRIP \
14217 RANLIB \
14218 CC \
14219 CFLAGS \
14220 compiler \
14221 lt_cv_sys_global_symbol_pipe \
14222 lt_cv_sys_global_symbol_to_cdecl \
14223 lt_cv_sys_global_symbol_to_import \
14224 lt_cv_sys_global_symbol_to_c_name_address \
14225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14226 lt_cv_nm_interface \
14227 nm_file_list_spec \
14228 lt_cv_truncate_bin \
14229 lt_prog_compiler_no_builtin_flag \
14230 lt_prog_compiler_pic \
14231 lt_prog_compiler_wl \
14232 lt_prog_compiler_static \
14233 lt_cv_prog_compiler_c_o \
14234 need_locks \
14235 MANIFEST_TOOL \
14236 DSYMUTIL \
14237 NMEDIT \
14238 LIPO \
14239 OTOOL \
14240 OTOOL64 \
14241 shrext_cmds \
14242 export_dynamic_flag_spec \
14243 whole_archive_flag_spec \
14244 compiler_needs_object \
14245 with_gnu_ld \
14246 allow_undefined_flag \
14247 no_undefined_flag \
14248 hardcode_libdir_flag_spec \
14249 hardcode_libdir_separator \
14250 exclude_expsyms \
14251 include_expsyms \
14252 file_list_spec \
14253 variables_saved_for_relink \
14254 libname_spec \
14255 library_names_spec \
14256 soname_spec \
14257 install_override_mode \
14258 finish_eval \
14259 old_striplib \
14260 striplib; do
14261 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14262 *[\\\\\\\`\\"\\\$]*)
14263 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14264 ;;
14265 *)
14266 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14267 ;;
14268 esac
14269 done
14270
14271 # Double-quote double-evaled strings.
14272 for var in reload_cmds \
14273 old_postinstall_cmds \
14274 old_postuninstall_cmds \
14275 old_archive_cmds \
14276 extract_expsyms_cmds \
14277 old_archive_from_new_cmds \
14278 old_archive_from_expsyms_cmds \
14279 archive_cmds \
14280 archive_expsym_cmds \
14281 module_cmds \
14282 module_expsym_cmds \
14283 export_symbols_cmds \
14284 prelink_cmds \
14285 postlink_cmds \
14286 postinstall_cmds \
14287 postuninstall_cmds \
14288 finish_cmds \
14289 sys_lib_search_path_spec \
14290 configure_time_dlsearch_path \
14291 configure_time_lt_sys_library_path; do
14292 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14293 *[\\\\\\\`\\"\\\$]*)
14294 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14295 ;;
14296 *)
14297 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14298 ;;
14299 esac
14300 done
14301
14302 ac_aux_dir='$ac_aux_dir'
14303
14304 # See if we are running on zsh, and set the options that allow our
14305 # commands through without removal of \ escapes INIT.
14306 if test -n "\${ZSH_VERSION+set}"; then
14307 setopt NO_GLOB_SUBST
14308 fi
14309
14310
14311 PACKAGE='$PACKAGE'
14312 VERSION='$VERSION'
14313 RM='$RM'
14314 ofile='$ofile'
14315
14316
14317
14318
14319
14320 _ACEOF
14321
14322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323
14324 # Handling of arguments.
14325 for ac_config_target in $ac_config_targets
14326 do
14327 case $ac_config_target in
14328 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14329 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14330 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14331 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14332 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14333 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14334
14335 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14336 esac
14337 done
14338
14339
14340 # If the user did not use the arguments to specify the items to instantiate,
14341 # then the envvar interface is used. Set only those that are not.
14342 # We use the long form for the default assignment because of an extremely
14343 # bizarre bug on SunOS 4.1.3.
14344 if $ac_need_defaults; then
14345 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14346 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14347 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14348 fi
14349
14350 # Have a temporary directory for convenience. Make it in the build tree
14351 # simply because there is no reason against having it here, and in addition,
14352 # creating and moving files from /tmp can sometimes cause problems.
14353 # Hook for its removal unless debugging.
14354 # Note that there is a small window in which the directory will not be cleaned:
14355 # after its creation but before its name has been assigned to `$tmp'.
14356 $debug ||
14357 {
14358 tmp= ac_tmp=
14359 trap 'exit_status=$?
14360 : "${ac_tmp:=$tmp}"
14361 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14362 ' 0
14363 trap 'as_fn_exit 1' 1 2 13 15
14364 }
14365 # Create a (secure) tmp directory for tmp files.
14366
14367 {
14368 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14369 test -d "$tmp"
14370 } ||
14371 {
14372 tmp=./conf$$-$RANDOM
14373 (umask 077 && mkdir "$tmp")
14374 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14375 ac_tmp=$tmp
14376
14377 # Set up the scripts for CONFIG_FILES section.
14378 # No need to generate them if there are no CONFIG_FILES.
14379 # This happens for instance with `./config.status config.h'.
14380 if test -n "$CONFIG_FILES"; then
14381
14382
14383 ac_cr=`echo X | tr X '\015'`
14384 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14385 # But we know of no other shell where ac_cr would be empty at this
14386 # point, so we can use a bashism as a fallback.
14387 if test "x$ac_cr" = x; then
14388 eval ac_cr=\$\'\\r\'
14389 fi
14390 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14391 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14392 ac_cs_awk_cr='\\r'
14393 else
14394 ac_cs_awk_cr=$ac_cr
14395 fi
14396
14397 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14398 _ACEOF
14399
14400
14401 {
14402 echo "cat >conf$$subs.awk <<_ACEOF" &&
14403 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14404 echo "_ACEOF"
14405 } >conf$$subs.sh ||
14406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14407 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14408 ac_delim='%!_!# '
14409 for ac_last_try in false false false false false :; do
14410 . ./conf$$subs.sh ||
14411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14412
14413 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14414 if test $ac_delim_n = $ac_delim_num; then
14415 break
14416 elif $ac_last_try; then
14417 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14418 else
14419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14420 fi
14421 done
14422 rm -f conf$$subs.sh
14423
14424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14425 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14426 _ACEOF
14427 sed -n '
14428 h
14429 s/^/S["/; s/!.*/"]=/
14430 p
14431 g
14432 s/^[^!]*!//
14433 :repl
14434 t repl
14435 s/'"$ac_delim"'$//
14436 t delim
14437 :nl
14438 h
14439 s/\(.\{148\}\)..*/\1/
14440 t more1
14441 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14442 p
14443 n
14444 b repl
14445 :more1
14446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14447 p
14448 g
14449 s/.\{148\}//
14450 t nl
14451 :delim
14452 h
14453 s/\(.\{148\}\)..*/\1/
14454 t more2
14455 s/["\\]/\\&/g; s/^/"/; s/$/"/
14456 p
14457 b
14458 :more2
14459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14460 p
14461 g
14462 s/.\{148\}//
14463 t delim
14464 ' <conf$$subs.awk | sed '
14465 /^[^""]/{
14466 N
14467 s/\n//
14468 }
14469 ' >>$CONFIG_STATUS || ac_write_fail=1
14470 rm -f conf$$subs.awk
14471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472 _ACAWK
14473 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14474 for (key in S) S_is_set[key] = 1
14475 FS = ""
14476
14477 }
14478 {
14479 line = $ 0
14480 nfields = split(line, field, "@")
14481 substed = 0
14482 len = length(field[1])
14483 for (i = 2; i < nfields; i++) {
14484 key = field[i]
14485 keylen = length(key)
14486 if (S_is_set[key]) {
14487 value = S[key]
14488 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14489 len += length(value) + length(field[++i])
14490 substed = 1
14491 } else
14492 len += 1 + keylen
14493 }
14494
14495 print line
14496 }
14497
14498 _ACAWK
14499 _ACEOF
14500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14501 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14502 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14503 else
14504 cat
14505 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14506 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14507 _ACEOF
14508
14509 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14510 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14511 # trailing colons and then remove the whole line if VPATH becomes empty
14512 # (actually we leave an empty line to preserve line numbers).
14513 if test "x$srcdir" = x.; then
14514 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14515 h
14516 s///
14517 s/^/:/
14518 s/[ ]*$/:/
14519 s/:\$(srcdir):/:/g
14520 s/:\${srcdir}:/:/g
14521 s/:@srcdir@:/:/g
14522 s/^:*//
14523 s/:*$//
14524 x
14525 s/\(=[ ]*\).*/\1/
14526 G
14527 s/\n//
14528 s/^[^=]*=[ ]*$//
14529 }'
14530 fi
14531
14532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14533 fi # test -n "$CONFIG_FILES"
14534
14535 # Set up the scripts for CONFIG_HEADERS section.
14536 # No need to generate them if there are no CONFIG_HEADERS.
14537 # This happens for instance with `./config.status Makefile'.
14538 if test -n "$CONFIG_HEADERS"; then
14539 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14540 BEGIN {
14541 _ACEOF
14542
14543 # Transform confdefs.h into an awk script `defines.awk', embedded as
14544 # here-document in config.status, that substitutes the proper values into
14545 # config.h.in to produce config.h.
14546
14547 # Create a delimiter string that does not exist in confdefs.h, to ease
14548 # handling of long lines.
14549 ac_delim='%!_!# '
14550 for ac_last_try in false false :; do
14551 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14552 if test -z "$ac_tt"; then
14553 break
14554 elif $ac_last_try; then
14555 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14556 else
14557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14558 fi
14559 done
14560
14561 # For the awk script, D is an array of macro values keyed by name,
14562 # likewise P contains macro parameters if any. Preserve backslash
14563 # newline sequences.
14564
14565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14566 sed -n '
14567 s/.\{148\}/&'"$ac_delim"'/g
14568 t rset
14569 :rset
14570 s/^[ ]*#[ ]*define[ ][ ]*/ /
14571 t def
14572 d
14573 :def
14574 s/\\$//
14575 t bsnl
14576 s/["\\]/\\&/g
14577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14578 D["\1"]=" \3"/p
14579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14580 d
14581 :bsnl
14582 s/["\\]/\\&/g
14583 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14584 D["\1"]=" \3\\\\\\n"\\/p
14585 t cont
14586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14587 t cont
14588 d
14589 :cont
14590 n
14591 s/.\{148\}/&'"$ac_delim"'/g
14592 t clear
14593 :clear
14594 s/\\$//
14595 t bsnlc
14596 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14597 d
14598 :bsnlc
14599 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14600 b cont
14601 ' <confdefs.h | sed '
14602 s/'"$ac_delim"'/"\\\
14603 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14604
14605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 for (key in D) D_is_set[key] = 1
14607 FS = ""
14608 }
14609 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14610 line = \$ 0
14611 split(line, arg, " ")
14612 if (arg[1] == "#") {
14613 defundef = arg[2]
14614 mac1 = arg[3]
14615 } else {
14616 defundef = substr(arg[1], 2)
14617 mac1 = arg[2]
14618 }
14619 split(mac1, mac2, "(") #)
14620 macro = mac2[1]
14621 prefix = substr(line, 1, index(line, defundef) - 1)
14622 if (D_is_set[macro]) {
14623 # Preserve the white space surrounding the "#".
14624 print prefix "define", macro P[macro] D[macro]
14625 next
14626 } else {
14627 # Replace #undef with comments. This is necessary, for example,
14628 # in the case of _POSIX_SOURCE, which is predefined and required
14629 # on some systems where configure will not decide to define it.
14630 if (defundef == "undef") {
14631 print "/*", prefix defundef, macro, "*/"
14632 next
14633 }
14634 }
14635 }
14636 { print }
14637 _ACAWK
14638 _ACEOF
14639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14640 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14641 fi # test -n "$CONFIG_HEADERS"
14642
14643
14644 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14645 shift
14646 for ac_tag
14647 do
14648 case $ac_tag in
14649 :[FHLC]) ac_mode=$ac_tag; continue;;
14650 esac
14651 case $ac_mode$ac_tag in
14652 :[FHL]*:*);;
14653 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14654 :[FH]-) ac_tag=-:-;;
14655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14656 esac
14657 ac_save_IFS=$IFS
14658 IFS=:
14659 set x $ac_tag
14660 IFS=$ac_save_IFS
14661 shift
14662 ac_file=$1
14663 shift
14664
14665 case $ac_mode in
14666 :L) ac_source=$1;;
14667 :[FH])
14668 ac_file_inputs=
14669 for ac_f
14670 do
14671 case $ac_f in
14672 -) ac_f="$ac_tmp/stdin";;
14673 *) # Look for the file first in the build tree, then in the source tree
14674 # (if the path is not absolute). The absolute path cannot be DOS-style,
14675 # because $ac_f cannot contain `:'.
14676 test -f "$ac_f" ||
14677 case $ac_f in
14678 [\\/$]*) false;;
14679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14680 esac ||
14681 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14682 esac
14683 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14684 as_fn_append ac_file_inputs " '$ac_f'"
14685 done
14686
14687 # Let's still pretend it is `configure' which instantiates (i.e., don't
14688 # use $as_me), people would be surprised to read:
14689 # /* config.h. Generated by config.status. */
14690 configure_input='Generated from '`
14691 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14692 `' by configure.'
14693 if test x"$ac_file" != x-; then
14694 configure_input="$ac_file. $configure_input"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14696 $as_echo "$as_me: creating $ac_file" >&6;}
14697 fi
14698 # Neutralize special characters interpreted by sed in replacement strings.
14699 case $configure_input in #(
14700 *\&* | *\|* | *\\* )
14701 ac_sed_conf_input=`$as_echo "$configure_input" |
14702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14703 *) ac_sed_conf_input=$configure_input;;
14704 esac
14705
14706 case $ac_tag in
14707 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14709 esac
14710 ;;
14711 esac
14712
14713 ac_dir=`$as_dirname -- "$ac_file" ||
14714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14715 X"$ac_file" : 'X\(//\)[^/]' \| \
14716 X"$ac_file" : 'X\(//\)$' \| \
14717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14718 $as_echo X"$ac_file" |
14719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14720 s//\1/
14721 q
14722 }
14723 /^X\(\/\/\)[^/].*/{
14724 s//\1/
14725 q
14726 }
14727 /^X\(\/\/\)$/{
14728 s//\1/
14729 q
14730 }
14731 /^X\(\/\).*/{
14732 s//\1/
14733 q
14734 }
14735 s/.*/./; q'`
14736 as_dir="$ac_dir"; as_fn_mkdir_p
14737 ac_builddir=.
14738
14739 case "$ac_dir" in
14740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14741 *)
14742 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14743 # A ".." for each directory in $ac_dir_suffix.
14744 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14745 case $ac_top_builddir_sub in
14746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14748 esac ;;
14749 esac
14750 ac_abs_top_builddir=$ac_pwd
14751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14752 # for backward compatibility:
14753 ac_top_builddir=$ac_top_build_prefix
14754
14755 case $srcdir in
14756 .) # We are building in place.
14757 ac_srcdir=.
14758 ac_top_srcdir=$ac_top_builddir_sub
14759 ac_abs_top_srcdir=$ac_pwd ;;
14760 [\\/]* | ?:[\\/]* ) # Absolute name.
14761 ac_srcdir=$srcdir$ac_dir_suffix;
14762 ac_top_srcdir=$srcdir
14763 ac_abs_top_srcdir=$srcdir ;;
14764 *) # Relative name.
14765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14766 ac_top_srcdir=$ac_top_build_prefix$srcdir
14767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14768 esac
14769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14770
14771
14772 case $ac_mode in
14773 :F)
14774 #
14775 # CONFIG_FILE
14776 #
14777
14778 case $INSTALL in
14779 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14780 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14781 esac
14782 ac_MKDIR_P=$MKDIR_P
14783 case $MKDIR_P in
14784 [\\/$]* | ?:[\\/]* ) ;;
14785 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14786 esac
14787 _ACEOF
14788
14789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14790 # If the template does not know about datarootdir, expand it.
14791 # FIXME: This hack should be removed a few years after 2.60.
14792 ac_datarootdir_hack=; ac_datarootdir_seen=
14793 ac_sed_dataroot='
14794 /datarootdir/ {
14795 p
14796 q
14797 }
14798 /@datadir@/p
14799 /@docdir@/p
14800 /@infodir@/p
14801 /@localedir@/p
14802 /@mandir@/p'
14803 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14804 *datarootdir*) ac_datarootdir_seen=yes;;
14805 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14807 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14808 _ACEOF
14809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14810 ac_datarootdir_hack='
14811 s&@datadir@&$datadir&g
14812 s&@docdir@&$docdir&g
14813 s&@infodir@&$infodir&g
14814 s&@localedir@&$localedir&g
14815 s&@mandir@&$mandir&g
14816 s&\\\${datarootdir}&$datarootdir&g' ;;
14817 esac
14818 _ACEOF
14819
14820 # Neutralize VPATH when `$srcdir' = `.'.
14821 # Shell code in configure.ac might set extrasub.
14822 # FIXME: do we really want to maintain this feature?
14823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14824 ac_sed_extra="$ac_vpsub
14825 $extrasub
14826 _ACEOF
14827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14828 :t
14829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14830 s|@configure_input@|$ac_sed_conf_input|;t t
14831 s&@top_builddir@&$ac_top_builddir_sub&;t t
14832 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14833 s&@srcdir@&$ac_srcdir&;t t
14834 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14835 s&@top_srcdir@&$ac_top_srcdir&;t t
14836 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14837 s&@builddir@&$ac_builddir&;t t
14838 s&@abs_builddir@&$ac_abs_builddir&;t t
14839 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14840 s&@INSTALL@&$ac_INSTALL&;t t
14841 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14842 $ac_datarootdir_hack
14843 "
14844 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14845 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14846
14847 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14848 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14849 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14850 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14852 which seems to be undefined. Please make sure it is defined" >&5
14853 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14854 which seems to be undefined. Please make sure it is defined" >&2;}
14855
14856 rm -f "$ac_tmp/stdin"
14857 case $ac_file in
14858 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14859 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14860 esac \
14861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14862 ;;
14863 :H)
14864 #
14865 # CONFIG_HEADER
14866 #
14867 if test x"$ac_file" != x-; then
14868 {
14869 $as_echo "/* $configure_input */" \
14870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14871 } >"$ac_tmp/config.h" \
14872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14873 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14875 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14876 else
14877 rm -f "$ac_file"
14878 mv "$ac_tmp/config.h" "$ac_file" \
14879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14880 fi
14881 else
14882 $as_echo "/* $configure_input */" \
14883 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14884 || as_fn_error $? "could not create -" "$LINENO" 5
14885 fi
14886 # Compute "$ac_file"'s index in $config_headers.
14887 _am_arg="$ac_file"
14888 _am_stamp_count=1
14889 for _am_header in $config_headers :; do
14890 case $_am_header in
14891 $_am_arg | $_am_arg:* )
14892 break ;;
14893 * )
14894 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14895 esac
14896 done
14897 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14898 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14899 X"$_am_arg" : 'X\(//\)[^/]' \| \
14900 X"$_am_arg" : 'X\(//\)$' \| \
14901 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14902 $as_echo X"$_am_arg" |
14903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14904 s//\1/
14905 q
14906 }
14907 /^X\(\/\/\)[^/].*/{
14908 s//\1/
14909 q
14910 }
14911 /^X\(\/\/\)$/{
14912 s//\1/
14913 q
14914 }
14915 /^X\(\/\).*/{
14916 s//\1/
14917 q
14918 }
14919 s/.*/./; q'`/stamp-h$_am_stamp_count
14920 ;;
14921
14922 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14923 $as_echo "$as_me: executing $ac_file commands" >&6;}
14924 ;;
14925 esac
14926
14927
14928 case $ac_file$ac_mode in
14929 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14930 # Older Autoconf quotes --file arguments for eval, but not when files
14931 # are listed without --file. Let's play safe and only enable the eval
14932 # if we detect the quoting.
14933 case $CONFIG_FILES in
14934 *\'*) eval set x "$CONFIG_FILES" ;;
14935 *) set x $CONFIG_FILES ;;
14936 esac
14937 shift
14938 for mf
14939 do
14940 # Strip MF so we end up with the name of the file.
14941 mf=`echo "$mf" | sed -e 's/:.*$//'`
14942 # Check whether this is an Automake generated Makefile or not.
14943 # We used to match only the files named 'Makefile.in', but
14944 # some people rename them; so instead we look at the file content.
14945 # Grep'ing the first line is not enough: some people post-process
14946 # each Makefile.in and add a new line on top of each file to say so.
14947 # Grep'ing the whole file is not good either: AIX grep has a line
14948 # limit of 2048, but all sed's we know have understand at least 4000.
14949 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14950 dirpart=`$as_dirname -- "$mf" ||
14951 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14952 X"$mf" : 'X\(//\)[^/]' \| \
14953 X"$mf" : 'X\(//\)$' \| \
14954 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14955 $as_echo X"$mf" |
14956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14957 s//\1/
14958 q
14959 }
14960 /^X\(\/\/\)[^/].*/{
14961 s//\1/
14962 q
14963 }
14964 /^X\(\/\/\)$/{
14965 s//\1/
14966 q
14967 }
14968 /^X\(\/\).*/{
14969 s//\1/
14970 q
14971 }
14972 s/.*/./; q'`
14973 else
14974 continue
14975 fi
14976 # Extract the definition of DEPDIR, am__include, and am__quote
14977 # from the Makefile without running 'make'.
14978 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14979 test -z "$DEPDIR" && continue
14980 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14981 test -z "$am__include" && continue
14982 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14983 # Find all dependency output files, they are included files with
14984 # $(DEPDIR) in their names. We invoke sed twice because it is the
14985 # simplest approach to changing $(DEPDIR) to its actual value in the
14986 # expansion.
14987 for file in `sed -n "
14988 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14989 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14990 # Make sure the directory exists.
14991 test -f "$dirpart/$file" && continue
14992 fdir=`$as_dirname -- "$file" ||
14993 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14994 X"$file" : 'X\(//\)[^/]' \| \
14995 X"$file" : 'X\(//\)$' \| \
14996 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14997 $as_echo X"$file" |
14998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14999 s//\1/
15000 q
15001 }
15002 /^X\(\/\/\)[^/].*/{
15003 s//\1/
15004 q
15005 }
15006 /^X\(\/\/\)$/{
15007 s//\1/
15008 q
15009 }
15010 /^X\(\/\).*/{
15011 s//\1/
15012 q
15013 }
15014 s/.*/./; q'`
15015 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15016 # echo "creating $dirpart/$file"
15017 echo '# dummy' > "$dirpart/$file"
15018 done
15019 done
15020 }
15021 ;;
15022 "libtool":C)
15023
15024 # See if we are running on zsh, and set the options that allow our
15025 # commands through without removal of \ escapes.
15026 if test -n "${ZSH_VERSION+set}"; then
15027 setopt NO_GLOB_SUBST
15028 fi
15029
15030 cfgfile=${ofile}T
15031 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15032 $RM "$cfgfile"
15033
15034 cat <<_LT_EOF >> "$cfgfile"
15035 #! $SHELL
15036 # Generated automatically by $as_me ($PACKAGE) $VERSION
15037 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15038
15039 # Provide generalized library-building support services.
15040 # Written by Gordon Matzigkeit, 1996
15041
15042 # Copyright (C) 2014 Free Software Foundation, Inc.
15043 # This is free software; see the source for copying conditions. There is NO
15044 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15045
15046 # GNU Libtool is free software; you can redistribute it and/or modify
15047 # it under the terms of the GNU General Public License as published by
15048 # the Free Software Foundation; either version 2 of of the License, or
15049 # (at your option) any later version.
15050 #
15051 # As a special exception to the GNU General Public License, if you
15052 # distribute this file as part of a program or library that is built
15053 # using GNU Libtool, you may include this file under the same
15054 # distribution terms that you use for the rest of that program.
15055 #
15056 # GNU Libtool is distributed in the hope that it will be useful, but
15057 # WITHOUT ANY WARRANTY; without even the implied warranty of
15058 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15059 # GNU General Public License for more details.
15060 #
15061 # You should have received a copy of the GNU General Public License
15062 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15063
15064
15065 # The names of the tagged configurations supported by this script.
15066 available_tags=''
15067
15068 # Configured defaults for sys_lib_dlsearch_path munging.
15069 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15070
15071 # ### BEGIN LIBTOOL CONFIG
15072
15073 # Which release of libtool.m4 was used?
15074 macro_version=$macro_version
15075 macro_revision=$macro_revision
15076
15077 # Whether or not to build shared libraries.
15078 build_libtool_libs=$enable_shared
15079
15080 # Whether or not to build static libraries.
15081 build_old_libs=$enable_static
15082
15083 # What type of objects to build.
15084 pic_mode=$pic_mode
15085
15086 # Whether or not to optimize for fast installation.
15087 fast_install=$enable_fast_install
15088
15089 # Shared archive member basename,for filename based shared library versioning on AIX.
15090 shared_archive_member_spec=$shared_archive_member_spec
15091
15092 # Shell to use when invoking shell scripts.
15093 SHELL=$lt_SHELL
15094
15095 # An echo program that protects backslashes.
15096 ECHO=$lt_ECHO
15097
15098 # The PATH separator for the build system.
15099 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15100
15101 # The host system.
15102 host_alias=$host_alias
15103 host=$host
15104 host_os=$host_os
15105
15106 # The build system.
15107 build_alias=$build_alias
15108 build=$build
15109 build_os=$build_os
15110
15111 # A sed program that does not truncate output.
15112 SED=$lt_SED
15113
15114 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15115 Xsed="\$SED -e 1s/^X//"
15116
15117 # A grep program that handles long lines.
15118 GREP=$lt_GREP
15119
15120 # An ERE matcher.
15121 EGREP=$lt_EGREP
15122
15123 # A literal string matcher.
15124 FGREP=$lt_FGREP
15125
15126 # A BSD- or MS-compatible name lister.
15127 NM=$lt_NM
15128
15129 # Whether we need soft or hard links.
15130 LN_S=$lt_LN_S
15131
15132 # What is the maximum length of a command?
15133 max_cmd_len=$max_cmd_len
15134
15135 # Object file suffix (normally "o").
15136 objext=$ac_objext
15137
15138 # Executable file suffix (normally "").
15139 exeext=$exeext
15140
15141 # whether the shell understands "unset".
15142 lt_unset=$lt_unset
15143
15144 # turn spaces into newlines.
15145 SP2NL=$lt_lt_SP2NL
15146
15147 # turn newlines into spaces.
15148 NL2SP=$lt_lt_NL2SP
15149
15150 # convert \$build file names to \$host format.
15151 to_host_file_cmd=$lt_cv_to_host_file_cmd
15152
15153 # convert \$build files to toolchain format.
15154 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15155
15156 # An object symbol dumper.
15157 OBJDUMP=$lt_OBJDUMP
15158
15159 # Method to check whether dependent libraries are shared objects.
15160 deplibs_check_method=$lt_deplibs_check_method
15161
15162 # Command to use when deplibs_check_method = "file_magic".
15163 file_magic_cmd=$lt_file_magic_cmd
15164
15165 # How to find potential files when deplibs_check_method = "file_magic".
15166 file_magic_glob=$lt_file_magic_glob
15167
15168 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15169 want_nocaseglob=$lt_want_nocaseglob
15170
15171 # DLL creation program.
15172 DLLTOOL=$lt_DLLTOOL
15173
15174 # Command to associate shared and link libraries.
15175 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15176
15177 # The archiver.
15178 AR=$lt_AR
15179
15180 # Flags to create an archive.
15181 AR_FLAGS=$lt_AR_FLAGS
15182
15183 # How to feed a file listing to the archiver.
15184 archiver_list_spec=$lt_archiver_list_spec
15185
15186 # A symbol stripping program.
15187 STRIP=$lt_STRIP
15188
15189 # Commands used to install an old-style archive.
15190 RANLIB=$lt_RANLIB
15191 old_postinstall_cmds=$lt_old_postinstall_cmds
15192 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15193
15194 # Whether to use a lock for old archive extraction.
15195 lock_old_archive_extraction=$lock_old_archive_extraction
15196
15197 # A C compiler.
15198 LTCC=$lt_CC
15199
15200 # LTCC compiler flags.
15201 LTCFLAGS=$lt_CFLAGS
15202
15203 # Take the output of nm and produce a listing of raw symbols and C names.
15204 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15205
15206 # Transform the output of nm in a proper C declaration.
15207 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15208
15209 # Transform the output of nm into a list of symbols to manually relocate.
15210 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15211
15212 # Transform the output of nm in a C name address pair.
15213 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15214
15215 # Transform the output of nm in a C name address pair when lib prefix is needed.
15216 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15217
15218 # The name lister interface.
15219 nm_interface=$lt_lt_cv_nm_interface
15220
15221 # Specify filename containing input files for \$NM.
15222 nm_file_list_spec=$lt_nm_file_list_spec
15223
15224 # The root where to search for dependent libraries,and where our libraries should be installed.
15225 lt_sysroot=$lt_sysroot
15226
15227 # Command to truncate a binary pipe.
15228 lt_truncate_bin=$lt_lt_cv_truncate_bin
15229
15230 # The name of the directory that contains temporary libtool files.
15231 objdir=$objdir
15232
15233 # Used to examine libraries when file_magic_cmd begins with "file".
15234 MAGIC_CMD=$MAGIC_CMD
15235
15236 # Must we lock files when doing compilation?
15237 need_locks=$lt_need_locks
15238
15239 # Manifest tool.
15240 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15241
15242 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15243 DSYMUTIL=$lt_DSYMUTIL
15244
15245 # Tool to change global to local symbols on Mac OS X.
15246 NMEDIT=$lt_NMEDIT
15247
15248 # Tool to manipulate fat objects and archives on Mac OS X.
15249 LIPO=$lt_LIPO
15250
15251 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15252 OTOOL=$lt_OTOOL
15253
15254 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15255 OTOOL64=$lt_OTOOL64
15256
15257 # Old archive suffix (normally "a").
15258 libext=$libext
15259
15260 # Shared library suffix (normally ".so").
15261 shrext_cmds=$lt_shrext_cmds
15262
15263 # The commands to extract the exported symbol list from a shared archive.
15264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15265
15266 # Variables whose values should be saved in libtool wrapper scripts and
15267 # restored at link time.
15268 variables_saved_for_relink=$lt_variables_saved_for_relink
15269
15270 # Do we need the "lib" prefix for modules?
15271 need_lib_prefix=$need_lib_prefix
15272
15273 # Do we need a version for libraries?
15274 need_version=$need_version
15275
15276 # Library versioning type.
15277 version_type=$version_type
15278
15279 # Shared library runtime path variable.
15280 runpath_var=$runpath_var
15281
15282 # Shared library path variable.
15283 shlibpath_var=$shlibpath_var
15284
15285 # Is shlibpath searched before the hard-coded library search path?
15286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15287
15288 # Format of library name prefix.
15289 libname_spec=$lt_libname_spec
15290
15291 # List of archive names. First name is the real one, the rest are links.
15292 # The last name is the one that the linker finds with -lNAME
15293 library_names_spec=$lt_library_names_spec
15294
15295 # The coded name of the library, if different from the real name.
15296 soname_spec=$lt_soname_spec
15297
15298 # Permission mode override for installation of shared libraries.
15299 install_override_mode=$lt_install_override_mode
15300
15301 # Command to use after installation of a shared archive.
15302 postinstall_cmds=$lt_postinstall_cmds
15303
15304 # Command to use after uninstallation of a shared archive.
15305 postuninstall_cmds=$lt_postuninstall_cmds
15306
15307 # Commands used to finish a libtool library installation in a directory.
15308 finish_cmds=$lt_finish_cmds
15309
15310 # As "finish_cmds", except a single script fragment to be evaled but
15311 # not shown.
15312 finish_eval=$lt_finish_eval
15313
15314 # Whether we should hardcode library paths into libraries.
15315 hardcode_into_libs=$hardcode_into_libs
15316
15317 # Compile-time system search path for libraries.
15318 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15319
15320 # Detected run-time system search path for libraries.
15321 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15322
15323 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15324 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15325
15326 # Whether dlopen is supported.
15327 dlopen_support=$enable_dlopen
15328
15329 # Whether dlopen of programs is supported.
15330 dlopen_self=$enable_dlopen_self
15331
15332 # Whether dlopen of statically linked programs is supported.
15333 dlopen_self_static=$enable_dlopen_self_static
15334
15335 # Commands to strip libraries.
15336 old_striplib=$lt_old_striplib
15337 striplib=$lt_striplib
15338
15339
15340 # The linker used to build libraries.
15341 LD=$lt_LD
15342
15343 # How to create reloadable object files.
15344 reload_flag=$lt_reload_flag
15345 reload_cmds=$lt_reload_cmds
15346
15347 # Commands used to build an old-style archive.
15348 old_archive_cmds=$lt_old_archive_cmds
15349
15350 # A language specific compiler.
15351 CC=$lt_compiler
15352
15353 # Is the compiler the GNU compiler?
15354 with_gcc=$GCC
15355
15356 # Compiler flag to turn off builtin functions.
15357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15358
15359 # Additional compiler flags for building library objects.
15360 pic_flag=$lt_lt_prog_compiler_pic
15361
15362 # How to pass a linker flag through the compiler.
15363 wl=$lt_lt_prog_compiler_wl
15364
15365 # Compiler flag to prevent dynamic linking.
15366 link_static_flag=$lt_lt_prog_compiler_static
15367
15368 # Does compiler simultaneously support -c and -o options?
15369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15370
15371 # Whether or not to add -lc for building shared libraries.
15372 build_libtool_need_lc=$archive_cmds_need_lc
15373
15374 # Whether or not to disallow shared libs when runtime libs are static.
15375 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15376
15377 # Compiler flag to allow reflexive dlopens.
15378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15379
15380 # Compiler flag to generate shared objects directly from archives.
15381 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15382
15383 # Whether the compiler copes with passing no objects directly.
15384 compiler_needs_object=$lt_compiler_needs_object
15385
15386 # Create an old-style archive from a shared archive.
15387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15388
15389 # Create a temporary old-style archive to link instead of a shared archive.
15390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15391
15392 # Commands used to build a shared archive.
15393 archive_cmds=$lt_archive_cmds
15394 archive_expsym_cmds=$lt_archive_expsym_cmds
15395
15396 # Commands used to build a loadable module if different from building
15397 # a shared archive.
15398 module_cmds=$lt_module_cmds
15399 module_expsym_cmds=$lt_module_expsym_cmds
15400
15401 # Whether we are building with GNU ld or not.
15402 with_gnu_ld=$lt_with_gnu_ld
15403
15404 # Flag that allows shared libraries with undefined symbols to be built.
15405 allow_undefined_flag=$lt_allow_undefined_flag
15406
15407 # Flag that enforces no undefined symbols.
15408 no_undefined_flag=$lt_no_undefined_flag
15409
15410 # Flag to hardcode \$libdir into a binary during linking.
15411 # This must work even if \$libdir does not exist
15412 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15413
15414 # Whether we need a single "-rpath" flag with a separated argument.
15415 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15416
15417 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15418 # DIR into the resulting binary.
15419 hardcode_direct=$hardcode_direct
15420
15421 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15422 # DIR into the resulting binary and the resulting library dependency is
15423 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15424 # library is relocated.
15425 hardcode_direct_absolute=$hardcode_direct_absolute
15426
15427 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15428 # into the resulting binary.
15429 hardcode_minus_L=$hardcode_minus_L
15430
15431 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15432 # into the resulting binary.
15433 hardcode_shlibpath_var=$hardcode_shlibpath_var
15434
15435 # Set to "yes" if building a shared library automatically hardcodes DIR
15436 # into the library and all subsequent libraries and executables linked
15437 # against it.
15438 hardcode_automatic=$hardcode_automatic
15439
15440 # Set to yes if linker adds runtime paths of dependent libraries
15441 # to runtime path list.
15442 inherit_rpath=$inherit_rpath
15443
15444 # Whether libtool must link a program against all its dependency libraries.
15445 link_all_deplibs=$link_all_deplibs
15446
15447 # Set to "yes" if exported symbols are required.
15448 always_export_symbols=$always_export_symbols
15449
15450 # The commands to list exported symbols.
15451 export_symbols_cmds=$lt_export_symbols_cmds
15452
15453 # Symbols that should not be listed in the preloaded symbols.
15454 exclude_expsyms=$lt_exclude_expsyms
15455
15456 # Symbols that must always be exported.
15457 include_expsyms=$lt_include_expsyms
15458
15459 # Commands necessary for linking programs (against libraries) with templates.
15460 prelink_cmds=$lt_prelink_cmds
15461
15462 # Commands necessary for finishing linking programs.
15463 postlink_cmds=$lt_postlink_cmds
15464
15465 # Specify filename containing input files.
15466 file_list_spec=$lt_file_list_spec
15467
15468 # How to hardcode a shared library path into an executable.
15469 hardcode_action=$hardcode_action
15470
15471 # ### END LIBTOOL CONFIG
15472
15473 _LT_EOF
15474
15475 cat <<'_LT_EOF' >> "$cfgfile"
15476
15477 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15478
15479 # func_munge_path_list VARIABLE PATH
15480 # -----------------------------------
15481 # VARIABLE is name of variable containing _space_ separated list of
15482 # directories to be munged by the contents of PATH, which is string
15483 # having a format:
15484 # "DIR[:DIR]:"
15485 # string "DIR[ DIR]" will be prepended to VARIABLE
15486 # ":DIR[:DIR]"
15487 # string "DIR[ DIR]" will be appended to VARIABLE
15488 # "DIRP[:DIRP]::[DIRA:]DIRA"
15489 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15490 # "DIRA[ DIRA]" will be appended to VARIABLE
15491 # "DIR[:DIR]"
15492 # VARIABLE will be replaced by "DIR[ DIR]"
15493 func_munge_path_list ()
15494 {
15495 case x$2 in
15496 x)
15497 ;;
15498 *:)
15499 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15500 ;;
15501 x:*)
15502 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15503 ;;
15504 *::*)
15505 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15506 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15507 ;;
15508 *)
15509 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15510 ;;
15511 esac
15512 }
15513
15514
15515 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15516 func_cc_basename ()
15517 {
15518 for cc_temp in $*""; do
15519 case $cc_temp in
15520 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15521 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15522 \-*) ;;
15523 *) break;;
15524 esac
15525 done
15526 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15527 }
15528
15529
15530 # ### END FUNCTIONS SHARED WITH CONFIGURE
15531
15532 _LT_EOF
15533
15534 case $host_os in
15535 aix3*)
15536 cat <<\_LT_EOF >> "$cfgfile"
15537 # AIX sometimes has problems with the GCC collect2 program. For some
15538 # reason, if we set the COLLECT_NAMES environment variable, the problems
15539 # vanish in a puff of smoke.
15540 if test set != "${COLLECT_NAMES+set}"; then
15541 COLLECT_NAMES=
15542 export COLLECT_NAMES
15543 fi
15544 _LT_EOF
15545 ;;
15546 esac
15547
15548
15549 ltmain=$ac_aux_dir/ltmain.sh
15550
15551
15552 # We use sed instead of cat because bash on DJGPP gets confused if
15553 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15554 # text mode, it properly converts lines to CR/LF. This bash problem
15555 # is reportedly fixed, but why not run on old versions too?
15556 sed '$q' "$ltmain" >> "$cfgfile" \
15557 || (rm -f "$cfgfile"; exit 1)
15558
15559 mv -f "$cfgfile" "$ofile" ||
15560 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15561 chmod +x "$ofile"
15562
15563 ;;
15564 "default":C) ;;
15565
15566 esac
15567 done # for ac_tag
15568
15569
15570 as_fn_exit 0
15571 _ACEOF
15572 ac_clean_files=$ac_clean_files_save
15573
15574 test $ac_write_fail = 0 ||
15575 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15576
15577
15578 # configure is writing to config.log, and then calls config.status.
15579 # config.status does its own redirection, appending to config.log.
15580 # Unfortunately, on DOS this fails, as config.log is still kept open
15581 # by configure, so config.status won't be able to write to it; its
15582 # output is simply discarded. So we exec the FD to /dev/null,
15583 # effectively closing config.log, so it can be properly (re)opened and
15584 # appended to by config.status. When coming back to configure, we
15585 # need to make the FD available again.
15586 if test "$no_create" != yes; then
15587 ac_cs_success=:
15588 ac_config_status_args=
15589 test "$silent" = yes &&
15590 ac_config_status_args="$ac_config_status_args --quiet"
15591 exec 5>/dev/null
15592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15593 exec 5>>config.log
15594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15595 # would make configure fail if this is the last instruction.
15596 $ac_cs_success || as_fn_exit 1
15597 fi
15598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15601 fi
15602
15603
15604 # Configuration overview
15605 cat << EOF
15606
15607 ----------------------------
15608 Environment:
15609 - compiler: $CC
15610 - with_lua_pc: $with_lua_pc
15611
15612 EOF