Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="src/hdate.h"
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 gt_needs=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 WITH_HCAL_FALSE
638 WITH_HCAL_TRUE
639 DATADIRNAME
640 POSUB
641 LTLIBINTL
642 LIBINTL
643 INTLLIBS
644 LTLIBICONV
645 LIBICONV
646 INTL_MACOSX_LIBS
647 XGETTEXT_EXTRA_OPTIONS
648 MSGMERGE
649 XGETTEXT_015
650 XGETTEXT
651 GMSGFMT_015
652 MSGFMT_015
653 GMSGFMT
654 MSGFMT
655 GETTEXT_MACRO_VERSION
656 USE_NLS
657 WITH_PERL_FALSE
658 WITH_PERL_TRUE
659 PE_MODULES_PATH
660 PE_CFLAGS
661 have_perl
662 WITH_PHP_FALSE
663 WITH_PHP_TRUE
664 PH_MODULES_PATH
665 PH_INCLUDE_PATH
666 PH_CONFIG_PATH
667 have_php_config
668 have_php
669 WITH_RUBY_FALSE
670 WITH_RUBY_TRUE
671 RU_MODULES_PATH
672 RU_CFLAGS
673 RU_VERSION
674 have_ruby
675 WITH_PYTHON_FALSE
676 WITH_PYTHON_TRUE
677 PY_MODULES_PATH
678 PY_CFLAGS
679 PY_VERSION
680 have_python
681 WITH_FPC_FALSE
682 WITH_FPC_TRUE
683 WITH_GPC_FALSE
684 WITH_GPC_TRUE
685 WITH_GPC_FPC_FALSE
686 WITH_GPC_FPC_TRUE
687 GP_MODULES_PATH
688 have_gpc
689 PA_MODULES_PATH
690 PA_VERSION
691 have_fpc
692 have_swig
693 PKG_CONFIG
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 ac_ct_AR
702 AR
703 DLLTOOL
704 OBJDUMP
705 NM
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 SED
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 LIBTOOL
720 LN_S
721 EGREP
722 GREP
723 CPP
724 am__fastdepCC_FALSE
725 am__fastdepCC_TRUE
726 CCDEPMODE
727 am__nodep
728 AMDEPBACKSLASH
729 AMDEP_FALSE
730 AMDEP_TRUE
731 am__quote
732 am__include
733 DEPDIR
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
740 CC
741 MAINT
742 MAINTAINER_MODE_FALSE
743 MAINTAINER_MODE_TRUE
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
749 AWK
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 VERSION_INFO
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_maintainer_mode
810 enable_dependency_tracking
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 enable_fpc
819 enable_gpc
820 enable_python
821 with_python_sitelib_dir
822 enable_ruby
823 with_ruby_sitelib_dir
824 enable_php
825 with_php_sitelib_dir
826 enable_perl
827 with_perl_sitelib_dir
828 enable_nls
829 enable_rpath
830 with_libiconv_prefix
831 with_libintl_prefix
832 enable_hcal
833 '
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CC
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
842 CPP'
843
844
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
866
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1227
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1230 ;;
1231
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1241
1242 *)
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 ;;
1249
1250 esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1347 fi
1348 else
1349 ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1437
1438 cat <<\_ACEOF
1439
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452
1453 cat <<\_ACEOF
1454
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-maintainer-mode enable make rules and dependencies not useful
1460 (and sometimes confusing) to the casual installer
1461 --disable-dependency-tracking speeds up one-time build
1462 --enable-dependency-tracking do not reject slow dependency extractors
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --disable-fpc do not build free pascal binding
1469 --disable-gpc do not build gnu pascal binding
1470 --disable-python do not build python binding
1471 --disable-ruby do not build ruby binding
1472 --disable-php do not build php binding
1473 --disable-perl do not build perl binding
1474 --disable-nls do not use Native Language Support
1475 --disable-rpath do not hardcode runtime library paths
1476 --disable-hcal do not build hcal/hdate utility programs
1477
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot=DIR Search for dependent libraries within DIR
1485 (or the compiler's sysroot if not specified).
1486 --with-python-sitelib-dir=PATH
1487 path to python site lib
1488 --with-ruby-sitelib-dir=PATH
1489 path to ruby site lib
1490 --with-php-sitelib-dir=PATH
1491 path to php site lib
1492 --with-perl-sitelib-dir=PATH
1493 path to perl site lib
1494 --with-gnu-ld assume the C compiler uses GNU ld default=no
1495 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1496 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1497 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1498 --without-libintl-prefix don't search for libintl in includedir and libdir
1499
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CPP C preprocessor
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to the package provider.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 configure
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_link ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 test -x conftest$ac_exeext
1656 }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_link
1673
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } > conftest.i && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_cpp
1710
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if eval \${$3+:} false; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 fi
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1745
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1757 fi
1758 rm -f conftest.err conftest.i conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1761
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782 esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=\$ac_header_compiler"
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 fi
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_header_mongrel
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=$ac_status
1833 fi
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_run
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937 cat >config.log <<_ACEOF
1938 This file contains any messages produced by compilers while
1939 running configure, to aid debugging if configure makes a mistake.
1940
1941 It was created by $as_me, which was
1942 generated by GNU Autoconf 2.69. Invocation command line was
1943
1944 $ $0 $@
1945
1946 _ACEOF
1947 exec 5>>config.log
1948 {
1949 cat <<_ASUNAME
1950 ## --------- ##
1951 ## Platform. ##
1952 ## --------- ##
1953
1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1959
1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1962
1963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1970
1971 _ASUNAME
1972
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 $as_echo "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1981
1982 } >&5
1983
1984 cat >&5 <<_ACEOF
1985
1986
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1990
1991 _ACEOF
1992
1993
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2004 do
2005 for ac_arg
2006 do
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017 2)
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2030 ;;
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2033 fi
2034 as_fn_append ac_configure_args " '$ac_arg'"
2035 ;;
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2041
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Save into config.log some information that might help in debugging.
2049 {
2050 echo
2051
2052 $as_echo "## ---------------- ##
2053 ## Cache variables. ##
2054 ## ---------------- ##"
2055 echo
2056 # The following way of writing the cache mishandles newlines in values,
2057 (
2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in #(
2061 *${as_nl}*)
2062 case $ac_var in #(
2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 esac
2066 case $ac_var in #(
2067 _ | IFS | as_nl) ;; #(
2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069 *) { eval $ac_var=; unset $ac_var;} ;;
2070 esac ;;
2071 esac
2072 done
2073 (set) 2>&1 |
2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075 *${as_nl}ac_space=\ *)
2076 sed -n \
2077 "s/'\''/'\''\\\\'\'''\''/g;
2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 ;; #(
2080 *)
2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082 ;;
2083 esac |
2084 sort
2085 )
2086 echo
2087
2088 $as_echo "## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##"
2091 echo
2092 for ac_var in $ac_subst_vars
2093 do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2101
2102 if test -n "$ac_subst_files"; then
2103 $as_echo "## ------------------- ##
2104 ## File substitutions. ##
2105 ## ------------------- ##"
2106 echo
2107 for ac_var in $ac_subst_files
2108 do
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2116 fi
2117
2118 if test -s confdefs.h; then
2119 $as_echo "## ----------- ##
2120 ## confdefs.h. ##
2121 ## ----------- ##"
2122 echo
2123 cat confdefs.h
2124 echo
2125 fi
2126 test "$ac_signal" != 0 &&
2127 $as_echo "$as_me: caught signal $ac_signal"
2128 $as_echo "$as_me: exit $exit_status"
2129 } >&5
2130 rm -f core *.core core.conftest.* &&
2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 exit $exit_status
2133 ' 0
2134 for ac_signal in 1 2 13 15; do
2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 done
2137 ac_signal=0
2138
2139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2140 rm -f -r conftest* confdefs.h
2141
2142 $as_echo "/* confdefs.h */" > confdefs.h
2143
2144 # Predefined preprocessor variables.
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_URL "$PACKAGE_URL"
2168 _ACEOF
2169
2170
2171 # Let the site file select an alternate cache file if it wants to.
2172 # Prefer an explicitly selected file to automatically selected ones.
2173 ac_site_file1=NONE
2174 ac_site_file2=NONE
2175 if test -n "$CONFIG_SITE"; then
2176 # We do not want a PATH search for config.site.
2177 case $CONFIG_SITE in #((
2178 -*) ac_site_file1=./$CONFIG_SITE;;
2179 */*) ac_site_file1=$CONFIG_SITE;;
2180 *) ac_site_file1=./$CONFIG_SITE;;
2181 esac
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2188 fi
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190 do
2191 test "x$ac_site_file" = xNONE && continue
2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file" \
2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 as_fn_error $? "failed to load site script $ac_site_file
2200 See \`config.log' for more details" "$LINENO" 5; }
2201 fi
2202 done
2203
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special files
2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2214 fi
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2219 fi
2220
2221 gt_needs="$gt_needs "
2222 # Check that the precious variables saved in the cache have kept the same
2223 # value.
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227 eval ac_new_set=\$ac_env_${ac_var}_set
2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229 eval ac_new_val=\$ac_env_${ac_var}_value
2230 case $ac_old_set,$ac_new_set in
2231 set,)
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234 ac_cache_corrupted=: ;;
2235 ,set)
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238 ac_cache_corrupted=: ;;
2239 ,);;
2240 *)
2241 if test "x$ac_old_val" != "x$ac_new_val"; then
2242 # differences in whitespace do not lead to failure.
2243 ac_old_val_w=`echo x $ac_old_val`
2244 ac_new_val_w=`echo x $ac_new_val`
2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248 ac_cache_corrupted=:
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252 eval $ac_var=\$ac_old_val
2253 fi
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2258 fi;;
2259 esac
2260 # Pass precious variables to config.status.
2261 if test "$ac_new_set" = set; then
2262 case $ac_new_val in
2263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 *) ac_arg=$ac_var=$ac_new_val ;;
2265 esac
2266 case " $ac_configure_args " in
2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269 esac
2270 fi
2271 done
2272 if $ac_cache_corrupted; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 fi
2279 ## -------------------- ##
2280 ## Main body of script. ##
2281 ## -------------------- ##
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291 PACKAGE=libhdate
2292 LIBHDATE_MAJOR_VERSION=1
2293 LIBHDATE_MINOR_VERSION=6
2294 LIBHDATE_MICRO_VERSION=02
2295
2296 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
2297
2298 VERSION_INFO=$LIBHDATE_MAJOR_VERSION:$LIBHDATE_MINOR_VERSION:0
2299
2300
2301
2302 am__api_version='1.11'
2303
2304 ac_aux_dir=
2305 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2306 if test -f "$ac_dir/install-sh"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/install-sh -c"
2309 break
2310 elif test -f "$ac_dir/install.sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install.sh -c"
2313 break
2314 elif test -f "$ac_dir/shtool"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/shtool install -c"
2317 break
2318 fi
2319 done
2320 if test -z "$ac_aux_dir"; then
2321 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2322 fi
2323
2324 # These three variables are undocumented and unsupported,
2325 # and are intended to be withdrawn in a future Autoconf release.
2326 # They can cause serious problems if a builder's source tree is in a directory
2327 # whose full name contains unusual characters.
2328 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2329 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2330 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331
2332
2333 # Find a good install program. We prefer a C program (faster),
2334 # so one script is as good as another. But avoid the broken or
2335 # incompatible versions:
2336 # SysV /etc/install, /usr/sbin/install
2337 # SunOS /usr/etc/install
2338 # IRIX /sbin/install
2339 # AIX /bin/install
2340 # AmigaOS /C/install, which installs bootblocks on floppy discs
2341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2344 # OS/2's system install, which has a completely different semantic
2345 # ./install, which can be erroneously created by make from ./install.sh.
2346 # Reject install programs that cannot install multiple files.
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2348 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2349 if test -z "$INSTALL"; then
2350 if ${ac_cv_path_install+:} false; then :
2351 $as_echo_n "(cached) " >&6
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 # Account for people who put trailing slashes in PATH elements.
2359 case $as_dir/ in #((
2360 ./ | .// | /[cC]/* | \
2361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2362 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2363 /usr/ucb/* ) ;;
2364 *)
2365 # OSF1 and SCO ODT 3.0 have their own names for install.
2366 # Don't use installbsd from OSF since it installs stuff as root
2367 # by default.
2368 for ac_prog in ginstall scoinst install; do
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2371 if test $ac_prog = install &&
2372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373 # AIX install. It has an incompatible calling convention.
2374 :
2375 elif test $ac_prog = install &&
2376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # program-specific install script used by HP pwplus--don't use.
2378 :
2379 else
2380 rm -rf conftest.one conftest.two conftest.dir
2381 echo one > conftest.one
2382 echo two > conftest.two
2383 mkdir conftest.dir
2384 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2385 test -s conftest.one && test -s conftest.two &&
2386 test -s conftest.dir/conftest.one &&
2387 test -s conftest.dir/conftest.two
2388 then
2389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2390 break 3
2391 fi
2392 fi
2393 fi
2394 done
2395 done
2396 ;;
2397 esac
2398
2399 done
2400 IFS=$as_save_IFS
2401
2402 rm -rf conftest.one conftest.two conftest.dir
2403
2404 fi
2405 if test "${ac_cv_path_install+set}" = set; then
2406 INSTALL=$ac_cv_path_install
2407 else
2408 # As a last resort, use the slow shell script. Don't cache a
2409 # value for INSTALL within a source directory, because that will
2410 # break other packages using the cache if that directory is
2411 # removed, or if the value is a relative name.
2412 INSTALL=$ac_install_sh
2413 fi
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2416 $as_echo "$INSTALL" >&6; }
2417
2418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2419 # It thinks the first close brace ends the variable substitution.
2420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2421
2422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2423
2424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2425
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2427 $as_echo_n "checking whether build environment is sane... " >&6; }
2428 # Just in case
2429 sleep 1
2430 echo timestamp > conftest.file
2431 # Reject unsafe characters in $srcdir or the absolute working directory
2432 # name. Accept space and tab only in the latter.
2433 am_lf='
2434 '
2435 case `pwd` in
2436 *[\\\"\#\$\&\'\`$am_lf]*)
2437 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2438 esac
2439 case $srcdir in
2440 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2441 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2442 esac
2443
2444 # Do `set' in a subshell so we don't clobber the current shell's
2445 # arguments. Must try -L first in case configure is actually a
2446 # symlink; some systems play weird games with the mod time of symlinks
2447 # (eg FreeBSD returns the mod time of the symlink's containing
2448 # directory).
2449 if (
2450 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2451 if test "$*" = "X"; then
2452 # -L didn't work.
2453 set X `ls -t "$srcdir/configure" conftest.file`
2454 fi
2455 rm -f conftest.file
2456 if test "$*" != "X $srcdir/configure conftest.file" \
2457 && test "$*" != "X conftest.file $srcdir/configure"; then
2458
2459 # If neither matched, then we have a broken ls. This can happen
2460 # if, for instance, CONFIG_SHELL is bash and it inherits a
2461 # broken ls alias from the environment. This has actually
2462 # happened. Such a system could not be considered "sane".
2463 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2464 alias in your environment" "$LINENO" 5
2465 fi
2466
2467 test "$2" = conftest.file
2468 )
2469 then
2470 # Ok.
2471 :
2472 else
2473 as_fn_error $? "newly created file is older than distributed files!
2474 Check your system clock" "$LINENO" 5
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477 $as_echo "yes" >&6; }
2478 test "$program_prefix" != NONE &&
2479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2480 # Use a double $ so make ignores it.
2481 test "$program_suffix" != NONE &&
2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2483 # Double any \ or $.
2484 # By default was `s,x,x', remove it if useless.
2485 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2487
2488 # expand $ac_aux_dir to an absolute path
2489 am_aux_dir=`cd $ac_aux_dir && pwd`
2490
2491 if test x"${MISSING+set}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2495 *)
2496 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2497 esac
2498 fi
2499 # Use eval to expand $SHELL
2500 if eval "$MISSING --run true"; then
2501 am_missing_run="$MISSING --run "
2502 else
2503 am_missing_run=
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2505 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2506 fi
2507
2508 if test x"${install_sh}" != xset; then
2509 case $am_aux_dir in
2510 *\ * | *\ *)
2511 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2512 *)
2513 install_sh="\${SHELL} $am_aux_dir/install-sh"
2514 esac
2515 fi
2516
2517 # Installed binaries are usually stripped using `strip' when the user
2518 # run `make install-strip'. However `strip' might not be the right
2519 # tool to use in cross-compilation environments, therefore Automake
2520 # will honor the `STRIP' environment variable to overrule this program.
2521 if test "$cross_compiling" != no; then
2522 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}strip; ac_word=$2
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526 $as_echo_n "checking for $ac_word... " >&6; }
2527 if ${ac_cv_prog_STRIP+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test -n "$STRIP"; then
2531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2543 fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 STRIP=$ac_cv_prog_STRIP
2551 if test -n "$STRIP"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2553 $as_echo "$STRIP" >&6; }
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2557 fi
2558
2559
2560 fi
2561 if test -z "$ac_cv_prog_STRIP"; then
2562 ac_ct_STRIP=$STRIP
2563 # Extract the first word of "strip", so it can be a program name with args.
2564 set dummy strip; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$ac_ct_STRIP"; then
2571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_ac_ct_STRIP="strip"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2591 if test -n "$ac_ct_STRIP"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2593 $as_echo "$ac_ct_STRIP" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599 if test "x$ac_ct_STRIP" = x; then
2600 STRIP=":"
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603 yes:)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2606 ac_tool_warned=yes ;;
2607 esac
2608 STRIP=$ac_ct_STRIP
2609 fi
2610 else
2611 STRIP="$ac_cv_prog_STRIP"
2612 fi
2613
2614 fi
2615 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2618 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2619 if test -z "$MKDIR_P"; then
2620 if ${ac_cv_path_mkdir+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_prog in mkdir gmkdir; do
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2632 'mkdir (GNU coreutils) '* | \
2633 'mkdir (coreutils) '* | \
2634 'mkdir (fileutils) '4.1*)
2635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2636 break 3;;
2637 esac
2638 done
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644
2645 test -d ./--version && rmdir ./--version
2646 if test "${ac_cv_path_mkdir+set}" = set; then
2647 MKDIR_P="$ac_cv_path_mkdir -p"
2648 else
2649 # As a last resort, use the slow shell script. Don't cache a
2650 # value for MKDIR_P within a source directory, because that will
2651 # break other packages using the cache if that directory is
2652 # removed, or if the value is a relative name.
2653 MKDIR_P="$ac_install_sh -d"
2654 fi
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2657 $as_echo "$MKDIR_P" >&6; }
2658
2659 mkdir_p="$MKDIR_P"
2660 case $mkdir_p in
2661 [\\/$]* | ?:[\\/]*) ;;
2662 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2663 esac
2664
2665 for ac_prog in gawk mawk nawk awk
2666 do
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_AWK+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if test -n "$AWK"; then
2675 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_AWK="$ac_prog"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 AWK=$ac_cv_prog_AWK
2695 if test -n "$AWK"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2697 $as_echo "$AWK" >&6; }
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 test -n "$AWK" && break
2705 done
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709 set x ${MAKE-make}
2710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 cat >conftest.make <<\_ACEOF
2715 SHELL = /bin/sh
2716 all:
2717 @echo '@@@%%%=$(MAKE)=@@@%%%'
2718 _ACEOF
2719 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721 *@@@%%%=?*=@@@%%%*)
2722 eval ac_cv_prog_make_${ac_make}_set=yes;;
2723 *)
2724 eval ac_cv_prog_make_${ac_make}_set=no;;
2725 esac
2726 rm -f conftest.make
2727 fi
2728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730 $as_echo "yes" >&6; }
2731 SET_MAKE=
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 SET_MAKE="MAKE=${MAKE-make}"
2736 fi
2737
2738 rm -rf .tst 2>/dev/null
2739 mkdir .tst 2>/dev/null
2740 if test -d .tst; then
2741 am__leading_dot=.
2742 else
2743 am__leading_dot=_
2744 fi
2745 rmdir .tst 2>/dev/null
2746
2747 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749 # is not polluted with repeated "-I."
2750 am__isrc=' -I$(srcdir)'
2751 # test to see if srcdir already configured
2752 if test -f $srcdir/config.status; then
2753 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2754 fi
2755 fi
2756
2757 # test whether we have cygpath
2758 if test -z "$CYGPATH_W"; then
2759 if (cygpath --version) >/dev/null 2>/dev/null; then
2760 CYGPATH_W='cygpath -w'
2761 else
2762 CYGPATH_W=echo
2763 fi
2764 fi
2765
2766
2767 # Define the identity of the package.
2768 PACKAGE=$PACKAGE
2769 VERSION=$VERSION
2770
2771
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE "$PACKAGE"
2774 _ACEOF
2775
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define VERSION "$VERSION"
2779 _ACEOF
2780
2781 # Some tools Automake needs.
2782
2783 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2784
2785
2786 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2787
2788
2789 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2790
2791
2792 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2793
2794
2795 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2796
2797 # We need awk for the "check" target. The system "awk" is bad on
2798 # some platforms.
2799 # Always define AMTAR for backward compatibility. Yes, it's still used
2800 # in the wild :-( We should find a proper way to deprecate it ...
2801 AMTAR='$${TAR-tar}'
2802
2803 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2804
2805
2806
2807
2808
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2811 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2812 # Check whether --enable-maintainer-mode was given.
2813 if test "${enable_maintainer_mode+set}" = set; then :
2814 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2815 else
2816 USE_MAINTAINER_MODE=no
2817 fi
2818
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2820 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2821 if test $USE_MAINTAINER_MODE = yes; then
2822 MAINTAINER_MODE_TRUE=
2823 MAINTAINER_MODE_FALSE='#'
2824 else
2825 MAINTAINER_MODE_TRUE='#'
2826 MAINTAINER_MODE_FALSE=
2827 fi
2828
2829 MAINT=$MAINTAINER_MODE_TRUE
2830
2831
2832
2833 DEPDIR="${am__leading_dot}deps"
2834
2835 ac_config_commands="$ac_config_commands depfiles"
2836
2837
2838 am_make=${MAKE-make}
2839 cat > confinc << 'END'
2840 am__doit:
2841 @echo this is the am__doit target
2842 .PHONY: am__doit
2843 END
2844 # If we don't find an include directive, just comment out the code.
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2846 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2847 am__include="#"
2848 am__quote=
2849 _am_result=none
2850 # First try GNU make style include.
2851 echo "include confinc" > confmf
2852 # Ignore all kinds of additional output from `make'.
2853 case `$am_make -s -f confmf 2> /dev/null` in #(
2854 *the\ am__doit\ target*)
2855 am__include=include
2856 am__quote=
2857 _am_result=GNU
2858 ;;
2859 esac
2860 # Now try BSD make style include.
2861 if test "$am__include" = "#"; then
2862 echo '.include "confinc"' > confmf
2863 case `$am_make -s -f confmf 2> /dev/null` in #(
2864 *the\ am__doit\ target*)
2865 am__include=.include
2866 am__quote="\""
2867 _am_result=BSD
2868 ;;
2869 esac
2870 fi
2871
2872
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2874 $as_echo "$_am_result" >&6; }
2875 rm -f confinc confmf
2876
2877 # Check whether --enable-dependency-tracking was given.
2878 if test "${enable_dependency_tracking+set}" = set; then :
2879 enableval=$enable_dependency_tracking;
2880 fi
2881
2882 if test "x$enable_dependency_tracking" != xno; then
2883 am_depcomp="$ac_aux_dir/depcomp"
2884 AMDEPBACKSLASH='\'
2885 am__nodep='_no'
2886 fi
2887 if test "x$enable_dependency_tracking" != xno; then
2888 AMDEP_TRUE=
2889 AMDEP_FALSE='#'
2890 else
2891 AMDEP_TRUE='#'
2892 AMDEP_FALSE=
2893 fi
2894
2895
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 if test -n "$ac_tool_prefix"; then
2902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_CC+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938
2939 fi
2940 if test -z "$ac_cv_prog_CC"; then
2941 ac_ct_CC=$CC
2942 # Extract the first word of "gcc", so it can be a program name with args.
2943 set dummy gcc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_ac_ct_CC="gcc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970 if test -n "$ac_ct_CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2972 $as_echo "$ac_ct_CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978 if test "x$ac_ct_CC" = x; then
2979 CC=""
2980 else
2981 case $cross_compiling:$ac_tool_warned in
2982 yes:)
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2985 ac_tool_warned=yes ;;
2986 esac
2987 CC=$ac_ct_CC
2988 fi
2989 else
2990 CC="$ac_cv_prog_CC"
2991 fi
2992
2993 if test -z "$CC"; then
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}cc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_CC="${ac_tool_prefix}cc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 fi
3034 if test -z "$CC"; then
3035 # Extract the first word of "cc", so it can be a program name with args.
3036 set dummy cc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 else
3045 ac_prog_rejected=no
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3054 ac_prog_rejected=yes
3055 continue
3056 fi
3057 ac_cv_prog_CC="cc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 if test $ac_prog_rejected = yes; then
3066 # We found a bogon in the path, so make sure we never use it.
3067 set dummy $ac_cv_prog_CC
3068 shift
3069 if test $# != 0; then
3070 # We chose a different compiler from the bogus one.
3071 # However, it has the same basename, so the bogon will be chosen
3072 # first if we set CC to just the basename; use the full file name.
3073 shift
3074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3075 fi
3076 fi
3077 fi
3078 fi
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089 fi
3090 if test -z "$CC"; then
3091 if test -n "$ac_tool_prefix"; then
3092 for ac_prog in cl.exe
3093 do
3094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131 test -n "$CC" && break
3132 done
3133 fi
3134 if test -z "$CC"; then
3135 ac_ct_CC=$CC
3136 for ac_prog in cl.exe
3137 do
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$ac_ct_CC"; then
3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_CC="$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3166 if test -n "$ac_ct_CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3168 $as_echo "$ac_ct_CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175 test -n "$ac_ct_CC" && break
3176 done
3177
3178 if test "x$ac_ct_CC" = x; then
3179 CC=""
3180 else
3181 case $cross_compiling:$ac_tool_warned in
3182 yes:)
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3185 ac_tool_warned=yes ;;
3186 esac
3187 CC=$ac_ct_CC
3188 fi
3189 fi
3190
3191 fi
3192
3193
3194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "no acceptable C compiler found in \$PATH
3197 See \`config.log' for more details" "$LINENO" 5; }
3198
3199 # Provide some information about the compiler.
3200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3201 set X $ac_compile
3202 ac_compiler=$2
3203 for ac_option in --version -v -V -qversion; do
3204 { { ac_try="$ac_compiler $ac_option >&5"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3212 ac_status=$?
3213 if test -s conftest.err; then
3214 sed '10a\
3215 ... rest of stderr output deleted ...
3216 10q' conftest.err >conftest.er1
3217 cat conftest.er1 >&5
3218 fi
3219 rm -f conftest.er1 conftest.err
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }
3222 done
3223
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3226
3227 int
3228 main ()
3229 {
3230
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 ac_clean_files_save=$ac_clean_files
3236 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3239 # of exeext.
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3241 $as_echo_n "checking whether the C compiler works... " >&6; }
3242 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243
3244 # The possible output files:
3245 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3246
3247 ac_rmfiles=
3248 for ac_file in $ac_files
3249 do
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253 esac
3254 done
3255 rm -f $ac_rmfiles
3256
3257 if { { ac_try="$ac_link_default"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_link_default") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; then :
3268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3271 # so that the user can short-circuit this test for compilers unknown to
3272 # Autoconf.
3273 for ac_file in $ac_files ''
3274 do
3275 test -f "$ac_file" || continue
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3278 ;;
3279 [ab].out )
3280 # We found the default executable, but exeext='' is most
3281 # certainly right.
3282 break;;
3283 *.* )
3284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3285 then :; else
3286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 fi
3288 # We set ac_cv_exeext here because the later test for it is not
3289 # safe: cross compilers may not add the suffix if given an `-o'
3290 # argument, so we may need to know it at that point already.
3291 # Even if this section looks crufty: it has the advantage of
3292 # actually working.
3293 break;;
3294 * )
3295 break;;
3296 esac
3297 done
3298 test "$ac_cv_exeext" = no && ac_cv_exeext=
3299
3300 else
3301 ac_file=''
3302 fi
3303 if test -z "$ac_file"; then :
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error 77 "C compiler cannot create executables
3312 See \`config.log' for more details" "$LINENO" 5; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3318 $as_echo_n "checking for C compiler default output file name... " >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3320 $as_echo "$ac_file" >&6; }
3321 ac_exeext=$ac_cv_exeext
3322
3323 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3324 ac_clean_files=$ac_clean_files_save
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3326 $as_echo_n "checking for suffix of executables... " >&6; }
3327 if { { ac_try="$ac_link"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3339 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3340 # work properly (i.e., refer to `conftest.exe'), while it won't with
3341 # `rm'.
3342 for ac_file in conftest.exe conftest conftest.*; do
3343 test -f "$ac_file" || continue
3344 case $ac_file in
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 break;;
3348 * ) break;;
3349 esac
3350 done
3351 else
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3355 See \`config.log' for more details" "$LINENO" 5; }
3356 fi
3357 rm -f conftest conftest$ac_cv_exeext
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3359 $as_echo "$ac_cv_exeext" >&6; }
3360
3361 rm -f conftest.$ac_ext
3362 EXEEXT=$ac_cv_exeext
3363 ac_exeext=$EXEEXT
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366 #include <stdio.h>
3367 int
3368 main ()
3369 {
3370 FILE *f = fopen ("conftest.out", "w");
3371 return ferror (f) || fclose (f) != 0;
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 ac_clean_files="$ac_clean_files conftest.out"
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3381 $as_echo_n "checking whether we are cross compiling... " >&6; }
3382 if test "$cross_compiling" != yes; then
3383 { { ac_try="$ac_link"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_link") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394 if { ac_try='./conftest$ac_cv_exeext'
3395 { { case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_try") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; }; then
3405 cross_compiling=no
3406 else
3407 if test "$cross_compiling" = maybe; then
3408 cross_compiling=yes
3409 else
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot run C compiled programs.
3413 If you meant to cross compile, use \`--host'.
3414 See \`config.log' for more details" "$LINENO" 5; }
3415 fi
3416 fi
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3419 $as_echo "$cross_compiling" >&6; }
3420
3421 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3424 $as_echo_n "checking for suffix of object files... " >&6; }
3425 if ${ac_cv_objext+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main ()
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.o conftest.obj
3440 if { { ac_try="$ac_compile"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compile") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
3451 for ac_file in conftest.o conftest.obj conftest.*; do
3452 test -f "$ac_file" || continue;
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456 break;;
3457 esac
3458 done
3459 else
3460 $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot compute suffix of object files: cannot compile
3466 See \`config.log' for more details" "$LINENO" 5; }
3467 fi
3468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471 $as_echo "$ac_cv_objext" >&6; }
3472 OBJEXT=$ac_cv_objext
3473 ac_objext=$OBJEXT
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3476 if ${ac_cv_c_compiler_gnu+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main ()
3484 {
3485 #ifndef __GNUC__
3486 choke me
3487 #endif
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494 ac_compiler_gnu=yes
3495 else
3496 ac_compiler_gnu=no
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3504 if test $ac_compiler_gnu = yes; then
3505 GCC=yes
3506 else
3507 GCC=
3508 fi
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3513 if ${ac_cv_prog_cc_g+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 ac_save_c_werror_flag=$ac_c_werror_flag
3517 ac_c_werror_flag=yes
3518 ac_cv_prog_cc_g=no
3519 CFLAGS="-g"
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522
3523 int
3524 main ()
3525 {
3526
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532 ac_cv_prog_cc_g=yes
3533 else
3534 CFLAGS=""
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3537
3538 int
3539 main ()
3540 {
3541
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547
3548 else
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3550 CFLAGS="-g"
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3553
3554 int
3555 main ()
3556 {
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_cv_prog_cc_g=yes
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575 CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577 if test "$GCC" = yes; then
3578 CFLAGS="-g -O2"
3579 else
3580 CFLAGS="-g"
3581 fi
3582 else
3583 if test "$GCC" = yes; then
3584 CFLAGS="-O2"
3585 else
3586 CFLAGS=
3587 fi
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if ${ac_cv_prog_cc_c89+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 ac_cv_prog_cc_c89=no
3595 ac_save_CC=$CC
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <stdarg.h>
3599 #include <stdio.h>
3600 struct stat;
3601 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3602 struct buf { int x; };
3603 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3604 static char *e (p, i)
3605 char **p;
3606 int i;
3607 {
3608 return p[i];
3609 }
3610 static char *f (char * (*g) (char **, int), char **p, ...)
3611 {
3612 char *s;
3613 va_list v;
3614 va_start (v,p);
3615 s = g (p, va_arg (v,int));
3616 va_end (v);
3617 return s;
3618 }
3619
3620 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3621 function prototypes and stuff, but not '\xHH' hex character constants.
3622 These don't provoke an error unfortunately, instead are silently treated
3623 as 'x'. The following induces an error, until -std is added to get
3624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3625 array size at least. It's necessary to write '\x00'==0 to get something
3626 that's true only with -std. */
3627 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3628
3629 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3630 inside strings and character constants. */
3631 #define FOO(x) 'x'
3632 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3633
3634 int test (int i, double x);
3635 struct s1 {int (*f) (int a);};
3636 struct s2 {int (*f) (double a);};
3637 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638 int argc;
3639 char **argv;
3640 int
3641 main ()
3642 {
3643 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3650 do
3651 CC="$ac_save_CC $ac_arg"
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_prog_cc_c89=$ac_arg
3654 fi
3655 rm -f core conftest.err conftest.$ac_objext
3656 test "x$ac_cv_prog_cc_c89" != "xno" && break
3657 done
3658 rm -f conftest.$ac_ext
3659 CC=$ac_save_CC
3660
3661 fi
3662 # AC_CACHE_VAL
3663 case "x$ac_cv_prog_cc_c89" in
3664 x)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3666 $as_echo "none needed" >&6; } ;;
3667 xno)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3669 $as_echo "unsupported" >&6; } ;;
3670 *)
3671 CC="$CC $ac_cv_prog_cc_c89"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3673 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3674 esac
3675 if test "x$ac_cv_prog_cc_c89" != xno; then :
3676
3677 fi
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
3685 depcc="$CC" am_compiler_list=
3686
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3688 $as_echo_n "checking dependency style of $depcc... " >&6; }
3689 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3693 # We make a subdir and do the tests there. Otherwise we can end up
3694 # making bogus files that we don't know about and never remove. For
3695 # instance it was reported that on HP-UX the gcc test will end up
3696 # making a dummy file named `D' -- because `-MD' means `put the output
3697 # in D'.
3698 rm -rf conftest.dir
3699 mkdir conftest.dir
3700 # Copy depcomp to subdir because otherwise we won't find it if we're
3701 # using a relative directory.
3702 cp "$am_depcomp" conftest.dir
3703 cd conftest.dir
3704 # We will build objects and dependencies in a subdirectory because
3705 # it helps to detect inapplicable dependency modes. For instance
3706 # both Tru64's cc and ICC support -MD to output dependencies as a
3707 # side effect of compilation, but ICC will put the dependencies in
3708 # the current directory while Tru64 will put them in the object
3709 # directory.
3710 mkdir sub
3711
3712 am_cv_CC_dependencies_compiler_type=none
3713 if test "$am_compiler_list" = ""; then
3714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3715 fi
3716 am__universal=false
3717 case " $depcc " in #(
3718 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3719 esac
3720
3721 for depmode in $am_compiler_list; do
3722 # Setup a source with many dependencies, because some compilers
3723 # like to wrap large dependency lists on column 80 (with \), and
3724 # we should not choose a depcomp mode which is confused by this.
3725 #
3726 # We need to recreate these files for each test, as the compiler may
3727 # overwrite some of them when testing with obscure command lines.
3728 # This happens at least with the AIX C compiler.
3729 : > sub/conftest.c
3730 for i in 1 2 3 4 5 6; do
3731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3733 # Solaris 8's {/usr,}/bin/sh.
3734 touch sub/conftst$i.h
3735 done
3736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3737
3738 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3739 # mode. It turns out that the SunPro C++ compiler does not properly
3740 # handle `-M -o', and we need to detect this. Also, some Intel
3741 # versions had trouble with output in subdirs
3742 am__obj=sub/conftest.${OBJEXT-o}
3743 am__minus_obj="-o $am__obj"
3744 case $depmode in
3745 gcc)
3746 # This depmode causes a compiler race in universal mode.
3747 test "$am__universal" = false || continue
3748 ;;
3749 nosideeffect)
3750 # after this tag, mechanisms are not by side-effect, so they'll
3751 # only be used when explicitly requested
3752 if test "x$enable_dependency_tracking" = xyes; then
3753 continue
3754 else
3755 break
3756 fi
3757 ;;
3758 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3759 # This compiler won't grok `-c -o', but also, the minuso test has
3760 # not run yet. These depmodes are late enough in the game, and
3761 # so weak that their functioning should not be impacted.
3762 am__obj=conftest.${OBJEXT-o}
3763 am__minus_obj=
3764 ;;
3765 none) break ;;
3766 esac
3767 if depmode=$depmode \
3768 source=sub/conftest.c object=$am__obj \
3769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3770 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3771 >/dev/null 2>conftest.err &&
3772 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3774 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3776 # icc doesn't choke on unknown options, it will just issue warnings
3777 # or remarks (even with -Werror). So we grep stderr for any message
3778 # that says an option was ignored or not supported.
3779 # When given -MP, icc 7.0 and 7.1 complain thusly:
3780 # icc: Command line warning: ignoring option '-M'; no argument required
3781 # The diagnosis changed in icc 8.0:
3782 # icc: Command line remark: option '-MP' not supported
3783 if (grep 'ignoring option' conftest.err ||
3784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3785 am_cv_CC_dependencies_compiler_type=$depmode
3786 break
3787 fi
3788 fi
3789 done
3790
3791 cd ..
3792 rm -rf conftest.dir
3793 else
3794 am_cv_CC_dependencies_compiler_type=none
3795 fi
3796
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3799 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3800 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3801
3802 if
3803 test "x$enable_dependency_tracking" != xno \
3804 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3805 am__fastdepCC_TRUE=
3806 am__fastdepCC_FALSE='#'
3807 else
3808 am__fastdepCC_TRUE='#'
3809 am__fastdepCC_FALSE=
3810 fi
3811
3812
3813
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3815 $as_echo_n "checking for library containing strerror... " >&6; }
3816 if ${ac_cv_search_strerror+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 ac_func_search_save_LIBS=$LIBS
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822
3823 /* Override any GCC internal prototype to avoid an error.
3824 Use char because int might match the return type of a GCC
3825 builtin and then its argument prototype would still apply. */
3826 #ifdef __cplusplus
3827 extern "C"
3828 #endif
3829 char strerror ();
3830 int
3831 main ()
3832 {
3833 return strerror ();
3834 ;
3835 return 0;
3836 }
3837 _ACEOF
3838 for ac_lib in '' cposix; do
3839 if test -z "$ac_lib"; then
3840 ac_res="none required"
3841 else
3842 ac_res=-l$ac_lib
3843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3844 fi
3845 if ac_fn_c_try_link "$LINENO"; then :
3846 ac_cv_search_strerror=$ac_res
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext \
3849 conftest$ac_exeext
3850 if ${ac_cv_search_strerror+:} false; then :
3851 break
3852 fi
3853 done
3854 if ${ac_cv_search_strerror+:} false; then :
3855
3856 else
3857 ac_cv_search_strerror=no
3858 fi
3859 rm conftest.$ac_ext
3860 LIBS=$ac_func_search_save_LIBS
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3863 $as_echo "$ac_cv_search_strerror" >&6; }
3864 ac_res=$ac_cv_search_strerror
3865 if test "$ac_res" != no; then :
3866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3867
3868 fi
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3876 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3877 # On Suns, sometimes $CPP names a directory.
3878 if test -n "$CPP" && test -d "$CPP"; then
3879 CPP=
3880 fi
3881 if test -z "$CPP"; then
3882 if ${ac_cv_prog_CPP+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 # Double quotes because CPP needs to be expanded
3886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3887 do
3888 ac_preproc_ok=false
3889 for ac_c_preproc_warn_flag in '' yes
3890 do
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 #ifdef __STDC__
3900 # include <limits.h>
3901 #else
3902 # include <assert.h>
3903 #endif
3904 Syntax error
3905 _ACEOF
3906 if ac_fn_c_try_cpp "$LINENO"; then :
3907
3908 else
3909 # Broken: fails on valid input.
3910 continue
3911 fi
3912 rm -f conftest.err conftest.i conftest.$ac_ext
3913
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3919 _ACEOF
3920 if ac_fn_c_try_cpp "$LINENO"; then :
3921 # Broken: success on invalid input.
3922 continue
3923 else
3924 # Passes both tests.
3925 ac_preproc_ok=:
3926 break
3927 fi
3928 rm -f conftest.err conftest.i conftest.$ac_ext
3929
3930 done
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.i conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then :
3934 break
3935 fi
3936
3937 done
3938 ac_cv_prog_CPP=$CPP
3939
3940 fi
3941 CPP=$ac_cv_prog_CPP
3942 else
3943 ac_cv_prog_CPP=$CPP
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3946 $as_echo "$CPP" >&6; }
3947 ac_preproc_ok=false
3948 for ac_c_preproc_warn_flag in '' yes
3949 do
3950 # Use a header file that comes with gcc, so configuring glibc
3951 # with a fresh cross-compiler works.
3952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953 # <limits.h> exists even on freestanding compilers.
3954 # On the NeXT, cc -E runs the code through the compiler's parser,
3955 # not just through cpp. "Syntax error" is here to catch this case.
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958 #ifdef __STDC__
3959 # include <limits.h>
3960 #else
3961 # include <assert.h>
3962 #endif
3963 Syntax error
3964 _ACEOF
3965 if ac_fn_c_try_cpp "$LINENO"; then :
3966
3967 else
3968 # Broken: fails on valid input.
3969 continue
3970 fi
3971 rm -f conftest.err conftest.i conftest.$ac_ext
3972
3973 # OK, works on sane cases. Now check whether nonexistent headers
3974 # can be detected and how.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <ac_nonexistent.h>
3978 _ACEOF
3979 if ac_fn_c_try_cpp "$LINENO"; then :
3980 # Broken: success on invalid input.
3981 continue
3982 else
3983 # Passes both tests.
3984 ac_preproc_ok=:
3985 break
3986 fi
3987 rm -f conftest.err conftest.i conftest.$ac_ext
3988
3989 done
3990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3991 rm -f conftest.i conftest.err conftest.$ac_ext
3992 if $ac_preproc_ok; then :
3993
3994 else
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3998 See \`config.log' for more details" "$LINENO" 5; }
3999 fi
4000
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4010 if ${ac_cv_path_GREP+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -z "$GREP"; then
4014 ac_path_GREP_found=false
4015 # Loop through the user's path and test for each of PROGNAME-LIST
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4018 do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_prog in grep ggrep; do
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4024 as_fn_executable_p "$ac_path_GREP" || continue
4025 # Check for GNU ac_path_GREP and select it if it is found.
4026 # Check for GNU $ac_path_GREP
4027 case `"$ac_path_GREP" --version 2>&1` in
4028 *GNU*)
4029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4030 *)
4031 ac_count=0
4032 $as_echo_n 0123456789 >"conftest.in"
4033 while :
4034 do
4035 cat "conftest.in" "conftest.in" >"conftest.tmp"
4036 mv "conftest.tmp" "conftest.in"
4037 cp "conftest.in" "conftest.nl"
4038 $as_echo 'GREP' >> "conftest.nl"
4039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4041 as_fn_arith $ac_count + 1 && ac_count=$as_val
4042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4043 # Best one so far, save it but keep looking for a better one
4044 ac_cv_path_GREP="$ac_path_GREP"
4045 ac_path_GREP_max=$ac_count
4046 fi
4047 # 10*(2^10) chars as input seems more than enough
4048 test $ac_count -gt 10 && break
4049 done
4050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4051 esac
4052
4053 $ac_path_GREP_found && break 3
4054 done
4055 done
4056 done
4057 IFS=$as_save_IFS
4058 if test -z "$ac_cv_path_GREP"; then
4059 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4060 fi
4061 else
4062 ac_cv_path_GREP=$GREP
4063 fi
4064
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4067 $as_echo "$ac_cv_path_GREP" >&6; }
4068 GREP="$ac_cv_path_GREP"
4069
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4072 $as_echo_n "checking for egrep... " >&6; }
4073 if ${ac_cv_path_EGREP+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4077 then ac_cv_path_EGREP="$GREP -E"
4078 else
4079 if test -z "$EGREP"; then
4080 ac_path_EGREP_found=false
4081 # Loop through the user's path and test for each of PROGNAME-LIST
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4084 do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_prog in egrep; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4090 as_fn_executable_p "$ac_path_EGREP" || continue
4091 # Check for GNU ac_path_EGREP and select it if it is found.
4092 # Check for GNU $ac_path_EGREP
4093 case `"$ac_path_EGREP" --version 2>&1` in
4094 *GNU*)
4095 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4096 *)
4097 ac_count=0
4098 $as_echo_n 0123456789 >"conftest.in"
4099 while :
4100 do
4101 cat "conftest.in" "conftest.in" >"conftest.tmp"
4102 mv "conftest.tmp" "conftest.in"
4103 cp "conftest.in" "conftest.nl"
4104 $as_echo 'EGREP' >> "conftest.nl"
4105 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4107 as_fn_arith $ac_count + 1 && ac_count=$as_val
4108 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4109 # Best one so far, save it but keep looking for a better one
4110 ac_cv_path_EGREP="$ac_path_EGREP"
4111 ac_path_EGREP_max=$ac_count
4112 fi
4113 # 10*(2^10) chars as input seems more than enough
4114 test $ac_count -gt 10 && break
4115 done
4116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117 esac
4118
4119 $ac_path_EGREP_found && break 3
4120 done
4121 done
4122 done
4123 IFS=$as_save_IFS
4124 if test -z "$ac_cv_path_EGREP"; then
4125 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4126 fi
4127 else
4128 ac_cv_path_EGREP=$EGREP
4129 fi
4130
4131 fi
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4134 $as_echo "$ac_cv_path_EGREP" >&6; }
4135 EGREP="$ac_cv_path_EGREP"
4136
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4139 $as_echo_n "checking for ANSI C header files... " >&6; }
4140 if ${ac_cv_header_stdc+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #include <stdlib.h>
4146 #include <stdarg.h>
4147 #include <string.h>
4148 #include <float.h>
4149
4150 int
4151 main ()
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_header_stdc=yes
4160 else
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164
4165 if test $ac_cv_header_stdc = yes; then
4166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <string.h>
4170
4171 _ACEOF
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "memchr" >/dev/null 2>&1; then :
4174
4175 else
4176 ac_cv_header_stdc=no
4177 fi
4178 rm -f conftest*
4179
4180 fi
4181
4182 if test $ac_cv_header_stdc = yes; then
4183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <stdlib.h>
4187
4188 _ACEOF
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "free" >/dev/null 2>&1; then :
4191
4192 else
4193 ac_cv_header_stdc=no
4194 fi
4195 rm -f conftest*
4196
4197 fi
4198
4199 if test $ac_cv_header_stdc = yes; then
4200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201 if test "$cross_compiling" = yes; then :
4202 :
4203 else
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <ctype.h>
4207 #include <stdlib.h>
4208 #if ((' ' & 0x0FF) == 0x020)
4209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4211 #else
4212 # define ISLOWER(c) \
4213 (('a' <= (c) && (c) <= 'i') \
4214 || ('j' <= (c) && (c) <= 'r') \
4215 || ('s' <= (c) && (c) <= 'z'))
4216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4217 #endif
4218
4219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4220 int
4221 main ()
4222 {
4223 int i;
4224 for (i = 0; i < 256; i++)
4225 if (XOR (islower (i), ISLOWER (i))
4226 || toupper (i) != TOUPPER (i))
4227 return 2;
4228 return 0;
4229 }
4230 _ACEOF
4231 if ac_fn_c_try_run "$LINENO"; then :
4232
4233 else
4234 ac_cv_header_stdc=no
4235 fi
4236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4237 conftest.$ac_objext conftest.beam conftest.$ac_ext
4238 fi
4239
4240 fi
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4243 $as_echo "$ac_cv_header_stdc" >&6; }
4244 if test $ac_cv_header_stdc = yes; then
4245
4246 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4247
4248 fi
4249
4250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4252 inttypes.h stdint.h unistd.h
4253 do :
4254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4256 "
4257 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4258 cat >>confdefs.h <<_ACEOF
4259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4260 _ACEOF
4261
4262 fi
4263
4264 done
4265
4266
4267
4268 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4269 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4270 MINIX=yes
4271 else
4272 MINIX=
4273 fi
4274
4275
4276 if test "$MINIX" = yes; then
4277
4278 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4279
4280
4281 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4282
4283
4284 $as_echo "#define _MINIX 1" >>confdefs.h
4285
4286 fi
4287
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4290 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4291 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 # define __EXTENSIONS__ 1
4298 $ac_includes_default
4299 int
4300 main ()
4301 {
4302
4303 ;
4304 return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_cv_safe_to_define___extensions__=yes
4309 else
4310 ac_cv_safe_to_define___extensions__=no
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4315 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4316 test $ac_cv_safe_to_define___extensions__ = yes &&
4317 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4318
4319 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4320
4321 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4322
4323 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4324
4325 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4326
4327
4328
4329
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 if test -n "$ac_tool_prefix"; then
4336 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_prog_CC+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357 done
4358 done
4359 IFS=$as_save_IFS
4360
4361 fi
4362 fi
4363 CC=$ac_cv_prog_CC
4364 if test -n "$CC"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4366 $as_echo "$CC" >&6; }
4367 else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4370 fi
4371
4372
4373 fi
4374 if test -z "$ac_cv_prog_CC"; then
4375 ac_ct_CC=$CC
4376 # Extract the first word of "gcc", so it can be a program name with args.
4377 set dummy gcc; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 if test -n "$ac_ct_CC"; then
4384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4385 else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_prog_ac_ct_CC="gcc"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4396 fi
4397 done
4398 done
4399 IFS=$as_save_IFS
4400
4401 fi
4402 fi
4403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4404 if test -n "$ac_ct_CC"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4406 $as_echo "$ac_ct_CC" >&6; }
4407 else
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 fi
4411
4412 if test "x$ac_ct_CC" = x; then
4413 CC=""
4414 else
4415 case $cross_compiling:$ac_tool_warned in
4416 yes:)
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4419 ac_tool_warned=yes ;;
4420 esac
4421 CC=$ac_ct_CC
4422 fi
4423 else
4424 CC="$ac_cv_prog_CC"
4425 fi
4426
4427 if test -z "$CC"; then
4428 if test -n "$ac_tool_prefix"; then
4429 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4430 set dummy ${ac_tool_prefix}cc; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_CC+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$CC"; then
4437 ac_cv_prog_CC="$CC" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_CC="${ac_tool_prefix}cc"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 CC=$ac_cv_prog_CC
4457 if test -n "$CC"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4459 $as_echo "$CC" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465
4466 fi
4467 fi
4468 if test -z "$CC"; then
4469 # Extract the first word of "cc", so it can be a program name with args.
4470 set dummy cc; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_CC+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$CC"; then
4477 ac_cv_prog_CC="$CC" # Let the user override the test.
4478 else
4479 ac_prog_rejected=no
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4488 ac_prog_rejected=yes
4489 continue
4490 fi
4491 ac_cv_prog_CC="cc"
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4494 fi
4495 done
4496 done
4497 IFS=$as_save_IFS
4498
4499 if test $ac_prog_rejected = yes; then
4500 # We found a bogon in the path, so make sure we never use it.
4501 set dummy $ac_cv_prog_CC
4502 shift
4503 if test $# != 0; then
4504 # We chose a different compiler from the bogus one.
4505 # However, it has the same basename, so the bogon will be chosen
4506 # first if we set CC to just the basename; use the full file name.
4507 shift
4508 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4509 fi
4510 fi
4511 fi
4512 fi
4513 CC=$ac_cv_prog_CC
4514 if test -n "$CC"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4516 $as_echo "$CC" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522
4523 fi
4524 if test -z "$CC"; then
4525 if test -n "$ac_tool_prefix"; then
4526 for ac_prog in cl.exe
4527 do
4528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_prog_CC+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test -n "$CC"; then
4536 ac_cv_prog_CC="$CC" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553 fi
4554 fi
4555 CC=$ac_cv_prog_CC
4556 if test -n "$CC"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4558 $as_echo "$CC" >&6; }
4559 else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4562 fi
4563
4564
4565 test -n "$CC" && break
4566 done
4567 fi
4568 if test -z "$CC"; then
4569 ac_ct_CC=$CC
4570 for ac_prog in cl.exe
4571 do
4572 # Extract the first word of "$ac_prog", so it can be a program name with args.
4573 set dummy $ac_prog; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$ac_ct_CC"; then
4580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_prog_ac_ct_CC="$ac_prog"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597 fi
4598 fi
4599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4600 if test -n "$ac_ct_CC"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4602 $as_echo "$ac_ct_CC" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 fi
4607
4608
4609 test -n "$ac_ct_CC" && break
4610 done
4611
4612 if test "x$ac_ct_CC" = x; then
4613 CC=""
4614 else
4615 case $cross_compiling:$ac_tool_warned in
4616 yes:)
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4619 ac_tool_warned=yes ;;
4620 esac
4621 CC=$ac_ct_CC
4622 fi
4623 fi
4624
4625 fi
4626
4627
4628 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4630 as_fn_error $? "no acceptable C compiler found in \$PATH
4631 See \`config.log' for more details" "$LINENO" 5; }
4632
4633 # Provide some information about the compiler.
4634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4635 set X $ac_compile
4636 ac_compiler=$2
4637 for ac_option in --version -v -V -qversion; do
4638 { { ac_try="$ac_compiler $ac_option >&5"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4644 $as_echo "$ac_try_echo"; } >&5
4645 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4646 ac_status=$?
4647 if test -s conftest.err; then
4648 sed '10a\
4649 ... rest of stderr output deleted ...
4650 10q' conftest.err >conftest.er1
4651 cat conftest.er1 >&5
4652 fi
4653 rm -f conftest.er1 conftest.err
4654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655 test $ac_status = 0; }
4656 done
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4659 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4660 if ${ac_cv_c_compiler_gnu+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665
4666 int
4667 main ()
4668 {
4669 #ifndef __GNUC__
4670 choke me
4671 #endif
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678 ac_compiler_gnu=yes
4679 else
4680 ac_compiler_gnu=no
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4684
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4687 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4688 if test $ac_compiler_gnu = yes; then
4689 GCC=yes
4690 else
4691 GCC=
4692 fi
4693 ac_test_CFLAGS=${CFLAGS+set}
4694 ac_save_CFLAGS=$CFLAGS
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4696 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4697 if ${ac_cv_prog_cc_g+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 ac_save_c_werror_flag=$ac_c_werror_flag
4701 ac_c_werror_flag=yes
4702 ac_cv_prog_cc_g=no
4703 CFLAGS="-g"
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706
4707 int
4708 main ()
4709 {
4710
4711 ;
4712 return 0;
4713 }
4714 _ACEOF
4715 if ac_fn_c_try_compile "$LINENO"; then :
4716 ac_cv_prog_cc_g=yes
4717 else
4718 CFLAGS=""
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731
4732 else
4733 ac_c_werror_flag=$ac_save_c_werror_flag
4734 CFLAGS="-g"
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737
4738 int
4739 main ()
4740 {
4741
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_prog_cc_g=yes
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 ac_c_werror_flag=$ac_save_c_werror_flag
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4757 $as_echo "$ac_cv_prog_cc_g" >&6; }
4758 if test "$ac_test_CFLAGS" = set; then
4759 CFLAGS=$ac_save_CFLAGS
4760 elif test $ac_cv_prog_cc_g = yes; then
4761 if test "$GCC" = yes; then
4762 CFLAGS="-g -O2"
4763 else
4764 CFLAGS="-g"
4765 fi
4766 else
4767 if test "$GCC" = yes; then
4768 CFLAGS="-O2"
4769 else
4770 CFLAGS=
4771 fi
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4774 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4775 if ${ac_cv_prog_cc_c89+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 ac_cv_prog_cc_c89=no
4779 ac_save_CC=$CC
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 #include <stdarg.h>
4783 #include <stdio.h>
4784 struct stat;
4785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4786 struct buf { int x; };
4787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4788 static char *e (p, i)
4789 char **p;
4790 int i;
4791 {
4792 return p[i];
4793 }
4794 static char *f (char * (*g) (char **, int), char **p, ...)
4795 {
4796 char *s;
4797 va_list v;
4798 va_start (v,p);
4799 s = g (p, va_arg (v,int));
4800 va_end (v);
4801 return s;
4802 }
4803
4804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4805 function prototypes and stuff, but not '\xHH' hex character constants.
4806 These don't provoke an error unfortunately, instead are silently treated
4807 as 'x'. The following induces an error, until -std is added to get
4808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4809 array size at least. It's necessary to write '\x00'==0 to get something
4810 that's true only with -std. */
4811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4812
4813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4814 inside strings and character constants. */
4815 #define FOO(x) 'x'
4816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4817
4818 int test (int i, double x);
4819 struct s1 {int (*f) (int a);};
4820 struct s2 {int (*f) (double a);};
4821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4822 int argc;
4823 char **argv;
4824 int
4825 main ()
4826 {
4827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4828 ;
4829 return 0;
4830 }
4831 _ACEOF
4832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4834 do
4835 CC="$ac_save_CC $ac_arg"
4836 if ac_fn_c_try_compile "$LINENO"; then :
4837 ac_cv_prog_cc_c89=$ac_arg
4838 fi
4839 rm -f core conftest.err conftest.$ac_objext
4840 test "x$ac_cv_prog_cc_c89" != "xno" && break
4841 done
4842 rm -f conftest.$ac_ext
4843 CC=$ac_save_CC
4844
4845 fi
4846 # AC_CACHE_VAL
4847 case "x$ac_cv_prog_cc_c89" in
4848 x)
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4850 $as_echo "none needed" >&6; } ;;
4851 xno)
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4853 $as_echo "unsupported" >&6; } ;;
4854 *)
4855 CC="$CC $ac_cv_prog_cc_c89"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4857 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4858 esac
4859 if test "x$ac_cv_prog_cc_c89" != xno; then :
4860
4861 fi
4862
4863 ac_ext=c
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868
4869 depcc="$CC" am_compiler_list=
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4872 $as_echo_n "checking dependency style of $depcc... " >&6; }
4873 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4877 # We make a subdir and do the tests there. Otherwise we can end up
4878 # making bogus files that we don't know about and never remove. For
4879 # instance it was reported that on HP-UX the gcc test will end up
4880 # making a dummy file named `D' -- because `-MD' means `put the output
4881 # in D'.
4882 rm -rf conftest.dir
4883 mkdir conftest.dir
4884 # Copy depcomp to subdir because otherwise we won't find it if we're
4885 # using a relative directory.
4886 cp "$am_depcomp" conftest.dir
4887 cd conftest.dir
4888 # We will build objects and dependencies in a subdirectory because
4889 # it helps to detect inapplicable dependency modes. For instance
4890 # both Tru64's cc and ICC support -MD to output dependencies as a
4891 # side effect of compilation, but ICC will put the dependencies in
4892 # the current directory while Tru64 will put them in the object
4893 # directory.
4894 mkdir sub
4895
4896 am_cv_CC_dependencies_compiler_type=none
4897 if test "$am_compiler_list" = ""; then
4898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4899 fi
4900 am__universal=false
4901 case " $depcc " in #(
4902 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4903 esac
4904
4905 for depmode in $am_compiler_list; do
4906 # Setup a source with many dependencies, because some compilers
4907 # like to wrap large dependency lists on column 80 (with \), and
4908 # we should not choose a depcomp mode which is confused by this.
4909 #
4910 # We need to recreate these files for each test, as the compiler may
4911 # overwrite some of them when testing with obscure command lines.
4912 # This happens at least with the AIX C compiler.
4913 : > sub/conftest.c
4914 for i in 1 2 3 4 5 6; do
4915 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4916 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4917 # Solaris 8's {/usr,}/bin/sh.
4918 touch sub/conftst$i.h
4919 done
4920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4921
4922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4923 # mode. It turns out that the SunPro C++ compiler does not properly
4924 # handle `-M -o', and we need to detect this. Also, some Intel
4925 # versions had trouble with output in subdirs
4926 am__obj=sub/conftest.${OBJEXT-o}
4927 am__minus_obj="-o $am__obj"
4928 case $depmode in
4929 gcc)
4930 # This depmode causes a compiler race in universal mode.
4931 test "$am__universal" = false || continue
4932 ;;
4933 nosideeffect)
4934 # after this tag, mechanisms are not by side-effect, so they'll
4935 # only be used when explicitly requested
4936 if test "x$enable_dependency_tracking" = xyes; then
4937 continue
4938 else
4939 break
4940 fi
4941 ;;
4942 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4943 # This compiler won't grok `-c -o', but also, the minuso test has
4944 # not run yet. These depmodes are late enough in the game, and
4945 # so weak that their functioning should not be impacted.
4946 am__obj=conftest.${OBJEXT-o}
4947 am__minus_obj=
4948 ;;
4949 none) break ;;
4950 esac
4951 if depmode=$depmode \
4952 source=sub/conftest.c object=$am__obj \
4953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4954 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4955 >/dev/null 2>conftest.err &&
4956 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4958 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4960 # icc doesn't choke on unknown options, it will just issue warnings
4961 # or remarks (even with -Werror). So we grep stderr for any message
4962 # that says an option was ignored or not supported.
4963 # When given -MP, icc 7.0 and 7.1 complain thusly:
4964 # icc: Command line warning: ignoring option '-M'; no argument required
4965 # The diagnosis changed in icc 8.0:
4966 # icc: Command line remark: option '-MP' not supported
4967 if (grep 'ignoring option' conftest.err ||
4968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4969 am_cv_CC_dependencies_compiler_type=$depmode
4970 break
4971 fi
4972 fi
4973 done
4974
4975 cd ..
4976 rm -rf conftest.dir
4977 else
4978 am_cv_CC_dependencies_compiler_type=none
4979 fi
4980
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4983 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4984 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4985
4986 if
4987 test "x$enable_dependency_tracking" != xno \
4988 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4989 am__fastdepCC_TRUE=
4990 am__fastdepCC_FALSE='#'
4991 else
4992 am__fastdepCC_TRUE='#'
4993 am__fastdepCC_FALSE=
4994 fi
4995
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4999 $as_echo_n "checking whether ln -s works... " >&6; }
5000 LN_S=$as_ln_s
5001 if test "$LN_S" = "ln -s"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5003 $as_echo "yes" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5006 $as_echo "no, using $LN_S" >&6; }
5007 fi
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5010 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5011 set x ${MAKE-make}
5012 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5013 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 cat >conftest.make <<\_ACEOF
5017 SHELL = /bin/sh
5018 all:
5019 @echo '@@@%%%=$(MAKE)=@@@%%%'
5020 _ACEOF
5021 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5022 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5023 *@@@%%%=?*=@@@%%%*)
5024 eval ac_cv_prog_make_${ac_make}_set=yes;;
5025 *)
5026 eval ac_cv_prog_make_${ac_make}_set=no;;
5027 esac
5028 rm -f conftest.make
5029 fi
5030 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032 $as_echo "yes" >&6; }
5033 SET_MAKE=
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 SET_MAKE="MAKE=${MAKE-make}"
5038 fi
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5041 $as_echo_n "checking for ANSI C header files... " >&6; }
5042 if ${ac_cv_header_stdc+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <stdlib.h>
5048 #include <stdarg.h>
5049 #include <string.h>
5050 #include <float.h>
5051
5052 int
5053 main ()
5054 {
5055
5056 ;
5057 return 0;
5058 }
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"; then :
5061 ac_cv_header_stdc=yes
5062 else
5063 ac_cv_header_stdc=no
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066
5067 if test $ac_cv_header_stdc = yes; then
5068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <string.h>
5072
5073 _ACEOF
5074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5075 $EGREP "memchr" >/dev/null 2>&1; then :
5076
5077 else
5078 ac_cv_header_stdc=no
5079 fi
5080 rm -f conftest*
5081
5082 fi
5083
5084 if test $ac_cv_header_stdc = yes; then
5085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <stdlib.h>
5089
5090 _ACEOF
5091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5092 $EGREP "free" >/dev/null 2>&1; then :
5093
5094 else
5095 ac_cv_header_stdc=no
5096 fi
5097 rm -f conftest*
5098
5099 fi
5100
5101 if test $ac_cv_header_stdc = yes; then
5102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5103 if test "$cross_compiling" = yes; then :
5104 :
5105 else
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #include <ctype.h>
5109 #include <stdlib.h>
5110 #if ((' ' & 0x0FF) == 0x020)
5111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5113 #else
5114 # define ISLOWER(c) \
5115 (('a' <= (c) && (c) <= 'i') \
5116 || ('j' <= (c) && (c) <= 'r') \
5117 || ('s' <= (c) && (c) <= 'z'))
5118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5119 #endif
5120
5121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5122 int
5123 main ()
5124 {
5125 int i;
5126 for (i = 0; i < 256; i++)
5127 if (XOR (islower (i), ISLOWER (i))
5128 || toupper (i) != TOUPPER (i))
5129 return 2;
5130 return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_run "$LINENO"; then :
5134
5135 else
5136 ac_cv_header_stdc=no
5137 fi
5138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5139 conftest.$ac_objext conftest.beam conftest.$ac_ext
5140 fi
5141
5142 fi
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5145 $as_echo "$ac_cv_header_stdc" >&6; }
5146 if test $ac_cv_header_stdc = yes; then
5147
5148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5149
5150 fi
5151
5152 case `pwd` in
5153 *\ * | *\ *)
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5155 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5156 esac
5157
5158
5159
5160 macro_version='2.4.2'
5161 macro_revision='1.3337'
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 ltmain="$ac_aux_dir/ltmain.sh"
5176
5177 # Make sure we can run config.sub.
5178 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5179 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5182 $as_echo_n "checking build system type... " >&6; }
5183 if ${ac_cv_build+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 ac_build_alias=$build_alias
5187 test "x$ac_build_alias" = x &&
5188 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5189 test "x$ac_build_alias" = x &&
5190 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5191 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5192 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5193
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5196 $as_echo "$ac_cv_build" >&6; }
5197 case $ac_cv_build in
5198 *-*-*) ;;
5199 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5200 esac
5201 build=$ac_cv_build
5202 ac_save_IFS=$IFS; IFS='-'
5203 set x $ac_cv_build
5204 shift
5205 build_cpu=$1
5206 build_vendor=$2
5207 shift; shift
5208 # Remember, the first character of IFS is used to create $*,
5209 # except with old shells:
5210 build_os=$*
5211 IFS=$ac_save_IFS
5212 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5216 $as_echo_n "checking host system type... " >&6; }
5217 if ${ac_cv_host+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 if test "x$host_alias" = x; then
5221 ac_cv_host=$ac_cv_build
5222 else
5223 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5224 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5225 fi
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5229 $as_echo "$ac_cv_host" >&6; }
5230 case $ac_cv_host in
5231 *-*-*) ;;
5232 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5233 esac
5234 host=$ac_cv_host
5235 ac_save_IFS=$IFS; IFS='-'
5236 set x $ac_cv_host
5237 shift
5238 host_cpu=$1
5239 host_vendor=$2
5240 shift; shift
5241 # Remember, the first character of IFS is used to create $*,
5242 # except with old shells:
5243 host_os=$*
5244 IFS=$ac_save_IFS
5245 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5246
5247
5248 # Backslashify metacharacters that are still active within
5249 # double-quoted strings.
5250 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5251
5252 # Same as above, but do not quote variable references.
5253 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5254
5255 # Sed substitution to delay expansion of an escaped shell variable in a
5256 # double_quote_subst'ed string.
5257 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5258
5259 # Sed substitution to delay expansion of an escaped single quote.
5260 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5261
5262 # Sed substitution to avoid accidental globbing in evaled expressions
5263 no_glob_subst='s/\*/\\\*/g'
5264
5265 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5266 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5267 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5268
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5270 $as_echo_n "checking how to print strings... " >&6; }
5271 # Test print first, because it will be a builtin if present.
5272 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5273 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5274 ECHO='print -r --'
5275 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5276 ECHO='printf %s\n'
5277 else
5278 # Use this function as a fallback that always works.
5279 func_fallback_echo ()
5280 {
5281 eval 'cat <<_LTECHO_EOF
5282 $1
5283 _LTECHO_EOF'
5284 }
5285 ECHO='func_fallback_echo'
5286 fi
5287
5288 # func_echo_all arg...
5289 # Invoke $ECHO with all args, space-separated.
5290 func_echo_all ()
5291 {
5292 $ECHO ""
5293 }
5294
5295 case "$ECHO" in
5296 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5297 $as_echo "printf" >&6; } ;;
5298 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5299 $as_echo "print -r" >&6; } ;;
5300 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5301 $as_echo "cat" >&6; } ;;
5302 esac
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5318 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5319 if ${ac_cv_path_SED+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5323 for ac_i in 1 2 3 4 5 6 7; do
5324 ac_script="$ac_script$as_nl$ac_script"
5325 done
5326 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5327 { ac_script=; unset ac_script;}
5328 if test -z "$SED"; then
5329 ac_path_SED_found=false
5330 # Loop through the user's path and test for each of PROGNAME-LIST
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_prog in sed gsed; do
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5339 as_fn_executable_p "$ac_path_SED" || continue
5340 # Check for GNU ac_path_SED and select it if it is found.
5341 # Check for GNU $ac_path_SED
5342 case `"$ac_path_SED" --version 2>&1` in
5343 *GNU*)
5344 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5345 *)
5346 ac_count=0
5347 $as_echo_n 0123456789 >"conftest.in"
5348 while :
5349 do
5350 cat "conftest.in" "conftest.in" >"conftest.tmp"
5351 mv "conftest.tmp" "conftest.in"
5352 cp "conftest.in" "conftest.nl"
5353 $as_echo '' >> "conftest.nl"
5354 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5356 as_fn_arith $ac_count + 1 && ac_count=$as_val
5357 if test $ac_count -gt ${ac_path_SED_max-0}; then
5358 # Best one so far, save it but keep looking for a better one
5359 ac_cv_path_SED="$ac_path_SED"
5360 ac_path_SED_max=$ac_count
5361 fi
5362 # 10*(2^10) chars as input seems more than enough
5363 test $ac_count -gt 10 && break
5364 done
5365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5366 esac
5367
5368 $ac_path_SED_found && break 3
5369 done
5370 done
5371 done
5372 IFS=$as_save_IFS
5373 if test -z "$ac_cv_path_SED"; then
5374 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5375 fi
5376 else
5377 ac_cv_path_SED=$SED
5378 fi
5379
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5382 $as_echo "$ac_cv_path_SED" >&6; }
5383 SED="$ac_cv_path_SED"
5384 rm -f conftest.sed
5385
5386 test -z "$SED" && SED=sed
5387 Xsed="$SED -e 1s/^X//"
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5400 $as_echo_n "checking for fgrep... " >&6; }
5401 if ${ac_cv_path_FGREP+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5405 then ac_cv_path_FGREP="$GREP -F"
5406 else
5407 if test -z "$FGREP"; then
5408 ac_path_FGREP_found=false
5409 # Loop through the user's path and test for each of PROGNAME-LIST
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_prog in fgrep; do
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5418 as_fn_executable_p "$ac_path_FGREP" || continue
5419 # Check for GNU ac_path_FGREP and select it if it is found.
5420 # Check for GNU $ac_path_FGREP
5421 case `"$ac_path_FGREP" --version 2>&1` in
5422 *GNU*)
5423 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5424 *)
5425 ac_count=0
5426 $as_echo_n 0123456789 >"conftest.in"
5427 while :
5428 do
5429 cat "conftest.in" "conftest.in" >"conftest.tmp"
5430 mv "conftest.tmp" "conftest.in"
5431 cp "conftest.in" "conftest.nl"
5432 $as_echo 'FGREP' >> "conftest.nl"
5433 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5435 as_fn_arith $ac_count + 1 && ac_count=$as_val
5436 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5437 # Best one so far, save it but keep looking for a better one
5438 ac_cv_path_FGREP="$ac_path_FGREP"
5439 ac_path_FGREP_max=$ac_count
5440 fi
5441 # 10*(2^10) chars as input seems more than enough
5442 test $ac_count -gt 10 && break
5443 done
5444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5445 esac
5446
5447 $ac_path_FGREP_found && break 3
5448 done
5449 done
5450 done
5451 IFS=$as_save_IFS
5452 if test -z "$ac_cv_path_FGREP"; then
5453 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5454 fi
5455 else
5456 ac_cv_path_FGREP=$FGREP
5457 fi
5458
5459 fi
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5462 $as_echo "$ac_cv_path_FGREP" >&6; }
5463 FGREP="$ac_cv_path_FGREP"
5464
5465
5466 test -z "$GREP" && GREP=grep
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 # Check whether --with-gnu-ld was given.
5487 if test "${with_gnu_ld+set}" = set; then :
5488 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5489 else
5490 with_gnu_ld=no
5491 fi
5492
5493 ac_prog=ld
5494 if test "$GCC" = yes; then
5495 # Check if gcc -print-prog-name=ld gives a path.
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5497 $as_echo_n "checking for ld used by $CC... " >&6; }
5498 case $host in
5499 *-*-mingw*)
5500 # gcc leaves a trailing carriage return which upsets mingw
5501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5502 *)
5503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5504 esac
5505 case $ac_prog in
5506 # Accept absolute paths.
5507 [\\/]* | ?:[\\/]*)
5508 re_direlt='/[^/][^/]*/\.\./'
5509 # Canonicalize the pathname of ld
5510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5513 done
5514 test -z "$LD" && LD="$ac_prog"
5515 ;;
5516 "")
5517 # If it fails, then pretend we aren't using GCC.
5518 ac_prog=ld
5519 ;;
5520 *)
5521 # If it is relative, then search for the first ld in PATH.
5522 with_gnu_ld=unknown
5523 ;;
5524 esac
5525 elif test "$with_gnu_ld" = yes; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5527 $as_echo_n "checking for GNU ld... " >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5530 $as_echo_n "checking for non-GNU ld... " >&6; }
5531 fi
5532 if ${lt_cv_path_LD+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -z "$LD"; then
5536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5537 for ac_dir in $PATH; do
5538 IFS="$lt_save_ifs"
5539 test -z "$ac_dir" && ac_dir=.
5540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5541 lt_cv_path_LD="$ac_dir/$ac_prog"
5542 # Check to see if the program is GNU ld. I'd rather use --version,
5543 # but apparently some variants of GNU ld only accept -v.
5544 # Break only if it was the GNU/non-GNU ld that we prefer.
5545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5546 *GNU* | *'with BFD'*)
5547 test "$with_gnu_ld" != no && break
5548 ;;
5549 *)
5550 test "$with_gnu_ld" != yes && break
5551 ;;
5552 esac
5553 fi
5554 done
5555 IFS="$lt_save_ifs"
5556 else
5557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5558 fi
5559 fi
5560
5561 LD="$lt_cv_path_LD"
5562 if test -n "$LD"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5564 $as_echo "$LD" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5572 if ${lt_cv_prog_gnu_ld+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5576 case `$LD -v 2>&1 </dev/null` in
5577 *GNU* | *'with BFD'*)
5578 lt_cv_prog_gnu_ld=yes
5579 ;;
5580 *)
5581 lt_cv_prog_gnu_ld=no
5582 ;;
5583 esac
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5586 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5587 with_gnu_ld=$lt_cv_prog_gnu_ld
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5598 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5599 if ${lt_cv_path_NM+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 if test -n "$NM"; then
5603 # Let the user override the test.
5604 lt_cv_path_NM="$NM"
5605 else
5606 lt_nm_to_check="${ac_tool_prefix}nm"
5607 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5608 lt_nm_to_check="$lt_nm_to_check nm"
5609 fi
5610 for lt_tmp_nm in $lt_nm_to_check; do
5611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5612 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5613 IFS="$lt_save_ifs"
5614 test -z "$ac_dir" && ac_dir=.
5615 tmp_nm="$ac_dir/$lt_tmp_nm"
5616 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5617 # Check to see if the nm accepts a BSD-compat flag.
5618 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5619 # nm: unknown option "B" ignored
5620 # Tru64's nm complains that /dev/null is an invalid object file
5621 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5622 */dev/null* | *'Invalid file or object type'*)
5623 lt_cv_path_NM="$tmp_nm -B"
5624 break
5625 ;;
5626 *)
5627 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5628 */dev/null*)
5629 lt_cv_path_NM="$tmp_nm -p"
5630 break
5631 ;;
5632 *)
5633 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5634 continue # so that we can try to find one that supports BSD flags
5635 ;;
5636 esac
5637 ;;
5638 esac
5639 fi
5640 done
5641 IFS="$lt_save_ifs"
5642 done
5643 : ${lt_cv_path_NM=no}
5644 fi
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5647 $as_echo "$lt_cv_path_NM" >&6; }
5648 if test "$lt_cv_path_NM" != "no"; then
5649 NM="$lt_cv_path_NM"
5650 else
5651 # Didn't find any BSD compatible name lister, look for dumpbin.
5652 if test -n "$DUMPBIN"; then :
5653 # Let the user override the test.
5654 else
5655 if test -n "$ac_tool_prefix"; then
5656 for ac_prog in dumpbin "link -dump"
5657 do
5658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_DUMPBIN+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$DUMPBIN"; then
5666 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 DUMPBIN=$ac_cv_prog_DUMPBIN
5686 if test -n "$DUMPBIN"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5688 $as_echo "$DUMPBIN" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694
5695 test -n "$DUMPBIN" && break
5696 done
5697 fi
5698 if test -z "$DUMPBIN"; then
5699 ac_ct_DUMPBIN=$DUMPBIN
5700 for ac_prog in dumpbin "link -dump"
5701 do
5702 # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$ac_ct_DUMPBIN"; then
5710 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5730 if test -n "$ac_ct_DUMPBIN"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5732 $as_echo "$ac_ct_DUMPBIN" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738
5739 test -n "$ac_ct_DUMPBIN" && break
5740 done
5741
5742 if test "x$ac_ct_DUMPBIN" = x; then
5743 DUMPBIN=":"
5744 else
5745 case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749 ac_tool_warned=yes ;;
5750 esac
5751 DUMPBIN=$ac_ct_DUMPBIN
5752 fi
5753 fi
5754
5755 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5756 *COFF*)
5757 DUMPBIN="$DUMPBIN -symbols"
5758 ;;
5759 *)
5760 DUMPBIN=:
5761 ;;
5762 esac
5763 fi
5764
5765 if test "$DUMPBIN" != ":"; then
5766 NM="$DUMPBIN"
5767 fi
5768 fi
5769 test -z "$NM" && NM=nm
5770
5771
5772
5773
5774
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5777 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5778 if ${lt_cv_nm_interface+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 lt_cv_nm_interface="BSD nm"
5782 echo "int some_variable = 0;" > conftest.$ac_ext
5783 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5784 (eval "$ac_compile" 2>conftest.err)
5785 cat conftest.err >&5
5786 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5787 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5788 cat conftest.err >&5
5789 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5790 cat conftest.out >&5
5791 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5792 lt_cv_nm_interface="MS dumpbin"
5793 fi
5794 rm -f conftest*
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5797 $as_echo "$lt_cv_nm_interface" >&6; }
5798
5799 # find the maximum length of command line arguments
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5801 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5802 if ${lt_cv_sys_max_cmd_len+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 i=0
5806 teststring="ABCD"
5807
5808 case $build_os in
5809 msdosdjgpp*)
5810 # On DJGPP, this test can blow up pretty badly due to problems in libc
5811 # (any single argument exceeding 2000 bytes causes a buffer overrun
5812 # during glob expansion). Even if it were fixed, the result of this
5813 # check would be larger than it should be.
5814 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5815 ;;
5816
5817 gnu*)
5818 # Under GNU Hurd, this test is not required because there is
5819 # no limit to the length of command line arguments.
5820 # Libtool will interpret -1 as no limit whatsoever
5821 lt_cv_sys_max_cmd_len=-1;
5822 ;;
5823
5824 cygwin* | mingw* | cegcc*)
5825 # On Win9x/ME, this test blows up -- it succeeds, but takes
5826 # about 5 minutes as the teststring grows exponentially.
5827 # Worse, since 9x/ME are not pre-emptively multitasking,
5828 # you end up with a "frozen" computer, even though with patience
5829 # the test eventually succeeds (with a max line length of 256k).
5830 # Instead, let's just punt: use the minimum linelength reported by
5831 # all of the supported platforms: 8192 (on NT/2K/XP).
5832 lt_cv_sys_max_cmd_len=8192;
5833 ;;
5834
5835 mint*)
5836 # On MiNT this can take a long time and run out of memory.
5837 lt_cv_sys_max_cmd_len=8192;
5838 ;;
5839
5840 amigaos*)
5841 # On AmigaOS with pdksh, this test takes hours, literally.
5842 # So we just punt and use a minimum line length of 8192.
5843 lt_cv_sys_max_cmd_len=8192;
5844 ;;
5845
5846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5847 # This has been around since 386BSD, at least. Likely further.
5848 if test -x /sbin/sysctl; then
5849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5850 elif test -x /usr/sbin/sysctl; then
5851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5852 else
5853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5854 fi
5855 # And add a safety zone
5856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5858 ;;
5859
5860 interix*)
5861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5862 lt_cv_sys_max_cmd_len=196608
5863 ;;
5864
5865 os2*)
5866 # The test takes a long time on OS/2.
5867 lt_cv_sys_max_cmd_len=8192
5868 ;;
5869
5870 osf*)
5871 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5872 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5873 # nice to cause kernel panics so lets avoid the loop below.
5874 # First set a reasonable default.
5875 lt_cv_sys_max_cmd_len=16384
5876 #
5877 if test -x /sbin/sysconfig; then
5878 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5879 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5880 esac
5881 fi
5882 ;;
5883 sco3.2v5*)
5884 lt_cv_sys_max_cmd_len=102400
5885 ;;
5886 sysv5* | sco5v6* | sysv4.2uw2*)
5887 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5888 if test -n "$kargmax"; then
5889 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5890 else
5891 lt_cv_sys_max_cmd_len=32768
5892 fi
5893 ;;
5894 *)
5895 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5896 if test -n "$lt_cv_sys_max_cmd_len"; then
5897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5899 else
5900 # Make teststring a little bigger before we do anything with it.
5901 # a 1K string should be a reasonable start.
5902 for i in 1 2 3 4 5 6 7 8 ; do
5903 teststring=$teststring$teststring
5904 done
5905 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5906 # If test is not a shell built-in, we'll probably end up computing a
5907 # maximum length that is only half of the actual maximum length, but
5908 # we can't tell.
5909 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5910 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5911 test $i != 17 # 1/2 MB should be enough
5912 do
5913 i=`expr $i + 1`
5914 teststring=$teststring$teststring
5915 done
5916 # Only check the string length outside the loop.
5917 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5918 teststring=
5919 # Add a significant safety factor because C++ compilers can tack on
5920 # massive amounts of additional arguments before passing them to the
5921 # linker. It appears as though 1/2 is a usable value.
5922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5923 fi
5924 ;;
5925 esac
5926
5927 fi
5928
5929 if test -n $lt_cv_sys_max_cmd_len ; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5931 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5932 else
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5934 $as_echo "none" >&6; }
5935 fi
5936 max_cmd_len=$lt_cv_sys_max_cmd_len
5937
5938
5939
5940
5941
5942
5943 : ${CP="cp -f"}
5944 : ${MV="mv -f"}
5945 : ${RM="rm -f"}
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5948 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5949 # Try some XSI features
5950 xsi_shell=no
5951 ( _lt_dummy="a/b/c"
5952 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5953 = c,a/b,b/c, \
5954 && eval 'test $(( 1 + 1 )) -eq 2 \
5955 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5956 && xsi_shell=yes
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5958 $as_echo "$xsi_shell" >&6; }
5959
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5962 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5963 lt_shell_append=no
5964 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5965 >/dev/null 2>&1 \
5966 && lt_shell_append=yes
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5968 $as_echo "$lt_shell_append" >&6; }
5969
5970
5971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5972 lt_unset=unset
5973 else
5974 lt_unset=false
5975 fi
5976
5977
5978
5979
5980
5981 # test EBCDIC or ASCII
5982 case `echo X|tr X '\101'` in
5983 A) # ASCII based system
5984 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5985 lt_SP2NL='tr \040 \012'
5986 lt_NL2SP='tr \015\012 \040\040'
5987 ;;
5988 *) # EBCDIC based system
5989 lt_SP2NL='tr \100 \n'
5990 lt_NL2SP='tr \r\n \100\100'
5991 ;;
5992 esac
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6003 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6004 if ${lt_cv_to_host_file_cmd+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 case $host in
6008 *-*-mingw* )
6009 case $build in
6010 *-*-mingw* ) # actually msys
6011 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6012 ;;
6013 *-*-cygwin* )
6014 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6015 ;;
6016 * ) # otherwise, assume *nix
6017 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6018 ;;
6019 esac
6020 ;;
6021 *-*-cygwin* )
6022 case $build in
6023 *-*-mingw* ) # actually msys
6024 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6025 ;;
6026 *-*-cygwin* )
6027 lt_cv_to_host_file_cmd=func_convert_file_noop
6028 ;;
6029 * ) # otherwise, assume *nix
6030 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6031 ;;
6032 esac
6033 ;;
6034 * ) # unhandled hosts (and "normal" native builds)
6035 lt_cv_to_host_file_cmd=func_convert_file_noop
6036 ;;
6037 esac
6038
6039 fi
6040
6041 to_host_file_cmd=$lt_cv_to_host_file_cmd
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6043 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6044
6045
6046
6047
6048
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6050 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6051 if ${lt_cv_to_tool_file_cmd+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 #assume ordinary cross tools, or native build.
6055 lt_cv_to_tool_file_cmd=func_convert_file_noop
6056 case $host in
6057 *-*-mingw* )
6058 case $build in
6059 *-*-mingw* ) # actually msys
6060 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6061 ;;
6062 esac
6063 ;;
6064 esac
6065
6066 fi
6067
6068 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6070 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6071
6072
6073
6074
6075
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6077 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6078 if ${lt_cv_ld_reload_flag+:} false; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 lt_cv_ld_reload_flag='-r'
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6084 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6085 reload_flag=$lt_cv_ld_reload_flag
6086 case $reload_flag in
6087 "" | " "*) ;;
6088 *) reload_flag=" $reload_flag" ;;
6089 esac
6090 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6091 case $host_os in
6092 cygwin* | mingw* | pw32* | cegcc*)
6093 if test "$GCC" != yes; then
6094 reload_cmds=false
6095 fi
6096 ;;
6097 darwin*)
6098 if test "$GCC" = yes; then
6099 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6100 else
6101 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6102 fi
6103 ;;
6104 esac
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_prog_OBJDUMP+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if test -n "$OBJDUMP"; then
6123 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136 done
6137 done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 OBJDUMP=$ac_cv_prog_OBJDUMP
6143 if test -n "$OBJDUMP"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6145 $as_echo "$OBJDUMP" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151
6152 fi
6153 if test -z "$ac_cv_prog_OBJDUMP"; then
6154 ac_ct_OBJDUMP=$OBJDUMP
6155 # Extract the first word of "objdump", so it can be a program name with args.
6156 set dummy objdump; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$ac_ct_OBJDUMP"; then
6163 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6183 if test -n "$ac_ct_OBJDUMP"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6185 $as_echo "$ac_ct_OBJDUMP" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191 if test "x$ac_ct_OBJDUMP" = x; then
6192 OBJDUMP="false"
6193 else
6194 case $cross_compiling:$ac_tool_warned in
6195 yes:)
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198 ac_tool_warned=yes ;;
6199 esac
6200 OBJDUMP=$ac_ct_OBJDUMP
6201 fi
6202 else
6203 OBJDUMP="$ac_cv_prog_OBJDUMP"
6204 fi
6205
6206 test -z "$OBJDUMP" && OBJDUMP=objdump
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6217 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6218 if ${lt_cv_deplibs_check_method+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 lt_cv_file_magic_cmd='$MAGIC_CMD'
6222 lt_cv_file_magic_test_file=
6223 lt_cv_deplibs_check_method='unknown'
6224 # Need to set the preceding variable on all platforms that support
6225 # interlibrary dependencies.
6226 # 'none' -- dependencies not supported.
6227 # `unknown' -- same as none, but documents that we really don't know.
6228 # 'pass_all' -- all dependencies passed with no checks.
6229 # 'test_compile' -- check by making test program.
6230 # 'file_magic [[regex]]' -- check by looking for files in library path
6231 # which responds to the $file_magic_cmd with a given extended regex.
6232 # If you have `file' or equivalent on your system and you're not sure
6233 # whether `pass_all' will *always* work, you probably want this one.
6234
6235 case $host_os in
6236 aix[4-9]*)
6237 lt_cv_deplibs_check_method=pass_all
6238 ;;
6239
6240 beos*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
6243
6244 bsdi[45]*)
6245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6246 lt_cv_file_magic_cmd='/usr/bin/file -L'
6247 lt_cv_file_magic_test_file=/shlib/libc.so
6248 ;;
6249
6250 cygwin*)
6251 # func_win32_libid is a shell function defined in ltmain.sh
6252 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6253 lt_cv_file_magic_cmd='func_win32_libid'
6254 ;;
6255
6256 mingw* | pw32*)
6257 # Base MSYS/MinGW do not provide the 'file' command needed by
6258 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6259 # unless we find 'file', for example because we are cross-compiling.
6260 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6261 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6262 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6263 lt_cv_file_magic_cmd='func_win32_libid'
6264 else
6265 # Keep this pattern in sync with the one in func_win32_libid.
6266 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6267 lt_cv_file_magic_cmd='$OBJDUMP -f'
6268 fi
6269 ;;
6270
6271 cegcc*)
6272 # use the weaker test based on 'objdump'. See mingw*.
6273 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6274 lt_cv_file_magic_cmd='$OBJDUMP -f'
6275 ;;
6276
6277 darwin* | rhapsody*)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280
6281 freebsd* | dragonfly*)
6282 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6283 case $host_cpu in
6284 i*86 )
6285 # Not sure whether the presence of OpenBSD here was a mistake.
6286 # Let's accept both of them until this is cleared up.
6287 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6288 lt_cv_file_magic_cmd=/usr/bin/file
6289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6290 ;;
6291 esac
6292 else
6293 lt_cv_deplibs_check_method=pass_all
6294 fi
6295 ;;
6296
6297 haiku*)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300
6301 hpux10.20* | hpux11*)
6302 lt_cv_file_magic_cmd=/usr/bin/file
6303 case $host_cpu in
6304 ia64*)
6305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6306 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6307 ;;
6308 hppa*64*)
6309 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]'
6310 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6311 ;;
6312 *)
6313 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6314 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6315 ;;
6316 esac
6317 ;;
6318
6319 interix[3-9]*)
6320 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6322 ;;
6323
6324 irix5* | irix6* | nonstopux*)
6325 case $LD in
6326 *-32|*"-32 ") libmagic=32-bit;;
6327 *-n32|*"-n32 ") libmagic=N32;;
6328 *-64|*"-64 ") libmagic=64-bit;;
6329 *) libmagic=never-match;;
6330 esac
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334 # This must be glibc/ELF.
6335 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338
6339 netbsd* | netbsdelf*-gnu)
6340 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6342 else
6343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6344 fi
6345 ;;
6346
6347 newos6*)
6348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6349 lt_cv_file_magic_cmd=/usr/bin/file
6350 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6351 ;;
6352
6353 *nto* | *qnx*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
6356
6357 openbsd*)
6358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6360 else
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6362 fi
6363 ;;
6364
6365 osf3* | osf4* | osf5*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369 rdos*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373 solaris*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6378 lt_cv_deplibs_check_method=pass_all
6379 ;;
6380
6381 sysv4 | sysv4.3*)
6382 case $host_vendor in
6383 motorola)
6384 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]'
6385 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6386 ;;
6387 ncr)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390 sequent)
6391 lt_cv_file_magic_cmd='/bin/file'
6392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6393 ;;
6394 sni)
6395 lt_cv_file_magic_cmd='/bin/file'
6396 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6397 lt_cv_file_magic_test_file=/lib/libc.so
6398 ;;
6399 siemens)
6400 lt_cv_deplibs_check_method=pass_all
6401 ;;
6402 pc)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405 esac
6406 ;;
6407
6408 tpf*)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411 esac
6412
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6415 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6416
6417 file_magic_glob=
6418 want_nocaseglob=no
6419 if test "$build" = "$host"; then
6420 case $host_os in
6421 mingw* | pw32*)
6422 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6423 want_nocaseglob=yes
6424 else
6425 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6426 fi
6427 ;;
6428 esac
6429 fi
6430
6431 file_magic_cmd=$lt_cv_file_magic_cmd
6432 deplibs_check_method=$lt_cv_deplibs_check_method
6433 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_DLLTOOL+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$DLLTOOL"; then
6465 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 DLLTOOL=$ac_cv_prog_DLLTOOL
6485 if test -n "$DLLTOOL"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6487 $as_echo "$DLLTOOL" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 fi
6495 if test -z "$ac_cv_prog_DLLTOOL"; then
6496 ac_ct_DLLTOOL=$DLLTOOL
6497 # Extract the first word of "dlltool", so it can be a program name with args.
6498 set dummy dlltool; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$ac_ct_DLLTOOL"; then
6505 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6525 if test -n "$ac_ct_DLLTOOL"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6527 $as_echo "$ac_ct_DLLTOOL" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533 if test "x$ac_ct_DLLTOOL" = x; then
6534 DLLTOOL="false"
6535 else
6536 case $cross_compiling:$ac_tool_warned in
6537 yes:)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6541 esac
6542 DLLTOOL=$ac_ct_DLLTOOL
6543 fi
6544 else
6545 DLLTOOL="$ac_cv_prog_DLLTOOL"
6546 fi
6547
6548 test -z "$DLLTOOL" && DLLTOOL=dlltool
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6560 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6561 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 lt_cv_sharedlib_from_linklib_cmd='unknown'
6565
6566 case $host_os in
6567 cygwin* | mingw* | pw32* | cegcc*)
6568 # two different shell functions defined in ltmain.sh
6569 # decide which to use based on capabilities of $DLLTOOL
6570 case `$DLLTOOL --help 2>&1` in
6571 *--identify-strict*)
6572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6573 ;;
6574 *)
6575 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6576 ;;
6577 esac
6578 ;;
6579 *)
6580 # fallback: assume linklib IS sharedlib
6581 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6582 ;;
6583 esac
6584
6585 fi
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6587 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6588 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6589 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6590
6591
6592
6593
6594
6595
6596
6597 if test -n "$ac_tool_prefix"; then
6598 for ac_prog in ar
6599 do
6600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_prog_AR+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 if test -n "$AR"; then
6608 ac_cv_prog_AR="$AR" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 AR=$ac_cv_prog_AR
6628 if test -n "$AR"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6630 $as_echo "$AR" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635
6636
6637 test -n "$AR" && break
6638 done
6639 fi
6640 if test -z "$AR"; then
6641 ac_ct_AR=$AR
6642 for ac_prog in ar
6643 do
6644 # Extract the first word of "$ac_prog", so it can be a program name with args.
6645 set dummy $ac_prog; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 if test -n "$ac_ct_AR"; then
6652 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661 ac_cv_prog_ac_ct_AR="$ac_prog"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6672 if test -n "$ac_ct_AR"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6674 $as_echo "$ac_ct_AR" >&6; }
6675 else
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6678 fi
6679
6680
6681 test -n "$ac_ct_AR" && break
6682 done
6683
6684 if test "x$ac_ct_AR" = x; then
6685 AR="false"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 AR=$ac_ct_AR
6694 fi
6695 fi
6696
6697 : ${AR=ar}
6698 : ${AR_FLAGS=cru}
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6711 $as_echo_n "checking for archiver @FILE support... " >&6; }
6712 if ${lt_cv_ar_at_file+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 lt_cv_ar_at_file=no
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718
6719 int
6720 main ()
6721 {
6722
6723 ;
6724 return 0;
6725 }
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 echo conftest.$ac_objext > conftest.lst
6729 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6731 (eval $lt_ar_try) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }
6735 if test "$ac_status" -eq 0; then
6736 # Ensure the archiver fails upon bogus file names.
6737 rm -f conftest.$ac_objext libconftest.a
6738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6739 (eval $lt_ar_try) 2>&5
6740 ac_status=$?
6741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742 test $ac_status = 0; }
6743 if test "$ac_status" -ne 0; then
6744 lt_cv_ar_at_file=@
6745 fi
6746 fi
6747 rm -f conftest.* libconftest.a
6748
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751
6752 fi
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6754 $as_echo "$lt_cv_ar_at_file" >&6; }
6755
6756 if test "x$lt_cv_ar_at_file" = xno; then
6757 archiver_list_spec=
6758 else
6759 archiver_list_spec=$lt_cv_ar_at_file
6760 fi
6761
6762
6763
6764
6765
6766
6767
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}strip; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_STRIP+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 if test -n "$STRIP"; then
6777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 STRIP=$ac_cv_prog_STRIP
6797 if test -n "$STRIP"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6799 $as_echo "$STRIP" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_STRIP"; then
6808 ac_ct_STRIP=$STRIP
6809 # Extract the first word of "strip", so it can be a program name with args.
6810 set dummy strip; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$ac_ct_STRIP"; then
6817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_ac_ct_STRIP="strip"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6837 if test -n "$ac_ct_STRIP"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6839 $as_echo "$ac_ct_STRIP" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845 if test "x$ac_ct_STRIP" = x; then
6846 STRIP=":"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6853 esac
6854 STRIP=$ac_ct_STRIP
6855 fi
6856 else
6857 STRIP="$ac_cv_prog_STRIP"
6858 fi
6859
6860 test -z "$STRIP" && STRIP=:
6861
6862
6863
6864
6865
6866
6867 if test -n "$ac_tool_prefix"; then
6868 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6869 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if ${ac_cv_prog_RANLIB+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 if test -n "$RANLIB"; then
6876 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893 fi
6894 fi
6895 RANLIB=$ac_cv_prog_RANLIB
6896 if test -n "$RANLIB"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6898 $as_echo "$RANLIB" >&6; }
6899 else
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6903
6904
6905 fi
6906 if test -z "$ac_cv_prog_RANLIB"; then
6907 ac_ct_RANLIB=$RANLIB
6908 # Extract the first word of "ranlib", so it can be a program name with args.
6909 set dummy ranlib; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$ac_ct_RANLIB"; then
6916 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_ac_ct_RANLIB="ranlib"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6936 if test -n "$ac_ct_RANLIB"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6938 $as_echo "$ac_ct_RANLIB" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944 if test "x$ac_ct_RANLIB" = x; then
6945 RANLIB=":"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 RANLIB=$ac_ct_RANLIB
6954 fi
6955 else
6956 RANLIB="$ac_cv_prog_RANLIB"
6957 fi
6958
6959 test -z "$RANLIB" && RANLIB=:
6960
6961
6962
6963
6964
6965
6966 # Determine commands to create old-style static archives.
6967 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6968 old_postinstall_cmds='chmod 644 $oldlib'
6969 old_postuninstall_cmds=
6970
6971 if test -n "$RANLIB"; then
6972 case $host_os in
6973 openbsd*)
6974 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6975 ;;
6976 *)
6977 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6978 ;;
6979 esac
6980 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6981 fi
6982
6983 case $host_os in
6984 darwin*)
6985 lock_old_archive_extraction=yes ;;
6986 *)
6987 lock_old_archive_extraction=no ;;
6988 esac
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028 # If no C compiler was specified, use CC.
7029 LTCC=${LTCC-"$CC"}
7030
7031 # If no C compiler flags were specified, use CFLAGS.
7032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7033
7034 # Allow CC to be a program name with arguments.
7035 compiler=$CC
7036
7037
7038 # Check for command to grab the raw symbol name followed by C symbol from nm.
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7040 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7041 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044
7045 # These are sane defaults that work on at least a few old systems.
7046 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7047
7048 # Character class describing NM global symbol codes.
7049 symcode='[BCDEGRST]'
7050
7051 # Regexp to match symbols that can be accessed directly from C.
7052 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7053
7054 # Define system-specific variables.
7055 case $host_os in
7056 aix*)
7057 symcode='[BCDT]'
7058 ;;
7059 cygwin* | mingw* | pw32* | cegcc*)
7060 symcode='[ABCDGISTW]'
7061 ;;
7062 hpux*)
7063 if test "$host_cpu" = ia64; then
7064 symcode='[ABCDEGRST]'
7065 fi
7066 ;;
7067 irix* | nonstopux*)
7068 symcode='[BCDEGRST]'
7069 ;;
7070 osf*)
7071 symcode='[BCDEGQRST]'
7072 ;;
7073 solaris*)
7074 symcode='[BDRT]'
7075 ;;
7076 sco3.2v5*)
7077 symcode='[DT]'
7078 ;;
7079 sysv4.2uw2*)
7080 symcode='[DT]'
7081 ;;
7082 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7083 symcode='[ABDT]'
7084 ;;
7085 sysv4)
7086 symcode='[DFNSTU]'
7087 ;;
7088 esac
7089
7090 # If we're using GNU nm, then use its standard symbol codes.
7091 case `$NM -V 2>&1` in
7092 *GNU* | *'with BFD'*)
7093 symcode='[ABCDGIRSTW]' ;;
7094 esac
7095
7096 # Transform an extracted symbol line into a proper C declaration.
7097 # Some systems (esp. on ia64) link data and code symbols differently,
7098 # so use this general approach.
7099 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7100
7101 # Transform an extracted symbol line into symbol name and symbol address
7102 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7103 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7104
7105 # Handle CRLF in mingw tool chain
7106 opt_cr=
7107 case $build_os in
7108 mingw*)
7109 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7110 ;;
7111 esac
7112
7113 # Try without a prefix underscore, then with it.
7114 for ac_symprfx in "" "_"; do
7115
7116 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7117 symxfrm="\\1 $ac_symprfx\\2 \\2"
7118
7119 # Write the raw and C identifiers.
7120 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7121 # Fake it for dumpbin and say T for any non-static function
7122 # and D for any global variable.
7123 # Also find C++ and __fastcall symbols from MSVC++,
7124 # which start with @ or ?.
7125 lt_cv_sys_global_symbol_pipe="$AWK '"\
7126 " {last_section=section; section=\$ 3};"\
7127 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7128 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7129 " \$ 0!~/External *\|/{next};"\
7130 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7131 " {if(hide[section]) next};"\
7132 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7133 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7134 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7135 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7136 " ' prfx=^$ac_symprfx"
7137 else
7138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7139 fi
7140 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7141
7142 # Check to see that the pipe works correctly.
7143 pipe_works=no
7144
7145 rm -f conftest*
7146 cat > conftest.$ac_ext <<_LT_EOF
7147 #ifdef __cplusplus
7148 extern "C" {
7149 #endif
7150 char nm_test_var;
7151 void nm_test_func(void);
7152 void nm_test_func(void){}
7153 #ifdef __cplusplus
7154 }
7155 #endif
7156 int main(){nm_test_var='a';nm_test_func();return(0);}
7157 _LT_EOF
7158
7159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160 (eval $ac_compile) 2>&5
7161 ac_status=$?
7162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163 test $ac_status = 0; }; then
7164 # Now try to grab the symbols.
7165 nlist=conftest.nm
7166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7167 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7168 ac_status=$?
7169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170 test $ac_status = 0; } && test -s "$nlist"; then
7171 # Try sorting and uniquifying the output.
7172 if sort "$nlist" | uniq > "$nlist"T; then
7173 mv -f "$nlist"T "$nlist"
7174 else
7175 rm -f "$nlist"T
7176 fi
7177
7178 # Make sure that we snagged all the symbols we need.
7179 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7180 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7181 cat <<_LT_EOF > conftest.$ac_ext
7182 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7183 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7184 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7185 relocations are performed -- see ld's documentation on pseudo-relocs. */
7186 # define LT_DLSYM_CONST
7187 #elif defined(__osf__)
7188 /* This system does not cope well with relocations in const data. */
7189 # define LT_DLSYM_CONST
7190 #else
7191 # define LT_DLSYM_CONST const
7192 #endif
7193
7194 #ifdef __cplusplus
7195 extern "C" {
7196 #endif
7197
7198 _LT_EOF
7199 # Now generate the symbol file.
7200 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7201
7202 cat <<_LT_EOF >> conftest.$ac_ext
7203
7204 /* The mapping between symbol names and symbols. */
7205 LT_DLSYM_CONST struct {
7206 const char *name;
7207 void *address;
7208 }
7209 lt__PROGRAM__LTX_preloaded_symbols[] =
7210 {
7211 { "@PROGRAM@", (void *) 0 },
7212 _LT_EOF
7213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7214 cat <<\_LT_EOF >> conftest.$ac_ext
7215 {0, (void *) 0}
7216 };
7217
7218 /* This works around a problem in FreeBSD linker */
7219 #ifdef FREEBSD_WORKAROUND
7220 static const void *lt_preloaded_setup() {
7221 return lt__PROGRAM__LTX_preloaded_symbols;
7222 }
7223 #endif
7224
7225 #ifdef __cplusplus
7226 }
7227 #endif
7228 _LT_EOF
7229 # Now try linking the two files.
7230 mv conftest.$ac_objext conftstm.$ac_objext
7231 lt_globsym_save_LIBS=$LIBS
7232 lt_globsym_save_CFLAGS=$CFLAGS
7233 LIBS="conftstm.$ac_objext"
7234 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7236 (eval $ac_link) 2>&5
7237 ac_status=$?
7238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7240 pipe_works=yes
7241 fi
7242 LIBS=$lt_globsym_save_LIBS
7243 CFLAGS=$lt_globsym_save_CFLAGS
7244 else
7245 echo "cannot find nm_test_func in $nlist" >&5
7246 fi
7247 else
7248 echo "cannot find nm_test_var in $nlist" >&5
7249 fi
7250 else
7251 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7252 fi
7253 else
7254 echo "$progname: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7256 fi
7257 rm -rf conftest* conftst*
7258
7259 # Do not use the global_symbol_pipe unless it works.
7260 if test "$pipe_works" = yes; then
7261 break
7262 else
7263 lt_cv_sys_global_symbol_pipe=
7264 fi
7265 done
7266
7267 fi
7268
7269 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7270 lt_cv_sys_global_symbol_to_cdecl=
7271 fi
7272 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7274 $as_echo "failed" >&6; }
7275 else
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7277 $as_echo "ok" >&6; }
7278 fi
7279
7280 # Response file support.
7281 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7282 nm_file_list_spec='@'
7283 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7284 nm_file_list_spec='@'
7285 fi
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7314 $as_echo_n "checking for sysroot... " >&6; }
7315
7316 # Check whether --with-sysroot was given.
7317 if test "${with_sysroot+set}" = set; then :
7318 withval=$with_sysroot;
7319 else
7320 with_sysroot=no
7321 fi
7322
7323
7324 lt_sysroot=
7325 case ${with_sysroot} in #(
7326 yes)
7327 if test "$GCC" = yes; then
7328 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7329 fi
7330 ;; #(
7331 /*)
7332 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7333 ;; #(
7334 no|'')
7335 ;; #(
7336 *)
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7338 $as_echo "${with_sysroot}" >&6; }
7339 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7340 ;;
7341 esac
7342
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7344 $as_echo "${lt_sysroot:-no}" >&6; }
7345
7346
7347
7348
7349
7350 # Check whether --enable-libtool-lock was given.
7351 if test "${enable_libtool_lock+set}" = set; then :
7352 enableval=$enable_libtool_lock;
7353 fi
7354
7355 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7356
7357 # Some flags need to be propagated to the compiler or linker for good
7358 # libtool support.
7359 case $host in
7360 ia64-*-hpux*)
7361 # Find out which ABI we are using.
7362 echo 'int i;' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 case `/usr/bin/file conftest.$ac_objext` in
7369 *ELF-32*)
7370 HPUX_IA64_MODE="32"
7371 ;;
7372 *ELF-64*)
7373 HPUX_IA64_MODE="64"
7374 ;;
7375 esac
7376 fi
7377 rm -rf conftest*
7378 ;;
7379 *-*-irix6*)
7380 # Find out which ABI we are using.
7381 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7383 (eval $ac_compile) 2>&5
7384 ac_status=$?
7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386 test $ac_status = 0; }; then
7387 if test "$lt_cv_prog_gnu_ld" = yes; then
7388 case `/usr/bin/file conftest.$ac_objext` in
7389 *32-bit*)
7390 LD="${LD-ld} -melf32bsmip"
7391 ;;
7392 *N32*)
7393 LD="${LD-ld} -melf32bmipn32"
7394 ;;
7395 *64-bit*)
7396 LD="${LD-ld} -melf64bmip"
7397 ;;
7398 esac
7399 else
7400 case `/usr/bin/file conftest.$ac_objext` in
7401 *32-bit*)
7402 LD="${LD-ld} -32"
7403 ;;
7404 *N32*)
7405 LD="${LD-ld} -n32"
7406 ;;
7407 *64-bit*)
7408 LD="${LD-ld} -64"
7409 ;;
7410 esac
7411 fi
7412 fi
7413 rm -rf conftest*
7414 ;;
7415
7416 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7417 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7418 # Find out which ABI we are using.
7419 echo 'int i;' > conftest.$ac_ext
7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7421 (eval $ac_compile) 2>&5
7422 ac_status=$?
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 case `/usr/bin/file conftest.o` in
7426 *32-bit*)
7427 case $host in
7428 x86_64-*kfreebsd*-gnu)
7429 LD="${LD-ld} -m elf_i386_fbsd"
7430 ;;
7431 x86_64-*linux*)
7432 LD="${LD-ld} -m elf_i386"
7433 ;;
7434 ppc64-*linux*|powerpc64-*linux*)
7435 LD="${LD-ld} -m elf32ppclinux"
7436 ;;
7437 s390x-*linux*)
7438 LD="${LD-ld} -m elf_s390"
7439 ;;
7440 sparc64-*linux*)
7441 LD="${LD-ld} -m elf32_sparc"
7442 ;;
7443 esac
7444 ;;
7445 *64-bit*)
7446 case $host in
7447 x86_64-*kfreebsd*-gnu)
7448 LD="${LD-ld} -m elf_x86_64_fbsd"
7449 ;;
7450 x86_64-*linux*)
7451 LD="${LD-ld} -m elf_x86_64"
7452 ;;
7453 ppc*-*linux*|powerpc*-*linux*)
7454 LD="${LD-ld} -m elf64ppc"
7455 ;;
7456 s390*-*linux*|s390*-*tpf*)
7457 LD="${LD-ld} -m elf64_s390"
7458 ;;
7459 sparc*-*linux*)
7460 LD="${LD-ld} -m elf64_sparc"
7461 ;;
7462 esac
7463 ;;
7464 esac
7465 fi
7466 rm -rf conftest*
7467 ;;
7468
7469 *-*-sco3.2v5*)
7470 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7471 SAVE_CFLAGS="$CFLAGS"
7472 CFLAGS="$CFLAGS -belf"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7474 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7475 if ${lt_cv_cc_needs_belf+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 ac_ext=c
7479 ac_cpp='$CPP $CPPFLAGS'
7480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7483
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7486
7487 int
7488 main ()
7489 {
7490
7491 ;
7492 return 0;
7493 }
7494 _ACEOF
7495 if ac_fn_c_try_link "$LINENO"; then :
7496 lt_cv_cc_needs_belf=yes
7497 else
7498 lt_cv_cc_needs_belf=no
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7502 ac_ext=c
7503 ac_cpp='$CPP $CPPFLAGS'
7504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7510 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7511 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7512 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7513 CFLAGS="$SAVE_CFLAGS"
7514 fi
7515 ;;
7516 *-*solaris*)
7517 # Find out which ABI we are using.
7518 echo 'int i;' > conftest.$ac_ext
7519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7520 (eval $ac_compile) 2>&5
7521 ac_status=$?
7522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523 test $ac_status = 0; }; then
7524 case `/usr/bin/file conftest.o` in
7525 *64-bit*)
7526 case $lt_cv_prog_gnu_ld in
7527 yes*)
7528 case $host in
7529 i?86-*-solaris*)
7530 LD="${LD-ld} -m elf_x86_64"
7531 ;;
7532 sparc*-*-solaris*)
7533 LD="${LD-ld} -m elf64_sparc"
7534 ;;
7535 esac
7536 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7537 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7538 LD="${LD-ld}_sol2"
7539 fi
7540 ;;
7541 *)
7542 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7543 LD="${LD-ld} -64"
7544 fi
7545 ;;
7546 esac
7547 ;;
7548 esac
7549 fi
7550 rm -rf conftest*
7551 ;;
7552 esac
7553
7554 need_locks="$enable_libtool_lock"
7555
7556 if test -n "$ac_tool_prefix"; then
7557 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}mt; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 if test -n "$MANIFEST_TOOL"; then
7565 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7585 if test -n "$MANIFEST_TOOL"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7587 $as_echo "$MANIFEST_TOOL" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593
7594 fi
7595 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7596 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7597 # Extract the first word of "mt", so it can be a program name with args.
7598 set dummy mt; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 if test -n "$ac_ct_MANIFEST_TOOL"; then
7605 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7617 fi
7618 done
7619 done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7625 if test -n "$ac_ct_MANIFEST_TOOL"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7627 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7628 else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7634 MANIFEST_TOOL=":"
7635 else
7636 case $cross_compiling:$ac_tool_warned in
7637 yes:)
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640 ac_tool_warned=yes ;;
7641 esac
7642 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7643 fi
7644 else
7645 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7646 fi
7647
7648 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7650 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7651 if ${lt_cv_path_mainfest_tool+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 lt_cv_path_mainfest_tool=no
7655 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7656 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7657 cat conftest.err >&5
7658 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7659 lt_cv_path_mainfest_tool=yes
7660 fi
7661 rm -f conftest*
7662 fi
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7664 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7665 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7666 MANIFEST_TOOL=:
7667 fi
7668
7669
7670
7671
7672
7673
7674 case $host_os in
7675 rhapsody* | darwin*)
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 if test -n "$DSYMUTIL"; then
7685 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7705 if test -n "$DSYMUTIL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7707 $as_echo "$DSYMUTIL" >&6; }
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 fi
7715 if test -z "$ac_cv_prog_DSYMUTIL"; then
7716 ac_ct_DSYMUTIL=$DSYMUTIL
7717 # Extract the first word of "dsymutil", so it can be a program name with args.
7718 set dummy dsymutil; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$ac_ct_DSYMUTIL"; then
7725 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7745 if test -n "$ac_ct_DSYMUTIL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7747 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753 if test "x$ac_ct_DSYMUTIL" = x; then
7754 DSYMUTIL=":"
7755 else
7756 case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762 DSYMUTIL=$ac_ct_DSYMUTIL
7763 fi
7764 else
7765 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7766 fi
7767
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7770 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_NMEDIT+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 if test -n "$NMEDIT"; then
7777 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 NMEDIT=$ac_cv_prog_NMEDIT
7797 if test -n "$NMEDIT"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7799 $as_echo "$NMEDIT" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806 fi
7807 if test -z "$ac_cv_prog_NMEDIT"; then
7808 ac_ct_NMEDIT=$NMEDIT
7809 # Extract the first word of "nmedit", so it can be a program name with args.
7810 set dummy nmedit; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$ac_ct_NMEDIT"; then
7817 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7837 if test -n "$ac_ct_NMEDIT"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7839 $as_echo "$ac_ct_NMEDIT" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845 if test "x$ac_ct_NMEDIT" = x; then
7846 NMEDIT=":"
7847 else
7848 case $cross_compiling:$ac_tool_warned in
7849 yes:)
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned=yes ;;
7853 esac
7854 NMEDIT=$ac_ct_NMEDIT
7855 fi
7856 else
7857 NMEDIT="$ac_cv_prog_NMEDIT"
7858 fi
7859
7860 if test -n "$ac_tool_prefix"; then
7861 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7862 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_prog_LIPO+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 if test -n "$LIPO"; then
7869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 LIPO=$ac_cv_prog_LIPO
7889 if test -n "$LIPO"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7891 $as_echo "$LIPO" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7895 fi
7896
7897
7898 fi
7899 if test -z "$ac_cv_prog_LIPO"; then
7900 ac_ct_LIPO=$LIPO
7901 # Extract the first word of "lipo", so it can be a program name with args.
7902 set dummy lipo; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 if test -n "$ac_ct_LIPO"; then
7909 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_ac_ct_LIPO="lipo"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7929 if test -n "$ac_ct_LIPO"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7931 $as_echo "$ac_ct_LIPO" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937 if test "x$ac_ct_LIPO" = x; then
7938 LIPO=":"
7939 else
7940 case $cross_compiling:$ac_tool_warned in
7941 yes:)
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944 ac_tool_warned=yes ;;
7945 esac
7946 LIPO=$ac_ct_LIPO
7947 fi
7948 else
7949 LIPO="$ac_cv_prog_LIPO"
7950 fi
7951
7952 if test -n "$ac_tool_prefix"; then
7953 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7954 set dummy ${ac_tool_prefix}otool; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if ${ac_cv_prog_OTOOL+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test -n "$OTOOL"; then
7961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7973 fi
7974 done
7975 done
7976 IFS=$as_save_IFS
7977
7978 fi
7979 fi
7980 OTOOL=$ac_cv_prog_OTOOL
7981 if test -n "$OTOOL"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7983 $as_echo "$OTOOL" >&6; }
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 fi
7988
7989
7990 fi
7991 if test -z "$ac_cv_prog_OTOOL"; then
7992 ac_ct_OTOOL=$OTOOL
7993 # Extract the first word of "otool", so it can be a program name with args.
7994 set dummy otool; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 if test -n "$ac_ct_OTOOL"; then
8001 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006 IFS=$as_save_IFS
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010 ac_cv_prog_ac_ct_OTOOL="otool"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 break 2
8013 fi
8014 done
8015 done
8016 IFS=$as_save_IFS
8017
8018 fi
8019 fi
8020 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8021 if test -n "$ac_ct_OTOOL"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8023 $as_echo "$ac_ct_OTOOL" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029 if test "x$ac_ct_OTOOL" = x; then
8030 OTOOL=":"
8031 else
8032 case $cross_compiling:$ac_tool_warned in
8033 yes:)
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8036 ac_tool_warned=yes ;;
8037 esac
8038 OTOOL=$ac_ct_OTOOL
8039 fi
8040 else
8041 OTOOL="$ac_cv_prog_OTOOL"
8042 fi
8043
8044 if test -n "$ac_tool_prefix"; then
8045 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8046 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if ${ac_cv_prog_OTOOL64+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 if test -n "$OTOOL64"; then
8053 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8054 else
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 for as_dir in $PATH
8057 do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 break 2
8065 fi
8066 done
8067 done
8068 IFS=$as_save_IFS
8069
8070 fi
8071 fi
8072 OTOOL64=$ac_cv_prog_OTOOL64
8073 if test -n "$OTOOL64"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8075 $as_echo "$OTOOL64" >&6; }
8076 else
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080
8081
8082 fi
8083 if test -z "$ac_cv_prog_OTOOL64"; then
8084 ac_ct_OTOOL64=$OTOOL64
8085 # Extract the first word of "otool64", so it can be a program name with args.
8086 set dummy otool64; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 if test -n "$ac_ct_OTOOL64"; then
8093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_ac_ct_OTOOL64="otool64"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8113 if test -n "$ac_ct_OTOOL64"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8115 $as_echo "$ac_ct_OTOOL64" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121 if test "x$ac_ct_OTOOL64" = x; then
8122 OTOOL64=":"
8123 else
8124 case $cross_compiling:$ac_tool_warned in
8125 yes:)
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8128 ac_tool_warned=yes ;;
8129 esac
8130 OTOOL64=$ac_ct_OTOOL64
8131 fi
8132 else
8133 OTOOL64="$ac_cv_prog_OTOOL64"
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8163 $as_echo_n "checking for -single_module linker flag... " >&6; }
8164 if ${lt_cv_apple_cc_single_mod+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 lt_cv_apple_cc_single_mod=no
8168 if test -z "${LT_MULTI_MODULE}"; then
8169 # By default we will add the -single_module flag. You can override
8170 # by either setting the environment variable LT_MULTI_MODULE
8171 # non-empty at configure time, or by adding -multi_module to the
8172 # link flags.
8173 rm -rf libconftest.dylib*
8174 echo "int foo(void){return 1;}" > conftest.c
8175 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8176 -dynamiclib -Wl,-single_module conftest.c" >&5
8177 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8178 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8179 _lt_result=$?
8180 # If there is a non-empty error log, and "single_module"
8181 # appears in it, assume the flag caused a linker warning
8182 if test -s conftest.err && $GREP single_module conftest.err; then
8183 cat conftest.err >&5
8184 # Otherwise, if the output was created with a 0 exit code from
8185 # the compiler, it worked.
8186 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8187 lt_cv_apple_cc_single_mod=yes
8188 else
8189 cat conftest.err >&5
8190 fi
8191 rm -rf libconftest.dylib*
8192 rm -f conftest.*
8193 fi
8194 fi
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8196 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8197
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8199 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8200 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 lt_cv_ld_exported_symbols_list=no
8204 save_LDFLAGS=$LDFLAGS
8205 echo "_main" > conftest.sym
8206 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209
8210 int
8211 main ()
8212 {
8213
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 lt_cv_ld_exported_symbols_list=yes
8220 else
8221 lt_cv_ld_exported_symbols_list=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 LDFLAGS="$save_LDFLAGS"
8226
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8229 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8230
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8232 $as_echo_n "checking for -force_load linker flag... " >&6; }
8233 if ${lt_cv_ld_force_load+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 lt_cv_ld_force_load=no
8237 cat > conftest.c << _LT_EOF
8238 int forced_loaded() { return 2;}
8239 _LT_EOF
8240 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8241 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8242 echo "$AR cru libconftest.a conftest.o" >&5
8243 $AR cru libconftest.a conftest.o 2>&5
8244 echo "$RANLIB libconftest.a" >&5
8245 $RANLIB libconftest.a 2>&5
8246 cat > conftest.c << _LT_EOF
8247 int main() { return 0;}
8248 _LT_EOF
8249 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8250 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8251 _lt_result=$?
8252 if test -s conftest.err && $GREP force_load conftest.err; then
8253 cat conftest.err >&5
8254 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8255 lt_cv_ld_force_load=yes
8256 else
8257 cat conftest.err >&5
8258 fi
8259 rm -f conftest.err libconftest.a conftest conftest.c
8260 rm -rf conftest.dSYM
8261
8262 fi
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8264 $as_echo "$lt_cv_ld_force_load" >&6; }
8265 case $host_os in
8266 rhapsody* | darwin1.[012])
8267 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8268 darwin1.*)
8269 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8270 darwin*) # darwin 5.x on
8271 # if running on 10.5 or later, the deployment target defaults
8272 # to the OS version, if on x86, and 10.4, the deployment
8273 # target defaults to 10.4. Don't you love it?
8274 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8275 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8276 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8277 10.[012]*)
8278 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8279 10.*)
8280 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8281 esac
8282 ;;
8283 esac
8284 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8285 _lt_dar_single_mod='$single_module'
8286 fi
8287 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8288 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8289 else
8290 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8291 fi
8292 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8293 _lt_dsymutil='~$DSYMUTIL $lib || :'
8294 else
8295 _lt_dsymutil=
8296 fi
8297 ;;
8298 esac
8299
8300 for ac_header in dlfcn.h
8301 do :
8302 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8303 "
8304 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8305 cat >>confdefs.h <<_ACEOF
8306 #define HAVE_DLFCN_H 1
8307 _ACEOF
8308
8309 fi
8310
8311 done
8312
8313
8314
8315
8316
8317 # Set options
8318
8319
8320
8321 enable_dlopen=no
8322
8323
8324 enable_win32_dll=no
8325
8326
8327 # Check whether --enable-shared was given.
8328 if test "${enable_shared+set}" = set; then :
8329 enableval=$enable_shared; p=${PACKAGE-default}
8330 case $enableval in
8331 yes) enable_shared=yes ;;
8332 no) enable_shared=no ;;
8333 *)
8334 enable_shared=no
8335 # Look at the argument we got. We use all the common list separators.
8336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8337 for pkg in $enableval; do
8338 IFS="$lt_save_ifs"
8339 if test "X$pkg" = "X$p"; then
8340 enable_shared=yes
8341 fi
8342 done
8343 IFS="$lt_save_ifs"
8344 ;;
8345 esac
8346 else
8347 enable_shared=yes
8348 fi
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358 # Check whether --enable-static was given.
8359 if test "${enable_static+set}" = set; then :
8360 enableval=$enable_static; p=${PACKAGE-default}
8361 case $enableval in
8362 yes) enable_static=yes ;;
8363 no) enable_static=no ;;
8364 *)
8365 enable_static=no
8366 # Look at the argument we got. We use all the common list separators.
8367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8368 for pkg in $enableval; do
8369 IFS="$lt_save_ifs"
8370 if test "X$pkg" = "X$p"; then
8371 enable_static=yes
8372 fi
8373 done
8374 IFS="$lt_save_ifs"
8375 ;;
8376 esac
8377 else
8378 enable_static=yes
8379 fi
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390 # Check whether --with-pic was given.
8391 if test "${with_pic+set}" = set; then :
8392 withval=$with_pic; lt_p=${PACKAGE-default}
8393 case $withval in
8394 yes|no) pic_mode=$withval ;;
8395 *)
8396 pic_mode=default
8397 # Look at the argument we got. We use all the common list separators.
8398 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8399 for lt_pkg in $withval; do
8400 IFS="$lt_save_ifs"
8401 if test "X$lt_pkg" = "X$lt_p"; then
8402 pic_mode=yes
8403 fi
8404 done
8405 IFS="$lt_save_ifs"
8406 ;;
8407 esac
8408 else
8409 pic_mode=default
8410 fi
8411
8412
8413 test -z "$pic_mode" && pic_mode=default
8414
8415
8416
8417
8418
8419
8420
8421 # Check whether --enable-fast-install was given.
8422 if test "${enable_fast_install+set}" = set; then :
8423 enableval=$enable_fast_install; p=${PACKAGE-default}
8424 case $enableval in
8425 yes) enable_fast_install=yes ;;
8426 no) enable_fast_install=no ;;
8427 *)
8428 enable_fast_install=no
8429 # Look at the argument we got. We use all the common list separators.
8430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8431 for pkg in $enableval; do
8432 IFS="$lt_save_ifs"
8433 if test "X$pkg" = "X$p"; then
8434 enable_fast_install=yes
8435 fi
8436 done
8437 IFS="$lt_save_ifs"
8438 ;;
8439 esac
8440 else
8441 enable_fast_install=yes
8442 fi
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454 # This can be used to rebuild libtool when needed
8455 LIBTOOL_DEPS="$ltmain"
8456
8457 # Always use our own libtool.
8458 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 test -z "$LN_S" && LN_S="ln -s"
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504 if test -n "${ZSH_VERSION+set}" ; then
8505 setopt NO_GLOB_SUBST
8506 fi
8507
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8509 $as_echo_n "checking for objdir... " >&6; }
8510 if ${lt_cv_objdir+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 rm -f .libs 2>/dev/null
8514 mkdir .libs 2>/dev/null
8515 if test -d .libs; then
8516 lt_cv_objdir=.libs
8517 else
8518 # MS-DOS does not allow filenames that begin with a dot.
8519 lt_cv_objdir=_libs
8520 fi
8521 rmdir .libs 2>/dev/null
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8524 $as_echo "$lt_cv_objdir" >&6; }
8525 objdir=$lt_cv_objdir
8526
8527
8528
8529
8530
8531 cat >>confdefs.h <<_ACEOF
8532 #define LT_OBJDIR "$lt_cv_objdir/"
8533 _ACEOF
8534
8535
8536
8537
8538 case $host_os in
8539 aix3*)
8540 # AIX sometimes has problems with the GCC collect2 program. For some
8541 # reason, if we set the COLLECT_NAMES environment variable, the problems
8542 # vanish in a puff of smoke.
8543 if test "X${COLLECT_NAMES+set}" != Xset; then
8544 COLLECT_NAMES=
8545 export COLLECT_NAMES
8546 fi
8547 ;;
8548 esac
8549
8550 # Global variables:
8551 ofile=libtool
8552 can_build_shared=yes
8553
8554 # All known linkers require a `.a' archive for static linking (except MSVC,
8555 # which needs '.lib').
8556 libext=a
8557
8558 with_gnu_ld="$lt_cv_prog_gnu_ld"
8559
8560 old_CC="$CC"
8561 old_CFLAGS="$CFLAGS"
8562
8563 # Set sane defaults for various variables
8564 test -z "$CC" && CC=cc
8565 test -z "$LTCC" && LTCC=$CC
8566 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8567 test -z "$LD" && LD=ld
8568 test -z "$ac_objext" && ac_objext=o
8569
8570 for cc_temp in $compiler""; do
8571 case $cc_temp in
8572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8574 \-*) ;;
8575 *) break;;
8576 esac
8577 done
8578 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8579
8580
8581 # Only perform the check for file, if the check method requires it
8582 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8583 case $deplibs_check_method in
8584 file_magic*)
8585 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8587 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8588 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 case $MAGIC_CMD in
8592 [\\/*] | ?:[\\/]*)
8593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8594 ;;
8595 *)
8596 lt_save_MAGIC_CMD="$MAGIC_CMD"
8597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8599 for ac_dir in $ac_dummy; do
8600 IFS="$lt_save_ifs"
8601 test -z "$ac_dir" && ac_dir=.
8602 if test -f $ac_dir/${ac_tool_prefix}file; then
8603 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8604 if test -n "$file_magic_test_file"; then
8605 case $deplibs_check_method in
8606 "file_magic "*)
8607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8610 $EGREP "$file_magic_regex" > /dev/null; then
8611 :
8612 else
8613 cat <<_LT_EOF 1>&2
8614
8615 *** Warning: the command libtool uses to detect shared libraries,
8616 *** $file_magic_cmd, produces output that libtool cannot recognize.
8617 *** The result is that libtool may fail to recognize shared libraries
8618 *** as such. This will affect the creation of libtool libraries that
8619 *** depend on shared libraries, but programs linked with such libtool
8620 *** libraries will work regardless of this problem. Nevertheless, you
8621 *** may want to report the problem to your system manager and/or to
8622 *** [email protected]
8623
8624 _LT_EOF
8625 fi ;;
8626 esac
8627 fi
8628 break
8629 fi
8630 done
8631 IFS="$lt_save_ifs"
8632 MAGIC_CMD="$lt_save_MAGIC_CMD"
8633 ;;
8634 esac
8635 fi
8636
8637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8638 if test -n "$MAGIC_CMD"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8640 $as_echo "$MAGIC_CMD" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645
8646
8647
8648
8649
8650 if test -z "$lt_cv_path_MAGIC_CMD"; then
8651 if test -n "$ac_tool_prefix"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8653 $as_echo_n "checking for file... " >&6; }
8654 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 case $MAGIC_CMD in
8658 [\\/*] | ?:[\\/]*)
8659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8660 ;;
8661 *)
8662 lt_save_MAGIC_CMD="$MAGIC_CMD"
8663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8664 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8665 for ac_dir in $ac_dummy; do
8666 IFS="$lt_save_ifs"
8667 test -z "$ac_dir" && ac_dir=.
8668 if test -f $ac_dir/file; then
8669 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8670 if test -n "$file_magic_test_file"; then
8671 case $deplibs_check_method in
8672 "file_magic "*)
8673 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8676 $EGREP "$file_magic_regex" > /dev/null; then
8677 :
8678 else
8679 cat <<_LT_EOF 1>&2
8680
8681 *** Warning: the command libtool uses to detect shared libraries,
8682 *** $file_magic_cmd, produces output that libtool cannot recognize.
8683 *** The result is that libtool may fail to recognize shared libraries
8684 *** as such. This will affect the creation of libtool libraries that
8685 *** depend on shared libraries, but programs linked with such libtool
8686 *** libraries will work regardless of this problem. Nevertheless, you
8687 *** may want to report the problem to your system manager and/or to
8688 *** [email protected]
8689
8690 _LT_EOF
8691 fi ;;
8692 esac
8693 fi
8694 break
8695 fi
8696 done
8697 IFS="$lt_save_ifs"
8698 MAGIC_CMD="$lt_save_MAGIC_CMD"
8699 ;;
8700 esac
8701 fi
8702
8703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8704 if test -n "$MAGIC_CMD"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8706 $as_echo "$MAGIC_CMD" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713 else
8714 MAGIC_CMD=:
8715 fi
8716 fi
8717
8718 fi
8719 ;;
8720 esac
8721
8722 # Use C for the default configuration in the libtool script
8723
8724 lt_save_CC="$CC"
8725 ac_ext=c
8726 ac_cpp='$CPP $CPPFLAGS'
8727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8730
8731
8732 # Source file extension for C test sources.
8733 ac_ext=c
8734
8735 # Object file extension for compiled C test sources.
8736 objext=o
8737 objext=$objext
8738
8739 # Code to be used in simple compile tests
8740 lt_simple_compile_test_code="int some_variable = 0;"
8741
8742 # Code to be used in simple link tests
8743 lt_simple_link_test_code='int main(){return(0);}'
8744
8745
8746
8747
8748
8749
8750
8751 # If no C compiler was specified, use CC.
8752 LTCC=${LTCC-"$CC"}
8753
8754 # If no C compiler flags were specified, use CFLAGS.
8755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8756
8757 # Allow CC to be a program name with arguments.
8758 compiler=$CC
8759
8760 # Save the default compiler, since it gets overwritten when the other
8761 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8762 compiler_DEFAULT=$CC
8763
8764 # save warnings/boilerplate of simple test code
8765 ac_outfile=conftest.$ac_objext
8766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8768 _lt_compiler_boilerplate=`cat conftest.err`
8769 $RM conftest*
8770
8771 ac_outfile=conftest.$ac_objext
8772 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8774 _lt_linker_boilerplate=`cat conftest.err`
8775 $RM -r conftest*
8776
8777
8778 ## CAVEAT EMPTOR:
8779 ## There is no encapsulation within the following macros, do not change
8780 ## the running order or otherwise move them around unless you know exactly
8781 ## what you are doing...
8782 if test -n "$compiler"; then
8783
8784 lt_prog_compiler_no_builtin_flag=
8785
8786 if test "$GCC" = yes; then
8787 case $cc_basename in
8788 nvcc*)
8789 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8790 *)
8791 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8792 esac
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8795 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8796 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 lt_cv_prog_compiler_rtti_exceptions=no
8800 ac_outfile=conftest.$ac_objext
8801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8802 lt_compiler_flag="-fno-rtti -fno-exceptions"
8803 # Insert the option either (1) after the last *FLAGS variable, or
8804 # (2) before a word containing "conftest.", or (3) at the end.
8805 # Note that $ac_compile itself does not contain backslashes and begins
8806 # with a dollar sign (not a hyphen), so the echo should work correctly.
8807 # The option is referenced via a variable to avoid confusing sed.
8808 lt_compile=`echo "$ac_compile" | $SED \
8809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8811 -e 's:$: $lt_compiler_flag:'`
8812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8813 (eval "$lt_compile" 2>conftest.err)
8814 ac_status=$?
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 if (exit $ac_status) && test -s "$ac_outfile"; then
8818 # The compiler can only warn and ignore the option if not recognized
8819 # So say no if there are warnings other than the usual output.
8820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8823 lt_cv_prog_compiler_rtti_exceptions=yes
8824 fi
8825 fi
8826 $RM conftest*
8827
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8830 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8831
8832 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8833 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8834 else
8835 :
8836 fi
8837
8838 fi
8839
8840
8841
8842
8843
8844
8845 lt_prog_compiler_wl=
8846 lt_prog_compiler_pic=
8847 lt_prog_compiler_static=
8848
8849
8850 if test "$GCC" = yes; then
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_static='-static'
8853
8854 case $host_os in
8855 aix*)
8856 # All AIX code is PIC.
8857 if test "$host_cpu" = ia64; then
8858 # AIX 5 now supports IA64 processor
8859 lt_prog_compiler_static='-Bstatic'
8860 fi
8861 ;;
8862
8863 amigaos*)
8864 case $host_cpu in
8865 powerpc)
8866 # see comment about AmigaOS4 .so support
8867 lt_prog_compiler_pic='-fPIC'
8868 ;;
8869 m68k)
8870 # FIXME: we need at least 68020 code to build shared libraries, but
8871 # adding the `-m68020' flag to GCC prevents building anything better,
8872 # like `-m68040'.
8873 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8874 ;;
8875 esac
8876 ;;
8877
8878 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8879 # PIC is the default for these OSes.
8880 ;;
8881
8882 mingw* | cygwin* | pw32* | os2* | cegcc*)
8883 # This hack is so that the source file can tell whether it is being
8884 # built for inclusion in a dll (and should export symbols for example).
8885 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8886 # (--disable-auto-import) libraries
8887 lt_prog_compiler_pic='-DDLL_EXPORT'
8888 ;;
8889
8890 darwin* | rhapsody*)
8891 # PIC is the default on this platform
8892 # Common symbols not allowed in MH_DYLIB files
8893 lt_prog_compiler_pic='-fno-common'
8894 ;;
8895
8896 haiku*)
8897 # PIC is the default for Haiku.
8898 # The "-static" flag exists, but is broken.
8899 lt_prog_compiler_static=
8900 ;;
8901
8902 hpux*)
8903 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8904 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8905 # sets the default TLS model and affects inlining.
8906 case $host_cpu in
8907 hppa*64*)
8908 # +Z the default
8909 ;;
8910 *)
8911 lt_prog_compiler_pic='-fPIC'
8912 ;;
8913 esac
8914 ;;
8915
8916 interix[3-9]*)
8917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8918 # Instead, we relocate shared libraries at runtime.
8919 ;;
8920
8921 msdosdjgpp*)
8922 # Just because we use GCC doesn't mean we suddenly get shared libraries
8923 # on systems that don't support them.
8924 lt_prog_compiler_can_build_shared=no
8925 enable_shared=no
8926 ;;
8927
8928 *nto* | *qnx*)
8929 # QNX uses GNU C++, but need to define -shared option too, otherwise
8930 # it will coredump.
8931 lt_prog_compiler_pic='-fPIC -shared'
8932 ;;
8933
8934 sysv4*MP*)
8935 if test -d /usr/nec; then
8936 lt_prog_compiler_pic=-Kconform_pic
8937 fi
8938 ;;
8939
8940 *)
8941 lt_prog_compiler_pic='-fPIC'
8942 ;;
8943 esac
8944
8945 case $cc_basename in
8946 nvcc*) # Cuda Compiler Driver 2.2
8947 lt_prog_compiler_wl='-Xlinker '
8948 if test -n "$lt_prog_compiler_pic"; then
8949 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8950 fi
8951 ;;
8952 esac
8953 else
8954 # PORTME Check for flag to pass linker flags through the system compiler.
8955 case $host_os in
8956 aix*)
8957 lt_prog_compiler_wl='-Wl,'
8958 if test "$host_cpu" = ia64; then
8959 # AIX 5 now supports IA64 processor
8960 lt_prog_compiler_static='-Bstatic'
8961 else
8962 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8963 fi
8964 ;;
8965
8966 mingw* | cygwin* | pw32* | os2* | cegcc*)
8967 # This hack is so that the source file can tell whether it is being
8968 # built for inclusion in a dll (and should export symbols for example).
8969 lt_prog_compiler_pic='-DDLL_EXPORT'
8970 ;;
8971
8972 hpux9* | hpux10* | hpux11*)
8973 lt_prog_compiler_wl='-Wl,'
8974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8975 # not for PA HP-UX.
8976 case $host_cpu in
8977 hppa*64*|ia64*)
8978 # +Z the default
8979 ;;
8980 *)
8981 lt_prog_compiler_pic='+Z'
8982 ;;
8983 esac
8984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8985 lt_prog_compiler_static='${wl}-a ${wl}archive'
8986 ;;
8987
8988 irix5* | irix6* | nonstopux*)
8989 lt_prog_compiler_wl='-Wl,'
8990 # PIC (with -KPIC) is the default.
8991 lt_prog_compiler_static='-non_shared'
8992 ;;
8993
8994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8995 case $cc_basename in
8996 # old Intel for x86_64 which still supported -KPIC.
8997 ecc*)
8998 lt_prog_compiler_wl='-Wl,'
8999 lt_prog_compiler_pic='-KPIC'
9000 lt_prog_compiler_static='-static'
9001 ;;
9002 # icc used to be incompatible with GCC.
9003 # ICC 10 doesn't accept -KPIC any more.
9004 icc* | ifort*)
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_pic='-fPIC'
9007 lt_prog_compiler_static='-static'
9008 ;;
9009 # Lahey Fortran 8.1.
9010 lf95*)
9011 lt_prog_compiler_wl='-Wl,'
9012 lt_prog_compiler_pic='--shared'
9013 lt_prog_compiler_static='--static'
9014 ;;
9015 nagfor*)
9016 # NAG Fortran compiler
9017 lt_prog_compiler_wl='-Wl,-Wl,,'
9018 lt_prog_compiler_pic='-PIC'
9019 lt_prog_compiler_static='-Bstatic'
9020 ;;
9021 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9022 # Portland Group compilers (*not* the Pentium gcc compiler,
9023 # which looks to be a dead project)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_pic='-fpic'
9026 lt_prog_compiler_static='-Bstatic'
9027 ;;
9028 ccc*)
9029 lt_prog_compiler_wl='-Wl,'
9030 # All Alpha code is PIC.
9031 lt_prog_compiler_static='-non_shared'
9032 ;;
9033 xl* | bgxl* | bgf* | mpixl*)
9034 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9035 lt_prog_compiler_wl='-Wl,'
9036 lt_prog_compiler_pic='-qpic'
9037 lt_prog_compiler_static='-qstaticlink'
9038 ;;
9039 *)
9040 case `$CC -V 2>&1 | sed 5q` in
9041 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9042 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9043 lt_prog_compiler_pic='-KPIC'
9044 lt_prog_compiler_static='-Bstatic'
9045 lt_prog_compiler_wl=''
9046 ;;
9047 *Sun\ F* | *Sun*Fortran*)
9048 lt_prog_compiler_pic='-KPIC'
9049 lt_prog_compiler_static='-Bstatic'
9050 lt_prog_compiler_wl='-Qoption ld '
9051 ;;
9052 *Sun\ C*)
9053 # Sun C 5.9
9054 lt_prog_compiler_pic='-KPIC'
9055 lt_prog_compiler_static='-Bstatic'
9056 lt_prog_compiler_wl='-Wl,'
9057 ;;
9058 *Intel*\ [CF]*Compiler*)
9059 lt_prog_compiler_wl='-Wl,'
9060 lt_prog_compiler_pic='-fPIC'
9061 lt_prog_compiler_static='-static'
9062 ;;
9063 *Portland\ Group*)
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_pic='-fpic'
9066 lt_prog_compiler_static='-Bstatic'
9067 ;;
9068 esac
9069 ;;
9070 esac
9071 ;;
9072
9073 newsos6)
9074 lt_prog_compiler_pic='-KPIC'
9075 lt_prog_compiler_static='-Bstatic'
9076 ;;
9077
9078 *nto* | *qnx*)
9079 # QNX uses GNU C++, but need to define -shared option too, otherwise
9080 # it will coredump.
9081 lt_prog_compiler_pic='-fPIC -shared'
9082 ;;
9083
9084 osf3* | osf4* | osf5*)
9085 lt_prog_compiler_wl='-Wl,'
9086 # All OSF/1 code is PIC.
9087 lt_prog_compiler_static='-non_shared'
9088 ;;
9089
9090 rdos*)
9091 lt_prog_compiler_static='-non_shared'
9092 ;;
9093
9094 solaris*)
9095 lt_prog_compiler_pic='-KPIC'
9096 lt_prog_compiler_static='-Bstatic'
9097 case $cc_basename in
9098 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9099 lt_prog_compiler_wl='-Qoption ld ';;
9100 *)
9101 lt_prog_compiler_wl='-Wl,';;
9102 esac
9103 ;;
9104
9105 sunos4*)
9106 lt_prog_compiler_wl='-Qoption ld '
9107 lt_prog_compiler_pic='-PIC'
9108 lt_prog_compiler_static='-Bstatic'
9109 ;;
9110
9111 sysv4 | sysv4.2uw2* | sysv4.3*)
9112 lt_prog_compiler_wl='-Wl,'
9113 lt_prog_compiler_pic='-KPIC'
9114 lt_prog_compiler_static='-Bstatic'
9115 ;;
9116
9117 sysv4*MP*)
9118 if test -d /usr/nec ;then
9119 lt_prog_compiler_pic='-Kconform_pic'
9120 lt_prog_compiler_static='-Bstatic'
9121 fi
9122 ;;
9123
9124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9125 lt_prog_compiler_wl='-Wl,'
9126 lt_prog_compiler_pic='-KPIC'
9127 lt_prog_compiler_static='-Bstatic'
9128 ;;
9129
9130 unicos*)
9131 lt_prog_compiler_wl='-Wl,'
9132 lt_prog_compiler_can_build_shared=no
9133 ;;
9134
9135 uts4*)
9136 lt_prog_compiler_pic='-pic'
9137 lt_prog_compiler_static='-Bstatic'
9138 ;;
9139
9140 *)
9141 lt_prog_compiler_can_build_shared=no
9142 ;;
9143 esac
9144 fi
9145
9146 case $host_os in
9147 # For platforms which do not support PIC, -DPIC is meaningless:
9148 *djgpp*)
9149 lt_prog_compiler_pic=
9150 ;;
9151 *)
9152 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9153 ;;
9154 esac
9155
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9157 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9158 if ${lt_cv_prog_compiler_pic+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9164 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9165 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9166
9167 #
9168 # Check to make sure the PIC flag actually works.
9169 #
9170 if test -n "$lt_prog_compiler_pic"; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9172 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9173 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 lt_cv_prog_compiler_pic_works=no
9177 ac_outfile=conftest.$ac_objext
9178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9179 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9180 # Insert the option either (1) after the last *FLAGS variable, or
9181 # (2) before a word containing "conftest.", or (3) at the end.
9182 # Note that $ac_compile itself does not contain backslashes and begins
9183 # with a dollar sign (not a hyphen), so the echo should work correctly.
9184 # The option is referenced via a variable to avoid confusing sed.
9185 lt_compile=`echo "$ac_compile" | $SED \
9186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9188 -e 's:$: $lt_compiler_flag:'`
9189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9190 (eval "$lt_compile" 2>conftest.err)
9191 ac_status=$?
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 if (exit $ac_status) && test -s "$ac_outfile"; then
9195 # The compiler can only warn and ignore the option if not recognized
9196 # So say no if there are warnings other than the usual output.
9197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9200 lt_cv_prog_compiler_pic_works=yes
9201 fi
9202 fi
9203 $RM conftest*
9204
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9207 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9208
9209 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9210 case $lt_prog_compiler_pic in
9211 "" | " "*) ;;
9212 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9213 esac
9214 else
9215 lt_prog_compiler_pic=
9216 lt_prog_compiler_can_build_shared=no
9217 fi
9218
9219 fi
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231 #
9232 # Check to make sure the static flag actually works.
9233 #
9234 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9236 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9237 if ${lt_cv_prog_compiler_static_works+:} false; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 lt_cv_prog_compiler_static_works=no
9241 save_LDFLAGS="$LDFLAGS"
9242 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9245 # The linker can only warn and ignore the option if not recognized
9246 # So say no if there are warnings
9247 if test -s conftest.err; then
9248 # Append any errors to the config.log.
9249 cat conftest.err 1>&5
9250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9252 if diff conftest.exp conftest.er2 >/dev/null; then
9253 lt_cv_prog_compiler_static_works=yes
9254 fi
9255 else
9256 lt_cv_prog_compiler_static_works=yes
9257 fi
9258 fi
9259 $RM -r conftest*
9260 LDFLAGS="$save_LDFLAGS"
9261
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9264 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9265
9266 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9267 :
9268 else
9269 lt_prog_compiler_static=
9270 fi
9271
9272
9273
9274
9275
9276
9277
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9279 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9280 if ${lt_cv_prog_compiler_c_o+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 lt_cv_prog_compiler_c_o=no
9284 $RM -r conftest 2>/dev/null
9285 mkdir conftest
9286 cd conftest
9287 mkdir out
9288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9289
9290 lt_compiler_flag="-o out/conftest2.$ac_objext"
9291 # Insert the option either (1) after the last *FLAGS variable, or
9292 # (2) before a word containing "conftest.", or (3) at the end.
9293 # Note that $ac_compile itself does not contain backslashes and begins
9294 # with a dollar sign (not a hyphen), so the echo should work correctly.
9295 lt_compile=`echo "$ac_compile" | $SED \
9296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9298 -e 's:$: $lt_compiler_flag:'`
9299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9300 (eval "$lt_compile" 2>out/conftest.err)
9301 ac_status=$?
9302 cat out/conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9305 then
9306 # The compiler can only warn and ignore the option if not recognized
9307 # So say no if there are warnings
9308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9311 lt_cv_prog_compiler_c_o=yes
9312 fi
9313 fi
9314 chmod u+w . 2>&5
9315 $RM conftest*
9316 # SGI C++ compiler will create directory out/ii_files/ for
9317 # template instantiation
9318 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9319 $RM out/* && rmdir out
9320 cd ..
9321 $RM -r conftest
9322 $RM conftest*
9323
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9326 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9327
9328
9329
9330
9331
9332
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9335 if ${lt_cv_prog_compiler_c_o+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 lt_cv_prog_compiler_c_o=no
9339 $RM -r conftest 2>/dev/null
9340 mkdir conftest
9341 cd conftest
9342 mkdir out
9343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9344
9345 lt_compiler_flag="-o out/conftest2.$ac_objext"
9346 # Insert the option either (1) after the last *FLAGS variable, or
9347 # (2) before a word containing "conftest.", or (3) at the end.
9348 # Note that $ac_compile itself does not contain backslashes and begins
9349 # with a dollar sign (not a hyphen), so the echo should work correctly.
9350 lt_compile=`echo "$ac_compile" | $SED \
9351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9353 -e 's:$: $lt_compiler_flag:'`
9354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9355 (eval "$lt_compile" 2>out/conftest.err)
9356 ac_status=$?
9357 cat out/conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9360 then
9361 # The compiler can only warn and ignore the option if not recognized
9362 # So say no if there are warnings
9363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9366 lt_cv_prog_compiler_c_o=yes
9367 fi
9368 fi
9369 chmod u+w . 2>&5
9370 $RM conftest*
9371 # SGI C++ compiler will create directory out/ii_files/ for
9372 # template instantiation
9373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9374 $RM out/* && rmdir out
9375 cd ..
9376 $RM -r conftest
9377 $RM conftest*
9378
9379 fi
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9381 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9382
9383
9384
9385
9386 hard_links="nottested"
9387 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9388 # do not overwrite the value of need_locks provided by the user
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9390 $as_echo_n "checking if we can lock with hard links... " >&6; }
9391 hard_links=yes
9392 $RM conftest*
9393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9394 touch conftest.a
9395 ln conftest.a conftest.b 2>&5 || hard_links=no
9396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9398 $as_echo "$hard_links" >&6; }
9399 if test "$hard_links" = no; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9401 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9402 need_locks=warn
9403 fi
9404 else
9405 need_locks=no
9406 fi
9407
9408
9409
9410
9411
9412
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9414 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9415
9416 runpath_var=
9417 allow_undefined_flag=
9418 always_export_symbols=no
9419 archive_cmds=
9420 archive_expsym_cmds=
9421 compiler_needs_object=no
9422 enable_shared_with_static_runtimes=no
9423 export_dynamic_flag_spec=
9424 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9425 hardcode_automatic=no
9426 hardcode_direct=no
9427 hardcode_direct_absolute=no
9428 hardcode_libdir_flag_spec=
9429 hardcode_libdir_separator=
9430 hardcode_minus_L=no
9431 hardcode_shlibpath_var=unsupported
9432 inherit_rpath=no
9433 link_all_deplibs=unknown
9434 module_cmds=
9435 module_expsym_cmds=
9436 old_archive_from_new_cmds=
9437 old_archive_from_expsyms_cmds=
9438 thread_safe_flag_spec=
9439 whole_archive_flag_spec=
9440 # include_expsyms should be a list of space-separated symbols to be *always*
9441 # included in the symbol list
9442 include_expsyms=
9443 # exclude_expsyms can be an extended regexp of symbols to exclude
9444 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9445 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9446 # as well as any symbol that contains `d'.
9447 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9448 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9449 # platforms (ab)use it in PIC code, but their linkers get confused if
9450 # the symbol is explicitly referenced. Since portable code cannot
9451 # rely on this symbol name, it's probably fine to never include it in
9452 # preloaded symbol tables.
9453 # Exclude shared library initialization/finalization symbols.
9454 extract_expsyms_cmds=
9455
9456 case $host_os in
9457 cygwin* | mingw* | pw32* | cegcc*)
9458 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9459 # When not using gcc, we currently assume that we are using
9460 # Microsoft Visual C++.
9461 if test "$GCC" != yes; then
9462 with_gnu_ld=no
9463 fi
9464 ;;
9465 interix*)
9466 # we just hope/assume this is gcc and not c89 (= MSVC++)
9467 with_gnu_ld=yes
9468 ;;
9469 openbsd*)
9470 with_gnu_ld=no
9471 ;;
9472 linux* | k*bsd*-gnu | gnu*)
9473 link_all_deplibs=no
9474 ;;
9475 esac
9476
9477 ld_shlibs=yes
9478
9479 # On some targets, GNU ld is compatible enough with the native linker
9480 # that we're better off using the native interface for both.
9481 lt_use_gnu_ld_interface=no
9482 if test "$with_gnu_ld" = yes; then
9483 case $host_os in
9484 aix*)
9485 # The AIX port of GNU ld has always aspired to compatibility
9486 # with the native linker. However, as the warning in the GNU ld
9487 # block says, versions before 2.19.5* couldn't really create working
9488 # shared libraries, regardless of the interface used.
9489 case `$LD -v 2>&1` in
9490 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9491 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9492 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9493 *)
9494 lt_use_gnu_ld_interface=yes
9495 ;;
9496 esac
9497 ;;
9498 *)
9499 lt_use_gnu_ld_interface=yes
9500 ;;
9501 esac
9502 fi
9503
9504 if test "$lt_use_gnu_ld_interface" = yes; then
9505 # If archive_cmds runs LD, not CC, wlarc should be empty
9506 wlarc='${wl}'
9507
9508 # Set some defaults for GNU ld with shared library support. These
9509 # are reset later if shared libraries are not supported. Putting them
9510 # here allows them to be overridden if necessary.
9511 runpath_var=LD_RUN_PATH
9512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 export_dynamic_flag_spec='${wl}--export-dynamic'
9514 # ancient GNU ld didn't support --whole-archive et. al.
9515 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9516 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9517 else
9518 whole_archive_flag_spec=
9519 fi
9520 supports_anon_versioning=no
9521 case `$LD -v 2>&1` in
9522 *GNU\ gold*) supports_anon_versioning=yes ;;
9523 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9526 *\ 2.11.*) ;; # other 2.11 versions
9527 *) supports_anon_versioning=yes ;;
9528 esac
9529
9530 # See if GNU ld supports shared libraries.
9531 case $host_os in
9532 aix[3-9]*)
9533 # On AIX/PPC, the GNU linker is very broken
9534 if test "$host_cpu" != ia64; then
9535 ld_shlibs=no
9536 cat <<_LT_EOF 1>&2
9537
9538 *** Warning: the GNU linker, at least up to release 2.19, is reported
9539 *** to be unable to reliably create shared libraries on AIX.
9540 *** Therefore, libtool is disabling shared libraries support. If you
9541 *** really care for shared libraries, you may want to install binutils
9542 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9543 *** You will then need to restart the configuration process.
9544
9545 _LT_EOF
9546 fi
9547 ;;
9548
9549 amigaos*)
9550 case $host_cpu in
9551 powerpc)
9552 # see comment about AmigaOS4 .so support
9553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 archive_expsym_cmds=''
9555 ;;
9556 m68k)
9557 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)'
9558 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_minus_L=yes
9560 ;;
9561 esac
9562 ;;
9563
9564 beos*)
9565 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9566 allow_undefined_flag=unsupported
9567 # Joseph Beckenbach <[email protected]> says some releases of gcc
9568 # support --undefined. This deserves some investigation. FIXME
9569 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570 else
9571 ld_shlibs=no
9572 fi
9573 ;;
9574
9575 cygwin* | mingw* | pw32* | cegcc*)
9576 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9577 # as there is no search path for DLLs.
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 export_dynamic_flag_spec='${wl}--export-all-symbols'
9580 allow_undefined_flag=unsupported
9581 always_export_symbols=no
9582 enable_shared_with_static_runtimes=yes
9583 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'
9584 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9585
9586 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9588 # If the export-symbols file already is a .def file (1st line
9589 # is EXPORTS), use it as is; otherwise, prepend...
9590 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9591 cp $export_symbols $output_objdir/$soname.def;
9592 else
9593 echo EXPORTS > $output_objdir/$soname.def;
9594 cat $export_symbols >> $output_objdir/$soname.def;
9595 fi~
9596 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9597 else
9598 ld_shlibs=no
9599 fi
9600 ;;
9601
9602 haiku*)
9603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604 link_all_deplibs=yes
9605 ;;
9606
9607 interix[3-9]*)
9608 hardcode_direct=no
9609 hardcode_shlibpath_var=no
9610 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9611 export_dynamic_flag_spec='${wl}-E'
9612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9613 # Instead, shared libraries are loaded at an image base (0x10000000 by
9614 # default) and relocated if they conflict, which is a slow very memory
9615 # consuming and fragmenting process. To avoid this, we pick a random,
9616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9617 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9619 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'
9620 ;;
9621
9622 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9623 tmp_diet=no
9624 if test "$host_os" = linux-dietlibc; then
9625 case $cc_basename in
9626 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9627 esac
9628 fi
9629 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9630 && test "$tmp_diet" = no
9631 then
9632 tmp_addflag=' $pic_flag'
9633 tmp_sharedflag='-shared'
9634 case $cc_basename,$host_cpu in
9635 pgcc*) # Portland Group C compiler
9636 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'
9637 tmp_addflag=' $pic_flag'
9638 ;;
9639 pgf77* | pgf90* | pgf95* | pgfortran*)
9640 # Portland Group f77 and f90 compilers
9641 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'
9642 tmp_addflag=' $pic_flag -Mnomain' ;;
9643 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9644 tmp_addflag=' -i_dynamic' ;;
9645 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9646 tmp_addflag=' -i_dynamic -nofor_main' ;;
9647 ifc* | ifort*) # Intel Fortran compiler
9648 tmp_addflag=' -nofor_main' ;;
9649 lf95*) # Lahey Fortran 8.1
9650 whole_archive_flag_spec=
9651 tmp_sharedflag='--shared' ;;
9652 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9653 tmp_sharedflag='-qmkshrobj'
9654 tmp_addflag= ;;
9655 nvcc*) # Cuda Compiler Driver 2.2
9656 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'
9657 compiler_needs_object=yes
9658 ;;
9659 esac
9660 case `$CC -V 2>&1 | sed 5q` in
9661 *Sun\ C*) # Sun C 5.9
9662 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'
9663 compiler_needs_object=yes
9664 tmp_sharedflag='-G' ;;
9665 *Sun\ F*) # Sun Fortran 8.3
9666 tmp_sharedflag='-G' ;;
9667 esac
9668 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669
9670 if test "x$supports_anon_versioning" = xyes; then
9671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9673 echo "local: *; };" >> $output_objdir/$libname.ver~
9674 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9675 fi
9676
9677 case $cc_basename in
9678 xlf* | bgf* | bgxlf* | mpixlf*)
9679 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9680 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9683 if test "x$supports_anon_versioning" = xyes; then
9684 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9686 echo "local: *; };" >> $output_objdir/$libname.ver~
9687 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9688 fi
9689 ;;
9690 esac
9691 else
9692 ld_shlibs=no
9693 fi
9694 ;;
9695
9696 netbsd* | netbsdelf*-gnu)
9697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9698 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9699 wlarc=
9700 else
9701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9703 fi
9704 ;;
9705
9706 solaris*)
9707 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9708 ld_shlibs=no
9709 cat <<_LT_EOF 1>&2
9710
9711 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9712 *** create shared libraries on Solaris systems. Therefore, libtool
9713 *** is disabling shared libraries support. We urge you to upgrade GNU
9714 *** binutils to release 2.9.1 or newer. Another option is to modify
9715 *** your PATH or compiler configuration so that the native linker is
9716 *** used, and then restart.
9717
9718 _LT_EOF
9719 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9721 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9722 else
9723 ld_shlibs=no
9724 fi
9725 ;;
9726
9727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9728 case `$LD -v 2>&1` in
9729 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9730 ld_shlibs=no
9731 cat <<_LT_EOF 1>&2
9732
9733 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9734 *** reliably create shared libraries on SCO systems. Therefore, libtool
9735 *** is disabling shared libraries support. We urge you to upgrade GNU
9736 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9737 *** your PATH or compiler configuration so that the native linker is
9738 *** used, and then restart.
9739
9740 _LT_EOF
9741 ;;
9742 *)
9743 # For security reasons, it is highly recommended that you always
9744 # use absolute paths for naming shared libraries, and exclude the
9745 # DT_RUNPATH tag from executables and libraries. But doing so
9746 # requires that you compile everything twice, which is a pain.
9747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9751 else
9752 ld_shlibs=no
9753 fi
9754 ;;
9755 esac
9756 ;;
9757
9758 sunos4*)
9759 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9760 wlarc=
9761 hardcode_direct=yes
9762 hardcode_shlibpath_var=no
9763 ;;
9764
9765 *)
9766 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9768 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9769 else
9770 ld_shlibs=no
9771 fi
9772 ;;
9773 esac
9774
9775 if test "$ld_shlibs" = no; then
9776 runpath_var=
9777 hardcode_libdir_flag_spec=
9778 export_dynamic_flag_spec=
9779 whole_archive_flag_spec=
9780 fi
9781 else
9782 # PORTME fill in a description of your system's linker (not GNU ld)
9783 case $host_os in
9784 aix3*)
9785 allow_undefined_flag=unsupported
9786 always_export_symbols=yes
9787 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'
9788 # Note: this linker hardcodes the directories in LIBPATH if there
9789 # are no directories specified by -L.
9790 hardcode_minus_L=yes
9791 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9792 # Neither direct hardcoding nor static linking is supported with a
9793 # broken collect2.
9794 hardcode_direct=unsupported
9795 fi
9796 ;;
9797
9798 aix[4-9]*)
9799 if test "$host_cpu" = ia64; then
9800 # On IA64, the linker does run time linking by default, so we don't
9801 # have to do anything special.
9802 aix_use_runtimelinking=no
9803 exp_sym_flag='-Bexport'
9804 no_entry_flag=""
9805 else
9806 # If we're using GNU nm, then we don't want the "-C" option.
9807 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9808 # Also, AIX nm treats weak defined symbols like other global
9809 # defined symbols, whereas GNU nm marks them as "W".
9810 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9811 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9812 else
9813 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9814 fi
9815 aix_use_runtimelinking=no
9816
9817 # Test if we are trying to use run time linking or normal
9818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9819 # need to do runtime linking.
9820 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9821 for ld_flag in $LDFLAGS; do
9822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9823 aix_use_runtimelinking=yes
9824 break
9825 fi
9826 done
9827 ;;
9828 esac
9829
9830 exp_sym_flag='-bexport'
9831 no_entry_flag='-bnoentry'
9832 fi
9833
9834 # When large executables or shared objects are built, AIX ld can
9835 # have problems creating the table of contents. If linking a library
9836 # or program results in "error TOC overflow" add -mminimal-toc to
9837 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9838 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9839
9840 archive_cmds=''
9841 hardcode_direct=yes
9842 hardcode_direct_absolute=yes
9843 hardcode_libdir_separator=':'
9844 link_all_deplibs=yes
9845 file_list_spec='${wl}-f,'
9846
9847 if test "$GCC" = yes; then
9848 case $host_os in aix4.[012]|aix4.[012].*)
9849 # We only want to do this on AIX 4.2 and lower, the check
9850 # below for broken collect2 doesn't work under 4.3+
9851 collect2name=`${CC} -print-prog-name=collect2`
9852 if test -f "$collect2name" &&
9853 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9854 then
9855 # We have reworked collect2
9856 :
9857 else
9858 # We have old collect2
9859 hardcode_direct=unsupported
9860 # It fails to find uninstalled libraries when the uninstalled
9861 # path is not listed in the libpath. Setting hardcode_minus_L
9862 # to unsupported forces relinking
9863 hardcode_minus_L=yes
9864 hardcode_libdir_flag_spec='-L$libdir'
9865 hardcode_libdir_separator=
9866 fi
9867 ;;
9868 esac
9869 shared_flag='-shared'
9870 if test "$aix_use_runtimelinking" = yes; then
9871 shared_flag="$shared_flag "'${wl}-G'
9872 fi
9873 link_all_deplibs=no
9874 else
9875 # not using gcc
9876 if test "$host_cpu" = ia64; then
9877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9878 # chokes on -Wl,-G. The following line is correct:
9879 shared_flag='-G'
9880 else
9881 if test "$aix_use_runtimelinking" = yes; then
9882 shared_flag='${wl}-G'
9883 else
9884 shared_flag='${wl}-bM:SRE'
9885 fi
9886 fi
9887 fi
9888
9889 export_dynamic_flag_spec='${wl}-bexpall'
9890 # It seems that -bexpall does not export symbols beginning with
9891 # underscore (_), so it is better to generate a list of symbols to export.
9892 always_export_symbols=yes
9893 if test "$aix_use_runtimelinking" = yes; then
9894 # Warning - without using the other runtime loading flags (-brtl),
9895 # -berok will link without error, but may produce a broken library.
9896 allow_undefined_flag='-berok'
9897 # Determine the default libpath from the value encoded in an
9898 # empty executable.
9899 if test "${lt_cv_aix_libpath+set}" = set; then
9900 aix_libpath=$lt_cv_aix_libpath
9901 else
9902 if ${lt_cv_aix_libpath_+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907
9908 int
9909 main ()
9910 {
9911
9912 ;
9913 return 0;
9914 }
9915 _ACEOF
9916 if ac_fn_c_try_link "$LINENO"; then :
9917
9918 lt_aix_libpath_sed='
9919 /Import File Strings/,/^$/ {
9920 /^0/ {
9921 s/^0 *\([^ ]*\) *$/\1/
9922 p
9923 }
9924 }'
9925 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9926 # Check for a 64-bit object if we didn't find anything.
9927 if test -z "$lt_cv_aix_libpath_"; then
9928 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9929 fi
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 if test -z "$lt_cv_aix_libpath_"; then
9934 lt_cv_aix_libpath_="/usr/lib:/lib"
9935 fi
9936
9937 fi
9938
9939 aix_libpath=$lt_cv_aix_libpath_
9940 fi
9941
9942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9943 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9944 else
9945 if test "$host_cpu" = ia64; then
9946 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9947 allow_undefined_flag="-z nodefs"
9948 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"
9949 else
9950 # Determine the default libpath from the value encoded in an
9951 # empty executable.
9952 if test "${lt_cv_aix_libpath+set}" = set; then
9953 aix_libpath=$lt_cv_aix_libpath
9954 else
9955 if ${lt_cv_aix_libpath_+:} false; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960
9961 int
9962 main ()
9963 {
9964
9965 ;
9966 return 0;
9967 }
9968 _ACEOF
9969 if ac_fn_c_try_link "$LINENO"; then :
9970
9971 lt_aix_libpath_sed='
9972 /Import File Strings/,/^$/ {
9973 /^0/ {
9974 s/^0 *\([^ ]*\) *$/\1/
9975 p
9976 }
9977 }'
9978 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9979 # Check for a 64-bit object if we didn't find anything.
9980 if test -z "$lt_cv_aix_libpath_"; then
9981 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9982 fi
9983 fi
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 if test -z "$lt_cv_aix_libpath_"; then
9987 lt_cv_aix_libpath_="/usr/lib:/lib"
9988 fi
9989
9990 fi
9991
9992 aix_libpath=$lt_cv_aix_libpath_
9993 fi
9994
9995 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9996 # Warning - without using the other run time loading flags,
9997 # -berok will link without error, but may produce a broken library.
9998 no_undefined_flag=' ${wl}-bernotok'
9999 allow_undefined_flag=' ${wl}-berok'
10000 if test "$with_gnu_ld" = yes; then
10001 # We only use this code for GNU lds that support --whole-archive.
10002 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10003 else
10004 # Exported symbols can be pulled into shared objects from archives
10005 whole_archive_flag_spec='$convenience'
10006 fi
10007 archive_cmds_need_lc=yes
10008 # This is similar to how AIX traditionally builds its shared libraries.
10009 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10010 fi
10011 fi
10012 ;;
10013
10014 amigaos*)
10015 case $host_cpu in
10016 powerpc)
10017 # see comment about AmigaOS4 .so support
10018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10019 archive_expsym_cmds=''
10020 ;;
10021 m68k)
10022 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)'
10023 hardcode_libdir_flag_spec='-L$libdir'
10024 hardcode_minus_L=yes
10025 ;;
10026 esac
10027 ;;
10028
10029 bsdi[45]*)
10030 export_dynamic_flag_spec=-rdynamic
10031 ;;
10032
10033 cygwin* | mingw* | pw32* | cegcc*)
10034 # When not using gcc, we currently assume that we are using
10035 # Microsoft Visual C++.
10036 # hardcode_libdir_flag_spec is actually meaningless, as there is
10037 # no search path for DLLs.
10038 case $cc_basename in
10039 cl*)
10040 # Native MSVC
10041 hardcode_libdir_flag_spec=' '
10042 allow_undefined_flag=unsupported
10043 always_export_symbols=yes
10044 file_list_spec='@'
10045 # Tell ltmain to make .lib files, not .a files.
10046 libext=lib
10047 # Tell ltmain to make .dll files, not .so files.
10048 shrext_cmds=".dll"
10049 # FIXME: Setting linknames here is a bad hack.
10050 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10051 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10052 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10053 else
10054 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10055 fi~
10056 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10057 linknames='
10058 # The linker will not automatically build a static lib if we build a DLL.
10059 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10060 enable_shared_with_static_runtimes=yes
10061 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10063 # Don't use ranlib
10064 old_postinstall_cmds='chmod 644 $oldlib'
10065 postlink_cmds='lt_outputfile="@OUTPUT@"~
10066 lt_tool_outputfile="@TOOL_OUTPUT@"~
10067 case $lt_outputfile in
10068 *.exe|*.EXE) ;;
10069 *)
10070 lt_outputfile="$lt_outputfile.exe"
10071 lt_tool_outputfile="$lt_tool_outputfile.exe"
10072 ;;
10073 esac~
10074 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10075 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10076 $RM "$lt_outputfile.manifest";
10077 fi'
10078 ;;
10079 *)
10080 # Assume MSVC wrapper
10081 hardcode_libdir_flag_spec=' '
10082 allow_undefined_flag=unsupported
10083 # Tell ltmain to make .lib files, not .a files.
10084 libext=lib
10085 # Tell ltmain to make .dll files, not .so files.
10086 shrext_cmds=".dll"
10087 # FIXME: Setting linknames here is a bad hack.
10088 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10089 # The linker will automatically build a .lib file if we build a DLL.
10090 old_archive_from_new_cmds='true'
10091 # FIXME: Should let the user specify the lib program.
10092 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10093 enable_shared_with_static_runtimes=yes
10094 ;;
10095 esac
10096 ;;
10097
10098 darwin* | rhapsody*)
10099
10100
10101 archive_cmds_need_lc=no
10102 hardcode_direct=no
10103 hardcode_automatic=yes
10104 hardcode_shlibpath_var=unsupported
10105 if test "$lt_cv_ld_force_load" = "yes"; then
10106 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\"`'
10107
10108 else
10109 whole_archive_flag_spec=''
10110 fi
10111 link_all_deplibs=yes
10112 allow_undefined_flag="$_lt_dar_allow_undefined"
10113 case $cc_basename in
10114 ifort*) _lt_dar_can_shared=yes ;;
10115 *) _lt_dar_can_shared=$GCC ;;
10116 esac
10117 if test "$_lt_dar_can_shared" = "yes"; then
10118 output_verbose_link_cmd=func_echo_all
10119 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10120 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10121 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}"
10122 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}"
10123
10124 else
10125 ld_shlibs=no
10126 fi
10127
10128 ;;
10129
10130 dgux*)
10131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132 hardcode_libdir_flag_spec='-L$libdir'
10133 hardcode_shlibpath_var=no
10134 ;;
10135
10136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10137 # support. Future versions do this automatically, but an explicit c++rt0.o
10138 # does not break anything, and helps significantly (at the cost of a little
10139 # extra space).
10140 freebsd2.2*)
10141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10142 hardcode_libdir_flag_spec='-R$libdir'
10143 hardcode_direct=yes
10144 hardcode_shlibpath_var=no
10145 ;;
10146
10147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10148 freebsd2.*)
10149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_direct=yes
10151 hardcode_minus_L=yes
10152 hardcode_shlibpath_var=no
10153 ;;
10154
10155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10156 freebsd* | dragonfly*)
10157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10158 hardcode_libdir_flag_spec='-R$libdir'
10159 hardcode_direct=yes
10160 hardcode_shlibpath_var=no
10161 ;;
10162
10163 hpux9*)
10164 if test "$GCC" = yes; then
10165 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10166 else
10167 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10168 fi
10169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10170 hardcode_libdir_separator=:
10171 hardcode_direct=yes
10172
10173 # hardcode_minus_L: Not really in the search PATH,
10174 # but as the default location of the library.
10175 hardcode_minus_L=yes
10176 export_dynamic_flag_spec='${wl}-E'
10177 ;;
10178
10179 hpux10*)
10180 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10181 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10182 else
10183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10184 fi
10185 if test "$with_gnu_ld" = no; then
10186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10187 hardcode_libdir_separator=:
10188 hardcode_direct=yes
10189 hardcode_direct_absolute=yes
10190 export_dynamic_flag_spec='${wl}-E'
10191 # hardcode_minus_L: Not really in the search PATH,
10192 # but as the default location of the library.
10193 hardcode_minus_L=yes
10194 fi
10195 ;;
10196
10197 hpux11*)
10198 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10199 case $host_cpu in
10200 hppa*64*)
10201 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10202 ;;
10203 ia64*)
10204 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10205 ;;
10206 *)
10207 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10208 ;;
10209 esac
10210 else
10211 case $host_cpu in
10212 hppa*64*)
10213 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 ;;
10215 ia64*)
10216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10217 ;;
10218 *)
10219
10220 # Older versions of the 11.00 compiler do not understand -b yet
10221 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10223 $as_echo_n "checking if $CC understands -b... " >&6; }
10224 if ${lt_cv_prog_compiler__b+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 lt_cv_prog_compiler__b=no
10228 save_LDFLAGS="$LDFLAGS"
10229 LDFLAGS="$LDFLAGS -b"
10230 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10231 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10232 # The linker can only warn and ignore the option if not recognized
10233 # So say no if there are warnings
10234 if test -s conftest.err; then
10235 # Append any errors to the config.log.
10236 cat conftest.err 1>&5
10237 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10239 if diff conftest.exp conftest.er2 >/dev/null; then
10240 lt_cv_prog_compiler__b=yes
10241 fi
10242 else
10243 lt_cv_prog_compiler__b=yes
10244 fi
10245 fi
10246 $RM -r conftest*
10247 LDFLAGS="$save_LDFLAGS"
10248
10249 fi
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10251 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10252
10253 if test x"$lt_cv_prog_compiler__b" = xyes; then
10254 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10255 else
10256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10257 fi
10258
10259 ;;
10260 esac
10261 fi
10262 if test "$with_gnu_ld" = no; then
10263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10264 hardcode_libdir_separator=:
10265
10266 case $host_cpu in
10267 hppa*64*|ia64*)
10268 hardcode_direct=no
10269 hardcode_shlibpath_var=no
10270 ;;
10271 *)
10272 hardcode_direct=yes
10273 hardcode_direct_absolute=yes
10274 export_dynamic_flag_spec='${wl}-E'
10275
10276 # hardcode_minus_L: Not really in the search PATH,
10277 # but as the default location of the library.
10278 hardcode_minus_L=yes
10279 ;;
10280 esac
10281 fi
10282 ;;
10283
10284 irix5* | irix6* | nonstopux*)
10285 if test "$GCC" = yes; then
10286 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'
10287 # Try to use the -exported_symbol ld option, if it does not
10288 # work, assume that -exports_file does not work either and
10289 # implicitly export all symbols.
10290 # This should be the same for all languages, so no per-tag cache variable.
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10292 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10293 if ${lt_cv_irix_exported_symbol+:} false; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 save_LDFLAGS="$LDFLAGS"
10297 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10300 int foo (void) { return 0; }
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303 lt_cv_irix_exported_symbol=yes
10304 else
10305 lt_cv_irix_exported_symbol=no
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LDFLAGS="$save_LDFLAGS"
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10312 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10313 if test "$lt_cv_irix_exported_symbol" = yes; then
10314 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'
10315 fi
10316 else
10317 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'
10318 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'
10319 fi
10320 archive_cmds_need_lc='no'
10321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10322 hardcode_libdir_separator=:
10323 inherit_rpath=yes
10324 link_all_deplibs=yes
10325 ;;
10326
10327 netbsd* | netbsdelf*-gnu)
10328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10330 else
10331 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10332 fi
10333 hardcode_libdir_flag_spec='-R$libdir'
10334 hardcode_direct=yes
10335 hardcode_shlibpath_var=no
10336 ;;
10337
10338 newsos6)
10339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10340 hardcode_direct=yes
10341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10342 hardcode_libdir_separator=:
10343 hardcode_shlibpath_var=no
10344 ;;
10345
10346 *nto* | *qnx*)
10347 ;;
10348
10349 openbsd*)
10350 if test -f /usr/libexec/ld.so; then
10351 hardcode_direct=yes
10352 hardcode_shlibpath_var=no
10353 hardcode_direct_absolute=yes
10354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10356 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10358 export_dynamic_flag_spec='${wl}-E'
10359 else
10360 case $host_os in
10361 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10363 hardcode_libdir_flag_spec='-R$libdir'
10364 ;;
10365 *)
10366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10367 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10368 ;;
10369 esac
10370 fi
10371 else
10372 ld_shlibs=no
10373 fi
10374 ;;
10375
10376 os2*)
10377 hardcode_libdir_flag_spec='-L$libdir'
10378 hardcode_minus_L=yes
10379 allow_undefined_flag=unsupported
10380 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10381 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10382 ;;
10383
10384 osf3*)
10385 if test "$GCC" = yes; then
10386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10387 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'
10388 else
10389 allow_undefined_flag=' -expect_unresolved \*'
10390 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'
10391 fi
10392 archive_cmds_need_lc='no'
10393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10394 hardcode_libdir_separator=:
10395 ;;
10396
10397 osf4* | osf5*) # as osf3* with the addition of -msym flag
10398 if test "$GCC" = yes; then
10399 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10400 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'
10401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10402 else
10403 allow_undefined_flag=' -expect_unresolved \*'
10404 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'
10405 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~
10406 $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'
10407
10408 # Both c and cxx compiler support -rpath directly
10409 hardcode_libdir_flag_spec='-rpath $libdir'
10410 fi
10411 archive_cmds_need_lc='no'
10412 hardcode_libdir_separator=:
10413 ;;
10414
10415 solaris*)
10416 no_undefined_flag=' -z defs'
10417 if test "$GCC" = yes; then
10418 wlarc='${wl}'
10419 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10421 $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'
10422 else
10423 case `$CC -V 2>&1` in
10424 *"Compilers 5.0"*)
10425 wlarc=''
10426 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10428 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10429 ;;
10430 *)
10431 wlarc='${wl}'
10432 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10433 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10434 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10435 ;;
10436 esac
10437 fi
10438 hardcode_libdir_flag_spec='-R$libdir'
10439 hardcode_shlibpath_var=no
10440 case $host_os in
10441 solaris2.[0-5] | solaris2.[0-5].*) ;;
10442 *)
10443 # The compiler driver will combine and reorder linker options,
10444 # but understands `-z linker_flag'. GCC discards it without `$wl',
10445 # but is careful enough not to reorder.
10446 # Supported since Solaris 2.6 (maybe 2.5.1?)
10447 if test "$GCC" = yes; then
10448 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10449 else
10450 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10451 fi
10452 ;;
10453 esac
10454 link_all_deplibs=yes
10455 ;;
10456
10457 sunos4*)
10458 if test "x$host_vendor" = xsequent; then
10459 # Use $CC to link under sequent, because it throws in some extra .o
10460 # files that make .init and .fini sections work.
10461 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10462 else
10463 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10464 fi
10465 hardcode_libdir_flag_spec='-L$libdir'
10466 hardcode_direct=yes
10467 hardcode_minus_L=yes
10468 hardcode_shlibpath_var=no
10469 ;;
10470
10471 sysv4)
10472 case $host_vendor in
10473 sni)
10474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475 hardcode_direct=yes # is this really true???
10476 ;;
10477 siemens)
10478 ## LD is ld it makes a PLAMLIB
10479 ## CC just makes a GrossModule.
10480 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10481 reload_cmds='$CC -r -o $output$reload_objs'
10482 hardcode_direct=no
10483 ;;
10484 motorola)
10485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10487 ;;
10488 esac
10489 runpath_var='LD_RUN_PATH'
10490 hardcode_shlibpath_var=no
10491 ;;
10492
10493 sysv4.3*)
10494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10495 hardcode_shlibpath_var=no
10496 export_dynamic_flag_spec='-Bexport'
10497 ;;
10498
10499 sysv4*MP*)
10500 if test -d /usr/nec; then
10501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10502 hardcode_shlibpath_var=no
10503 runpath_var=LD_RUN_PATH
10504 hardcode_runpath_var=yes
10505 ld_shlibs=yes
10506 fi
10507 ;;
10508
10509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10510 no_undefined_flag='${wl}-z,text'
10511 archive_cmds_need_lc=no
10512 hardcode_shlibpath_var=no
10513 runpath_var='LD_RUN_PATH'
10514
10515 if test "$GCC" = yes; then
10516 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518 else
10519 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10521 fi
10522 ;;
10523
10524 sysv5* | sco3.2v5* | sco5v6*)
10525 # Note: We can NOT use -z defs as we might desire, because we do not
10526 # link with -lc, and that would cause any symbols used from libc to
10527 # always be unresolved, which means just about no library would
10528 # ever link correctly. If we're not using GNU ld we use -z text
10529 # though, which does catch some bad symbols but isn't as heavy-handed
10530 # as -z defs.
10531 no_undefined_flag='${wl}-z,text'
10532 allow_undefined_flag='${wl}-z,nodefs'
10533 archive_cmds_need_lc=no
10534 hardcode_shlibpath_var=no
10535 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10536 hardcode_libdir_separator=':'
10537 link_all_deplibs=yes
10538 export_dynamic_flag_spec='${wl}-Bexport'
10539 runpath_var='LD_RUN_PATH'
10540
10541 if test "$GCC" = yes; then
10542 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544 else
10545 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10547 fi
10548 ;;
10549
10550 uts4*)
10551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_libdir_flag_spec='-L$libdir'
10553 hardcode_shlibpath_var=no
10554 ;;
10555
10556 *)
10557 ld_shlibs=no
10558 ;;
10559 esac
10560
10561 if test x$host_vendor = xsni; then
10562 case $host in
10563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10564 export_dynamic_flag_spec='${wl}-Blargedynsym'
10565 ;;
10566 esac
10567 fi
10568 fi
10569
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10571 $as_echo "$ld_shlibs" >&6; }
10572 test "$ld_shlibs" = no && can_build_shared=no
10573
10574 with_gnu_ld=$with_gnu_ld
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590 #
10591 # Do we need to explicitly link libc?
10592 #
10593 case "x$archive_cmds_need_lc" in
10594 x|xyes)
10595 # Assume -lc should be added
10596 archive_cmds_need_lc=yes
10597
10598 if test "$enable_shared" = yes && test "$GCC" = yes; then
10599 case $archive_cmds in
10600 *'~'*)
10601 # FIXME: we may have to deal with multi-command sequences.
10602 ;;
10603 '$CC '*)
10604 # Test whether the compiler implicitly links with -lc since on some
10605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10606 # to ld, don't add -lc before -lgcc.
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10608 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10609 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 $RM conftest*
10613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10614
10615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10616 (eval $ac_compile) 2>&5
10617 ac_status=$?
10618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10619 test $ac_status = 0; } 2>conftest.err; then
10620 soname=conftest
10621 lib=conftest
10622 libobjs=conftest.$ac_objext
10623 deplibs=
10624 wl=$lt_prog_compiler_wl
10625 pic_flag=$lt_prog_compiler_pic
10626 compiler_flags=-v
10627 linker_flags=-v
10628 verstring=
10629 output_objdir=.
10630 libname=conftest
10631 lt_save_allow_undefined_flag=$allow_undefined_flag
10632 allow_undefined_flag=
10633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10634 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10635 ac_status=$?
10636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10637 test $ac_status = 0; }
10638 then
10639 lt_cv_archive_cmds_need_lc=no
10640 else
10641 lt_cv_archive_cmds_need_lc=yes
10642 fi
10643 allow_undefined_flag=$lt_save_allow_undefined_flag
10644 else
10645 cat conftest.err 1>&5
10646 fi
10647 $RM conftest*
10648
10649 fi
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10651 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10652 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10653 ;;
10654 esac
10655 fi
10656 ;;
10657 esac
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10811 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10812
10813 if test "$GCC" = yes; then
10814 case $host_os in
10815 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10816 *) lt_awk_arg="/^libraries:/" ;;
10817 esac
10818 case $host_os in
10819 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10820 *) lt_sed_strip_eq="s,=/,/,g" ;;
10821 esac
10822 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10823 case $lt_search_path_spec in
10824 *\;*)
10825 # if the path contains ";" then we assume it to be the separator
10826 # otherwise default to the standard path separator (i.e. ":") - it is
10827 # assumed that no part of a normal pathname contains ";" but that should
10828 # okay in the real world where ";" in dirpaths is itself problematic.
10829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10830 ;;
10831 *)
10832 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10833 ;;
10834 esac
10835 # Ok, now we have the path, separated by spaces, we can step through it
10836 # and add multilib dir if necessary.
10837 lt_tmp_lt_search_path_spec=
10838 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10839 for lt_sys_path in $lt_search_path_spec; do
10840 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10841 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10842 else
10843 test -d "$lt_sys_path" && \
10844 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10845 fi
10846 done
10847 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10848 BEGIN {RS=" "; FS="/|\n";} {
10849 lt_foo="";
10850 lt_count=0;
10851 for (lt_i = NF; lt_i > 0; lt_i--) {
10852 if ($lt_i != "" && $lt_i != ".") {
10853 if ($lt_i == "..") {
10854 lt_count++;
10855 } else {
10856 if (lt_count == 0) {
10857 lt_foo="/" $lt_i lt_foo;
10858 } else {
10859 lt_count--;
10860 }
10861 }
10862 }
10863 }
10864 if (lt_foo != "") { lt_freq[lt_foo]++; }
10865 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10866 }'`
10867 # AWK program above erroneously prepends '/' to C:/dos/paths
10868 # for these hosts.
10869 case $host_os in
10870 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10871 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10872 esac
10873 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10874 else
10875 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10876 fi
10877 library_names_spec=
10878 libname_spec='lib$name'
10879 soname_spec=
10880 shrext_cmds=".so"
10881 postinstall_cmds=
10882 postuninstall_cmds=
10883 finish_cmds=
10884 finish_eval=
10885 shlibpath_var=
10886 shlibpath_overrides_runpath=unknown
10887 version_type=none
10888 dynamic_linker="$host_os ld.so"
10889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10890 need_lib_prefix=unknown
10891 hardcode_into_libs=no
10892
10893 # when you set need_version to no, make sure it does not cause -set_version
10894 # flags to be left without arguments
10895 need_version=unknown
10896
10897 case $host_os in
10898 aix3*)
10899 version_type=linux # correct to gnu/linux during the next big refactor
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10901 shlibpath_var=LIBPATH
10902
10903 # AIX 3 has no versioning support, so we append a major version to the name.
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 ;;
10906
10907 aix[4-9]*)
10908 version_type=linux # correct to gnu/linux during the next big refactor
10909 need_lib_prefix=no
10910 need_version=no
10911 hardcode_into_libs=yes
10912 if test "$host_cpu" = ia64; then
10913 # AIX 5 supports IA64
10914 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 else
10917 # With GCC up to 2.95.x, collect2 would create an import file
10918 # for dependence libraries. The import file would start with
10919 # the line `#! .'. This would cause the generated library to
10920 # depend on `.', always an invalid library. This was fixed in
10921 # development snapshots of GCC prior to 3.0.
10922 case $host_os in
10923 aix4 | aix4.[01] | aix4.[01].*)
10924 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10925 echo ' yes '
10926 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10927 :
10928 else
10929 can_build_shared=no
10930 fi
10931 ;;
10932 esac
10933 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10934 # soname into executable. Probably we can add versioning support to
10935 # collect2, so additional links can be useful in future.
10936 if test "$aix_use_runtimelinking" = yes; then
10937 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10938 # instead of lib<name>.a to let people know that these are not
10939 # typical AIX shared libraries.
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 else
10942 # We preserve .a as extension for shared libraries through AIX4.2
10943 # and later when we are not doing run time linking.
10944 library_names_spec='${libname}${release}.a $libname.a'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 fi
10947 shlibpath_var=LIBPATH
10948 fi
10949 ;;
10950
10951 amigaos*)
10952 case $host_cpu in
10953 powerpc)
10954 # Since July 2007 AmigaOS4 officially supports .so libraries.
10955 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 ;;
10958 m68k)
10959 library_names_spec='$libname.ixlibrary $libname.a'
10960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10961 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10962 ;;
10963 esac
10964 ;;
10965
10966 beos*)
10967 library_names_spec='${libname}${shared_ext}'
10968 dynamic_linker="$host_os ld.so"
10969 shlibpath_var=LIBRARY_PATH
10970 ;;
10971
10972 bsdi[45]*)
10973 version_type=linux # correct to gnu/linux during the next big refactor
10974 need_version=no
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10980 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10981 # the default ld.so.conf also contains /usr/contrib/lib and
10982 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10983 # libtool to hard-code these into programs
10984 ;;
10985
10986 cygwin* | mingw* | pw32* | cegcc*)
10987 version_type=windows
10988 shrext_cmds=".dll"
10989 need_version=no
10990 need_lib_prefix=no
10991
10992 case $GCC,$cc_basename in
10993 yes,*)
10994 # gcc
10995 library_names_spec='$libname.dll.a'
10996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10997 postinstall_cmds='base_file=`basename \${file}`~
10998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10999 dldir=$destdir/`dirname \$dlpath`~
11000 test -d \$dldir || mkdir -p \$dldir~
11001 $install_prog $dir/$dlname \$dldir/$dlname~
11002 chmod a+x \$dldir/$dlname~
11003 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11004 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11005 fi'
11006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11007 dlpath=$dir/\$dldll~
11008 $RM \$dlpath'
11009 shlibpath_overrides_runpath=yes
11010
11011 case $host_os in
11012 cygwin*)
11013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11015
11016 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11017 ;;
11018 mingw* | cegcc*)
11019 # MinGW DLLs use traditional 'lib' prefix
11020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11021 ;;
11022 pw32*)
11023 # pw32 DLLs use 'pw' prefix rather than 'lib'
11024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11025 ;;
11026 esac
11027 dynamic_linker='Win32 ld.exe'
11028 ;;
11029
11030 *,cl*)
11031 # Native MSVC
11032 libname_spec='$name'
11033 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11034 library_names_spec='${libname}.dll.lib'
11035
11036 case $build_os in
11037 mingw*)
11038 sys_lib_search_path_spec=
11039 lt_save_ifs=$IFS
11040 IFS=';'
11041 for lt_path in $LIB
11042 do
11043 IFS=$lt_save_ifs
11044 # Let DOS variable expansion print the short 8.3 style file name.
11045 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11046 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11047 done
11048 IFS=$lt_save_ifs
11049 # Convert to MSYS style.
11050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11051 ;;
11052 cygwin*)
11053 # Convert to unix form, then to dos form, then back to unix form
11054 # but this time dos style (no spaces!) so that the unix form looks
11055 # like /cygdrive/c/PROGRA~1:/cygdr...
11056 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11057 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11058 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11059 ;;
11060 *)
11061 sys_lib_search_path_spec="$LIB"
11062 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11063 # It is most probably a Windows format PATH.
11064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11065 else
11066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11067 fi
11068 # FIXME: find the short name or the path components, as spaces are
11069 # common. (e.g. "Program Files" -> "PROGRA~1")
11070 ;;
11071 esac
11072
11073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11074 postinstall_cmds='base_file=`basename \${file}`~
11075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11076 dldir=$destdir/`dirname \$dlpath`~
11077 test -d \$dldir || mkdir -p \$dldir~
11078 $install_prog $dir/$dlname \$dldir/$dlname'
11079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11080 dlpath=$dir/\$dldll~
11081 $RM \$dlpath'
11082 shlibpath_overrides_runpath=yes
11083 dynamic_linker='Win32 link.exe'
11084 ;;
11085
11086 *)
11087 # Assume MSVC wrapper
11088 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11089 dynamic_linker='Win32 ld.exe'
11090 ;;
11091 esac
11092 # FIXME: first we should search . and the directory the executable is in
11093 shlibpath_var=PATH
11094 ;;
11095
11096 darwin* | rhapsody*)
11097 dynamic_linker="$host_os dyld"
11098 version_type=darwin
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11102 soname_spec='${libname}${release}${major}$shared_ext'
11103 shlibpath_overrides_runpath=yes
11104 shlibpath_var=DYLD_LIBRARY_PATH
11105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11106
11107 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11109 ;;
11110
11111 dgux*)
11112 version_type=linux # correct to gnu/linux during the next big refactor
11113 need_lib_prefix=no
11114 need_version=no
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 ;;
11119
11120 freebsd* | dragonfly*)
11121 # DragonFly does not have aout. When/if they implement a new
11122 # versioning mechanism, adjust this.
11123 if test -x /usr/bin/objformat; then
11124 objformat=`/usr/bin/objformat`
11125 else
11126 case $host_os in
11127 freebsd[23].*) objformat=aout ;;
11128 *) objformat=elf ;;
11129 esac
11130 fi
11131 version_type=freebsd-$objformat
11132 case $version_type in
11133 freebsd-elf*)
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11135 need_version=no
11136 need_lib_prefix=no
11137 ;;
11138 freebsd-*)
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11140 need_version=yes
11141 ;;
11142 esac
11143 shlibpath_var=LD_LIBRARY_PATH
11144 case $host_os in
11145 freebsd2.*)
11146 shlibpath_overrides_runpath=yes
11147 ;;
11148 freebsd3.[01]* | freebsdelf3.[01]*)
11149 shlibpath_overrides_runpath=yes
11150 hardcode_into_libs=yes
11151 ;;
11152 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11153 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11154 shlibpath_overrides_runpath=no
11155 hardcode_into_libs=yes
11156 ;;
11157 *) # from 4.6 on, and DragonFly
11158 shlibpath_overrides_runpath=yes
11159 hardcode_into_libs=yes
11160 ;;
11161 esac
11162 ;;
11163
11164 haiku*)
11165 version_type=linux # correct to gnu/linux during the next big refactor
11166 need_lib_prefix=no
11167 need_version=no
11168 dynamic_linker="$host_os runtime_loader"
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 shlibpath_var=LIBRARY_PATH
11172 shlibpath_overrides_runpath=yes
11173 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11174 hardcode_into_libs=yes
11175 ;;
11176
11177 hpux9* | hpux10* | hpux11*)
11178 # Give a soname corresponding to the major version so that dld.sl refuses to
11179 # link against other versions.
11180 version_type=sunos
11181 need_lib_prefix=no
11182 need_version=no
11183 case $host_cpu in
11184 ia64*)
11185 shrext_cmds='.so'
11186 hardcode_into_libs=yes
11187 dynamic_linker="$host_os dld.so"
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 if test "X$HPUX_IA64_MODE" = X32; then
11193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11194 else
11195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11196 fi
11197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11198 ;;
11199 hppa*64*)
11200 shrext_cmds='.sl'
11201 hardcode_into_libs=yes
11202 dynamic_linker="$host_os dld.sl"
11203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11209 ;;
11210 *)
11211 shrext_cmds='.sl'
11212 dynamic_linker="$host_os dld.sl"
11213 shlibpath_var=SHLIB_PATH
11214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 ;;
11218 esac
11219 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11220 postinstall_cmds='chmod 555 $lib'
11221 # or fails outright, so override atomically:
11222 install_override_mode=555
11223 ;;
11224
11225 interix[3-9]*)
11226 version_type=linux # correct to gnu/linux during the next big refactor
11227 need_lib_prefix=no
11228 need_version=no
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=no
11234 hardcode_into_libs=yes
11235 ;;
11236
11237 irix5* | irix6* | nonstopux*)
11238 case $host_os in
11239 nonstopux*) version_type=nonstopux ;;
11240 *)
11241 if test "$lt_cv_prog_gnu_ld" = yes; then
11242 version_type=linux # correct to gnu/linux during the next big refactor
11243 else
11244 version_type=irix
11245 fi ;;
11246 esac
11247 need_lib_prefix=no
11248 need_version=no
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11251 case $host_os in
11252 irix5* | nonstopux*)
11253 libsuff= shlibsuff=
11254 ;;
11255 *)
11256 case $LD in # libtool.m4 will add one of these switches to LD
11257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11258 libsuff= shlibsuff= libmagic=32-bit;;
11259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11260 libsuff=32 shlibsuff=N32 libmagic=N32;;
11261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11263 *) libsuff= shlibsuff= libmagic=never-match;;
11264 esac
11265 ;;
11266 esac
11267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11268 shlibpath_overrides_runpath=no
11269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11271 hardcode_into_libs=yes
11272 ;;
11273
11274 # No shared lib support for Linux oldld, aout, or coff.
11275 linux*oldld* | linux*aout* | linux*coff*)
11276 dynamic_linker=no
11277 ;;
11278
11279 # This must be glibc/ELF.
11280 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11281 version_type=linux # correct to gnu/linux during the next big refactor
11282 need_lib_prefix=no
11283 need_version=no
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath=no
11289
11290 # Some binutils ld are patched to set DT_RUNPATH
11291 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 lt_cv_shlibpath_overrides_runpath=no
11295 save_LDFLAGS=$LDFLAGS
11296 save_libdir=$libdir
11297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301
11302 int
11303 main ()
11304 {
11305
11306 ;
11307 return 0;
11308 }
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"; then :
11311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11312 lt_cv_shlibpath_overrides_runpath=yes
11313 fi
11314 fi
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317 LDFLAGS=$save_LDFLAGS
11318 libdir=$save_libdir
11319
11320 fi
11321
11322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11323
11324 # This implies no fast_install, which is unacceptable.
11325 # Some rework will be needed to allow for fast_install
11326 # before this can be enabled.
11327 hardcode_into_libs=yes
11328
11329 # Append ld.so.conf contents to the search path
11330 if test -f /etc/ld.so.conf; then
11331 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' ' '`
11332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11333 fi
11334
11335 # We used to test for /lib/ld.so.1 and disable shared libraries on
11336 # powerpc, because MkLinux only supported shared libraries with the
11337 # GNU dynamic linker. Since this was broken with cross compilers,
11338 # most powerpc-linux boxes support dynamic linking these days and
11339 # people can always --disable-shared, the test was removed, and we
11340 # assume the GNU/Linux dynamic linker is in use.
11341 dynamic_linker='GNU/Linux ld.so'
11342 ;;
11343
11344 netbsdelf*-gnu)
11345 version_type=linux
11346 need_lib_prefix=no
11347 need_version=no
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=no
11352 hardcode_into_libs=yes
11353 dynamic_linker='NetBSD ld.elf_so'
11354 ;;
11355
11356 netbsd*)
11357 version_type=sunos
11358 need_lib_prefix=no
11359 need_version=no
11360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363 dynamic_linker='NetBSD (a.out) ld.so'
11364 else
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 dynamic_linker='NetBSD ld.elf_so'
11368 fi
11369 shlibpath_var=LD_LIBRARY_PATH
11370 shlibpath_overrides_runpath=yes
11371 hardcode_into_libs=yes
11372 ;;
11373
11374 newsos6)
11375 version_type=linux # correct to gnu/linux during the next big refactor
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath=yes
11379 ;;
11380
11381 *nto* | *qnx*)
11382 version_type=qnx
11383 need_lib_prefix=no
11384 need_version=no
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 shlibpath_overrides_runpath=no
11389 hardcode_into_libs=yes
11390 dynamic_linker='ldqnx.so'
11391 ;;
11392
11393 openbsd*)
11394 version_type=sunos
11395 sys_lib_dlsearch_path_spec="/usr/lib"
11396 need_lib_prefix=no
11397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11398 case $host_os in
11399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11400 *) need_version=no ;;
11401 esac
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11406 case $host_os in
11407 openbsd2.[89] | openbsd2.[89].*)
11408 shlibpath_overrides_runpath=no
11409 ;;
11410 *)
11411 shlibpath_overrides_runpath=yes
11412 ;;
11413 esac
11414 else
11415 shlibpath_overrides_runpath=yes
11416 fi
11417 ;;
11418
11419 os2*)
11420 libname_spec='$name'
11421 shrext_cmds=".dll"
11422 need_lib_prefix=no
11423 library_names_spec='$libname${shared_ext} $libname.a'
11424 dynamic_linker='OS/2 ld.exe'
11425 shlibpath_var=LIBPATH
11426 ;;
11427
11428 osf3* | osf4* | osf5*)
11429 version_type=osf
11430 need_lib_prefix=no
11431 need_version=no
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11437 ;;
11438
11439 rdos*)
11440 dynamic_linker=no
11441 ;;
11442
11443 solaris*)
11444 version_type=linux # correct to gnu/linux during the next big refactor
11445 need_lib_prefix=no
11446 need_version=no
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11452 # ldd complains unless libraries are executable
11453 postinstall_cmds='chmod +x $lib'
11454 ;;
11455
11456 sunos4*)
11457 version_type=sunos
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes
11462 if test "$with_gnu_ld" = yes; then
11463 need_lib_prefix=no
11464 fi
11465 need_version=yes
11466 ;;
11467
11468 sysv4 | sysv4.3*)
11469 version_type=linux # correct to gnu/linux during the next big refactor
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 case $host_vendor in
11474 sni)
11475 shlibpath_overrides_runpath=no
11476 need_lib_prefix=no
11477 runpath_var=LD_RUN_PATH
11478 ;;
11479 siemens)
11480 need_lib_prefix=no
11481 ;;
11482 motorola)
11483 need_lib_prefix=no
11484 need_version=no
11485 shlibpath_overrides_runpath=no
11486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11487 ;;
11488 esac
11489 ;;
11490
11491 sysv4*MP*)
11492 if test -d /usr/nec ;then
11493 version_type=linux # correct to gnu/linux during the next big refactor
11494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11495 soname_spec='$libname${shared_ext}.$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 fi
11498 ;;
11499
11500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11501 version_type=freebsd-elf
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11508 hardcode_into_libs=yes
11509 if test "$with_gnu_ld" = yes; then
11510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11511 else
11512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11513 case $host_os in
11514 sco3.2v5*)
11515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11516 ;;
11517 esac
11518 fi
11519 sys_lib_dlsearch_path_spec='/usr/lib'
11520 ;;
11521
11522 tpf*)
11523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11524 version_type=linux # correct to gnu/linux during the next big refactor
11525 need_lib_prefix=no
11526 need_version=no
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath=no
11530 hardcode_into_libs=yes
11531 ;;
11532
11533 uts4*)
11534 version_type=linux # correct to gnu/linux during the next big refactor
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 ;;
11539
11540 *)
11541 dynamic_linker=no
11542 ;;
11543 esac
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11545 $as_echo "$dynamic_linker" >&6; }
11546 test "$dynamic_linker" = no && can_build_shared=no
11547
11548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11549 if test "$GCC" = yes; then
11550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11551 fi
11552
11553 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11554 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11555 fi
11556 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11558 fi
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11652 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11653 hardcode_action=
11654 if test -n "$hardcode_libdir_flag_spec" ||
11655 test -n "$runpath_var" ||
11656 test "X$hardcode_automatic" = "Xyes" ; then
11657
11658 # We can hardcode non-existent directories.
11659 if test "$hardcode_direct" != no &&
11660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11661 # have to relink, otherwise we might link with an installed library
11662 # when we should be linking with a yet-to-be-installed one
11663 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11664 test "$hardcode_minus_L" != no; then
11665 # Linking always hardcodes the temporary library directory.
11666 hardcode_action=relink
11667 else
11668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11669 hardcode_action=immediate
11670 fi
11671 else
11672 # We cannot hardcode anything, or else we can only hardcode existing
11673 # directories.
11674 hardcode_action=unsupported
11675 fi
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11677 $as_echo "$hardcode_action" >&6; }
11678
11679 if test "$hardcode_action" = relink ||
11680 test "$inherit_rpath" = yes; then
11681 # Fast installation is not supported
11682 enable_fast_install=no
11683 elif test "$shlibpath_overrides_runpath" = yes ||
11684 test "$enable_shared" = no; then
11685 # Fast installation is not necessary
11686 enable_fast_install=needless
11687 fi
11688
11689
11690
11691
11692
11693
11694 if test "x$enable_dlopen" != xyes; then
11695 enable_dlopen=unknown
11696 enable_dlopen_self=unknown
11697 enable_dlopen_self_static=unknown
11698 else
11699 lt_cv_dlopen=no
11700 lt_cv_dlopen_libs=
11701
11702 case $host_os in
11703 beos*)
11704 lt_cv_dlopen="load_add_on"
11705 lt_cv_dlopen_libs=
11706 lt_cv_dlopen_self=yes
11707 ;;
11708
11709 mingw* | pw32* | cegcc*)
11710 lt_cv_dlopen="LoadLibrary"
11711 lt_cv_dlopen_libs=
11712 ;;
11713
11714 cygwin*)
11715 lt_cv_dlopen="dlopen"
11716 lt_cv_dlopen_libs=
11717 ;;
11718
11719 darwin*)
11720 # if libdl is installed we need to link against it
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11723 if ${ac_cv_lib_dl_dlopen+:} false; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 ac_check_lib_save_LIBS=$LIBS
11727 LIBS="-ldl $LIBS"
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730
11731 /* Override any GCC internal prototype to avoid an error.
11732 Use char because int might match the return type of a GCC
11733 builtin and then its argument prototype would still apply. */
11734 #ifdef __cplusplus
11735 extern "C"
11736 #endif
11737 char dlopen ();
11738 int
11739 main ()
11740 {
11741 return dlopen ();
11742 ;
11743 return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_link "$LINENO"; then :
11747 ac_cv_lib_dl_dlopen=yes
11748 else
11749 ac_cv_lib_dl_dlopen=no
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LIBS=$ac_check_lib_save_LIBS
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11757 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11759 else
11760
11761 lt_cv_dlopen="dyld"
11762 lt_cv_dlopen_libs=
11763 lt_cv_dlopen_self=yes
11764
11765 fi
11766
11767 ;;
11768
11769 *)
11770 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11771 if test "x$ac_cv_func_shl_load" = xyes; then :
11772 lt_cv_dlopen="shl_load"
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11775 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11776 if ${ac_cv_lib_dld_shl_load+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 ac_check_lib_save_LIBS=$LIBS
11780 LIBS="-ldld $LIBS"
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11783
11784 /* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11787 #ifdef __cplusplus
11788 extern "C"
11789 #endif
11790 char shl_load ();
11791 int
11792 main ()
11793 {
11794 return shl_load ();
11795 ;
11796 return 0;
11797 }
11798 _ACEOF
11799 if ac_fn_c_try_link "$LINENO"; then :
11800 ac_cv_lib_dld_shl_load=yes
11801 else
11802 ac_cv_lib_dld_shl_load=no
11803 fi
11804 rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11807 fi
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11809 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11810 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11811 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11812 else
11813 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11814 if test "x$ac_cv_func_dlopen" = xyes; then :
11815 lt_cv_dlopen="dlopen"
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11818 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11819 if ${ac_cv_lib_dl_dlopen+:} false; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 ac_check_lib_save_LIBS=$LIBS
11823 LIBS="-ldl $LIBS"
11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11826
11827 /* Override any GCC internal prototype to avoid an error.
11828 Use char because int might match the return type of a GCC
11829 builtin and then its argument prototype would still apply. */
11830 #ifdef __cplusplus
11831 extern "C"
11832 #endif
11833 char dlopen ();
11834 int
11835 main ()
11836 {
11837 return dlopen ();
11838 ;
11839 return 0;
11840 }
11841 _ACEOF
11842 if ac_fn_c_try_link "$LINENO"; then :
11843 ac_cv_lib_dl_dlopen=yes
11844 else
11845 ac_cv_lib_dl_dlopen=no
11846 fi
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 LIBS=$ac_check_lib_save_LIBS
11850 fi
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11852 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11853 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11857 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11858 if ${ac_cv_lib_svld_dlopen+:} false; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 ac_check_lib_save_LIBS=$LIBS
11862 LIBS="-lsvld $LIBS"
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11865
11866 /* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 char dlopen ();
11873 int
11874 main ()
11875 {
11876 return dlopen ();
11877 ;
11878 return 0;
11879 }
11880 _ACEOF
11881 if ac_fn_c_try_link "$LINENO"; then :
11882 ac_cv_lib_svld_dlopen=yes
11883 else
11884 ac_cv_lib_svld_dlopen=no
11885 fi
11886 rm -f core conftest.err conftest.$ac_objext \
11887 conftest$ac_exeext conftest.$ac_ext
11888 LIBS=$ac_check_lib_save_LIBS
11889 fi
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11891 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11892 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11896 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11897 if ${ac_cv_lib_dld_dld_link+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-ldld $LIBS"
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char dld_link ();
11912 int
11913 main ()
11914 {
11915 return dld_link ();
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921 ac_cv_lib_dld_dld_link=yes
11922 else
11923 ac_cv_lib_dld_dld_link=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11927 LIBS=$ac_check_lib_save_LIBS
11928 fi
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11930 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11931 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11933 fi
11934
11935
11936 fi
11937
11938
11939 fi
11940
11941
11942 fi
11943
11944
11945 fi
11946
11947
11948 fi
11949
11950 ;;
11951 esac
11952
11953 if test "x$lt_cv_dlopen" != xno; then
11954 enable_dlopen=yes
11955 else
11956 enable_dlopen=no
11957 fi
11958
11959 case $lt_cv_dlopen in
11960 dlopen)
11961 save_CPPFLAGS="$CPPFLAGS"
11962 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11963
11964 save_LDFLAGS="$LDFLAGS"
11965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11966
11967 save_LIBS="$LIBS"
11968 LIBS="$lt_cv_dlopen_libs $LIBS"
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11971 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11972 if ${lt_cv_dlopen_self+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 if test "$cross_compiling" = yes; then :
11976 lt_cv_dlopen_self=cross
11977 else
11978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11979 lt_status=$lt_dlunknown
11980 cat > conftest.$ac_ext <<_LT_EOF
11981 #line $LINENO "configure"
11982 #include "confdefs.h"
11983
11984 #if HAVE_DLFCN_H
11985 #include <dlfcn.h>
11986 #endif
11987
11988 #include <stdio.h>
11989
11990 #ifdef RTLD_GLOBAL
11991 # define LT_DLGLOBAL RTLD_GLOBAL
11992 #else
11993 # ifdef DL_GLOBAL
11994 # define LT_DLGLOBAL DL_GLOBAL
11995 # else
11996 # define LT_DLGLOBAL 0
11997 # endif
11998 #endif
11999
12000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12001 find out it does not work in some platform. */
12002 #ifndef LT_DLLAZY_OR_NOW
12003 # ifdef RTLD_LAZY
12004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12005 # else
12006 # ifdef DL_LAZY
12007 # define LT_DLLAZY_OR_NOW DL_LAZY
12008 # else
12009 # ifdef RTLD_NOW
12010 # define LT_DLLAZY_OR_NOW RTLD_NOW
12011 # else
12012 # ifdef DL_NOW
12013 # define LT_DLLAZY_OR_NOW DL_NOW
12014 # else
12015 # define LT_DLLAZY_OR_NOW 0
12016 # endif
12017 # endif
12018 # endif
12019 # endif
12020 #endif
12021
12022 /* When -fvisbility=hidden is used, assume the code has been annotated
12023 correspondingly for the symbols needed. */
12024 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12025 int fnord () __attribute__((visibility("default")));
12026 #endif
12027
12028 int fnord () { return 42; }
12029 int main ()
12030 {
12031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12032 int status = $lt_dlunknown;
12033
12034 if (self)
12035 {
12036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12037 else
12038 {
12039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12040 else puts (dlerror ());
12041 }
12042 /* dlclose (self); */
12043 }
12044 else
12045 puts (dlerror ());
12046
12047 return status;
12048 }
12049 _LT_EOF
12050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12051 (eval $ac_link) 2>&5
12052 ac_status=$?
12053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12055 (./conftest; exit; ) >&5 2>/dev/null
12056 lt_status=$?
12057 case x$lt_status in
12058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12061 esac
12062 else :
12063 # compilation failed
12064 lt_cv_dlopen_self=no
12065 fi
12066 fi
12067 rm -fr conftest*
12068
12069
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12072 $as_echo "$lt_cv_dlopen_self" >&6; }
12073
12074 if test "x$lt_cv_dlopen_self" = xyes; then
12075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12077 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12078 if ${lt_cv_dlopen_self_static+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 if test "$cross_compiling" = yes; then :
12082 lt_cv_dlopen_self_static=cross
12083 else
12084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12085 lt_status=$lt_dlunknown
12086 cat > conftest.$ac_ext <<_LT_EOF
12087 #line $LINENO "configure"
12088 #include "confdefs.h"
12089
12090 #if HAVE_DLFCN_H
12091 #include <dlfcn.h>
12092 #endif
12093
12094 #include <stdio.h>
12095
12096 #ifdef RTLD_GLOBAL
12097 # define LT_DLGLOBAL RTLD_GLOBAL
12098 #else
12099 # ifdef DL_GLOBAL
12100 # define LT_DLGLOBAL DL_GLOBAL
12101 # else
12102 # define LT_DLGLOBAL 0
12103 # endif
12104 #endif
12105
12106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12107 find out it does not work in some platform. */
12108 #ifndef LT_DLLAZY_OR_NOW
12109 # ifdef RTLD_LAZY
12110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12111 # else
12112 # ifdef DL_LAZY
12113 # define LT_DLLAZY_OR_NOW DL_LAZY
12114 # else
12115 # ifdef RTLD_NOW
12116 # define LT_DLLAZY_OR_NOW RTLD_NOW
12117 # else
12118 # ifdef DL_NOW
12119 # define LT_DLLAZY_OR_NOW DL_NOW
12120 # else
12121 # define LT_DLLAZY_OR_NOW 0
12122 # endif
12123 # endif
12124 # endif
12125 # endif
12126 #endif
12127
12128 /* When -fvisbility=hidden is used, assume the code has been annotated
12129 correspondingly for the symbols needed. */
12130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12131 int fnord () __attribute__((visibility("default")));
12132 #endif
12133
12134 int fnord () { return 42; }
12135 int main ()
12136 {
12137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12138 int status = $lt_dlunknown;
12139
12140 if (self)
12141 {
12142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12143 else
12144 {
12145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12146 else puts (dlerror ());
12147 }
12148 /* dlclose (self); */
12149 }
12150 else
12151 puts (dlerror ());
12152
12153 return status;
12154 }
12155 _LT_EOF
12156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12157 (eval $ac_link) 2>&5
12158 ac_status=$?
12159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12161 (./conftest; exit; ) >&5 2>/dev/null
12162 lt_status=$?
12163 case x$lt_status in
12164 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12165 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12166 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12167 esac
12168 else :
12169 # compilation failed
12170 lt_cv_dlopen_self_static=no
12171 fi
12172 fi
12173 rm -fr conftest*
12174
12175
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12178 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12179 fi
12180
12181 CPPFLAGS="$save_CPPFLAGS"
12182 LDFLAGS="$save_LDFLAGS"
12183 LIBS="$save_LIBS"
12184 ;;
12185 esac
12186
12187 case $lt_cv_dlopen_self in
12188 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12189 *) enable_dlopen_self=unknown ;;
12190 esac
12191
12192 case $lt_cv_dlopen_self_static in
12193 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12194 *) enable_dlopen_self_static=unknown ;;
12195 esac
12196 fi
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214 striplib=
12215 old_striplib=
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12217 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12218 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222 $as_echo "yes" >&6; }
12223 else
12224 # FIXME - insert some real tests, host_os isn't really good enough
12225 case $host_os in
12226 darwin*)
12227 if test -n "$STRIP" ; then
12228 striplib="$STRIP -x"
12229 old_striplib="$STRIP -S"
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12231 $as_echo "yes" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236 ;;
12237 *)
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12240 ;;
12241 esac
12242 fi
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255 # Report which library types will actually be built
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12257 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12259 $as_echo "$can_build_shared" >&6; }
12260
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12262 $as_echo_n "checking whether to build shared libraries... " >&6; }
12263 test "$can_build_shared" = "no" && enable_shared=no
12264
12265 # On AIX, shared libraries and static libraries use the same namespace, and
12266 # are all built from PIC.
12267 case $host_os in
12268 aix3*)
12269 test "$enable_shared" = yes && enable_static=no
12270 if test -n "$RANLIB"; then
12271 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12272 postinstall_cmds='$RANLIB $lib'
12273 fi
12274 ;;
12275
12276 aix[4-9]*)
12277 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12278 test "$enable_shared" = yes && enable_static=no
12279 fi
12280 ;;
12281 esac
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12283 $as_echo "$enable_shared" >&6; }
12284
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12286 $as_echo_n "checking whether to build static libraries... " >&6; }
12287 # Make sure either enable_shared or enable_static is yes.
12288 test "$enable_shared" = yes || enable_static=yes
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12290 $as_echo "$enable_static" >&6; }
12291
12292
12293
12294
12295 fi
12296 ac_ext=c
12297 ac_cpp='$CPP $CPPFLAGS'
12298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12301
12302 CC="$lt_save_CC"
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318 ac_config_commands="$ac_config_commands libtool"
12319
12320
12321
12322
12323 # Only expand once:
12324
12325
12326
12327
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12329 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12330 # Check whether --enable-maintainer-mode was given.
12331 if test "${enable_maintainer_mode+set}" = set; then :
12332 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12333 else
12334 USE_MAINTAINER_MODE=no
12335 fi
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12338 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12339 if test $USE_MAINTAINER_MODE = yes; then
12340 MAINTAINER_MODE_TRUE=
12341 MAINTAINER_MODE_FALSE='#'
12342 else
12343 MAINTAINER_MODE_TRUE='#'
12344 MAINTAINER_MODE_FALSE=
12345 fi
12346
12347 MAINT=$MAINTAINER_MODE_TRUE
12348
12349
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12352 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12353 if ${ac_cv_c_const+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12358
12359 int
12360 main ()
12361 {
12362
12363 #ifndef __cplusplus
12364 /* Ultrix mips cc rejects this sort of thing. */
12365 typedef int charset[2];
12366 const charset cs = { 0, 0 };
12367 /* SunOS 4.1.1 cc rejects this. */
12368 char const *const *pcpcc;
12369 char **ppc;
12370 /* NEC SVR4.0.2 mips cc rejects this. */
12371 struct point {int x, y;};
12372 static struct point const zero = {0,0};
12373 /* AIX XL C 1.02.0.0 rejects this.
12374 It does not let you subtract one const X* pointer from another in
12375 an arm of an if-expression whose if-part is not a constant
12376 expression */
12377 const char *g = "string";
12378 pcpcc = &g + (g ? g-g : 0);
12379 /* HPUX 7.0 cc rejects these. */
12380 ++pcpcc;
12381 ppc = (char**) pcpcc;
12382 pcpcc = (char const *const *) ppc;
12383 { /* SCO 3.2v4 cc rejects this sort of thing. */
12384 char tx;
12385 char *t = &tx;
12386 char const *s = 0 ? (char *) 0 : (char const *) 0;
12387
12388 *t++ = 0;
12389 if (s) return 0;
12390 }
12391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12392 int x[] = {25, 17};
12393 const int *foo = &x[0];
12394 ++foo;
12395 }
12396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12397 typedef const int *iptr;
12398 iptr p = 0;
12399 ++p;
12400 }
12401 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12403 struct s { int j; const int *ap[3]; } bx;
12404 struct s *b = &bx; b->j = 5;
12405 }
12406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12407 const int foo = 10;
12408 if (!foo) return 0;
12409 }
12410 return !cs[0] && !zero.x;
12411 #endif
12412
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_compile "$LINENO"; then :
12418 ac_cv_c_const=yes
12419 else
12420 ac_cv_c_const=no
12421 fi
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12425 $as_echo "$ac_cv_c_const" >&6; }
12426 if test $ac_cv_c_const = no; then
12427
12428 $as_echo "#define const /**/" >>confdefs.h
12429
12430 fi
12431
12432
12433 # Extract the first word of "pkg-config", so it can be a program name with args.
12434 set dummy pkg-config; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 case $PKG_CONFIG in
12441 [\\/]* | ?:[\\/]*)
12442 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12443 ;;
12444 *)
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $PATH
12447 do
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12452 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12455 fi
12456 done
12457 done
12458 IFS=$as_save_IFS
12459
12460 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12461 ;;
12462 esac
12463 fi
12464 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12465 if test -n "$PKG_CONFIG"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12467 $as_echo "$PKG_CONFIG" >&6; }
12468 else
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12471 fi
12472
12473
12474
12475 CFLAGS=" -Wall -g -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -O1 -fstack-protector --param ssp-buffer-size=4 -fPIE -pie"
12476 LIBS=-lm
12477
12478
12479 # Extract the first word of ""swig"", so it can be a program name with args.
12480 set dummy "swig"; ac_word=$2
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482 $as_echo_n "checking for $ac_word... " >&6; }
12483 if ${ac_cv_prog_have_swig+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 if test -n "$have_swig"; then
12487 ac_cv_prog_have_swig="$have_swig" # Let the user override the test.
12488 else
12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490 for as_dir in $PATH
12491 do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12496 ac_cv_prog_have_swig="yes"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500 done
12501 done
12502 IFS=$as_save_IFS
12503
12504 test -z "$ac_cv_prog_have_swig" && ac_cv_prog_have_swig="no"
12505 fi
12506 fi
12507 have_swig=$ac_cv_prog_have_swig
12508 if test -n "$have_swig"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_swig" >&5
12510 $as_echo "$have_swig" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514 fi
12515
12516
12517
12518
12519 # Extract the first word of ""fpc"", so it can be a program name with args.
12520 set dummy "fpc"; ac_word=$2
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522 $as_echo_n "checking for $ac_word... " >&6; }
12523 if ${ac_cv_prog_have_fpc+:} false; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 if test -n "$have_fpc"; then
12527 ac_cv_prog_have_fpc="$have_fpc" # Let the user override the test.
12528 else
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12531 do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12536 ac_cv_prog_have_fpc="yes"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12539 fi
12540 done
12541 done
12542 IFS=$as_save_IFS
12543
12544 test -z "$ac_cv_prog_have_fpc" && ac_cv_prog_have_fpc="no"
12545 fi
12546 fi
12547 have_fpc=$ac_cv_prog_have_fpc
12548 if test -n "$have_fpc"; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fpc" >&5
12550 $as_echo "$have_fpc" >&6; }
12551 else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553 $as_echo "no" >&6; }
12554 fi
12555
12556
12557
12558 build_fpc=$have_fpc
12559
12560 # Check whether --enable-fpc was given.
12561 if test "${enable_fpc+set}" = set; then :
12562 enableval=$enable_fpc; build_fpc=no
12563 else
12564 build_fpc=$have_fpc
12565 fi
12566
12567
12568 if test "$have_fpc" = "yes"; then
12569 PA_VERSION=`fpc -iV`
12570 PA_TPR=`fpc -iTP`
12571 PA_TOS=`fpc -iTO`
12572 PA_MODULES_PATH="/usr/lib/fpc/$PA_VERSION/units/$PA_TPR-$PA_TOS"
12573
12574
12575 fi
12576
12577
12578 # Extract the first word of ""gpc"", so it can be a program name with args.
12579 set dummy "gpc"; ac_word=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581 $as_echo_n "checking for $ac_word... " >&6; }
12582 if ${ac_cv_prog_have_gpc+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 if test -n "$have_gpc"; then
12586 ac_cv_prog_have_gpc="$have_gpc" # Let the user override the test.
12587 else
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12590 do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595 ac_cv_prog_have_gpc="yes"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12598 fi
12599 done
12600 done
12601 IFS=$as_save_IFS
12602
12603 test -z "$ac_cv_prog_have_gpc" && ac_cv_prog_have_gpc="no"
12604 fi
12605 fi
12606 have_gpc=$ac_cv_prog_have_gpc
12607 if test -n "$have_gpc"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gpc" >&5
12609 $as_echo "$have_gpc" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613 fi
12614
12615
12616
12617 build_gpc=$have_gpc
12618
12619 # Check whether --enable-gpc was given.
12620 if test "${enable_gpc+set}" = set; then :
12621 enableval=$enable_gpc; build_gpc=no
12622 else
12623 build_gpc=$have_gpc
12624 fi
12625
12626
12627 if test "$have_gpc" = "yes"; then
12628 GP_MODULES_PATH=`gpc -print-search-dirs | grep install | cut -d' ' -f 2`
12629
12630 fi
12631
12632
12633 if test "$build_fpc" = "yes" -a "$build_gpc" = "yes" ; then
12634 WITH_GPC_FPC_TRUE=
12635 WITH_GPC_FPC_FALSE='#'
12636 else
12637 WITH_GPC_FPC_TRUE='#'
12638 WITH_GPC_FPC_FALSE=
12639 fi
12640
12641 if test "$build_gpc" = "yes" -a "$build_fpc" != "yes" ; then
12642 WITH_GPC_TRUE=
12643 WITH_GPC_FALSE='#'
12644 else
12645 WITH_GPC_TRUE='#'
12646 WITH_GPC_FALSE=
12647 fi
12648
12649 if test "$build_gpc" != "yes" -a "$build_fpc" = "yes" ; then
12650 WITH_FPC_TRUE=
12651 WITH_FPC_FALSE='#'
12652 else
12653 WITH_FPC_TRUE='#'
12654 WITH_FPC_FALSE=
12655 fi
12656
12657
12658
12659 # Extract the first word of ""python"", so it can be a program name with args.
12660 set dummy "python"; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if ${ac_cv_prog_have_python+:} false; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 if test -n "$have_python"; then
12667 ac_cv_prog_have_python="$have_python" # Let the user override the test.
12668 else
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12671 do
12672 IFS=$as_save_IFS
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12676 ac_cv_prog_have_python="yes"
12677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678 break 2
12679 fi
12680 done
12681 done
12682 IFS=$as_save_IFS
12683
12684 test -z "$ac_cv_prog_have_python" && ac_cv_prog_have_python="no"
12685 fi
12686 fi
12687 have_python=$ac_cv_prog_have_python
12688 if test -n "$have_python"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_python" >&5
12690 $as_echo "$have_python" >&6; }
12691 else
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12694 fi
12695
12696
12697
12698 build_python=$have_python
12699
12700 # Check whether --enable-python was given.
12701 if test "${enable_python+set}" = set; then :
12702 enableval=$enable_python; build_python=no
12703 else
12704 build_python=$have_python
12705 fi
12706
12707
12708
12709 # Check whether --with-python-sitelib-dir was given.
12710 if test "${with_python_sitelib_dir+set}" = set; then :
12711 withval=$with_python_sitelib_dir;
12712 fi
12713
12714
12715 if test "$have_python" = "yes"; then
12716 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
12717 PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PY_PREFIX/include/python$PY_VERSION/Python.h" >&5
12719 $as_echo_n "checking for $PY_PREFIX/include/python$PY_VERSION/Python.h... " >&6; }
12720 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12722 $as_echo "yes" >&6; }
12723 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
12724
12725 if test "$with_python_sitelib_dir" = "" ; then
12726 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/dist-packages"
12727 else
12728 PY_MODULES_PATH=$with_python_sitelib_dir
12729 fi
12730
12731
12732
12733
12734 if test "$have_swig" = "no"; then
12735 build_python=no
12736 fi
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740 build_python=no
12741 fi
12742 fi
12743
12744 if test "$build_python" = "yes"; then
12745 WITH_PYTHON_TRUE=
12746 WITH_PYTHON_FALSE='#'
12747 else
12748 WITH_PYTHON_TRUE='#'
12749 WITH_PYTHON_FALSE=
12750 fi
12751
12752
12753
12754 # Extract the first word of ""ruby"", so it can be a program name with args.
12755 set dummy "ruby"; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12757 $as_echo_n "checking for $ac_word... " >&6; }
12758 if ${ac_cv_prog_have_ruby+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 if test -n "$have_ruby"; then
12762 ac_cv_prog_have_ruby="$have_ruby" # Let the user override the test.
12763 else
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12766 do
12767 IFS=$as_save_IFS
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771 ac_cv_prog_have_ruby="yes"
12772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 break 2
12774 fi
12775 done
12776 done
12777 IFS=$as_save_IFS
12778
12779 test -z "$ac_cv_prog_have_ruby" && ac_cv_prog_have_ruby="no"
12780 fi
12781 fi
12782 have_ruby=$ac_cv_prog_have_ruby
12783 if test -n "$have_ruby"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ruby" >&5
12785 $as_echo "$have_ruby" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790
12791
12792
12793 build_ruby=$have_ruby
12794
12795 # Check whether --enable-ruby was given.
12796 if test "${enable_ruby+set}" = set; then :
12797 enableval=$enable_ruby; build_ruby=no
12798 else
12799 build_ruby=$have_ruby
12800 fi
12801
12802
12803
12804 # Check whether --with-ruby-sitelib-dir was given.
12805 if test "${with_ruby_sitelib_dir+set}" = set; then :
12806 withval=$with_ruby_sitelib_dir;
12807 fi
12808
12809
12810 if test "$have_ruby" = "yes"; then
12811 RU_PREFIX=`ruby -e 'require "mkmf"; puts $topdir'`
12812 RU_VERSION=`ruby -e "require 'mkmf'; puts config_string('MAJOR')"`
12813 RU_VERSION+=.`ruby -e "require 'mkmf'; puts config_string('MINOR')"`
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RU_PREFIX/ruby.h" >&5
12815 $as_echo_n "checking for $RU_PREFIX/ruby.h... " >&6; }
12816 if test -f $RU_PREFIX/ruby.h; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12818 $as_echo "yes" >&6; }
12819 RU_CFLAGS="-I$RU_PREFIX"
12820
12821 if test "$with_ruby_sitelib_dir" = "" ; then
12822 RU_MODULES_PATH="$RU_PREFIX"
12823 else
12824 RU_MODULES_PATH=$with_ruby_sitelib_dir
12825 fi
12826
12827
12828
12829
12830 if test "$have_swig" = "no"; then
12831 build_ruby=no
12832 fi
12833 else
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 build_ruby=no
12837 fi
12838 fi
12839
12840 if test "$build_ruby" = "yes"; then
12841 WITH_RUBY_TRUE=
12842 WITH_RUBY_FALSE='#'
12843 else
12844 WITH_RUBY_TRUE='#'
12845 WITH_RUBY_FALSE=
12846 fi
12847
12848
12849
12850 # Extract the first word of ""php"", so it can be a program name with args.
12851 set dummy "php"; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if ${ac_cv_prog_have_php+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 if test -n "$have_php"; then
12858 ac_cv_prog_have_php="$have_php" # Let the user override the test.
12859 else
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12862 do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12867 ac_cv_prog_have_php="yes"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 break 2
12870 fi
12871 done
12872 done
12873 IFS=$as_save_IFS
12874
12875 test -z "$ac_cv_prog_have_php" && ac_cv_prog_have_php="no"
12876 fi
12877 fi
12878 have_php=$ac_cv_prog_have_php
12879 if test -n "$have_php"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_php" >&5
12881 $as_echo "$have_php" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12885 fi
12886
12887
12888
12889 build_php=$have_php
12890
12891 # Check whether --enable-php was given.
12892 if test "${enable_php+set}" = set; then :
12893 enableval=$enable_php; build_php=no
12894 else
12895 build_php=$have_php
12896 fi
12897
12898
12899
12900 # Check whether --with-php-sitelib-dir was given.
12901 if test "${with_php_sitelib_dir+set}" = set; then :
12902 withval=$with_php_sitelib_dir;
12903 fi
12904
12905
12906 if test "$have_php" = "yes"; then
12907 # Extract the first word of ""php-config5"", so it can be a program name with args.
12908 set dummy "php-config5"; ac_word=$2
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12910 $as_echo_n "checking for $ac_word... " >&6; }
12911 if ${ac_cv_prog_have_php_config+:} false; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 if test -n "$have_php_config"; then
12915 ac_cv_prog_have_php_config="$have_php_config" # Let the user override the test.
12916 else
12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12919 do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 for ac_exec_ext in '' $ac_executable_extensions; do
12923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12924 ac_cv_prog_have_php_config="yes"
12925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 break 2
12927 fi
12928 done
12929 done
12930 IFS=$as_save_IFS
12931
12932 test -z "$ac_cv_prog_have_php_config" && ac_cv_prog_have_php_config="no"
12933 fi
12934 fi
12935 have_php_config=$ac_cv_prog_have_php_config
12936 if test -n "$have_php_config"; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_php_config" >&5
12938 $as_echo "$have_php_config" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942 fi
12943
12944
12945 if test "$have_php_config" = "yes"; then
12946
12947 PH_CONFIG_PATH=`php --ini | grep "Scan" | cut -d: -f2 | sed 's/\s//g'`
12948 PH_INCLUDE_PATH=`php -r "echo get_include_path();" | cut -f2 -d:`
12949 if test "$with_php_sitelib_dir" = "" ; then
12950 PH_MODULES_PATH=`php-config5 --extension-dir`
12951 else
12952 PH_MODULES_PATH=$with_php_sitelib_dir
12953 fi
12954
12955
12956
12957
12958 if test "$have_swig" = "no"; then
12959 build_php=no
12960 fi
12961 else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12964 build_php=no
12965 fi
12966 fi
12967
12968 if test "$build_php" = "yes"; then
12969 WITH_PHP_TRUE=
12970 WITH_PHP_FALSE='#'
12971 else
12972 WITH_PHP_TRUE='#'
12973 WITH_PHP_FALSE=
12974 fi
12975
12976
12977
12978 # Extract the first word of ""perl"", so it can be a program name with args.
12979 set dummy "perl"; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if ${ac_cv_prog_have_perl+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 if test -n "$have_perl"; then
12986 ac_cv_prog_have_perl="$have_perl" # Let the user override the test.
12987 else
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12990 do
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995 ac_cv_prog_have_perl="yes"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 break 2
12998 fi
12999 done
13000 done
13001 IFS=$as_save_IFS
13002
13003 test -z "$ac_cv_prog_have_perl" && ac_cv_prog_have_perl="no"
13004 fi
13005 fi
13006 have_perl=$ac_cv_prog_have_perl
13007 if test -n "$have_perl"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_perl" >&5
13009 $as_echo "$have_perl" >&6; }
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13013 fi
13014
13015
13016
13017 build_perl=$have_perl
13018
13019 # Check whether --enable-perl was given.
13020 if test "${enable_perl+set}" = set; then :
13021 enableval=$enable_perl; build_perl=no
13022 else
13023 build_perl=$have_perl
13024 fi
13025
13026
13027
13028 # Check whether --with-perl-sitelib-dir was given.
13029 if test "${with_perl_sitelib_dir+set}" = set; then :
13030 withval=$with_perl_sitelib_dir;
13031 fi
13032
13033
13034 if test "$have_perl" = "yes"; then
13035 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PE_PREFIX/CORE/perl.h" >&5
13037 $as_echo_n "checking for $PE_PREFIX/CORE/perl.h... " >&6; }
13038 if test -f $PE_PREFIX/CORE/perl.h; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; }
13041 PE_CFLAGS="-I$PE_PREFIX/CORE "
13042 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
13043
13044 if test "$with_perl_sitelib_dir" = "" ; then
13045 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
13046 else
13047 PE_MODULES_PATH=$with_perl_sitelib_dir
13048 fi
13049
13050
13051
13052 if test "x$have_swig" = "xno"; then
13053 build_perl=no
13054 fi
13055 else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13058 build_perl=no
13059 fi
13060 fi
13061
13062 if test "$build_perl" = "yes"; then
13063 WITH_PERL_TRUE=
13064 WITH_PERL_FALSE='#'
13065 else
13066 WITH_PERL_TRUE='#'
13067 WITH_PERL_FALSE=
13068 fi
13069
13070
13071
13072
13073 ALL_LINGUAS="he es_MX ru fr sv"
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13076 $as_echo_n "checking whether NLS is requested... " >&6; }
13077 # Check whether --enable-nls was given.
13078 if test "${enable_nls+set}" = set; then :
13079 enableval=$enable_nls; USE_NLS=$enableval
13080 else
13081 USE_NLS=yes
13082 fi
13083
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13085 $as_echo "$USE_NLS" >&6; }
13086
13087
13088
13089
13090 GETTEXT_MACRO_VERSION=0.18
13091
13092
13093
13094
13095 # Prepare PATH_SEPARATOR.
13096 # The user is always right.
13097 if test "${PATH_SEPARATOR+set}" != set; then
13098 echo "#! /bin/sh" >conf$$.sh
13099 echo "exit 0" >>conf$$.sh
13100 chmod +x conf$$.sh
13101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13102 PATH_SEPARATOR=';'
13103 else
13104 PATH_SEPARATOR=:
13105 fi
13106 rm -f conf$$.sh
13107 fi
13108
13109 # Find out how to test for executable files. Don't use a zero-byte file,
13110 # as systems may use methods other than mode bits to determine executability.
13111 cat >conf$$.file <<_ASEOF
13112 #! /bin/sh
13113 exit 0
13114 _ASEOF
13115 chmod +x conf$$.file
13116 if test -x conf$$.file >/dev/null 2>&1; then
13117 ac_executable_p="test -x"
13118 else
13119 ac_executable_p="test -f"
13120 fi
13121 rm -f conf$$.file
13122
13123 # Extract the first word of "msgfmt", so it can be a program name with args.
13124 set dummy msgfmt; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_path_MSGFMT+:} false; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 case "$MSGFMT" in
13131 [\\/]* | ?:[\\/]*)
13132 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13133 ;;
13134 *)
13135 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13136 for ac_dir in $PATH; do
13137 IFS="$ac_save_IFS"
13138 test -z "$ac_dir" && ac_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13141 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13142 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13143 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13144 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13145 break 2
13146 fi
13147 fi
13148 done
13149 done
13150 IFS="$ac_save_IFS"
13151 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13152 ;;
13153 esac
13154 fi
13155 MSGFMT="$ac_cv_path_MSGFMT"
13156 if test "$MSGFMT" != ":"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13158 $as_echo "$MSGFMT" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162 fi
13163
13164 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13165 set dummy gmsgfmt; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if ${ac_cv_path_GMSGFMT+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 case $GMSGFMT in
13172 [\\/]* | ?:[\\/]*)
13173 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13174 ;;
13175 *)
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13178 do
13179 IFS=$as_save_IFS
13180 test -z "$as_dir" && as_dir=.
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13183 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185 break 2
13186 fi
13187 done
13188 done
13189 IFS=$as_save_IFS
13190
13191 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13192 ;;
13193 esac
13194 fi
13195 GMSGFMT=$ac_cv_path_GMSGFMT
13196 if test -n "$GMSGFMT"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13198 $as_echo "$GMSGFMT" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13202 fi
13203
13204
13205
13206 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13207 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13208 *) MSGFMT_015=$MSGFMT ;;
13209 esac
13210
13211 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13212 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13213 *) GMSGFMT_015=$GMSGFMT ;;
13214 esac
13215
13216
13217
13218 # Prepare PATH_SEPARATOR.
13219 # The user is always right.
13220 if test "${PATH_SEPARATOR+set}" != set; then
13221 echo "#! /bin/sh" >conf$$.sh
13222 echo "exit 0" >>conf$$.sh
13223 chmod +x conf$$.sh
13224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13225 PATH_SEPARATOR=';'
13226 else
13227 PATH_SEPARATOR=:
13228 fi
13229 rm -f conf$$.sh
13230 fi
13231
13232 # Find out how to test for executable files. Don't use a zero-byte file,
13233 # as systems may use methods other than mode bits to determine executability.
13234 cat >conf$$.file <<_ASEOF
13235 #! /bin/sh
13236 exit 0
13237 _ASEOF
13238 chmod +x conf$$.file
13239 if test -x conf$$.file >/dev/null 2>&1; then
13240 ac_executable_p="test -x"
13241 else
13242 ac_executable_p="test -f"
13243 fi
13244 rm -f conf$$.file
13245
13246 # Extract the first word of "xgettext", so it can be a program name with args.
13247 set dummy xgettext; ac_word=$2
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249 $as_echo_n "checking for $ac_word... " >&6; }
13250 if ${ac_cv_path_XGETTEXT+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 case "$XGETTEXT" in
13254 [\\/]* | ?:[\\/]*)
13255 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13256 ;;
13257 *)
13258 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13259 for ac_dir in $PATH; do
13260 IFS="$ac_save_IFS"
13261 test -z "$ac_dir" && ac_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13264 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13265 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13266 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13267 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13268 break 2
13269 fi
13270 fi
13271 done
13272 done
13273 IFS="$ac_save_IFS"
13274 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13275 ;;
13276 esac
13277 fi
13278 XGETTEXT="$ac_cv_path_XGETTEXT"
13279 if test "$XGETTEXT" != ":"; then
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13281 $as_echo "$XGETTEXT" >&6; }
13282 else
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13285 fi
13286
13287 rm -f messages.po
13288
13289 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13290 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13291 *) XGETTEXT_015=$XGETTEXT ;;
13292 esac
13293
13294
13295
13296 # Prepare PATH_SEPARATOR.
13297 # The user is always right.
13298 if test "${PATH_SEPARATOR+set}" != set; then
13299 echo "#! /bin/sh" >conf$$.sh
13300 echo "exit 0" >>conf$$.sh
13301 chmod +x conf$$.sh
13302 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13303 PATH_SEPARATOR=';'
13304 else
13305 PATH_SEPARATOR=:
13306 fi
13307 rm -f conf$$.sh
13308 fi
13309
13310 # Find out how to test for executable files. Don't use a zero-byte file,
13311 # as systems may use methods other than mode bits to determine executability.
13312 cat >conf$$.file <<_ASEOF
13313 #! /bin/sh
13314 exit 0
13315 _ASEOF
13316 chmod +x conf$$.file
13317 if test -x conf$$.file >/dev/null 2>&1; then
13318 ac_executable_p="test -x"
13319 else
13320 ac_executable_p="test -f"
13321 fi
13322 rm -f conf$$.file
13323
13324 # Extract the first word of "msgmerge", so it can be a program name with args.
13325 set dummy msgmerge; ac_word=$2
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327 $as_echo_n "checking for $ac_word... " >&6; }
13328 if ${ac_cv_path_MSGMERGE+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 case "$MSGMERGE" in
13332 [\\/]* | ?:[\\/]*)
13333 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13334 ;;
13335 *)
13336 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13337 for ac_dir in $PATH; do
13338 IFS="$ac_save_IFS"
13339 test -z "$ac_dir" && ac_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13342 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13343 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13344 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13345 break 2
13346 fi
13347 fi
13348 done
13349 done
13350 IFS="$ac_save_IFS"
13351 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13352 ;;
13353 esac
13354 fi
13355 MSGMERGE="$ac_cv_path_MSGMERGE"
13356 if test "$MSGMERGE" != ":"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13358 $as_echo "$MSGMERGE" >&6; }
13359 else
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13362 fi
13363
13364
13365 test -n "$localedir" || localedir='${datadir}/locale'
13366
13367
13368 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13369
13370
13371 ac_config_commands="$ac_config_commands po-directories"
13372
13373
13374
13375 if test "X$prefix" = "XNONE"; then
13376 acl_final_prefix="$ac_default_prefix"
13377 else
13378 acl_final_prefix="$prefix"
13379 fi
13380 if test "X$exec_prefix" = "XNONE"; then
13381 acl_final_exec_prefix='${prefix}'
13382 else
13383 acl_final_exec_prefix="$exec_prefix"
13384 fi
13385 acl_save_prefix="$prefix"
13386 prefix="$acl_final_prefix"
13387 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13388 prefix="$acl_save_prefix"
13389
13390
13391 # Check whether --with-gnu-ld was given.
13392 if test "${with_gnu_ld+set}" = set; then :
13393 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13394 else
13395 with_gnu_ld=no
13396 fi
13397
13398 # Prepare PATH_SEPARATOR.
13399 # The user is always right.
13400 if test "${PATH_SEPARATOR+set}" != set; then
13401 echo "#! /bin/sh" >conf$$.sh
13402 echo "exit 0" >>conf$$.sh
13403 chmod +x conf$$.sh
13404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13405 PATH_SEPARATOR=';'
13406 else
13407 PATH_SEPARATOR=:
13408 fi
13409 rm -f conf$$.sh
13410 fi
13411 ac_prog=ld
13412 if test "$GCC" = yes; then
13413 # Check if gcc -print-prog-name=ld gives a path.
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13415 $as_echo_n "checking for ld used by GCC... " >&6; }
13416 case $host in
13417 *-*-mingw*)
13418 # gcc leaves a trailing carriage return which upsets mingw
13419 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13420 *)
13421 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13422 esac
13423 case $ac_prog in
13424 # Accept absolute paths.
13425 [\\/]* | [A-Za-z]:[\\/]*)
13426 re_direlt='/[^/][^/]*/\.\./'
13427 # Canonicalize the path of ld
13428 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13429 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13430 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13431 done
13432 test -z "$LD" && LD="$ac_prog"
13433 ;;
13434 "")
13435 # If it fails, then pretend we aren't using GCC.
13436 ac_prog=ld
13437 ;;
13438 *)
13439 # If it is relative, then search for the first ld in PATH.
13440 with_gnu_ld=unknown
13441 ;;
13442 esac
13443 elif test "$with_gnu_ld" = yes; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13445 $as_echo_n "checking for GNU ld... " >&6; }
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13448 $as_echo_n "checking for non-GNU ld... " >&6; }
13449 fi
13450 if ${acl_cv_path_LD+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 if test -z "$LD"; then
13454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13455 for ac_dir in $PATH; do
13456 test -z "$ac_dir" && ac_dir=.
13457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13458 acl_cv_path_LD="$ac_dir/$ac_prog"
13459 # Check to see if the program is GNU ld. I'd rather use --version,
13460 # but apparently some GNU ld's only accept -v.
13461 # Break only if it was the GNU/non-GNU ld that we prefer.
13462 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13463 *GNU* | *'with BFD'*)
13464 test "$with_gnu_ld" != no && break ;;
13465 *)
13466 test "$with_gnu_ld" != yes && break ;;
13467 esac
13468 fi
13469 done
13470 IFS="$ac_save_ifs"
13471 else
13472 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13473 fi
13474 fi
13475
13476 LD="$acl_cv_path_LD"
13477 if test -n "$LD"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13479 $as_echo "$LD" >&6; }
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13483 fi
13484 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13486 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13487 if ${acl_cv_prog_gnu_ld+:} false; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13491 case `$LD -v 2>&1 </dev/null` in
13492 *GNU* | *'with BFD'*)
13493 acl_cv_prog_gnu_ld=yes ;;
13494 *)
13495 acl_cv_prog_gnu_ld=no ;;
13496 esac
13497 fi
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13499 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13500 with_gnu_ld=$acl_cv_prog_gnu_ld
13501
13502
13503
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13506 $as_echo_n "checking for shared library run path origin... " >&6; }
13507 if ${acl_cv_rpath+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510
13511 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13512 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13513 . ./conftest.sh
13514 rm -f ./conftest.sh
13515 acl_cv_rpath=done
13516
13517 fi
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13519 $as_echo "$acl_cv_rpath" >&6; }
13520 wl="$acl_cv_wl"
13521 acl_libext="$acl_cv_libext"
13522 acl_shlibext="$acl_cv_shlibext"
13523 acl_libname_spec="$acl_cv_libname_spec"
13524 acl_library_names_spec="$acl_cv_library_names_spec"
13525 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13526 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13527 acl_hardcode_direct="$acl_cv_hardcode_direct"
13528 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13529 # Check whether --enable-rpath was given.
13530 if test "${enable_rpath+set}" = set; then :
13531 enableval=$enable_rpath; :
13532 else
13533 enable_rpath=yes
13534 fi
13535
13536
13537
13538
13539 acl_libdirstem=lib
13540 acl_libdirstem2=
13541 case "$host_os" in
13542 solaris*)
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13544 $as_echo_n "checking for 64-bit host... " >&6; }
13545 if ${gl_cv_solaris_64bit+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550
13551 #ifdef _LP64
13552 sixtyfour bits
13553 #endif
13554
13555 _ACEOF
13556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13557 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13558 gl_cv_solaris_64bit=yes
13559 else
13560 gl_cv_solaris_64bit=no
13561 fi
13562 rm -f conftest*
13563
13564
13565 fi
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13567 $as_echo "$gl_cv_solaris_64bit" >&6; }
13568 if test $gl_cv_solaris_64bit = yes; then
13569 acl_libdirstem=lib/64
13570 case "$host_cpu" in
13571 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13572 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13573 esac
13574 fi
13575 ;;
13576 *)
13577 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13578 if test -n "$searchpath"; then
13579 acl_save_IFS="${IFS= }"; IFS=":"
13580 for searchdir in $searchpath; do
13581 if test -d "$searchdir"; then
13582 case "$searchdir" in
13583 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13584 */../ | */.. )
13585 # Better ignore directories of this form. They are misleading.
13586 ;;
13587 *) searchdir=`cd "$searchdir" && pwd`
13588 case "$searchdir" in
13589 */lib64 ) acl_libdirstem=lib64 ;;
13590 esac ;;
13591 esac
13592 fi
13593 done
13594 IFS="$acl_save_IFS"
13595 fi
13596 ;;
13597 esac
13598 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611 use_additional=yes
13612
13613 acl_save_prefix="$prefix"
13614 prefix="$acl_final_prefix"
13615 acl_save_exec_prefix="$exec_prefix"
13616 exec_prefix="$acl_final_exec_prefix"
13617
13618 eval additional_includedir=\"$includedir\"
13619 eval additional_libdir=\"$libdir\"
13620
13621 exec_prefix="$acl_save_exec_prefix"
13622 prefix="$acl_save_prefix"
13623
13624
13625 # Check whether --with-libiconv-prefix was given.
13626 if test "${with_libiconv_prefix+set}" = set; then :
13627 withval=$with_libiconv_prefix;
13628 if test "X$withval" = "Xno"; then
13629 use_additional=no
13630 else
13631 if test "X$withval" = "X"; then
13632
13633 acl_save_prefix="$prefix"
13634 prefix="$acl_final_prefix"
13635 acl_save_exec_prefix="$exec_prefix"
13636 exec_prefix="$acl_final_exec_prefix"
13637
13638 eval additional_includedir=\"$includedir\"
13639 eval additional_libdir=\"$libdir\"
13640
13641 exec_prefix="$acl_save_exec_prefix"
13642 prefix="$acl_save_prefix"
13643
13644 else
13645 additional_includedir="$withval/include"
13646 additional_libdir="$withval/$acl_libdirstem"
13647 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13648 && ! test -d "$withval/$acl_libdirstem"; then
13649 additional_libdir="$withval/$acl_libdirstem2"
13650 fi
13651 fi
13652 fi
13653
13654 fi
13655
13656 LIBICONV=
13657 LTLIBICONV=
13658 INCICONV=
13659 LIBICONV_PREFIX=
13660 HAVE_LIBICONV=
13661 rpathdirs=
13662 ltrpathdirs=
13663 names_already_handled=
13664 names_next_round='iconv '
13665 while test -n "$names_next_round"; do
13666 names_this_round="$names_next_round"
13667 names_next_round=
13668 for name in $names_this_round; do
13669 already_handled=
13670 for n in $names_already_handled; do
13671 if test "$n" = "$name"; then
13672 already_handled=yes
13673 break
13674 fi
13675 done
13676 if test -z "$already_handled"; then
13677 names_already_handled="$names_already_handled $name"
13678 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13679 eval value=\"\$HAVE_LIB$uppername\"
13680 if test -n "$value"; then
13681 if test "$value" = yes; then
13682 eval value=\"\$LIB$uppername\"
13683 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13684 eval value=\"\$LTLIB$uppername\"
13685 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13686 else
13687 :
13688 fi
13689 else
13690 found_dir=
13691 found_la=
13692 found_so=
13693 found_a=
13694 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13695 if test -n "$acl_shlibext"; then
13696 shrext=".$acl_shlibext" # typically: shrext=.so
13697 else
13698 shrext=
13699 fi
13700 if test $use_additional = yes; then
13701 dir="$additional_libdir"
13702 if test -n "$acl_shlibext"; then
13703 if test -f "$dir/$libname$shrext"; then
13704 found_dir="$dir"
13705 found_so="$dir/$libname$shrext"
13706 else
13707 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13708 ver=`(cd "$dir" && \
13709 for f in "$libname$shrext".*; do echo "$f"; done \
13710 | sed -e "s,^$libname$shrext\\\\.,," \
13711 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13712 | sed 1q ) 2>/dev/null`
13713 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13714 found_dir="$dir"
13715 found_so="$dir/$libname$shrext.$ver"
13716 fi
13717 else
13718 eval library_names=\"$acl_library_names_spec\"
13719 for f in $library_names; do
13720 if test -f "$dir/$f"; then
13721 found_dir="$dir"
13722 found_so="$dir/$f"
13723 break
13724 fi
13725 done
13726 fi
13727 fi
13728 fi
13729 if test "X$found_dir" = "X"; then
13730 if test -f "$dir/$libname.$acl_libext"; then
13731 found_dir="$dir"
13732 found_a="$dir/$libname.$acl_libext"
13733 fi
13734 fi
13735 if test "X$found_dir" != "X"; then
13736 if test -f "$dir/$libname.la"; then
13737 found_la="$dir/$libname.la"
13738 fi
13739 fi
13740 fi
13741 if test "X$found_dir" = "X"; then
13742 for x in $LDFLAGS $LTLIBICONV; do
13743
13744 acl_save_prefix="$prefix"
13745 prefix="$acl_final_prefix"
13746 acl_save_exec_prefix="$exec_prefix"
13747 exec_prefix="$acl_final_exec_prefix"
13748 eval x=\"$x\"
13749 exec_prefix="$acl_save_exec_prefix"
13750 prefix="$acl_save_prefix"
13751
13752 case "$x" in
13753 -L*)
13754 dir=`echo "X$x" | sed -e 's/^X-L//'`
13755 if test -n "$acl_shlibext"; then
13756 if test -f "$dir/$libname$shrext"; then
13757 found_dir="$dir"
13758 found_so="$dir/$libname$shrext"
13759 else
13760 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13761 ver=`(cd "$dir" && \
13762 for f in "$libname$shrext".*; do echo "$f"; done \
13763 | sed -e "s,^$libname$shrext\\\\.,," \
13764 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13765 | sed 1q ) 2>/dev/null`
13766 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13767 found_dir="$dir"
13768 found_so="$dir/$libname$shrext.$ver"
13769 fi
13770 else
13771 eval library_names=\"$acl_library_names_spec\"
13772 for f in $library_names; do
13773 if test -f "$dir/$f"; then
13774 found_dir="$dir"
13775 found_so="$dir/$f"
13776 break
13777 fi
13778 done
13779 fi
13780 fi
13781 fi
13782 if test "X$found_dir" = "X"; then
13783 if test -f "$dir/$libname.$acl_libext"; then
13784 found_dir="$dir"
13785 found_a="$dir/$libname.$acl_libext"
13786 fi
13787 fi
13788 if test "X$found_dir" != "X"; then
13789 if test -f "$dir/$libname.la"; then
13790 found_la="$dir/$libname.la"
13791 fi
13792 fi
13793 ;;
13794 esac
13795 if test "X$found_dir" != "X"; then
13796 break
13797 fi
13798 done
13799 fi
13800 if test "X$found_dir" != "X"; then
13801 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13802 if test "X$found_so" != "X"; then
13803 if test "$enable_rpath" = no \
13804 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13805 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13806 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13807 else
13808 haveit=
13809 for x in $ltrpathdirs; do
13810 if test "X$x" = "X$found_dir"; then
13811 haveit=yes
13812 break
13813 fi
13814 done
13815 if test -z "$haveit"; then
13816 ltrpathdirs="$ltrpathdirs $found_dir"
13817 fi
13818 if test "$acl_hardcode_direct" = yes; then
13819 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13820 else
13821 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13823 haveit=
13824 for x in $rpathdirs; do
13825 if test "X$x" = "X$found_dir"; then
13826 haveit=yes
13827 break
13828 fi
13829 done
13830 if test -z "$haveit"; then
13831 rpathdirs="$rpathdirs $found_dir"
13832 fi
13833 else
13834 haveit=
13835 for x in $LDFLAGS $LIBICONV; do
13836
13837 acl_save_prefix="$prefix"
13838 prefix="$acl_final_prefix"
13839 acl_save_exec_prefix="$exec_prefix"
13840 exec_prefix="$acl_final_exec_prefix"
13841 eval x=\"$x\"
13842 exec_prefix="$acl_save_exec_prefix"
13843 prefix="$acl_save_prefix"
13844
13845 if test "X$x" = "X-L$found_dir"; then
13846 haveit=yes
13847 break
13848 fi
13849 done
13850 if test -z "$haveit"; then
13851 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13852 fi
13853 if test "$acl_hardcode_minus_L" != no; then
13854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13855 else
13856 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13857 fi
13858 fi
13859 fi
13860 fi
13861 else
13862 if test "X$found_a" != "X"; then
13863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13864 else
13865 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13866 fi
13867 fi
13868 additional_includedir=
13869 case "$found_dir" in
13870 */$acl_libdirstem | */$acl_libdirstem/)
13871 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13872 if test "$name" = 'iconv'; then
13873 LIBICONV_PREFIX="$basedir"
13874 fi
13875 additional_includedir="$basedir/include"
13876 ;;
13877 */$acl_libdirstem2 | */$acl_libdirstem2/)
13878 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13879 if test "$name" = 'iconv'; then
13880 LIBICONV_PREFIX="$basedir"
13881 fi
13882 additional_includedir="$basedir/include"
13883 ;;
13884 esac
13885 if test "X$additional_includedir" != "X"; then
13886 if test "X$additional_includedir" != "X/usr/include"; then
13887 haveit=
13888 if test "X$additional_includedir" = "X/usr/local/include"; then
13889 if test -n "$GCC"; then
13890 case $host_os in
13891 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13892 esac
13893 fi
13894 fi
13895 if test -z "$haveit"; then
13896 for x in $CPPFLAGS $INCICONV; do
13897
13898 acl_save_prefix="$prefix"
13899 prefix="$acl_final_prefix"
13900 acl_save_exec_prefix="$exec_prefix"
13901 exec_prefix="$acl_final_exec_prefix"
13902 eval x=\"$x\"
13903 exec_prefix="$acl_save_exec_prefix"
13904 prefix="$acl_save_prefix"
13905
13906 if test "X$x" = "X-I$additional_includedir"; then
13907 haveit=yes
13908 break
13909 fi
13910 done
13911 if test -z "$haveit"; then
13912 if test -d "$additional_includedir"; then
13913 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13914 fi
13915 fi
13916 fi
13917 fi
13918 fi
13919 if test -n "$found_la"; then
13920 save_libdir="$libdir"
13921 case "$found_la" in
13922 */* | *\\*) . "$found_la" ;;
13923 *) . "./$found_la" ;;
13924 esac
13925 libdir="$save_libdir"
13926 for dep in $dependency_libs; do
13927 case "$dep" in
13928 -L*)
13929 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13930 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13931 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13932 haveit=
13933 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13934 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13935 if test -n "$GCC"; then
13936 case $host_os in
13937 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13938 esac
13939 fi
13940 fi
13941 if test -z "$haveit"; then
13942 haveit=
13943 for x in $LDFLAGS $LIBICONV; do
13944
13945 acl_save_prefix="$prefix"
13946 prefix="$acl_final_prefix"
13947 acl_save_exec_prefix="$exec_prefix"
13948 exec_prefix="$acl_final_exec_prefix"
13949 eval x=\"$x\"
13950 exec_prefix="$acl_save_exec_prefix"
13951 prefix="$acl_save_prefix"
13952
13953 if test "X$x" = "X-L$additional_libdir"; then
13954 haveit=yes
13955 break
13956 fi
13957 done
13958 if test -z "$haveit"; then
13959 if test -d "$additional_libdir"; then
13960 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13961 fi
13962 fi
13963 haveit=
13964 for x in $LDFLAGS $LTLIBICONV; do
13965
13966 acl_save_prefix="$prefix"
13967 prefix="$acl_final_prefix"
13968 acl_save_exec_prefix="$exec_prefix"
13969 exec_prefix="$acl_final_exec_prefix"
13970 eval x=\"$x\"
13971 exec_prefix="$acl_save_exec_prefix"
13972 prefix="$acl_save_prefix"
13973
13974 if test "X$x" = "X-L$additional_libdir"; then
13975 haveit=yes
13976 break
13977 fi
13978 done
13979 if test -z "$haveit"; then
13980 if test -d "$additional_libdir"; then
13981 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13982 fi
13983 fi
13984 fi
13985 fi
13986 ;;
13987 -R*)
13988 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13989 if test "$enable_rpath" != no; then
13990 haveit=
13991 for x in $rpathdirs; do
13992 if test "X$x" = "X$dir"; then
13993 haveit=yes
13994 break
13995 fi
13996 done
13997 if test -z "$haveit"; then
13998 rpathdirs="$rpathdirs $dir"
13999 fi
14000 haveit=
14001 for x in $ltrpathdirs; do
14002 if test "X$x" = "X$dir"; then
14003 haveit=yes
14004 break
14005 fi
14006 done
14007 if test -z "$haveit"; then
14008 ltrpathdirs="$ltrpathdirs $dir"
14009 fi
14010 fi
14011 ;;
14012 -l*)
14013 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14014 ;;
14015 *.la)
14016 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14017 ;;
14018 *)
14019 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14020 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14021 ;;
14022 esac
14023 done
14024 fi
14025 else
14026 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14027 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14028 fi
14029 fi
14030 fi
14031 done
14032 done
14033 if test "X$rpathdirs" != "X"; then
14034 if test -n "$acl_hardcode_libdir_separator"; then
14035 alldirs=
14036 for found_dir in $rpathdirs; do
14037 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14038 done
14039 acl_save_libdir="$libdir"
14040 libdir="$alldirs"
14041 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14042 libdir="$acl_save_libdir"
14043 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14044 else
14045 for found_dir in $rpathdirs; do
14046 acl_save_libdir="$libdir"
14047 libdir="$found_dir"
14048 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14049 libdir="$acl_save_libdir"
14050 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14051 done
14052 fi
14053 fi
14054 if test "X$ltrpathdirs" != "X"; then
14055 for found_dir in $ltrpathdirs; do
14056 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14057 done
14058 fi
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14091 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14092 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 gt_save_LIBS="$LIBS"
14096 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 #include <CoreFoundation/CFPreferences.h>
14100 int
14101 main ()
14102 {
14103 CFPreferencesCopyAppValue(NULL, NULL)
14104 ;
14105 return 0;
14106 }
14107 _ACEOF
14108 if ac_fn_c_try_link "$LINENO"; then :
14109 gt_cv_func_CFPreferencesCopyAppValue=yes
14110 else
14111 gt_cv_func_CFPreferencesCopyAppValue=no
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LIBS="$gt_save_LIBS"
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14118 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14119 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14120
14121 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14122
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14125 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14126 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 gt_save_LIBS="$LIBS"
14130 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14133 #include <CoreFoundation/CFLocale.h>
14134 int
14135 main ()
14136 {
14137 CFLocaleCopyCurrent();
14138 ;
14139 return 0;
14140 }
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 gt_cv_func_CFLocaleCopyCurrent=yes
14144 else
14145 gt_cv_func_CFLocaleCopyCurrent=no
14146 fi
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14149 LIBS="$gt_save_LIBS"
14150 fi
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14152 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14153 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14154
14155 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14156
14157 fi
14158 INTL_MACOSX_LIBS=
14159 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14160 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14161 fi
14162
14163
14164
14165
14166
14167
14168 LIBINTL=
14169 LTLIBINTL=
14170 POSUB=
14171
14172 case " $gt_needs " in
14173 *" need-formatstring-macros "*) gt_api_version=3 ;;
14174 *" need-ngettext "*) gt_api_version=2 ;;
14175 *) gt_api_version=1 ;;
14176 esac
14177 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14178 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14179
14180 if test "$USE_NLS" = "yes"; then
14181 gt_use_preinstalled_gnugettext=no
14182
14183
14184 if test $gt_api_version -ge 3; then
14185 gt_revision_test_code='
14186 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14187 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14188 #endif
14189 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14190 '
14191 else
14192 gt_revision_test_code=
14193 fi
14194 if test $gt_api_version -ge 2; then
14195 gt_expression_test_code=' + * ngettext ("", "", 0)'
14196 else
14197 gt_expression_test_code=
14198 fi
14199
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14201 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14202 if eval \${$gt_func_gnugettext_libc+:} false; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14207 #include <libintl.h>
14208 $gt_revision_test_code
14209 extern int _nl_msg_cat_cntr;
14210 extern int *_nl_domain_bindings;
14211 int
14212 main ()
14213 {
14214 bindtextdomain ("", "");
14215 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14216 ;
14217 return 0;
14218 }
14219 _ACEOF
14220 if ac_fn_c_try_link "$LINENO"; then :
14221 eval "$gt_func_gnugettext_libc=yes"
14222 else
14223 eval "$gt_func_gnugettext_libc=no"
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14227 fi
14228 eval ac_res=\$$gt_func_gnugettext_libc
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14230 $as_echo "$ac_res" >&6; }
14231
14232 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14233
14234
14235
14236
14237
14238 am_save_CPPFLAGS="$CPPFLAGS"
14239
14240 for element in $INCICONV; do
14241 haveit=
14242 for x in $CPPFLAGS; do
14243
14244 acl_save_prefix="$prefix"
14245 prefix="$acl_final_prefix"
14246 acl_save_exec_prefix="$exec_prefix"
14247 exec_prefix="$acl_final_exec_prefix"
14248 eval x=\"$x\"
14249 exec_prefix="$acl_save_exec_prefix"
14250 prefix="$acl_save_prefix"
14251
14252 if test "X$x" = "X$element"; then
14253 haveit=yes
14254 break
14255 fi
14256 done
14257 if test -z "$haveit"; then
14258 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14259 fi
14260 done
14261
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14264 $as_echo_n "checking for iconv... " >&6; }
14265 if ${am_cv_func_iconv+:} false; then :
14266 $as_echo_n "(cached) " >&6
14267 else
14268
14269 am_cv_func_iconv="no, consider installing GNU libiconv"
14270 am_cv_lib_iconv=no
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14273 #include <stdlib.h>
14274 #include <iconv.h>
14275 int
14276 main ()
14277 {
14278 iconv_t cd = iconv_open("","");
14279 iconv(cd,NULL,NULL,NULL,NULL);
14280 iconv_close(cd);
14281 ;
14282 return 0;
14283 }
14284 _ACEOF
14285 if ac_fn_c_try_link "$LINENO"; then :
14286 am_cv_func_iconv=yes
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14290 if test "$am_cv_func_iconv" != yes; then
14291 am_save_LIBS="$LIBS"
14292 LIBS="$LIBS $LIBICONV"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295 #include <stdlib.h>
14296 #include <iconv.h>
14297 int
14298 main ()
14299 {
14300 iconv_t cd = iconv_open("","");
14301 iconv(cd,NULL,NULL,NULL,NULL);
14302 iconv_close(cd);
14303 ;
14304 return 0;
14305 }
14306 _ACEOF
14307 if ac_fn_c_try_link "$LINENO"; then :
14308 am_cv_lib_iconv=yes
14309 am_cv_func_iconv=yes
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LIBS="$am_save_LIBS"
14314 fi
14315
14316 fi
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14318 $as_echo "$am_cv_func_iconv" >&6; }
14319 if test "$am_cv_func_iconv" = yes; then
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14321 $as_echo_n "checking for working iconv... " >&6; }
14322 if ${am_cv_func_iconv_works+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325
14326 am_save_LIBS="$LIBS"
14327 if test $am_cv_lib_iconv = yes; then
14328 LIBS="$LIBS $LIBICONV"
14329 fi
14330 if test "$cross_compiling" = yes; then :
14331 case "$host_os" in
14332 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14333 *) am_cv_func_iconv_works="guessing yes" ;;
14334 esac
14335 else
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338
14339 #include <iconv.h>
14340 #include <string.h>
14341 int main ()
14342 {
14343 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14344 returns. */
14345 {
14346 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14347 if (cd_utf8_to_88591 != (iconv_t)(-1))
14348 {
14349 static const char input[] = "\342\202\254"; /* EURO SIGN */
14350 char buf[10];
14351 const char *inptr = input;
14352 size_t inbytesleft = strlen (input);
14353 char *outptr = buf;
14354 size_t outbytesleft = sizeof (buf);
14355 size_t res = iconv (cd_utf8_to_88591,
14356 (char **) &inptr, &inbytesleft,
14357 &outptr, &outbytesleft);
14358 if (res == 0)
14359 return 1;
14360 }
14361 }
14362 /* Test against Solaris 10 bug: Failures are not distinguishable from
14363 successful returns. */
14364 {
14365 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14366 if (cd_ascii_to_88591 != (iconv_t)(-1))
14367 {
14368 static const char input[] = "\263";
14369 char buf[10];
14370 const char *inptr = input;
14371 size_t inbytesleft = strlen (input);
14372 char *outptr = buf;
14373 size_t outbytesleft = sizeof (buf);
14374 size_t res = iconv (cd_ascii_to_88591,
14375 (char **) &inptr, &inbytesleft,
14376 &outptr, &outbytesleft);
14377 if (res == 0)
14378 return 1;
14379 }
14380 }
14381 #if 0 /* This bug could be worked around by the caller. */
14382 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14383 {
14384 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14385 if (cd_88591_to_utf8 != (iconv_t)(-1))
14386 {
14387 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14388 char buf[50];
14389 const char *inptr = input;
14390 size_t inbytesleft = strlen (input);
14391 char *outptr = buf;
14392 size_t outbytesleft = sizeof (buf);
14393 size_t res = iconv (cd_88591_to_utf8,
14394 (char **) &inptr, &inbytesleft,
14395 &outptr, &outbytesleft);
14396 if ((int)res > 0)
14397 return 1;
14398 }
14399 }
14400 #endif
14401 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14402 provided. */
14403 if (/* Try standardized names. */
14404 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14405 /* Try IRIX, OSF/1 names. */
14406 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14407 /* Try AIX names. */
14408 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14409 /* Try HP-UX names. */
14410 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14411 return 1;
14412 return 0;
14413 }
14414 _ACEOF
14415 if ac_fn_c_try_run "$LINENO"; then :
14416 am_cv_func_iconv_works=yes
14417 else
14418 am_cv_func_iconv_works=no
14419 fi
14420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14421 conftest.$ac_objext conftest.beam conftest.$ac_ext
14422 fi
14423
14424 LIBS="$am_save_LIBS"
14425
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14428 $as_echo "$am_cv_func_iconv_works" >&6; }
14429 case "$am_cv_func_iconv_works" in
14430 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14431 *) am_func_iconv=yes ;;
14432 esac
14433 else
14434 am_func_iconv=no am_cv_lib_iconv=no
14435 fi
14436 if test "$am_func_iconv" = yes; then
14437
14438 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14439
14440 fi
14441 if test "$am_cv_lib_iconv" = yes; then
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14443 $as_echo_n "checking how to link with libiconv... " >&6; }
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14445 $as_echo "$LIBICONV" >&6; }
14446 else
14447 CPPFLAGS="$am_save_CPPFLAGS"
14448 LIBICONV=
14449 LTLIBICONV=
14450 fi
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462 use_additional=yes
14463
14464 acl_save_prefix="$prefix"
14465 prefix="$acl_final_prefix"
14466 acl_save_exec_prefix="$exec_prefix"
14467 exec_prefix="$acl_final_exec_prefix"
14468
14469 eval additional_includedir=\"$includedir\"
14470 eval additional_libdir=\"$libdir\"
14471
14472 exec_prefix="$acl_save_exec_prefix"
14473 prefix="$acl_save_prefix"
14474
14475
14476 # Check whether --with-libintl-prefix was given.
14477 if test "${with_libintl_prefix+set}" = set; then :
14478 withval=$with_libintl_prefix;
14479 if test "X$withval" = "Xno"; then
14480 use_additional=no
14481 else
14482 if test "X$withval" = "X"; then
14483
14484 acl_save_prefix="$prefix"
14485 prefix="$acl_final_prefix"
14486 acl_save_exec_prefix="$exec_prefix"
14487 exec_prefix="$acl_final_exec_prefix"
14488
14489 eval additional_includedir=\"$includedir\"
14490 eval additional_libdir=\"$libdir\"
14491
14492 exec_prefix="$acl_save_exec_prefix"
14493 prefix="$acl_save_prefix"
14494
14495 else
14496 additional_includedir="$withval/include"
14497 additional_libdir="$withval/$acl_libdirstem"
14498 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14499 && ! test -d "$withval/$acl_libdirstem"; then
14500 additional_libdir="$withval/$acl_libdirstem2"
14501 fi
14502 fi
14503 fi
14504
14505 fi
14506
14507 LIBINTL=
14508 LTLIBINTL=
14509 INCINTL=
14510 LIBINTL_PREFIX=
14511 HAVE_LIBINTL=
14512 rpathdirs=
14513 ltrpathdirs=
14514 names_already_handled=
14515 names_next_round='intl '
14516 while test -n "$names_next_round"; do
14517 names_this_round="$names_next_round"
14518 names_next_round=
14519 for name in $names_this_round; do
14520 already_handled=
14521 for n in $names_already_handled; do
14522 if test "$n" = "$name"; then
14523 already_handled=yes
14524 break
14525 fi
14526 done
14527 if test -z "$already_handled"; then
14528 names_already_handled="$names_already_handled $name"
14529 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14530 eval value=\"\$HAVE_LIB$uppername\"
14531 if test -n "$value"; then
14532 if test "$value" = yes; then
14533 eval value=\"\$LIB$uppername\"
14534 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14535 eval value=\"\$LTLIB$uppername\"
14536 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14537 else
14538 :
14539 fi
14540 else
14541 found_dir=
14542 found_la=
14543 found_so=
14544 found_a=
14545 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14546 if test -n "$acl_shlibext"; then
14547 shrext=".$acl_shlibext" # typically: shrext=.so
14548 else
14549 shrext=
14550 fi
14551 if test $use_additional = yes; then
14552 dir="$additional_libdir"
14553 if test -n "$acl_shlibext"; then
14554 if test -f "$dir/$libname$shrext"; then
14555 found_dir="$dir"
14556 found_so="$dir/$libname$shrext"
14557 else
14558 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14559 ver=`(cd "$dir" && \
14560 for f in "$libname$shrext".*; do echo "$f"; done \
14561 | sed -e "s,^$libname$shrext\\\\.,," \
14562 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14563 | sed 1q ) 2>/dev/null`
14564 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14565 found_dir="$dir"
14566 found_so="$dir/$libname$shrext.$ver"
14567 fi
14568 else
14569 eval library_names=\"$acl_library_names_spec\"
14570 for f in $library_names; do
14571 if test -f "$dir/$f"; then
14572 found_dir="$dir"
14573 found_so="$dir/$f"
14574 break
14575 fi
14576 done
14577 fi
14578 fi
14579 fi
14580 if test "X$found_dir" = "X"; then
14581 if test -f "$dir/$libname.$acl_libext"; then
14582 found_dir="$dir"
14583 found_a="$dir/$libname.$acl_libext"
14584 fi
14585 fi
14586 if test "X$found_dir" != "X"; then
14587 if test -f "$dir/$libname.la"; then
14588 found_la="$dir/$libname.la"
14589 fi
14590 fi
14591 fi
14592 if test "X$found_dir" = "X"; then
14593 for x in $LDFLAGS $LTLIBINTL; do
14594
14595 acl_save_prefix="$prefix"
14596 prefix="$acl_final_prefix"
14597 acl_save_exec_prefix="$exec_prefix"
14598 exec_prefix="$acl_final_exec_prefix"
14599 eval x=\"$x\"
14600 exec_prefix="$acl_save_exec_prefix"
14601 prefix="$acl_save_prefix"
14602
14603 case "$x" in
14604 -L*)
14605 dir=`echo "X$x" | sed -e 's/^X-L//'`
14606 if test -n "$acl_shlibext"; then
14607 if test -f "$dir/$libname$shrext"; then
14608 found_dir="$dir"
14609 found_so="$dir/$libname$shrext"
14610 else
14611 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14612 ver=`(cd "$dir" && \
14613 for f in "$libname$shrext".*; do echo "$f"; done \
14614 | sed -e "s,^$libname$shrext\\\\.,," \
14615 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14616 | sed 1q ) 2>/dev/null`
14617 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14618 found_dir="$dir"
14619 found_so="$dir/$libname$shrext.$ver"
14620 fi
14621 else
14622 eval library_names=\"$acl_library_names_spec\"
14623 for f in $library_names; do
14624 if test -f "$dir/$f"; then
14625 found_dir="$dir"
14626 found_so="$dir/$f"
14627 break
14628 fi
14629 done
14630 fi
14631 fi
14632 fi
14633 if test "X$found_dir" = "X"; then
14634 if test -f "$dir/$libname.$acl_libext"; then
14635 found_dir="$dir"
14636 found_a="$dir/$libname.$acl_libext"
14637 fi
14638 fi
14639 if test "X$found_dir" != "X"; then
14640 if test -f "$dir/$libname.la"; then
14641 found_la="$dir/$libname.la"
14642 fi
14643 fi
14644 ;;
14645 esac
14646 if test "X$found_dir" != "X"; then
14647 break
14648 fi
14649 done
14650 fi
14651 if test "X$found_dir" != "X"; then
14652 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14653 if test "X$found_so" != "X"; then
14654 if test "$enable_rpath" = no \
14655 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14656 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14657 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14658 else
14659 haveit=
14660 for x in $ltrpathdirs; do
14661 if test "X$x" = "X$found_dir"; then
14662 haveit=yes
14663 break
14664 fi
14665 done
14666 if test -z "$haveit"; then
14667 ltrpathdirs="$ltrpathdirs $found_dir"
14668 fi
14669 if test "$acl_hardcode_direct" = yes; then
14670 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14671 else
14672 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14673 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14674 haveit=
14675 for x in $rpathdirs; do
14676 if test "X$x" = "X$found_dir"; then
14677 haveit=yes
14678 break
14679 fi
14680 done
14681 if test -z "$haveit"; then
14682 rpathdirs="$rpathdirs $found_dir"
14683 fi
14684 else
14685 haveit=
14686 for x in $LDFLAGS $LIBINTL; do
14687
14688 acl_save_prefix="$prefix"
14689 prefix="$acl_final_prefix"
14690 acl_save_exec_prefix="$exec_prefix"
14691 exec_prefix="$acl_final_exec_prefix"
14692 eval x=\"$x\"
14693 exec_prefix="$acl_save_exec_prefix"
14694 prefix="$acl_save_prefix"
14695
14696 if test "X$x" = "X-L$found_dir"; then
14697 haveit=yes
14698 break
14699 fi
14700 done
14701 if test -z "$haveit"; then
14702 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14703 fi
14704 if test "$acl_hardcode_minus_L" != no; then
14705 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14706 else
14707 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14708 fi
14709 fi
14710 fi
14711 fi
14712 else
14713 if test "X$found_a" != "X"; then
14714 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14715 else
14716 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14717 fi
14718 fi
14719 additional_includedir=
14720 case "$found_dir" in
14721 */$acl_libdirstem | */$acl_libdirstem/)
14722 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14723 if test "$name" = 'intl'; then
14724 LIBINTL_PREFIX="$basedir"
14725 fi
14726 additional_includedir="$basedir/include"
14727 ;;
14728 */$acl_libdirstem2 | */$acl_libdirstem2/)
14729 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14730 if test "$name" = 'intl'; then
14731 LIBINTL_PREFIX="$basedir"
14732 fi
14733 additional_includedir="$basedir/include"
14734 ;;
14735 esac
14736 if test "X$additional_includedir" != "X"; then
14737 if test "X$additional_includedir" != "X/usr/include"; then
14738 haveit=
14739 if test "X$additional_includedir" = "X/usr/local/include"; then
14740 if test -n "$GCC"; then
14741 case $host_os in
14742 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14743 esac
14744 fi
14745 fi
14746 if test -z "$haveit"; then
14747 for x in $CPPFLAGS $INCINTL; do
14748
14749 acl_save_prefix="$prefix"
14750 prefix="$acl_final_prefix"
14751 acl_save_exec_prefix="$exec_prefix"
14752 exec_prefix="$acl_final_exec_prefix"
14753 eval x=\"$x\"
14754 exec_prefix="$acl_save_exec_prefix"
14755 prefix="$acl_save_prefix"
14756
14757 if test "X$x" = "X-I$additional_includedir"; then
14758 haveit=yes
14759 break
14760 fi
14761 done
14762 if test -z "$haveit"; then
14763 if test -d "$additional_includedir"; then
14764 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14765 fi
14766 fi
14767 fi
14768 fi
14769 fi
14770 if test -n "$found_la"; then
14771 save_libdir="$libdir"
14772 case "$found_la" in
14773 */* | *\\*) . "$found_la" ;;
14774 *) . "./$found_la" ;;
14775 esac
14776 libdir="$save_libdir"
14777 for dep in $dependency_libs; do
14778 case "$dep" in
14779 -L*)
14780 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14781 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14782 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14783 haveit=
14784 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14785 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14786 if test -n "$GCC"; then
14787 case $host_os in
14788 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14789 esac
14790 fi
14791 fi
14792 if test -z "$haveit"; then
14793 haveit=
14794 for x in $LDFLAGS $LIBINTL; do
14795
14796 acl_save_prefix="$prefix"
14797 prefix="$acl_final_prefix"
14798 acl_save_exec_prefix="$exec_prefix"
14799 exec_prefix="$acl_final_exec_prefix"
14800 eval x=\"$x\"
14801 exec_prefix="$acl_save_exec_prefix"
14802 prefix="$acl_save_prefix"
14803
14804 if test "X$x" = "X-L$additional_libdir"; then
14805 haveit=yes
14806 break
14807 fi
14808 done
14809 if test -z "$haveit"; then
14810 if test -d "$additional_libdir"; then
14811 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14812 fi
14813 fi
14814 haveit=
14815 for x in $LDFLAGS $LTLIBINTL; do
14816
14817 acl_save_prefix="$prefix"
14818 prefix="$acl_final_prefix"
14819 acl_save_exec_prefix="$exec_prefix"
14820 exec_prefix="$acl_final_exec_prefix"
14821 eval x=\"$x\"
14822 exec_prefix="$acl_save_exec_prefix"
14823 prefix="$acl_save_prefix"
14824
14825 if test "X$x" = "X-L$additional_libdir"; then
14826 haveit=yes
14827 break
14828 fi
14829 done
14830 if test -z "$haveit"; then
14831 if test -d "$additional_libdir"; then
14832 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14833 fi
14834 fi
14835 fi
14836 fi
14837 ;;
14838 -R*)
14839 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14840 if test "$enable_rpath" != no; then
14841 haveit=
14842 for x in $rpathdirs; do
14843 if test "X$x" = "X$dir"; then
14844 haveit=yes
14845 break
14846 fi
14847 done
14848 if test -z "$haveit"; then
14849 rpathdirs="$rpathdirs $dir"
14850 fi
14851 haveit=
14852 for x in $ltrpathdirs; do
14853 if test "X$x" = "X$dir"; then
14854 haveit=yes
14855 break
14856 fi
14857 done
14858 if test -z "$haveit"; then
14859 ltrpathdirs="$ltrpathdirs $dir"
14860 fi
14861 fi
14862 ;;
14863 -l*)
14864 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14865 ;;
14866 *.la)
14867 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14868 ;;
14869 *)
14870 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14871 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14872 ;;
14873 esac
14874 done
14875 fi
14876 else
14877 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14878 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14879 fi
14880 fi
14881 fi
14882 done
14883 done
14884 if test "X$rpathdirs" != "X"; then
14885 if test -n "$acl_hardcode_libdir_separator"; then
14886 alldirs=
14887 for found_dir in $rpathdirs; do
14888 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14889 done
14890 acl_save_libdir="$libdir"
14891 libdir="$alldirs"
14892 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14893 libdir="$acl_save_libdir"
14894 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14895 else
14896 for found_dir in $rpathdirs; do
14897 acl_save_libdir="$libdir"
14898 libdir="$found_dir"
14899 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14900 libdir="$acl_save_libdir"
14901 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14902 done
14903 fi
14904 fi
14905 if test "X$ltrpathdirs" != "X"; then
14906 for found_dir in $ltrpathdirs; do
14907 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14908 done
14909 fi
14910
14911
14912
14913
14914
14915
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14917 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14918 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 gt_save_CPPFLAGS="$CPPFLAGS"
14922 CPPFLAGS="$CPPFLAGS $INCINTL"
14923 gt_save_LIBS="$LIBS"
14924 LIBS="$LIBS $LIBINTL"
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 #include <libintl.h>
14928 $gt_revision_test_code
14929 extern int _nl_msg_cat_cntr;
14930 extern
14931 #ifdef __cplusplus
14932 "C"
14933 #endif
14934 const char *_nl_expand_alias (const char *);
14935 int
14936 main ()
14937 {
14938 bindtextdomain ("", "");
14939 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14940 ;
14941 return 0;
14942 }
14943 _ACEOF
14944 if ac_fn_c_try_link "$LINENO"; then :
14945 eval "$gt_func_gnugettext_libintl=yes"
14946 else
14947 eval "$gt_func_gnugettext_libintl=no"
14948 fi
14949 rm -f core conftest.err conftest.$ac_objext \
14950 conftest$ac_exeext conftest.$ac_ext
14951 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14952 LIBS="$LIBS $LIBICONV"
14953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14955 #include <libintl.h>
14956 $gt_revision_test_code
14957 extern int _nl_msg_cat_cntr;
14958 extern
14959 #ifdef __cplusplus
14960 "C"
14961 #endif
14962 const char *_nl_expand_alias (const char *);
14963 int
14964 main ()
14965 {
14966 bindtextdomain ("", "");
14967 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14968 ;
14969 return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_link "$LINENO"; then :
14973 LIBINTL="$LIBINTL $LIBICONV"
14974 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14975 eval "$gt_func_gnugettext_libintl=yes"
14976
14977 fi
14978 rm -f core conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14980 fi
14981 CPPFLAGS="$gt_save_CPPFLAGS"
14982 LIBS="$gt_save_LIBS"
14983 fi
14984 eval ac_res=\$$gt_func_gnugettext_libintl
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14986 $as_echo "$ac_res" >&6; }
14987 fi
14988
14989 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14990 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14991 && test "$PACKAGE" != gettext-runtime \
14992 && test "$PACKAGE" != gettext-tools; }; then
14993 gt_use_preinstalled_gnugettext=yes
14994 else
14995 LIBINTL=
14996 LTLIBINTL=
14997 INCINTL=
14998 fi
14999
15000
15001
15002 if test -n "$INTL_MACOSX_LIBS"; then
15003 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15004 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15005 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15006 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15007 fi
15008 fi
15009
15010 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15011 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15012
15013 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15014
15015 else
15016 USE_NLS=no
15017 fi
15018 fi
15019
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15021 $as_echo_n "checking whether to use NLS... " >&6; }
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15023 $as_echo "$USE_NLS" >&6; }
15024 if test "$USE_NLS" = "yes"; then
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15026 $as_echo_n "checking where the gettext function comes from... " >&6; }
15027 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15028 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15029 gt_source="external libintl"
15030 else
15031 gt_source="libc"
15032 fi
15033 else
15034 gt_source="included intl directory"
15035 fi
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15037 $as_echo "$gt_source" >&6; }
15038 fi
15039
15040 if test "$USE_NLS" = "yes"; then
15041
15042 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15043 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15045 $as_echo_n "checking how to link with libintl... " >&6; }
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15047 $as_echo "$LIBINTL" >&6; }
15048
15049 for element in $INCINTL; do
15050 haveit=
15051 for x in $CPPFLAGS; do
15052
15053 acl_save_prefix="$prefix"
15054 prefix="$acl_final_prefix"
15055 acl_save_exec_prefix="$exec_prefix"
15056 exec_prefix="$acl_final_exec_prefix"
15057 eval x=\"$x\"
15058 exec_prefix="$acl_save_exec_prefix"
15059 prefix="$acl_save_prefix"
15060
15061 if test "X$x" = "X$element"; then
15062 haveit=yes
15063 break
15064 fi
15065 done
15066 if test -z "$haveit"; then
15067 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15068 fi
15069 done
15070
15071 fi
15072
15073
15074 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15075
15076
15077 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15078
15079 fi
15080
15081 POSUB=po
15082 fi
15083
15084
15085
15086 INTLLIBS="$LIBINTL"
15087
15088
15089
15090
15091
15092
15093
15094
15095 if test "$DATADIRNAME" = ""; then
15096 DATADIRNAME="share"
15097
15098 fi
15099
15100 localepath=`eval eval echo ${localedir}`
15101
15102 cat >>confdefs.h <<_ACEOF
15103 #define PACKAGE_LOCALE_DIR "${localepath}"
15104 _ACEOF
15105
15106
15107
15108 build_hcal=yes
15109
15110 # Check whether --enable-hcal was given.
15111 if test "${enable_hcal+set}" = set; then :
15112 enableval=$enable_hcal; build_hcal=no
15113 else
15114 build_hcal=yes
15115 fi
15116
15117
15118 if test "$build_hcal" = "yes"; then
15119 WITH_HCAL_TRUE=
15120 WITH_HCAL_FALSE='#'
15121 else
15122 WITH_HCAL_TRUE='#'
15123 WITH_HCAL_FALSE=
15124 fi
15125
15126
15127
15128
15129
15130
15131
15132 ac_config_files="$ac_config_files Makefile libhdate.pc po/Makefile.in docs/Makefile docs/man/Makefile docs/man/man1/Makefile docs/man/man3/Makefile src/Makefile examples/Makefile examples/hcal/Makefile examples/bindings/Makefile examples/bindings/pascal/Makefile bindings/Makefile bindings/python/Makefile bindings/perl/Makefile bindings/pascal/Makefile bindings/ruby/Makefile bindings/php/Makefile"
15133
15134 cat >confcache <<\_ACEOF
15135 # This file is a shell script that caches the results of configure
15136 # tests run on this system so they can be shared between configure
15137 # scripts and configure runs, see configure's option --config-cache.
15138 # It is not useful on other systems. If it contains results you don't
15139 # want to keep, you may remove or edit it.
15140 #
15141 # config.status only pays attention to the cache file if you give it
15142 # the --recheck option to rerun configure.
15143 #
15144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15146 # following values.
15147
15148 _ACEOF
15149
15150 # The following way of writing the cache mishandles newlines in values,
15151 # but we know of no workaround that is simple, portable, and efficient.
15152 # So, we kill variables containing newlines.
15153 # Ultrix sh set writes to stderr and can't be redirected directly,
15154 # and sets the high bit in the cache file unless we assign to the vars.
15155 (
15156 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15157 eval ac_val=\$$ac_var
15158 case $ac_val in #(
15159 *${as_nl}*)
15160 case $ac_var in #(
15161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15163 esac
15164 case $ac_var in #(
15165 _ | IFS | as_nl) ;; #(
15166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15167 *) { eval $ac_var=; unset $ac_var;} ;;
15168 esac ;;
15169 esac
15170 done
15171
15172 (set) 2>&1 |
15173 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15174 *${as_nl}ac_space=\ *)
15175 # `set' does not quote correctly, so add quotes: double-quote
15176 # substitution turns \\\\ into \\, and sed turns \\ into \.
15177 sed -n \
15178 "s/'/'\\\\''/g;
15179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15180 ;; #(
15181 *)
15182 # `set' quotes correctly as required by POSIX, so do not add quotes.
15183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15184 ;;
15185 esac |
15186 sort
15187 ) |
15188 sed '
15189 /^ac_cv_env_/b end
15190 t clear
15191 :clear
15192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15193 t end
15194 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15195 :end' >>confcache
15196 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15197 if test -w "$cache_file"; then
15198 if test "x$cache_file" != "x/dev/null"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15200 $as_echo "$as_me: updating cache $cache_file" >&6;}
15201 if test ! -f "$cache_file" || test -h "$cache_file"; then
15202 cat confcache >"$cache_file"
15203 else
15204 case $cache_file in #(
15205 */* | ?:*)
15206 mv -f confcache "$cache_file"$$ &&
15207 mv -f "$cache_file"$$ "$cache_file" ;; #(
15208 *)
15209 mv -f confcache "$cache_file" ;;
15210 esac
15211 fi
15212 fi
15213 else
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15215 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15216 fi
15217 fi
15218 rm -f confcache
15219
15220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15221 # Let make expand exec_prefix.
15222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15223
15224 # Transform confdefs.h into DEFS.
15225 # Protect against shell expansion while executing Makefile rules.
15226 # Protect against Makefile macro expansion.
15227 #
15228 # If the first sed substitution is executed (which looks for macros that
15229 # take arguments), then branch to the quote section. Otherwise,
15230 # look for a macro that doesn't take arguments.
15231 ac_script='
15232 :mline
15233 /\\$/{
15234 N
15235 s,\\\n,,
15236 b mline
15237 }
15238 t clear
15239 :clear
15240 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15241 t quote
15242 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15243 t quote
15244 b any
15245 :quote
15246 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15247 s/\[/\\&/g
15248 s/\]/\\&/g
15249 s/\$/$$/g
15250 H
15251 :any
15252 ${
15253 g
15254 s/^\n//
15255 s/\n/ /g
15256 p
15257 }
15258 '
15259 DEFS=`sed -n "$ac_script" confdefs.h`
15260
15261
15262 ac_libobjs=
15263 ac_ltlibobjs=
15264 U=
15265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15266 # 1. Remove the extension, and $U if already installed.
15267 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15268 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15269 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15270 # will be set to the directory where LIBOBJS objects are built.
15271 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15272 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15273 done
15274 LIBOBJS=$ac_libobjs
15275
15276 LTLIBOBJS=$ac_ltlibobjs
15277
15278
15279 if test -n "$EXEEXT"; then
15280 am__EXEEXT_TRUE=
15281 am__EXEEXT_FALSE='#'
15282 else
15283 am__EXEEXT_TRUE='#'
15284 am__EXEEXT_FALSE=
15285 fi
15286
15287 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15288 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15290 fi
15291 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15292 as_fn_error $? "conditional \"AMDEP\" was never defined.
15293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15294 fi
15295 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15296 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15298 fi
15299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15300 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15302 fi
15303 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15304 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15306 fi
15307 if test -z "${WITH_GPC_FPC_TRUE}" && test -z "${WITH_GPC_FPC_FALSE}"; then
15308 as_fn_error $? "conditional \"WITH_GPC_FPC\" was never defined.
15309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15310 fi
15311 if test -z "${WITH_GPC_TRUE}" && test -z "${WITH_GPC_FALSE}"; then
15312 as_fn_error $? "conditional \"WITH_GPC\" was never defined.
15313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314 fi
15315 if test -z "${WITH_FPC_TRUE}" && test -z "${WITH_FPC_FALSE}"; then
15316 as_fn_error $? "conditional \"WITH_FPC\" was never defined.
15317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15318 fi
15319 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
15320 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
15321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15322 fi
15323 if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
15324 as_fn_error $? "conditional \"WITH_RUBY\" was never defined.
15325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15326 fi
15327 if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
15328 as_fn_error $? "conditional \"WITH_PHP\" was never defined.
15329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330 fi
15331 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
15332 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
15333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 fi
15335 if test -z "${WITH_HCAL_TRUE}" && test -z "${WITH_HCAL_FALSE}"; then
15336 as_fn_error $? "conditional \"WITH_HCAL\" was never defined.
15337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338 fi
15339
15340 : "${CONFIG_STATUS=./config.status}"
15341 ac_write_fail=0
15342 ac_clean_files_save=$ac_clean_files
15343 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15345 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15346 as_write_fail=0
15347 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15348 #! $SHELL
15349 # Generated by $as_me.
15350 # Run this file to recreate the current configuration.
15351 # Compiler output produced by configure, useful for debugging
15352 # configure, is in config.log if it exists.
15353
15354 debug=false
15355 ac_cs_recheck=false
15356 ac_cs_silent=false
15357
15358 SHELL=\${CONFIG_SHELL-$SHELL}
15359 export SHELL
15360 _ASEOF
15361 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15362 ## -------------------- ##
15363 ## M4sh Initialization. ##
15364 ## -------------------- ##
15365
15366 # Be more Bourne compatible
15367 DUALCASE=1; export DUALCASE # for MKS sh
15368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15369 emulate sh
15370 NULLCMD=:
15371 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15372 # is contrary to our usage. Disable this feature.
15373 alias -g '${1+"$@"}'='"$@"'
15374 setopt NO_GLOB_SUBST
15375 else
15376 case `(set -o) 2>/dev/null` in #(
15377 *posix*) :
15378 set -o posix ;; #(
15379 *) :
15380 ;;
15381 esac
15382 fi
15383
15384
15385 as_nl='
15386 '
15387 export as_nl
15388 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15389 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15390 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15391 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15392 # Prefer a ksh shell builtin over an external printf program on Solaris,
15393 # but without wasting forks for bash or zsh.
15394 if test -z "$BASH_VERSION$ZSH_VERSION" \
15395 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15396 as_echo='print -r --'
15397 as_echo_n='print -rn --'
15398 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15399 as_echo='printf %s\n'
15400 as_echo_n='printf %s'
15401 else
15402 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15403 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15404 as_echo_n='/usr/ucb/echo -n'
15405 else
15406 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15407 as_echo_n_body='eval
15408 arg=$1;
15409 case $arg in #(
15410 *"$as_nl"*)
15411 expr "X$arg" : "X\\(.*\\)$as_nl";
15412 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15413 esac;
15414 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15415 '
15416 export as_echo_n_body
15417 as_echo_n='sh -c $as_echo_n_body as_echo'
15418 fi
15419 export as_echo_body
15420 as_echo='sh -c $as_echo_body as_echo'
15421 fi
15422
15423 # The user is always right.
15424 if test "${PATH_SEPARATOR+set}" != set; then
15425 PATH_SEPARATOR=:
15426 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15427 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15428 PATH_SEPARATOR=';'
15429 }
15430 fi
15431
15432
15433 # IFS
15434 # We need space, tab and new line, in precisely that order. Quoting is
15435 # there to prevent editors from complaining about space-tab.
15436 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15437 # splitting by setting IFS to empty value.)
15438 IFS=" "" $as_nl"
15439
15440 # Find who we are. Look in the path if we contain no directory separator.
15441 as_myself=
15442 case $0 in #((
15443 *[\\/]* ) as_myself=$0 ;;
15444 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15445 for as_dir in $PATH
15446 do
15447 IFS=$as_save_IFS
15448 test -z "$as_dir" && as_dir=.
15449 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15450 done
15451 IFS=$as_save_IFS
15452
15453 ;;
15454 esac
15455 # We did not find ourselves, most probably we were run as `sh COMMAND'
15456 # in which case we are not to be found in the path.
15457 if test "x$as_myself" = x; then
15458 as_myself=$0
15459 fi
15460 if test ! -f "$as_myself"; then
15461 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15462 exit 1
15463 fi
15464
15465 # Unset variables that we do not need and which cause bugs (e.g. in
15466 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15467 # suppresses any "Segmentation fault" message there. '((' could
15468 # trigger a bug in pdksh 5.2.14.
15469 for as_var in BASH_ENV ENV MAIL MAILPATH
15470 do eval test x\${$as_var+set} = xset \
15471 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15472 done
15473 PS1='$ '
15474 PS2='> '
15475 PS4='+ '
15476
15477 # NLS nuisances.
15478 LC_ALL=C
15479 export LC_ALL
15480 LANGUAGE=C
15481 export LANGUAGE
15482
15483 # CDPATH.
15484 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15485
15486
15487 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15488 # ----------------------------------------
15489 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15490 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15491 # script with STATUS, using 1 if that was 0.
15492 as_fn_error ()
15493 {
15494 as_status=$1; test $as_status -eq 0 && as_status=1
15495 if test "$4"; then
15496 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15497 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15498 fi
15499 $as_echo "$as_me: error: $2" >&2
15500 as_fn_exit $as_status
15501 } # as_fn_error
15502
15503
15504 # as_fn_set_status STATUS
15505 # -----------------------
15506 # Set $? to STATUS, without forking.
15507 as_fn_set_status ()
15508 {
15509 return $1
15510 } # as_fn_set_status
15511
15512 # as_fn_exit STATUS
15513 # -----------------
15514 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15515 as_fn_exit ()
15516 {
15517 set +e
15518 as_fn_set_status $1
15519 exit $1
15520 } # as_fn_exit
15521
15522 # as_fn_unset VAR
15523 # ---------------
15524 # Portably unset VAR.
15525 as_fn_unset ()
15526 {
15527 { eval $1=; unset $1;}
15528 }
15529 as_unset=as_fn_unset
15530 # as_fn_append VAR VALUE
15531 # ----------------------
15532 # Append the text in VALUE to the end of the definition contained in VAR. Take
15533 # advantage of any shell optimizations that allow amortized linear growth over
15534 # repeated appends, instead of the typical quadratic growth present in naive
15535 # implementations.
15536 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15537 eval 'as_fn_append ()
15538 {
15539 eval $1+=\$2
15540 }'
15541 else
15542 as_fn_append ()
15543 {
15544 eval $1=\$$1\$2
15545 }
15546 fi # as_fn_append
15547
15548 # as_fn_arith ARG...
15549 # ------------------
15550 # Perform arithmetic evaluation on the ARGs, and store the result in the
15551 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15552 # must be portable across $(()) and expr.
15553 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15554 eval 'as_fn_arith ()
15555 {
15556 as_val=$(( $* ))
15557 }'
15558 else
15559 as_fn_arith ()
15560 {
15561 as_val=`expr "$@" || test $? -eq 1`
15562 }
15563 fi # as_fn_arith
15564
15565
15566 if expr a : '\(a\)' >/dev/null 2>&1 &&
15567 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15568 as_expr=expr
15569 else
15570 as_expr=false
15571 fi
15572
15573 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15574 as_basename=basename
15575 else
15576 as_basename=false
15577 fi
15578
15579 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15580 as_dirname=dirname
15581 else
15582 as_dirname=false
15583 fi
15584
15585 as_me=`$as_basename -- "$0" ||
15586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15587 X"$0" : 'X\(//\)$' \| \
15588 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15589 $as_echo X/"$0" |
15590 sed '/^.*\/\([^/][^/]*\)\/*$/{
15591 s//\1/
15592 q
15593 }
15594 /^X\/\(\/\/\)$/{
15595 s//\1/
15596 q
15597 }
15598 /^X\/\(\/\).*/{
15599 s//\1/
15600 q
15601 }
15602 s/.*/./; q'`
15603
15604 # Avoid depending upon Character Ranges.
15605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15608 as_cr_digits='0123456789'
15609 as_cr_alnum=$as_cr_Letters$as_cr_digits
15610
15611 ECHO_C= ECHO_N= ECHO_T=
15612 case `echo -n x` in #(((((
15613 -n*)
15614 case `echo 'xy\c'` in
15615 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15616 xy) ECHO_C='\c';;
15617 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15618 ECHO_T=' ';;
15619 esac;;
15620 *)
15621 ECHO_N='-n';;
15622 esac
15623
15624 rm -f conf$$ conf$$.exe conf$$.file
15625 if test -d conf$$.dir; then
15626 rm -f conf$$.dir/conf$$.file
15627 else
15628 rm -f conf$$.dir
15629 mkdir conf$$.dir 2>/dev/null
15630 fi
15631 if (echo >conf$$.file) 2>/dev/null; then
15632 if ln -s conf$$.file conf$$ 2>/dev/null; then
15633 as_ln_s='ln -s'
15634 # ... but there are two gotchas:
15635 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15636 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15637 # In both cases, we have to default to `cp -pR'.
15638 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15639 as_ln_s='cp -pR'
15640 elif ln conf$$.file conf$$ 2>/dev/null; then
15641 as_ln_s=ln
15642 else
15643 as_ln_s='cp -pR'
15644 fi
15645 else
15646 as_ln_s='cp -pR'
15647 fi
15648 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15649 rmdir conf$$.dir 2>/dev/null
15650
15651
15652 # as_fn_mkdir_p
15653 # -------------
15654 # Create "$as_dir" as a directory, including parents if necessary.
15655 as_fn_mkdir_p ()
15656 {
15657
15658 case $as_dir in #(
15659 -*) as_dir=./$as_dir;;
15660 esac
15661 test -d "$as_dir" || eval $as_mkdir_p || {
15662 as_dirs=
15663 while :; do
15664 case $as_dir in #(
15665 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15666 *) as_qdir=$as_dir;;
15667 esac
15668 as_dirs="'$as_qdir' $as_dirs"
15669 as_dir=`$as_dirname -- "$as_dir" ||
15670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15671 X"$as_dir" : 'X\(//\)[^/]' \| \
15672 X"$as_dir" : 'X\(//\)$' \| \
15673 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15674 $as_echo X"$as_dir" |
15675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15676 s//\1/
15677 q
15678 }
15679 /^X\(\/\/\)[^/].*/{
15680 s//\1/
15681 q
15682 }
15683 /^X\(\/\/\)$/{
15684 s//\1/
15685 q
15686 }
15687 /^X\(\/\).*/{
15688 s//\1/
15689 q
15690 }
15691 s/.*/./; q'`
15692 test -d "$as_dir" && break
15693 done
15694 test -z "$as_dirs" || eval "mkdir $as_dirs"
15695 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15696
15697
15698 } # as_fn_mkdir_p
15699 if mkdir -p . 2>/dev/null; then
15700 as_mkdir_p='mkdir -p "$as_dir"'
15701 else
15702 test -d ./-p && rmdir ./-p
15703 as_mkdir_p=false
15704 fi
15705
15706
15707 # as_fn_executable_p FILE
15708 # -----------------------
15709 # Test if FILE is an executable regular file.
15710 as_fn_executable_p ()
15711 {
15712 test -f "$1" && test -x "$1"
15713 } # as_fn_executable_p
15714 as_test_x='test -x'
15715 as_executable_p=as_fn_executable_p
15716
15717 # Sed expression to map a string onto a valid CPP name.
15718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15719
15720 # Sed expression to map a string onto a valid variable name.
15721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15722
15723
15724 exec 6>&1
15725 ## ----------------------------------- ##
15726 ## Main body of $CONFIG_STATUS script. ##
15727 ## ----------------------------------- ##
15728 _ASEOF
15729 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15730
15731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15732 # Save the log message, to keep $0 and so on meaningful, and to
15733 # report actual input values of CONFIG_FILES etc. instead of their
15734 # values after options handling.
15735 ac_log="
15736 This file was extended by $as_me, which was
15737 generated by GNU Autoconf 2.69. Invocation command line was
15738
15739 CONFIG_FILES = $CONFIG_FILES
15740 CONFIG_HEADERS = $CONFIG_HEADERS
15741 CONFIG_LINKS = $CONFIG_LINKS
15742 CONFIG_COMMANDS = $CONFIG_COMMANDS
15743 $ $0 $@
15744
15745 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15746 "
15747
15748 _ACEOF
15749
15750 case $ac_config_files in *"
15751 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15752 esac
15753
15754
15755
15756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15757 # Files that config.status was made for.
15758 config_files="$ac_config_files"
15759 config_commands="$ac_config_commands"
15760
15761 _ACEOF
15762
15763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15764 ac_cs_usage="\
15765 \`$as_me' instantiates files and other configuration actions
15766 from templates according to the current configuration. Unless the files
15767 and actions are specified as TAGs, all are instantiated by default.
15768
15769 Usage: $0 [OPTION]... [TAG]...
15770
15771 -h, --help print this help, then exit
15772 -V, --version print version number and configuration settings, then exit
15773 --config print configuration, then exit
15774 -q, --quiet, --silent
15775 do not print progress messages
15776 -d, --debug don't remove temporary files
15777 --recheck update $as_me by reconfiguring in the same conditions
15778 --file=FILE[:TEMPLATE]
15779 instantiate the configuration file FILE
15780
15781 Configuration files:
15782 $config_files
15783
15784 Configuration commands:
15785 $config_commands
15786
15787 Report bugs to the package provider."
15788
15789 _ACEOF
15790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15791 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15792 ac_cs_version="\\
15793 config.status
15794 configured by $0, generated by GNU Autoconf 2.69,
15795 with options \\"\$ac_cs_config\\"
15796
15797 Copyright (C) 2012 Free Software Foundation, Inc.
15798 This config.status script is free software; the Free Software Foundation
15799 gives unlimited permission to copy, distribute and modify it."
15800
15801 ac_pwd='$ac_pwd'
15802 srcdir='$srcdir'
15803 INSTALL='$INSTALL'
15804 MKDIR_P='$MKDIR_P'
15805 AWK='$AWK'
15806 test -n "\$AWK" || AWK=awk
15807 _ACEOF
15808
15809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810 # The default lists apply if the user does not specify any file.
15811 ac_need_defaults=:
15812 while test $# != 0
15813 do
15814 case $1 in
15815 --*=?*)
15816 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15817 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15818 ac_shift=:
15819 ;;
15820 --*=)
15821 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15822 ac_optarg=
15823 ac_shift=:
15824 ;;
15825 *)
15826 ac_option=$1
15827 ac_optarg=$2
15828 ac_shift=shift
15829 ;;
15830 esac
15831
15832 case $ac_option in
15833 # Handling of the options.
15834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15835 ac_cs_recheck=: ;;
15836 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15837 $as_echo "$ac_cs_version"; exit ;;
15838 --config | --confi | --conf | --con | --co | --c )
15839 $as_echo "$ac_cs_config"; exit ;;
15840 --debug | --debu | --deb | --de | --d | -d )
15841 debug=: ;;
15842 --file | --fil | --fi | --f )
15843 $ac_shift
15844 case $ac_optarg in
15845 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15846 '') as_fn_error $? "missing file argument" ;;
15847 esac
15848 as_fn_append CONFIG_FILES " '$ac_optarg'"
15849 ac_need_defaults=false;;
15850 --he | --h | --help | --hel | -h )
15851 $as_echo "$ac_cs_usage"; exit ;;
15852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15854 ac_cs_silent=: ;;
15855
15856 # This is an error.
15857 -*) as_fn_error $? "unrecognized option: \`$1'
15858 Try \`$0 --help' for more information." ;;
15859
15860 *) as_fn_append ac_config_targets " $1"
15861 ac_need_defaults=false ;;
15862
15863 esac
15864 shift
15865 done
15866
15867 ac_configure_extra_args=
15868
15869 if $ac_cs_silent; then
15870 exec 6>/dev/null
15871 ac_configure_extra_args="$ac_configure_extra_args --silent"
15872 fi
15873
15874 _ACEOF
15875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15876 if \$ac_cs_recheck; then
15877 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15878 shift
15879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15880 CONFIG_SHELL='$SHELL'
15881 export CONFIG_SHELL
15882 exec "\$@"
15883 fi
15884
15885 _ACEOF
15886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15887 exec 5>>config.log
15888 {
15889 echo
15890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15891 ## Running $as_me. ##
15892 _ASBOX
15893 $as_echo "$ac_log"
15894 } >&5
15895
15896 _ACEOF
15897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15898 #
15899 # INIT-COMMANDS
15900 #
15901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15902
15903
15904 # The HP-UX ksh and POSIX shell print the target directory to stdout
15905 # if CDPATH is set.
15906 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15907
15908 sed_quote_subst='$sed_quote_subst'
15909 double_quote_subst='$double_quote_subst'
15910 delay_variable_subst='$delay_variable_subst'
15911 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15912 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15913 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15914 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15915 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15916 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15917 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15918 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15919 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15920 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15921 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15922 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15923 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15924 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15925 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15926 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15927 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15928 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15929 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15930 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15931 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15932 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15933 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15934 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15935 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15936 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15937 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15938 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15939 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15940 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15941 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15942 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15943 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15944 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15945 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15946 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15947 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15948 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15949 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15950 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15951 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15952 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15953 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15954 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15955 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15956 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15957 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15958 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15959 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15960 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15961 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15962 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15963 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15964 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15965 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15966 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15967 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"`'
15968 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15969 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15970 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15971 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15972 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15973 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15974 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15975 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15976 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15977 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15978 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15979 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15980 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15981 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15982 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15983 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15984 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15985 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15986 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15987 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15988 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15989 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15990 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15991 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15992 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15993 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15994 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15995 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15996 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15997 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15998 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15999 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16000 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16001 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16002 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16003 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16004 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16005 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16006 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16007 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16008 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16009 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16010 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16011 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16012 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16013 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16014 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16015 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16016 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16017 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16018 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16019 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16020 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16021 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16022 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16023 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16024 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16025 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16026 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16027 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16028 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16029 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16030 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16031 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16032 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16033 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16034 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16035 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16036 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16037 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16038 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16039 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16040 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16041
16042 LTCC='$LTCC'
16043 LTCFLAGS='$LTCFLAGS'
16044 compiler='$compiler_DEFAULT'
16045
16046 # A function that is used when there is no print builtin or printf.
16047 func_fallback_echo ()
16048 {
16049 eval 'cat <<_LTECHO_EOF
16050 \$1
16051 _LTECHO_EOF'
16052 }
16053
16054 # Quote evaled strings.
16055 for var in SHELL \
16056 ECHO \
16057 PATH_SEPARATOR \
16058 SED \
16059 GREP \
16060 EGREP \
16061 FGREP \
16062 LD \
16063 NM \
16064 LN_S \
16065 lt_SP2NL \
16066 lt_NL2SP \
16067 reload_flag \
16068 OBJDUMP \
16069 deplibs_check_method \
16070 file_magic_cmd \
16071 file_magic_glob \
16072 want_nocaseglob \
16073 DLLTOOL \
16074 sharedlib_from_linklib_cmd \
16075 AR \
16076 AR_FLAGS \
16077 archiver_list_spec \
16078 STRIP \
16079 RANLIB \
16080 CC \
16081 CFLAGS \
16082 compiler \
16083 lt_cv_sys_global_symbol_pipe \
16084 lt_cv_sys_global_symbol_to_cdecl \
16085 lt_cv_sys_global_symbol_to_c_name_address \
16086 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16087 nm_file_list_spec \
16088 lt_prog_compiler_no_builtin_flag \
16089 lt_prog_compiler_pic \
16090 lt_prog_compiler_wl \
16091 lt_prog_compiler_static \
16092 lt_cv_prog_compiler_c_o \
16093 need_locks \
16094 MANIFEST_TOOL \
16095 DSYMUTIL \
16096 NMEDIT \
16097 LIPO \
16098 OTOOL \
16099 OTOOL64 \
16100 shrext_cmds \
16101 export_dynamic_flag_spec \
16102 whole_archive_flag_spec \
16103 compiler_needs_object \
16104 with_gnu_ld \
16105 allow_undefined_flag \
16106 no_undefined_flag \
16107 hardcode_libdir_flag_spec \
16108 hardcode_libdir_separator \
16109 exclude_expsyms \
16110 include_expsyms \
16111 file_list_spec \
16112 variables_saved_for_relink \
16113 libname_spec \
16114 library_names_spec \
16115 soname_spec \
16116 install_override_mode \
16117 finish_eval \
16118 old_striplib \
16119 striplib; do
16120 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16121 *[\\\\\\\`\\"\\\$]*)
16122 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16123 ;;
16124 *)
16125 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16126 ;;
16127 esac
16128 done
16129
16130 # Double-quote double-evaled strings.
16131 for var in reload_cmds \
16132 old_postinstall_cmds \
16133 old_postuninstall_cmds \
16134 old_archive_cmds \
16135 extract_expsyms_cmds \
16136 old_archive_from_new_cmds \
16137 old_archive_from_expsyms_cmds \
16138 archive_cmds \
16139 archive_expsym_cmds \
16140 module_cmds \
16141 module_expsym_cmds \
16142 export_symbols_cmds \
16143 prelink_cmds \
16144 postlink_cmds \
16145 postinstall_cmds \
16146 postuninstall_cmds \
16147 finish_cmds \
16148 sys_lib_search_path_spec \
16149 sys_lib_dlsearch_path_spec; do
16150 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16151 *[\\\\\\\`\\"\\\$]*)
16152 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16153 ;;
16154 *)
16155 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16156 ;;
16157 esac
16158 done
16159
16160 ac_aux_dir='$ac_aux_dir'
16161 xsi_shell='$xsi_shell'
16162 lt_shell_append='$lt_shell_append'
16163
16164 # See if we are running on zsh, and set the options which allow our
16165 # commands through without removal of \ escapes INIT.
16166 if test -n "\${ZSH_VERSION+set}" ; then
16167 setopt NO_GLOB_SUBST
16168 fi
16169
16170
16171 PACKAGE='$PACKAGE'
16172 VERSION='$VERSION'
16173 TIMESTAMP='$TIMESTAMP'
16174 RM='$RM'
16175 ofile='$ofile'
16176
16177
16178
16179 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16180 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16181 # from automake < 1.5.
16182 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16183 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16184 LINGUAS="${LINGUAS-%UNSET%}"
16185
16186
16187 _ACEOF
16188
16189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16190
16191 # Handling of arguments.
16192 for ac_config_target in $ac_config_targets
16193 do
16194 case $ac_config_target in
16195 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16196 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16197 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16198 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16199 "libhdate.pc") CONFIG_FILES="$CONFIG_FILES libhdate.pc" ;;
16200 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16201 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16202 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16203 "docs/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/man1/Makefile" ;;
16204 "docs/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/man3/Makefile" ;;
16205 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16206 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16207 "examples/hcal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/hcal/Makefile" ;;
16208 "examples/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/Makefile" ;;
16209 "examples/bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/pascal/Makefile" ;;
16210 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
16211 "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
16212 "bindings/perl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/perl/Makefile" ;;
16213 "bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/pascal/Makefile" ;;
16214 "bindings/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/ruby/Makefile" ;;
16215 "bindings/php/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/php/Makefile" ;;
16216
16217 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16218 esac
16219 done
16220
16221
16222 # If the user did not use the arguments to specify the items to instantiate,
16223 # then the envvar interface is used. Set only those that are not.
16224 # We use the long form for the default assignment because of an extremely
16225 # bizarre bug on SunOS 4.1.3.
16226 if $ac_need_defaults; then
16227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16229 fi
16230
16231 # Have a temporary directory for convenience. Make it in the build tree
16232 # simply because there is no reason against having it here, and in addition,
16233 # creating and moving files from /tmp can sometimes cause problems.
16234 # Hook for its removal unless debugging.
16235 # Note that there is a small window in which the directory will not be cleaned:
16236 # after its creation but before its name has been assigned to `$tmp'.
16237 $debug ||
16238 {
16239 tmp= ac_tmp=
16240 trap 'exit_status=$?
16241 : "${ac_tmp:=$tmp}"
16242 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16243 ' 0
16244 trap 'as_fn_exit 1' 1 2 13 15
16245 }
16246 # Create a (secure) tmp directory for tmp files.
16247
16248 {
16249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16250 test -d "$tmp"
16251 } ||
16252 {
16253 tmp=./conf$$-$RANDOM
16254 (umask 077 && mkdir "$tmp")
16255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16256 ac_tmp=$tmp
16257
16258 # Set up the scripts for CONFIG_FILES section.
16259 # No need to generate them if there are no CONFIG_FILES.
16260 # This happens for instance with `./config.status config.h'.
16261 if test -n "$CONFIG_FILES"; then
16262
16263
16264 ac_cr=`echo X | tr X '\015'`
16265 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16266 # But we know of no other shell where ac_cr would be empty at this
16267 # point, so we can use a bashism as a fallback.
16268 if test "x$ac_cr" = x; then
16269 eval ac_cr=\$\'\\r\'
16270 fi
16271 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16272 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16273 ac_cs_awk_cr='\\r'
16274 else
16275 ac_cs_awk_cr=$ac_cr
16276 fi
16277
16278 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16279 _ACEOF
16280
16281
16282 {
16283 echo "cat >conf$$subs.awk <<_ACEOF" &&
16284 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16285 echo "_ACEOF"
16286 } >conf$$subs.sh ||
16287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16288 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16289 ac_delim='%!_!# '
16290 for ac_last_try in false false false false false :; do
16291 . ./conf$$subs.sh ||
16292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16293
16294 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16295 if test $ac_delim_n = $ac_delim_num; then
16296 break
16297 elif $ac_last_try; then
16298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16299 else
16300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16301 fi
16302 done
16303 rm -f conf$$subs.sh
16304
16305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16306 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16307 _ACEOF
16308 sed -n '
16309 h
16310 s/^/S["/; s/!.*/"]=/
16311 p
16312 g
16313 s/^[^!]*!//
16314 :repl
16315 t repl
16316 s/'"$ac_delim"'$//
16317 t delim
16318 :nl
16319 h
16320 s/\(.\{148\}\)..*/\1/
16321 t more1
16322 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16323 p
16324 n
16325 b repl
16326 :more1
16327 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16328 p
16329 g
16330 s/.\{148\}//
16331 t nl
16332 :delim
16333 h
16334 s/\(.\{148\}\)..*/\1/
16335 t more2
16336 s/["\\]/\\&/g; s/^/"/; s/$/"/
16337 p
16338 b
16339 :more2
16340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16341 p
16342 g
16343 s/.\{148\}//
16344 t delim
16345 ' <conf$$subs.awk | sed '
16346 /^[^""]/{
16347 N
16348 s/\n//
16349 }
16350 ' >>$CONFIG_STATUS || ac_write_fail=1
16351 rm -f conf$$subs.awk
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 _ACAWK
16354 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16355 for (key in S) S_is_set[key] = 1
16356 FS = ""
16357
16358 }
16359 {
16360 line = $ 0
16361 nfields = split(line, field, "@")
16362 substed = 0
16363 len = length(field[1])
16364 for (i = 2; i < nfields; i++) {
16365 key = field[i]
16366 keylen = length(key)
16367 if (S_is_set[key]) {
16368 value = S[key]
16369 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16370 len += length(value) + length(field[++i])
16371 substed = 1
16372 } else
16373 len += 1 + keylen
16374 }
16375
16376 print line
16377 }
16378
16379 _ACAWK
16380 _ACEOF
16381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16382 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16383 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16384 else
16385 cat
16386 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16387 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16388 _ACEOF
16389
16390 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16391 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16392 # trailing colons and then remove the whole line if VPATH becomes empty
16393 # (actually we leave an empty line to preserve line numbers).
16394 if test "x$srcdir" = x.; then
16395 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16396 h
16397 s///
16398 s/^/:/
16399 s/[ ]*$/:/
16400 s/:\$(srcdir):/:/g
16401 s/:\${srcdir}:/:/g
16402 s/:@srcdir@:/:/g
16403 s/^:*//
16404 s/:*$//
16405 x
16406 s/\(=[ ]*\).*/\1/
16407 G
16408 s/\n//
16409 s/^[^=]*=[ ]*$//
16410 }'
16411 fi
16412
16413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16414 fi # test -n "$CONFIG_FILES"
16415
16416
16417 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16418 shift
16419 for ac_tag
16420 do
16421 case $ac_tag in
16422 :[FHLC]) ac_mode=$ac_tag; continue;;
16423 esac
16424 case $ac_mode$ac_tag in
16425 :[FHL]*:*);;
16426 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16427 :[FH]-) ac_tag=-:-;;
16428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16429 esac
16430 ac_save_IFS=$IFS
16431 IFS=:
16432 set x $ac_tag
16433 IFS=$ac_save_IFS
16434 shift
16435 ac_file=$1
16436 shift
16437
16438 case $ac_mode in
16439 :L) ac_source=$1;;
16440 :[FH])
16441 ac_file_inputs=
16442 for ac_f
16443 do
16444 case $ac_f in
16445 -) ac_f="$ac_tmp/stdin";;
16446 *) # Look for the file first in the build tree, then in the source tree
16447 # (if the path is not absolute). The absolute path cannot be DOS-style,
16448 # because $ac_f cannot contain `:'.
16449 test -f "$ac_f" ||
16450 case $ac_f in
16451 [\\/$]*) false;;
16452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16453 esac ||
16454 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16455 esac
16456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16457 as_fn_append ac_file_inputs " '$ac_f'"
16458 done
16459
16460 # Let's still pretend it is `configure' which instantiates (i.e., don't
16461 # use $as_me), people would be surprised to read:
16462 # /* config.h. Generated by config.status. */
16463 configure_input='Generated from '`
16464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16465 `' by configure.'
16466 if test x"$ac_file" != x-; then
16467 configure_input="$ac_file. $configure_input"
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16469 $as_echo "$as_me: creating $ac_file" >&6;}
16470 fi
16471 # Neutralize special characters interpreted by sed in replacement strings.
16472 case $configure_input in #(
16473 *\&* | *\|* | *\\* )
16474 ac_sed_conf_input=`$as_echo "$configure_input" |
16475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16476 *) ac_sed_conf_input=$configure_input;;
16477 esac
16478
16479 case $ac_tag in
16480 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16482 esac
16483 ;;
16484 esac
16485
16486 ac_dir=`$as_dirname -- "$ac_file" ||
16487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16488 X"$ac_file" : 'X\(//\)[^/]' \| \
16489 X"$ac_file" : 'X\(//\)$' \| \
16490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16491 $as_echo X"$ac_file" |
16492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16493 s//\1/
16494 q
16495 }
16496 /^X\(\/\/\)[^/].*/{
16497 s//\1/
16498 q
16499 }
16500 /^X\(\/\/\)$/{
16501 s//\1/
16502 q
16503 }
16504 /^X\(\/\).*/{
16505 s//\1/
16506 q
16507 }
16508 s/.*/./; q'`
16509 as_dir="$ac_dir"; as_fn_mkdir_p
16510 ac_builddir=.
16511
16512 case "$ac_dir" in
16513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16514 *)
16515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16516 # A ".." for each directory in $ac_dir_suffix.
16517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16518 case $ac_top_builddir_sub in
16519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16521 esac ;;
16522 esac
16523 ac_abs_top_builddir=$ac_pwd
16524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16525 # for backward compatibility:
16526 ac_top_builddir=$ac_top_build_prefix
16527
16528 case $srcdir in
16529 .) # We are building in place.
16530 ac_srcdir=.
16531 ac_top_srcdir=$ac_top_builddir_sub
16532 ac_abs_top_srcdir=$ac_pwd ;;
16533 [\\/]* | ?:[\\/]* ) # Absolute name.
16534 ac_srcdir=$srcdir$ac_dir_suffix;
16535 ac_top_srcdir=$srcdir
16536 ac_abs_top_srcdir=$srcdir ;;
16537 *) # Relative name.
16538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16539 ac_top_srcdir=$ac_top_build_prefix$srcdir
16540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16541 esac
16542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16543
16544
16545 case $ac_mode in
16546 :F)
16547 #
16548 # CONFIG_FILE
16549 #
16550
16551 case $INSTALL in
16552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16554 esac
16555 ac_MKDIR_P=$MKDIR_P
16556 case $MKDIR_P in
16557 [\\/$]* | ?:[\\/]* ) ;;
16558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16559 esac
16560 _ACEOF
16561
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 # If the template does not know about datarootdir, expand it.
16564 # FIXME: This hack should be removed a few years after 2.60.
16565 ac_datarootdir_hack=; ac_datarootdir_seen=
16566 ac_sed_dataroot='
16567 /datarootdir/ {
16568 p
16569 q
16570 }
16571 /@datadir@/p
16572 /@docdir@/p
16573 /@infodir@/p
16574 /@localedir@/p
16575 /@mandir@/p'
16576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16577 *datarootdir*) ac_datarootdir_seen=yes;;
16578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16581 _ACEOF
16582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16583 ac_datarootdir_hack='
16584 s&@datadir@&$datadir&g
16585 s&@docdir@&$docdir&g
16586 s&@infodir@&$infodir&g
16587 s&@localedir@&$localedir&g
16588 s&@mandir@&$mandir&g
16589 s&\\\${datarootdir}&$datarootdir&g' ;;
16590 esac
16591 _ACEOF
16592
16593 # Neutralize VPATH when `$srcdir' = `.'.
16594 # Shell code in configure.ac might set extrasub.
16595 # FIXME: do we really want to maintain this feature?
16596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16597 ac_sed_extra="$ac_vpsub
16598 $extrasub
16599 _ACEOF
16600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601 :t
16602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16603 s|@configure_input@|$ac_sed_conf_input|;t t
16604 s&@top_builddir@&$ac_top_builddir_sub&;t t
16605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16606 s&@srcdir@&$ac_srcdir&;t t
16607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16608 s&@top_srcdir@&$ac_top_srcdir&;t t
16609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16610 s&@builddir@&$ac_builddir&;t t
16611 s&@abs_builddir@&$ac_abs_builddir&;t t
16612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16613 s&@INSTALL@&$ac_INSTALL&;t t
16614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16615 $ac_datarootdir_hack
16616 "
16617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16618 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16619
16620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16621 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16623 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16625 which seems to be undefined. Please make sure it is defined" >&5
16626 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16627 which seems to be undefined. Please make sure it is defined" >&2;}
16628
16629 rm -f "$ac_tmp/stdin"
16630 case $ac_file in
16631 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16632 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16633 esac \
16634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16635 ;;
16636
16637
16638 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16639 $as_echo "$as_me: executing $ac_file commands" >&6;}
16640 ;;
16641 esac
16642
16643
16644 case $ac_file$ac_mode in
16645 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16646 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16647 # are listed without --file. Let's play safe and only enable the eval
16648 # if we detect the quoting.
16649 case $CONFIG_FILES in
16650 *\'*) eval set x "$CONFIG_FILES" ;;
16651 *) set x $CONFIG_FILES ;;
16652 esac
16653 shift
16654 for mf
16655 do
16656 # Strip MF so we end up with the name of the file.
16657 mf=`echo "$mf" | sed -e 's/:.*$//'`
16658 # Check whether this is an Automake generated Makefile or not.
16659 # We used to match only the files named `Makefile.in', but
16660 # some people rename them; so instead we look at the file content.
16661 # Grep'ing the first line is not enough: some people post-process
16662 # each Makefile.in and add a new line on top of each file to say so.
16663 # Grep'ing the whole file is not good either: AIX grep has a line
16664 # limit of 2048, but all sed's we know have understand at least 4000.
16665 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16666 dirpart=`$as_dirname -- "$mf" ||
16667 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16668 X"$mf" : 'X\(//\)[^/]' \| \
16669 X"$mf" : 'X\(//\)$' \| \
16670 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16671 $as_echo X"$mf" |
16672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16673 s//\1/
16674 q
16675 }
16676 /^X\(\/\/\)[^/].*/{
16677 s//\1/
16678 q
16679 }
16680 /^X\(\/\/\)$/{
16681 s//\1/
16682 q
16683 }
16684 /^X\(\/\).*/{
16685 s//\1/
16686 q
16687 }
16688 s/.*/./; q'`
16689 else
16690 continue
16691 fi
16692 # Extract the definition of DEPDIR, am__include, and am__quote
16693 # from the Makefile without running `make'.
16694 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16695 test -z "$DEPDIR" && continue
16696 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16697 test -z "am__include" && continue
16698 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16699 # When using ansi2knr, U may be empty or an underscore; expand it
16700 U=`sed -n 's/^U = //p' < "$mf"`
16701 # Find all dependency output files, they are included files with
16702 # $(DEPDIR) in their names. We invoke sed twice because it is the
16703 # simplest approach to changing $(DEPDIR) to its actual value in the
16704 # expansion.
16705 for file in `sed -n "
16706 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16707 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16708 # Make sure the directory exists.
16709 test -f "$dirpart/$file" && continue
16710 fdir=`$as_dirname -- "$file" ||
16711 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16712 X"$file" : 'X\(//\)[^/]' \| \
16713 X"$file" : 'X\(//\)$' \| \
16714 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16715 $as_echo X"$file" |
16716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16717 s//\1/
16718 q
16719 }
16720 /^X\(\/\/\)[^/].*/{
16721 s//\1/
16722 q
16723 }
16724 /^X\(\/\/\)$/{
16725 s//\1/
16726 q
16727 }
16728 /^X\(\/\).*/{
16729 s//\1/
16730 q
16731 }
16732 s/.*/./; q'`
16733 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16734 # echo "creating $dirpart/$file"
16735 echo '# dummy' > "$dirpart/$file"
16736 done
16737 done
16738 }
16739 ;;
16740 "libtool":C)
16741
16742 # See if we are running on zsh, and set the options which allow our
16743 # commands through without removal of \ escapes.
16744 if test -n "${ZSH_VERSION+set}" ; then
16745 setopt NO_GLOB_SUBST
16746 fi
16747
16748 cfgfile="${ofile}T"
16749 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16750 $RM "$cfgfile"
16751
16752 cat <<_LT_EOF >> "$cfgfile"
16753 #! $SHELL
16754
16755 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16756 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16758 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16759 #
16760 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16761 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16762 # Foundation, Inc.
16763 # Written by Gordon Matzigkeit, 1996
16764 #
16765 # This file is part of GNU Libtool.
16766 #
16767 # GNU Libtool is free software; you can redistribute it and/or
16768 # modify it under the terms of the GNU General Public License as
16769 # published by the Free Software Foundation; either version 2 of
16770 # the License, or (at your option) any later version.
16771 #
16772 # As a special exception to the GNU General Public License,
16773 # if you distribute this file as part of a program or library that
16774 # is built using GNU Libtool, you may include this file under the
16775 # same distribution terms that you use for the rest of that program.
16776 #
16777 # GNU Libtool is distributed in the hope that it will be useful,
16778 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16780 # GNU General Public License for more details.
16781 #
16782 # You should have received a copy of the GNU General Public License
16783 # along with GNU Libtool; see the file COPYING. If not, a copy
16784 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16785 # obtained by writing to the Free Software Foundation, Inc.,
16786 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16787
16788
16789 # The names of the tagged configurations supported by this script.
16790 available_tags=""
16791
16792 # ### BEGIN LIBTOOL CONFIG
16793
16794 # Which release of libtool.m4 was used?
16795 macro_version=$macro_version
16796 macro_revision=$macro_revision
16797
16798 # Whether or not to build shared libraries.
16799 build_libtool_libs=$enable_shared
16800
16801 # Whether or not to build static libraries.
16802 build_old_libs=$enable_static
16803
16804 # What type of objects to build.
16805 pic_mode=$pic_mode
16806
16807 # Whether or not to optimize for fast installation.
16808 fast_install=$enable_fast_install
16809
16810 # Shell to use when invoking shell scripts.
16811 SHELL=$lt_SHELL
16812
16813 # An echo program that protects backslashes.
16814 ECHO=$lt_ECHO
16815
16816 # The PATH separator for the build system.
16817 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16818
16819 # The host system.
16820 host_alias=$host_alias
16821 host=$host
16822 host_os=$host_os
16823
16824 # The build system.
16825 build_alias=$build_alias
16826 build=$build
16827 build_os=$build_os
16828
16829 # A sed program that does not truncate output.
16830 SED=$lt_SED
16831
16832 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16833 Xsed="\$SED -e 1s/^X//"
16834
16835 # A grep program that handles long lines.
16836 GREP=$lt_GREP
16837
16838 # An ERE matcher.
16839 EGREP=$lt_EGREP
16840
16841 # A literal string matcher.
16842 FGREP=$lt_FGREP
16843
16844 # A BSD- or MS-compatible name lister.
16845 NM=$lt_NM
16846
16847 # Whether we need soft or hard links.
16848 LN_S=$lt_LN_S
16849
16850 # What is the maximum length of a command?
16851 max_cmd_len=$max_cmd_len
16852
16853 # Object file suffix (normally "o").
16854 objext=$ac_objext
16855
16856 # Executable file suffix (normally "").
16857 exeext=$exeext
16858
16859 # whether the shell understands "unset".
16860 lt_unset=$lt_unset
16861
16862 # turn spaces into newlines.
16863 SP2NL=$lt_lt_SP2NL
16864
16865 # turn newlines into spaces.
16866 NL2SP=$lt_lt_NL2SP
16867
16868 # convert \$build file names to \$host format.
16869 to_host_file_cmd=$lt_cv_to_host_file_cmd
16870
16871 # convert \$build files to toolchain format.
16872 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16873
16874 # An object symbol dumper.
16875 OBJDUMP=$lt_OBJDUMP
16876
16877 # Method to check whether dependent libraries are shared objects.
16878 deplibs_check_method=$lt_deplibs_check_method
16879
16880 # Command to use when deplibs_check_method = "file_magic".
16881 file_magic_cmd=$lt_file_magic_cmd
16882
16883 # How to find potential files when deplibs_check_method = "file_magic".
16884 file_magic_glob=$lt_file_magic_glob
16885
16886 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16887 want_nocaseglob=$lt_want_nocaseglob
16888
16889 # DLL creation program.
16890 DLLTOOL=$lt_DLLTOOL
16891
16892 # Command to associate shared and link libraries.
16893 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16894
16895 # The archiver.
16896 AR=$lt_AR
16897
16898 # Flags to create an archive.
16899 AR_FLAGS=$lt_AR_FLAGS
16900
16901 # How to feed a file listing to the archiver.
16902 archiver_list_spec=$lt_archiver_list_spec
16903
16904 # A symbol stripping program.
16905 STRIP=$lt_STRIP
16906
16907 # Commands used to install an old-style archive.
16908 RANLIB=$lt_RANLIB
16909 old_postinstall_cmds=$lt_old_postinstall_cmds
16910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16911
16912 # Whether to use a lock for old archive extraction.
16913 lock_old_archive_extraction=$lock_old_archive_extraction
16914
16915 # A C compiler.
16916 LTCC=$lt_CC
16917
16918 # LTCC compiler flags.
16919 LTCFLAGS=$lt_CFLAGS
16920
16921 # Take the output of nm and produce a listing of raw symbols and C names.
16922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16923
16924 # Transform the output of nm in a proper C declaration.
16925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16926
16927 # Transform the output of nm in a C name address pair.
16928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16929
16930 # Transform the output of nm in a C name address pair when lib prefix is needed.
16931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16932
16933 # Specify filename containing input files for \$NM.
16934 nm_file_list_spec=$lt_nm_file_list_spec
16935
16936 # The root where to search for dependent libraries,and in which our libraries should be installed.
16937 lt_sysroot=$lt_sysroot
16938
16939 # The name of the directory that contains temporary libtool files.
16940 objdir=$objdir
16941
16942 # Used to examine libraries when file_magic_cmd begins with "file".
16943 MAGIC_CMD=$MAGIC_CMD
16944
16945 # Must we lock files when doing compilation?
16946 need_locks=$lt_need_locks
16947
16948 # Manifest tool.
16949 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16950
16951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16952 DSYMUTIL=$lt_DSYMUTIL
16953
16954 # Tool to change global to local symbols on Mac OS X.
16955 NMEDIT=$lt_NMEDIT
16956
16957 # Tool to manipulate fat objects and archives on Mac OS X.
16958 LIPO=$lt_LIPO
16959
16960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16961 OTOOL=$lt_OTOOL
16962
16963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16964 OTOOL64=$lt_OTOOL64
16965
16966 # Old archive suffix (normally "a").
16967 libext=$libext
16968
16969 # Shared library suffix (normally ".so").
16970 shrext_cmds=$lt_shrext_cmds
16971
16972 # The commands to extract the exported symbol list from a shared archive.
16973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16974
16975 # Variables whose values should be saved in libtool wrapper scripts and
16976 # restored at link time.
16977 variables_saved_for_relink=$lt_variables_saved_for_relink
16978
16979 # Do we need the "lib" prefix for modules?
16980 need_lib_prefix=$need_lib_prefix
16981
16982 # Do we need a version for libraries?
16983 need_version=$need_version
16984
16985 # Library versioning type.
16986 version_type=$version_type
16987
16988 # Shared library runtime path variable.
16989 runpath_var=$runpath_var
16990
16991 # Shared library path variable.
16992 shlibpath_var=$shlibpath_var
16993
16994 # Is shlibpath searched before the hard-coded library search path?
16995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16996
16997 # Format of library name prefix.
16998 libname_spec=$lt_libname_spec
16999
17000 # List of archive names. First name is the real one, the rest are links.
17001 # The last name is the one that the linker finds with -lNAME
17002 library_names_spec=$lt_library_names_spec
17003
17004 # The coded name of the library, if different from the real name.
17005 soname_spec=$lt_soname_spec
17006
17007 # Permission mode override for installation of shared libraries.
17008 install_override_mode=$lt_install_override_mode
17009
17010 # Command to use after installation of a shared archive.
17011 postinstall_cmds=$lt_postinstall_cmds
17012
17013 # Command to use after uninstallation of a shared archive.
17014 postuninstall_cmds=$lt_postuninstall_cmds
17015
17016 # Commands used to finish a libtool library installation in a directory.
17017 finish_cmds=$lt_finish_cmds
17018
17019 # As "finish_cmds", except a single script fragment to be evaled but
17020 # not shown.
17021 finish_eval=$lt_finish_eval
17022
17023 # Whether we should hardcode library paths into libraries.
17024 hardcode_into_libs=$hardcode_into_libs
17025
17026 # Compile-time system search path for libraries.
17027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17028
17029 # Run-time system search path for libraries.
17030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17031
17032 # Whether dlopen is supported.
17033 dlopen_support=$enable_dlopen
17034
17035 # Whether dlopen of programs is supported.
17036 dlopen_self=$enable_dlopen_self
17037
17038 # Whether dlopen of statically linked programs is supported.
17039 dlopen_self_static=$enable_dlopen_self_static
17040
17041 # Commands to strip libraries.
17042 old_striplib=$lt_old_striplib
17043 striplib=$lt_striplib
17044
17045
17046 # The linker used to build libraries.
17047 LD=$lt_LD
17048
17049 # How to create reloadable object files.
17050 reload_flag=$lt_reload_flag
17051 reload_cmds=$lt_reload_cmds
17052
17053 # Commands used to build an old-style archive.
17054 old_archive_cmds=$lt_old_archive_cmds
17055
17056 # A language specific compiler.
17057 CC=$lt_compiler
17058
17059 # Is the compiler the GNU compiler?
17060 with_gcc=$GCC
17061
17062 # Compiler flag to turn off builtin functions.
17063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17064
17065 # Additional compiler flags for building library objects.
17066 pic_flag=$lt_lt_prog_compiler_pic
17067
17068 # How to pass a linker flag through the compiler.
17069 wl=$lt_lt_prog_compiler_wl
17070
17071 # Compiler flag to prevent dynamic linking.
17072 link_static_flag=$lt_lt_prog_compiler_static
17073
17074 # Does compiler simultaneously support -c and -o options?
17075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17076
17077 # Whether or not to add -lc for building shared libraries.
17078 build_libtool_need_lc=$archive_cmds_need_lc
17079
17080 # Whether or not to disallow shared libs when runtime libs are static.
17081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17082
17083 # Compiler flag to allow reflexive dlopens.
17084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17085
17086 # Compiler flag to generate shared objects directly from archives.
17087 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17088
17089 # Whether the compiler copes with passing no objects directly.
17090 compiler_needs_object=$lt_compiler_needs_object
17091
17092 # Create an old-style archive from a shared archive.
17093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17094
17095 # Create a temporary old-style archive to link instead of a shared archive.
17096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17097
17098 # Commands used to build a shared archive.
17099 archive_cmds=$lt_archive_cmds
17100 archive_expsym_cmds=$lt_archive_expsym_cmds
17101
17102 # Commands used to build a loadable module if different from building
17103 # a shared archive.
17104 module_cmds=$lt_module_cmds
17105 module_expsym_cmds=$lt_module_expsym_cmds
17106
17107 # Whether we are building with GNU ld or not.
17108 with_gnu_ld=$lt_with_gnu_ld
17109
17110 # Flag that allows shared libraries with undefined symbols to be built.
17111 allow_undefined_flag=$lt_allow_undefined_flag
17112
17113 # Flag that enforces no undefined symbols.
17114 no_undefined_flag=$lt_no_undefined_flag
17115
17116 # Flag to hardcode \$libdir into a binary during linking.
17117 # This must work even if \$libdir does not exist
17118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17119
17120 # Whether we need a single "-rpath" flag with a separated argument.
17121 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17122
17123 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17124 # DIR into the resulting binary.
17125 hardcode_direct=$hardcode_direct
17126
17127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17128 # DIR into the resulting binary and the resulting library dependency is
17129 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17130 # library is relocated.
17131 hardcode_direct_absolute=$hardcode_direct_absolute
17132
17133 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17134 # into the resulting binary.
17135 hardcode_minus_L=$hardcode_minus_L
17136
17137 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17138 # into the resulting binary.
17139 hardcode_shlibpath_var=$hardcode_shlibpath_var
17140
17141 # Set to "yes" if building a shared library automatically hardcodes DIR
17142 # into the library and all subsequent libraries and executables linked
17143 # against it.
17144 hardcode_automatic=$hardcode_automatic
17145
17146 # Set to yes if linker adds runtime paths of dependent libraries
17147 # to runtime path list.
17148 inherit_rpath=$inherit_rpath
17149
17150 # Whether libtool must link a program against all its dependency libraries.
17151 link_all_deplibs=$link_all_deplibs
17152
17153 # Set to "yes" if exported symbols are required.
17154 always_export_symbols=$always_export_symbols
17155
17156 # The commands to list exported symbols.
17157 export_symbols_cmds=$lt_export_symbols_cmds
17158
17159 # Symbols that should not be listed in the preloaded symbols.
17160 exclude_expsyms=$lt_exclude_expsyms
17161
17162 # Symbols that must always be exported.
17163 include_expsyms=$lt_include_expsyms
17164
17165 # Commands necessary for linking programs (against libraries) with templates.
17166 prelink_cmds=$lt_prelink_cmds
17167
17168 # Commands necessary for finishing linking programs.
17169 postlink_cmds=$lt_postlink_cmds
17170
17171 # Specify filename containing input files.
17172 file_list_spec=$lt_file_list_spec
17173
17174 # How to hardcode a shared library path into an executable.
17175 hardcode_action=$hardcode_action
17176
17177 # ### END LIBTOOL CONFIG
17178
17179 _LT_EOF
17180
17181 case $host_os in
17182 aix3*)
17183 cat <<\_LT_EOF >> "$cfgfile"
17184 # AIX sometimes has problems with the GCC collect2 program. For some
17185 # reason, if we set the COLLECT_NAMES environment variable, the problems
17186 # vanish in a puff of smoke.
17187 if test "X${COLLECT_NAMES+set}" != Xset; then
17188 COLLECT_NAMES=
17189 export COLLECT_NAMES
17190 fi
17191 _LT_EOF
17192 ;;
17193 esac
17194
17195
17196 ltmain="$ac_aux_dir/ltmain.sh"
17197
17198
17199 # We use sed instead of cat because bash on DJGPP gets confused if
17200 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17201 # text mode, it properly converts lines to CR/LF. This bash problem
17202 # is reportedly fixed, but why not run on old versions too?
17203 sed '$q' "$ltmain" >> "$cfgfile" \
17204 || (rm -f "$cfgfile"; exit 1)
17205
17206 if test x"$xsi_shell" = xyes; then
17207 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17208 func_dirname ()\
17209 {\
17210 \ case ${1} in\
17211 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17212 \ * ) func_dirname_result="${3}" ;;\
17213 \ esac\
17214 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17215 && mv -f "$cfgfile.tmp" "$cfgfile" \
17216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17217 test 0 -eq $? || _lt_function_replace_fail=:
17218
17219
17220 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17221 func_basename ()\
17222 {\
17223 \ func_basename_result="${1##*/}"\
17224 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17225 && mv -f "$cfgfile.tmp" "$cfgfile" \
17226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17227 test 0 -eq $? || _lt_function_replace_fail=:
17228
17229
17230 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17231 func_dirname_and_basename ()\
17232 {\
17233 \ case ${1} in\
17234 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17235 \ * ) func_dirname_result="${3}" ;;\
17236 \ esac\
17237 \ func_basename_result="${1##*/}"\
17238 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17239 && mv -f "$cfgfile.tmp" "$cfgfile" \
17240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17241 test 0 -eq $? || _lt_function_replace_fail=:
17242
17243
17244 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17245 func_stripname ()\
17246 {\
17247 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17248 \ # positional parameters, so assign one to ordinary parameter first.\
17249 \ func_stripname_result=${3}\
17250 \ func_stripname_result=${func_stripname_result#"${1}"}\
17251 \ func_stripname_result=${func_stripname_result%"${2}"}\
17252 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17253 && mv -f "$cfgfile.tmp" "$cfgfile" \
17254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17255 test 0 -eq $? || _lt_function_replace_fail=:
17256
17257
17258 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17259 func_split_long_opt ()\
17260 {\
17261 \ func_split_long_opt_name=${1%%=*}\
17262 \ func_split_long_opt_arg=${1#*=}\
17263 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17264 && mv -f "$cfgfile.tmp" "$cfgfile" \
17265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17266 test 0 -eq $? || _lt_function_replace_fail=:
17267
17268
17269 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17270 func_split_short_opt ()\
17271 {\
17272 \ func_split_short_opt_arg=${1#??}\
17273 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17274 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17275 && mv -f "$cfgfile.tmp" "$cfgfile" \
17276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17277 test 0 -eq $? || _lt_function_replace_fail=:
17278
17279
17280 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17281 func_lo2o ()\
17282 {\
17283 \ case ${1} in\
17284 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17285 \ *) func_lo2o_result=${1} ;;\
17286 \ esac\
17287 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17288 && mv -f "$cfgfile.tmp" "$cfgfile" \
17289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17290 test 0 -eq $? || _lt_function_replace_fail=:
17291
17292
17293 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17294 func_xform ()\
17295 {\
17296 func_xform_result=${1%.*}.lo\
17297 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17298 && mv -f "$cfgfile.tmp" "$cfgfile" \
17299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17300 test 0 -eq $? || _lt_function_replace_fail=:
17301
17302
17303 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17304 func_arith ()\
17305 {\
17306 func_arith_result=$(( $* ))\
17307 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17308 && mv -f "$cfgfile.tmp" "$cfgfile" \
17309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17310 test 0 -eq $? || _lt_function_replace_fail=:
17311
17312
17313 sed -e '/^func_len ()$/,/^} # func_len /c\
17314 func_len ()\
17315 {\
17316 func_len_result=${#1}\
17317 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17318 && mv -f "$cfgfile.tmp" "$cfgfile" \
17319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17320 test 0 -eq $? || _lt_function_replace_fail=:
17321
17322 fi
17323
17324 if test x"$lt_shell_append" = xyes; then
17325 sed -e '/^func_append ()$/,/^} # func_append /c\
17326 func_append ()\
17327 {\
17328 eval "${1}+=\\${2}"\
17329 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17330 && mv -f "$cfgfile.tmp" "$cfgfile" \
17331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17332 test 0 -eq $? || _lt_function_replace_fail=:
17333
17334
17335 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17336 func_append_quoted ()\
17337 {\
17338 \ func_quote_for_eval "${2}"\
17339 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17340 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17341 && mv -f "$cfgfile.tmp" "$cfgfile" \
17342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17343 test 0 -eq $? || _lt_function_replace_fail=:
17344
17345
17346 # Save a `func_append' function call where possible by direct use of '+='
17347 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17348 && mv -f "$cfgfile.tmp" "$cfgfile" \
17349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17350 test 0 -eq $? || _lt_function_replace_fail=:
17351 else
17352 # Save a `func_append' function call even when '+=' is not available
17353 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17354 && mv -f "$cfgfile.tmp" "$cfgfile" \
17355 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17356 test 0 -eq $? || _lt_function_replace_fail=:
17357 fi
17358
17359 if test x"$_lt_function_replace_fail" = x":"; then
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17361 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17362 fi
17363
17364
17365 mv -f "$cfgfile" "$ofile" ||
17366 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17367 chmod +x "$ofile"
17368
17369 ;;
17370 "po-directories":C)
17371 for ac_file in $CONFIG_FILES; do
17372 # Support "outfile[:infile[:infile...]]"
17373 case "$ac_file" in
17374 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17375 esac
17376 # PO directories have a Makefile.in generated from Makefile.in.in.
17377 case "$ac_file" in */Makefile.in)
17378 # Adjust a relative srcdir.
17379 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17380 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17381 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17382 # In autoconf-2.13 it is called $ac_given_srcdir.
17383 # In autoconf-2.50 it is called $srcdir.
17384 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17385 case "$ac_given_srcdir" in
17386 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17387 /*) top_srcdir="$ac_given_srcdir" ;;
17388 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17389 esac
17390 # Treat a directory as a PO directory if and only if it has a
17391 # POTFILES.in file. This allows packages to have multiple PO
17392 # directories under different names or in different locations.
17393 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17394 rm -f "$ac_dir/POTFILES"
17395 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17396 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17397 POMAKEFILEDEPS="POTFILES.in"
17398 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17399 # on $ac_dir but don't depend on user-specified configuration
17400 # parameters.
17401 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17402 # The LINGUAS file contains the set of available languages.
17403 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17404 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17405 fi
17406 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17407 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17408 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17409 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17410 else
17411 # The set of available languages was given in configure.in.
17412 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17413 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17414 fi
17415 # Compute POFILES
17416 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17417 # Compute UPDATEPOFILES
17418 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17419 # Compute DUMMYPOFILES
17420 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17421 # Compute GMOFILES
17422 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17423 case "$ac_given_srcdir" in
17424 .) srcdirpre= ;;
17425 *) srcdirpre='$(srcdir)/' ;;
17426 esac
17427 POFILES=
17428 UPDATEPOFILES=
17429 DUMMYPOFILES=
17430 GMOFILES=
17431 for lang in $ALL_LINGUAS; do
17432 POFILES="$POFILES $srcdirpre$lang.po"
17433 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17434 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17435 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17436 done
17437 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17438 # environment variable.
17439 INST_LINGUAS=
17440 if test -n "$ALL_LINGUAS"; then
17441 for presentlang in $ALL_LINGUAS; do
17442 useit=no
17443 if test "%UNSET%" != "$LINGUAS"; then
17444 desiredlanguages="$LINGUAS"
17445 else
17446 desiredlanguages="$ALL_LINGUAS"
17447 fi
17448 for desiredlang in $desiredlanguages; do
17449 # Use the presentlang catalog if desiredlang is
17450 # a. equal to presentlang, or
17451 # b. a variant of presentlang (because in this case,
17452 # presentlang can be used as a fallback for messages
17453 # which are not translated in the desiredlang catalog).
17454 case "$desiredlang" in
17455 "$presentlang"*) useit=yes;;
17456 esac
17457 done
17458 if test $useit = yes; then
17459 INST_LINGUAS="$INST_LINGUAS $presentlang"
17460 fi
17461 done
17462 fi
17463 CATALOGS=
17464 if test -n "$INST_LINGUAS"; then
17465 for lang in $INST_LINGUAS; do
17466 CATALOGS="$CATALOGS $lang.gmo"
17467 done
17468 fi
17469 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17470 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17471 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17472 if test -f "$f"; then
17473 case "$f" in
17474 *.orig | *.bak | *~) ;;
17475 *) cat "$f" >> "$ac_dir/Makefile" ;;
17476 esac
17477 fi
17478 done
17479 fi
17480 ;;
17481 esac
17482 done ;;
17483
17484 esac
17485 done # for ac_tag
17486
17487
17488 as_fn_exit 0
17489 _ACEOF
17490 ac_clean_files=$ac_clean_files_save
17491
17492 test $ac_write_fail = 0 ||
17493 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17494
17495
17496 # configure is writing to config.log, and then calls config.status.
17497 # config.status does its own redirection, appending to config.log.
17498 # Unfortunately, on DOS this fails, as config.log is still kept open
17499 # by configure, so config.status won't be able to write to it; its
17500 # output is simply discarded. So we exec the FD to /dev/null,
17501 # effectively closing config.log, so it can be properly (re)opened and
17502 # appended to by config.status. When coming back to configure, we
17503 # need to make the FD available again.
17504 if test "$no_create" != yes; then
17505 ac_cs_success=:
17506 ac_config_status_args=
17507 test "$silent" = yes &&
17508 ac_config_status_args="$ac_config_status_args --quiet"
17509 exec 5>/dev/null
17510 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17511 exec 5>>config.log
17512 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17513 # would make configure fail if this is the last instruction.
17514 $ac_cs_success || as_fn_exit 1
17515 fi
17516 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17518 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17519 fi
17520
17521
17522
17523 echo "
17524 $PACKAGE-$VERSION
17525
17526 prefix: ${prefix}
17527 compiler: ${CC}
17528 locale-dir: $localepath
17529
17530 have swig ${have_swig}
17531 have free pascal ${have_fpc}
17532 have gnu pascal ${have_gpc}
17533 have python ${have_python}
17534 have perl ${have_perl}
17535 have ruby ${have_ruby}
17536 have php ${have_php} php-dev,php-cli ${have_php_config}
17537
17538 build hcal ${build_hcal}
17539
17540 build python binding ${build_python}
17541 build perl binding ${build_perl}
17542 puild free pascal binding ${build_fpc}
17543 puild ruby binding ${build_ruby}
17544 puild php binding ${build_php}
17545
17546 perl site lib path: $PE_MODULES_PATH
17547 python site lib path: $PY_MODULES_PATH
17548 free pascal site lib path: $PA_MODULES_PATH
17549 gnu pascal site lib path: $GP_MODULES_PATH
17550 ruby site lib path: $RU_MODULES_PATH
17551 php site lib path: $PH_MODULES_PATH
17552 php config path: $PH_CONFIG_PATH
17553 php include path: $PH_INCLUDE_PATH
17554 "